| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Provides a flexibile mechanism for working with object's properties.
A property for this interface is a key-value pair with both key and value of Object type.
It is possible to have one-to-many relationships between a key and a value.
To assign a listener to any property, use the addPropertyMapListener method.
| Method Summary | |
Property | addProperty(Object propertyKey, Object propertyValue)Adds a property with the specified value to the properties set. |
void | addPropertyMapListener(Object propertyKey, PropertyMapListener listener)Adds a listener to the specified property. |
boolean | canAddProperty(Object propertyKey, Object propertyValue)Checks whether a property with the specified value can be added to the properties set. |
boolean | canSetPropertyValue(Object propertyKey, Object propertyValue)Checks whether the specified value can be set for the property. |
Object | getPropertyValue(Object propertyKey)Returns a value of the property. |
Object | getPropertyValue(Object propertyKey, Class valueClass)Returns a value of the property as a specified class instance. |
boolean | isPropertyReadable(Object propertyKey)Checks whether the property is readable. |
boolean | isPropertyWritable(Object propertyKey)Checks whether the property is writable. |
Enumeration | properties()Returns an enumeration of all properties containded in this PropertyMap. |
Enumeration | properties(Object propertyKey)Returns an enumeration of all properties with the same key value containded in this PropertyMap. |
void | removePropertyMapListener(Object propertyKey, PropertyMapListener listener)Removes a listener of the specified property. |
void | setPropertyValue(Object propertyKey, Object propertyValue)Sets a value for the specified property. |
| Method Detail |
public Property addProperty(Object propertyKey, Object propertyValue)
public void addPropertyMapListener(Object propertyKey, PropertyMapListener listener)
PropertyMapListener objectpublic boolean canAddProperty(Object propertyKey, Object propertyValue)
true if a property with the specified value can be added to the properties set,
false otherwisepublic boolean canSetPropertyValue(Object propertyKey, Object propertyValue)
true if the specified value can be set as a value for the property,
false otherwisepublic Object getPropertyValue(Object propertyKey)
public Object getPropertyValue(Object propertyKey, Class valueClass)
throws CastNotSupportedException
public boolean isPropertyReadable(Object propertyKey)
true if the property is readable, false otherwisepublic boolean isPropertyWritable(Object propertyKey)
true if the property is writable, false otherwisepublic Enumeration properties()
public Enumeration properties(Object propertyKey)
public void removePropertyMapListener(Object propertyKey, PropertyMapListener listener)
PropertyMapListener objectpublic void setPropertyValue(Object propertyKey, Object propertyValue)
| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||