Class PropertyMapValueHandler
- java.lang.Object
-
- net.infonode.properties.propertymap.PropertyMapValueHandler
-
- All Implemented Interfaces:
PropertyValueHandler
public class PropertyMapValueHandler extends java.lang.Object implements PropertyValueHandler
Property value handler for property maps.
-
-
Field Summary
Fields Modifier and Type Field Description static PropertyMapValueHandlerINSTANCEThe instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetValue(Property property, java.lang.Object object)Gets the value of a property from a value container.booleangetValueIsRemovable(Property property, java.lang.Object object)Returns true if the property value is removable from the value container.booleangetValueIsSet(Property property, java.lang.Object object)Returns true if a value for the property is set in the value container.voidremoveValue(Property property, java.lang.Object object)Removes a property value from a value container.voidsetValue(Property property, java.lang.Object object, java.lang.Object value)Sets the value of a property in a value container.
-
-
-
Field Detail
-
INSTANCE
public static final PropertyMapValueHandler INSTANCE
The instance of this class.
-
-
Method Detail
-
getValue
public java.lang.Object getValue(Property property, java.lang.Object object)
Description copied from interface:PropertyValueHandlerGets the value of a property from a value container.- Specified by:
getValuein interfacePropertyValueHandler- Parameters:
property- the propertyobject- the object containing the value- Returns:
- the property value, null if the container doesn't contain the value
-
setValue
public void setValue(Property property, java.lang.Object object, java.lang.Object value)
Description copied from interface:PropertyValueHandlerSets the value of a property in a value container.- Specified by:
setValuein interfacePropertyValueHandler- Parameters:
property- the propertyobject- the object that will contain the valuevalue- the property value
-
getValueIsRemovable
public boolean getValueIsRemovable(Property property, java.lang.Object object)
Description copied from interface:PropertyValueHandlerReturns true if the property value is removable from the value container.- Specified by:
getValueIsRemovablein interfacePropertyValueHandler- Parameters:
property- the propertyobject- the value container- Returns:
- true if the property value is removable from the value container
-
removeValue
public void removeValue(Property property, java.lang.Object object)
Description copied from interface:PropertyValueHandlerRemoves a property value from a value container.- Specified by:
removeValuein interfacePropertyValueHandler- Parameters:
property- the propertyobject- the value container
-
getValueIsSet
public boolean getValueIsSet(Property property, java.lang.Object object)
Description copied from interface:PropertyValueHandlerReturns true if a value for the property is set in the value container.- Specified by:
getValueIsSetin interfacePropertyValueHandler- Parameters:
property- the propertyobject- the value container- Returns:
- true if a value for the property is set in the value container
-
-