| java.lang.Object org.millstone.base.data.util.PropertysetItem
All known Subclasses: org.millstone.base.data.util.BeanItem,
PropertysetItem | public class PropertysetItem implements Item,Item.PropertySetChangeNotifier,Cloneable(Code) | | Class for handling a set of identified Properties. The elements contained in
a MapItem can be referenced using locally unique identifiers.
The class supports listeners who are interested in changes to the Property
set managed by the class.
author: IT Mill Ltd. version: 3.1.1 since: 3.0 |
addItemProperty | public boolean addItemProperty(Object id, Property property)(Code) | | Tries to add a new Property into the Item.
Parameters: id - ID of the new Property Parameters: property - the Property to be added and associated with id true if the operation succeeded,false if not |
addListener | public void addListener(Item.PropertySetChangeListener listener)(Code) | | Registers a new property set change listener for this Item.
Parameters: listener - The new Listener to be registered. |
getItemProperty | public Property getItemProperty(Object id)(Code) | | Gets the Property corresponding to the given Property ID stored in the
Item. If the Item does not contain the Property, null is
returned.
Parameters: id - identifier of the Property to get the Property with the given ID or null |
getItemPropertyIds | public Collection getItemPropertyIds()(Code) | | Gets the collection of IDs of all Properties stored in the Item.
unmodifiable collection containing IDs of the Properties storedthe Item |
hashCode | public int hashCode()(Code) | | |
removeItemProperty | public boolean removeItemProperty(Object id)(Code) | | Removes the Property identified by ID from the Item. This functionality
is optional. If the method is not implemented, the method always returns
false .
Parameters: id - ID of the Property to be removed true if the operation succeeded false if not |
removeListener | public void removeListener(Item.PropertySetChangeListener listener)(Code) | | Removes a previously registered property set change listener.
Parameters: listener - Listener to be removed. |
toString | public String toString()(Code) | | Gets the String representation of the contents of the
Item. The format of the string is a space separated catenation of the
String representations of the Properties contained by the
Item.
String representation of the Item contents |
|
|