Package net.infonode.properties.util
Interface PropertyValueHandler
- All Known Implementing Classes:
PropertyMapValueHandler
public interface PropertyValueHandler
Sets and gets property values to and from value objects.
-
Method Summary
Modifier and TypeMethodDescriptionGets the value of a property from a value container.boolean
getValueIsRemovable
(Property property, Object valueContainer) Returns true if the property value is removable from the value container.boolean
getValueIsSet
(Property property, Object valueContainer) Returns true if a value for the property is set in the value container.void
removeValue
(Property property, Object valueContainer) Removes a property value from a value container.void
Sets the value of a property in a value container.
-
Method Details
-
getValue
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
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
Removes a property value from a value container.- Parameters:
property
- the propertyvalueContainer
- the value container
-
getValueIsSet
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
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
-