Package net.infonode.properties.util
Interface PropertyValueHandler
-
- All Known Implementing Classes:
PropertyMapValueHandler
public interface PropertyValueHandlerSets and gets property values to and from value objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectgetValue(Property property, java.lang.Object valueContainer)Gets the value of a property from a value container.booleangetValueIsRemovable(Property property, java.lang.Object valueContainer)Returns true if the property value is removable from the value container.booleangetValueIsSet(Property property, java.lang.Object valueContainer)Returns true if a value for the property is set in the value container.voidremoveValue(Property property, java.lang.Object valueContainer)Removes a property value from a value container.voidsetValue(Property property, java.lang.Object valueContainer, java.lang.Object value)Sets the value of a property in a value container.
-
-
-
Method Detail
-
getValue
java.lang.Object getValue(Property property, java.lang.Object valueContainer)
Gets the value of a property from a value container.- Parameters:
property- the propertyvalueContainer- the object containing the value- Returns:
- the property value, null if the container doesn't contain the value
-
setValue
void setValue(Property property, java.lang.Object valueContainer, java.lang.Object value)
Sets the value of a property in a value container.- Parameters:
property- the propertyvalueContainer- the object that will contain the valuevalue- the property value
-
removeValue
void removeValue(Property property, java.lang.Object valueContainer)
Removes a property value from a value container.- Parameters:
property- the propertyvalueContainer- the value container
-
getValueIsSet
boolean getValueIsSet(Property property, java.lang.Object valueContainer)
Returns true if a value for the property is set in the value container.- Parameters:
property- the propertyvalueContainer- the value container- Returns:
- true if a value for the property is set in the value container
-
getValueIsRemovable
boolean getValueIsRemovable(Property property, java.lang.Object valueContainer)
Returns true if the property value is removable from the value container.- Parameters:
property- the propertyvalueContainer- the value container- Returns:
- true if the property value is removable from the value container
-
-