java.lang.Object | |
↳ | com.pnfsoftware.jeb.core.properties.impl.PropertyDefinitionManager |
A simple property definitions manager (PDM). Properties can be organized in regions and sub-regions.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PropertyDefinitionManager(String region, IPropertyDefinitionManager parent)
Create a new PDM.
| |||||||||||
PropertyDefinitionManager(String region)
Create a new PDM.
| |||||||||||
PropertyDefinitionManager()
Create a new PDM.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
IPropertyDefinition | addDefinition(String name, IPropertyType type, int descriptionId, boolean internal, boolean allowOverride) | ||||||||||
IPropertyDefinition |
addDefinition(String name, IPropertyType type, int descriptionId)
Add a property definition.
| ||||||||||
IPropertyDefinition |
addDefinition(String name, IPropertyType type)
Add a property definition.
| ||||||||||
IPropertyDefinition | addDefinition(String name, IPropertyType type, String description, boolean internal, boolean allowOverride) | ||||||||||
IPropertyDefinition |
addDefinition(String name, IPropertyType type, String description)
Add a property definition.
| ||||||||||
IPropertyDefinition |
addInternalDefinition(String name, IPropertyType type)
Add an internal property definition.
| ||||||||||
void |
attachToParent(IPropertyDefinitionManager parentManager)
Attach this PDM a parent PDM.
| ||||||||||
IPropertyDefinitionManager |
getChild(String name)
Get a child PDM by region name.
| ||||||||||
List<IPropertyDefinitionManager> |
getChildren()
Get the children of this PDM.
| ||||||||||
IPropertyDefinition |
getDefinition(String name)
Retrieve a property definition.
| ||||||||||
List<IPropertyDefinition> |
getDefinitions()
Get the list of definitions within this PDM.
| ||||||||||
String |
getNamespace()
Fully qualified namespace of the currently PDM, eg ".com.pnfsoftware.foo"
| ||||||||||
IPropertyDefinitionManager |
getParent()
Get the parent of this PDM.
| ||||||||||
String |
getRegion()
Region name (lower case), never null.
| ||||||||||
boolean |
registerChild(IPropertyDefinitionManager child)
Register a PDM as a child region.
| ||||||||||
void |
removeDefinition(String name)
Remove a property.
| ||||||||||
String | toString() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Create a new PDM.
region | set to null to create a root PDM, else must be a valid region name. A valid region name is a valid Java identifier name |
---|---|
parent | optional parent PDM, used to form a tree of properties, such as
.region0.region1.PropertyXyz
|
Create a new PDM. Same as
PropertyDefinitionManager(region, null)
region | set to null to create a root PDM, else must be a valid region name |
---|
Add a property definition.
name | the property name |
---|---|
type | the property type |
descriptionId | an optional description id (currently not used) |
Add a property definition.
name | the property name |
---|---|
type | the property type |
Add a property definition.
name | the property name |
---|---|
type | the property type |
description | an optional description string |
Add an internal property definition.
name | the property name |
---|---|
type | the property type |
Attach this PDM a parent PDM. The region name within the parent's children namespace must be available.
parentManager | a parent PDM |
---|
Get a child PDM by region name.
name | the region name |
---|
Get the children of this PDM.
Retrieve a property definition.
name | the property name |
---|
Get the list of definitions within this PDM. Hierarchies are not navigated, only the current level properties are returned.
Fully qualified namespace of the currently PDM, eg ".com.pnfsoftware.foo"
Get the parent of this PDM.
Region name (lower case), never null. A root region is the empty-string.
Register a PDM as a child region. To be used in conjunction with attachToParent.
child | the child PDM |
---|
Remove a property.
name | the property name |
---|