net.infonode.properties.util

Interface PropertyValueHandler

public interface PropertyValueHandler

Sets and gets property values to and from value objects.

Version: $Revision: 1.4 $

Author: $Author: jesper $

Method Summary
ObjectgetValue(Property property, Object valueContainer)
Gets the value of a property from a value container.
booleangetValueIsRemovable(Property property, Object valueContainer)
Returns true if the property value is removable from the value container.
booleangetValueIsSet(Property property, Object valueContainer)
Returns true if a value for the property is set in the value container.
voidremoveValue(Property property, Object valueContainer)
Removes a property value from a value container.
voidsetValue(Property property, Object valueContainer, Object value)
Sets the value of a property in a value container.

Method Detail

getValue

public Object getValue(Property property, Object valueContainer)
Gets the value of a property from a value container.

Parameters: property the property valueContainer the object containing the value

Returns: the property value, null if the container doesn't contain the value

getValueIsRemovable

public boolean getValueIsRemovable(Property property, Object valueContainer)
Returns true if the property value is removable from the value container.

Parameters: property the property valueContainer the value container

Returns: true if the property value is removable from the value container

getValueIsSet

public boolean getValueIsSet(Property property, Object valueContainer)
Returns true if a value for the property is set in the value container.

Parameters: property the property valueContainer the value container

Returns: true if a value for the property is set in the value container

removeValue

public void removeValue(Property property, Object valueContainer)
Removes a property value from a value container.

Parameters: property the property valueContainer the value container

setValue

public void setValue(Property property, Object valueContainer, Object value)
Sets the value of a property in a value container.

Parameters: property the property valueContainer the object that will contain the value value the property value