public class ValueHandlerProperty extends AbstractProperty
PropertyValueHandler
.Constructor and Description |
---|
ValueHandlerProperty(PropertyGroup group,
java.lang.String name,
java.lang.Class type,
java.lang.String description,
PropertyValueHandler valueHandler)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getValue(java.lang.Object object)
Returns the value of this property in a value container.
|
void |
removeValue(java.lang.Object object)
Removes the value of this property from an valueContainer.
|
void |
setValue(java.lang.Object object,
java.lang.Object value)
Sets the value of this property in an object.
|
boolean |
valueIsRemovable(java.lang.Object object)
Returns true if the value of this property can be removed from the valueContainer.
|
boolean |
valueIsSet(java.lang.Object object)
Returns true if this property has a value in the valueContainer.
|
canBeAssiged, getDescription, getGroup, getName, getType, isMutable, toString
public ValueHandlerProperty(PropertyGroup group, java.lang.String name, java.lang.Class type, java.lang.String description, PropertyValueHandler valueHandler)
group
- the property groupname
- the property nametype
- the property typedescription
- the property descriptionvalueHandler
- handles values for this propertypublic void setValue(java.lang.Object object, java.lang.Object value)
Property
setValue
in interface Property
setValue
in class AbstractProperty
object
- the object to set the property value invalue
- the value of the propertypublic java.lang.Object getValue(java.lang.Object object)
Property
object
- the object containing the valuepublic boolean valueIsRemovable(java.lang.Object object)
Property
object
- the object from which to remove the valuepublic void removeValue(java.lang.Object object)
Property
object
- the object in which to remove the valuepublic boolean valueIsSet(java.lang.Object object)
Property
object
- the object that might contain the value