|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A common super-type for all interfaces which need to keep track of properties and their dependencies via property mappings.
Method Summary | |
java.util.Set |
getProperties()
Returns a read-only view of the currently registered properties. |
Property |
getProperty(java.lang.String uniqueName)
Returns a Property corresponding to the given uniqueName |
PropertyMapping |
getPropertyMapping(Property prop)
Returns the PropertyMapping for the given Property . |
boolean |
hasProperty(Property prop)
Check whether the given Property is already registered to this registry. |
boolean |
hasProperty(java.lang.String uniqueName)
Check whether a property with the given uniqueName is already registered to this registry. |
boolean |
isMappedProperty(Property prop)
Checks, whether the given Property is a leaf or a property derived using a PropertyMapping . |
void |
registerProperty(Property prop,
PropertyMapping pm)
Registers a derived property and its value-providing PropertyMapping .
|
void |
unregisterProperty(Property prop)
Unregisters the given Property from the registry. |
Method Detail |
public boolean hasProperty(Property prop)
Property
is already registered to this registry.
prop
- a property instance
true
if the property is already registered, false
otherwisepublic boolean hasProperty(java.lang.String uniqueName)
uniqueName
is already registered to this registry.
uniqueName
- a unique identifier of the property
true
if the property is already registered, false
otherwiseProperty.getUniqueName()
public Property getProperty(java.lang.String uniqueName) throws UnregisteredPropertyException
Property
corresponding to the given uniqueName
uniqueName
- a unique identifier of the property
Property
corresponding to the given uniqueName
UnregisteredPropertyException
- in case a property the given uniqueName
is not registeredpublic boolean isMappedProperty(Property prop) throws UnregisteredPropertyException
Property
is a leaf or a property derived using a PropertyMapping
.
prop
- a property instance
true
if the given property is a derived property, false
otherwise
UnregisteredPropertyException
- in case the property is not registeredpublic PropertyMapping getPropertyMapping(Property prop) throws UnregisteredPropertyException, PropertyKindException
PropertyMapping
for the given Property
.
prop
- a Property
instance
PropertyMapping
registered for the given Property
.
UnregisteredPropertyException
- in case the property is not registered
PropertyKindException
- in case there is no PropertyMapping
registered for the given Property
public void registerProperty(Property prop, PropertyMapping pm) throws PropertyMappingException
PropertyMapping
.
If the Property
has already been registered, it redefines the Property
prop
- a Property
to registerpm
- a PropertyMapping
for the given Property
PropertyMappingException
- in case the domain and/or range of the mapping
is incorrect with the respect to the semantics of the underlying PropertyRegistry
implementation.public void unregisterProperty(Property prop) throws UnregisteredPropertyException
Property
from the registry.
prop
- a Property
to unregister
UnregisteredPropertyException
- in case the property is not registeredpublic java.util.Set getProperties()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |