Class PropertyMapValueHandler
java.lang.Object
net.infonode.properties.propertymap.PropertyMapValueHandler
- All Implemented Interfaces:
PropertyValueHandler
Property value handler for property maps.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PropertyMapValueHandler
The instance of this class. -
Method Summary
Modifier and TypeMethodDescriptionGets the value of a property from a value container.boolean
getValueIsRemovable
(Property property, Object object) Returns true if the property value is removable from the value container.boolean
getValueIsSet
(Property property, Object object) Returns true if a value for the property is set in the value container.void
removeValue
(Property property, Object object) Removes a property value from a value container.void
Sets the value of a property in a value container.
-
Field Details
-
INSTANCE
The instance of this class.
-
-
Method Details
-
getValue
Description copied from interface:PropertyValueHandler
Gets the value of a property from a value container.- Specified by:
getValue
in interfacePropertyValueHandler
- Parameters:
property
- the propertyobject
- the object containing the value- Returns:
- the property value, null if the container doesn't contain the value
-
setValue
Description copied from interface:PropertyValueHandler
Sets the value of a property in a value container.- Specified by:
setValue
in interfacePropertyValueHandler
- Parameters:
property
- the propertyobject
- the object that will contain the valuevalue
- the property value
-
getValueIsRemovable
Description copied from interface:PropertyValueHandler
Returns true if the property value is removable from the value container.- Specified by:
getValueIsRemovable
in interfacePropertyValueHandler
- Parameters:
property
- the propertyobject
- the value container- Returns:
- true if the property value is removable from the value container
-
removeValue
Description copied from interface:PropertyValueHandler
Removes a property value from a value container.- Specified by:
removeValue
in interfacePropertyValueHandler
- Parameters:
property
- the propertyobject
- the value container
-
getValueIsSet
Description copied from interface:PropertyValueHandler
Returns true if a value for the property is set in the value container.- Specified by:
getValueIsSet
in interfacePropertyValueHandler
- Parameters:
property
- the propertyobject
- the value container- Returns:
- true if a value for the property is set in the value container
-