T
- The preference bean type implementing the interface.public interface BasePreferencePortable<T> extends BasePreference<T>
Modifier and Type | Method and Description |
---|---|
String |
bundleKey()
Returns the bundle key registered in the
WorkbenchPreference annotation. |
Object |
get(String property)
Returns a property value by its name.
|
Class<T> |
getPojoClass()
Returns the preference bean class.
|
Map<String,PropertyFormType> |
getPropertiesTypes()
Returns the form types of all simple (non-preference) properties by their field name.
|
default Map<String,List<PropertyValidator>> |
getPropertiesValidators() |
default PropertyFormType |
getPropertyType(String propertyName)
Returns the form type of a specific simple (non-preference) property by its field name.
|
default List<PropertyValidator> |
getPropertyValidators(String propertyName) |
String |
identifier()
Unique identifier, used by this preference children to determine their parents.
|
boolean |
isPersistable()
A preference is persistable when it has at least one non-shared property.
|
String[] |
parents()
The preferences which will have this preference as their child.
|
void |
set(String property,
Object value)
Sets a property value by its name.
|
Class<T> getPojoClass()
String identifier()
String[] parents()
String bundleKey()
WorkbenchPreference
annotation.void set(String property, Object value)
property
- Name of the property field to be set.value
- New value for the property.Object get(String property)
property
- Name of the property field to be fetched.Map<String,PropertyFormType> getPropertiesTypes()
default Map<String,List<PropertyValidator>> getPropertiesValidators()
default PropertyFormType getPropertyType(String propertyName)
propertyName
- The property field name.default List<PropertyValidator> getPropertyValidators(String propertyName)
boolean isPersistable()
Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.