public class PropertyMapValueHandler extends java.lang.Object implements PropertyValueHandler
Modifier and Type | Field and Description |
---|---|
static PropertyMapValueHandler |
INSTANCE
The instance of this class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getValue(Property property,
java.lang.Object object)
Gets the value of a property from a value container.
|
boolean |
getValueIsRemovable(Property property,
java.lang.Object object)
Returns true if the property value is removable from the value container.
|
boolean |
getValueIsSet(Property property,
java.lang.Object object)
Returns true if a value for the property is set in the value container.
|
void |
removeValue(Property property,
java.lang.Object object)
Removes a property value from a value container.
|
void |
setValue(Property property,
java.lang.Object object,
java.lang.Object value)
Sets the value of a property in a value container.
|
public static final PropertyMapValueHandler INSTANCE
public java.lang.Object getValue(Property property, java.lang.Object object)
PropertyValueHandler
getValue
in interface PropertyValueHandler
property
- the propertyobject
- the object containing the valuepublic void setValue(Property property, java.lang.Object object, java.lang.Object value)
PropertyValueHandler
setValue
in interface PropertyValueHandler
property
- the propertyobject
- the object that will contain the valuevalue
- the property valuepublic boolean getValueIsRemovable(Property property, java.lang.Object object)
PropertyValueHandler
getValueIsRemovable
in interface PropertyValueHandler
property
- the propertyobject
- the value containerpublic void removeValue(Property property, java.lang.Object object)
PropertyValueHandler
removeValue
in interface PropertyValueHandler
property
- the propertyobject
- the value containerpublic boolean getValueIsSet(Property property, java.lang.Object object)
PropertyValueHandler
getValueIsSet
in interface PropertyValueHandler
property
- the propertyobject
- the value container