| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface represents a map of object's properties. Term "map"
assumes some mapping and in this case it is mapping of the property name
to the property value(s). The responsibility of the object represented
by this interface is to provide convenient methods of mapping items
manipulation like property value setting and retrieving, adding new
properties, etc.
Basically all property values have String type. However we
separate so-called boolean properties. Property is boolean if
its particular values do not matter and the only thing we are interested
in is whether the value of this property is null or not. It is
a good idea to return empty string as a value of the boolean property. It is
clear that boolean property can not be multivalued
IMPORTANT IMPLEMENTATION ISSUE: implementation of the model interfaces
in Together core is not thread safe. Access to all methods of this
interface implementation should be performed in command thread
| Method Summary | |
Property | addProperty(String propertyName, String propertyValue)Creates and adds to this property map new property with the
given propertyName and propertyValue |
boolean | canAddProperty(String propertyName, String propertyValue) |
boolean | canSetPropertyValue(String propertyName, String propertyValue) |
boolean | canSetPropertyValue(String propertyName, boolean propertyValue)This method is just a "shortcut" for boolean properties |
Property | getProperty(String propertyName) |
String | getPropertyValue(String propertyName) |
boolean | hasProperty(String propertyName) |
boolean | hasPropertyValue(String propertyName, String propertyValue) |
boolean | isPropertyReadable(String propertyName) |
boolean | isPropertyWritable(String propertyName) |
PropertyEnumeration | properties() |
PropertyEnumeration | properties(String propertyName) |
void | setPropertyValue(String propertyName, String propertyValue)Sets the value of a property with the given propertyName
to propertyValue |
void | setPropertyValue(String propertyName, boolean propertyValue)This method is just a "shortcut" for boolean properties Sets the value of a property with the given propertyName
to propertyValue |
| Method Detail |
public Property addProperty(String propertyName, String propertyValue)
this property map new property with the
propertyName and propertyValuepublic boolean canAddProperty(String propertyName, String propertyValue)
true if it is possible to add new
propertyName and
propertyValue to this property mappublic boolean canSetPropertyValue(String propertyName, String propertyValue)
true if given propertyValue is
propertyName.
isWritable(). It is
public boolean canSetPropertyValue(String propertyName, boolean propertyValue)
true if given propertyValue is valid
propertyName.public Property getProperty(String propertyName)
propertyName
null if property with such name does not
public String getPropertyValue(String propertyName)
propertyName
null if property with such name does not
public boolean hasProperty(String propertyName)
true if this property map contains property with
propertyName.public boolean hasPropertyValue(String propertyName, String propertyValue)
true if the set of current values of the property
propertyName contains value
propertyValuepublic boolean isPropertyReadable(String propertyName)
true if a property with the given
propertyName is readable.public boolean isPropertyWritable(String propertyName)
true if a property with the given
propertyName is writable.public PropertyEnumeration properties()
this property mappublic PropertyEnumeration properties(String propertyName)
this property map
propertyName.public void setPropertyValue(String propertyName, String propertyValue)
propertyName
propertyValuepublic void setPropertyValue(String propertyName, boolean propertyValue)
propertyName
propertyValue| Association Links |
| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||