|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.infonode.properties.util.AbstractProperty
net.infonode.properties.util.ValueHandlerProperty
Base class for properties that use a PropertyValueHandler
.
Constructor Summary | |
ValueHandlerProperty(PropertyGroup group,
String name,
Class type,
String description,
PropertyValueHandler valueHandler)
Constructor. |
Method Summary | |
Object |
getValue(Object object)
Returns the value of this property in a value container. |
void |
removeValue(Object object)
Removes the value of this property from an valueContainer. |
void |
setValue(Object object,
Object value)
Sets the value of this property in an object. |
boolean |
valueIsRemovable(Object object)
Returns true if the value of this property can be removed from the valueContainer. |
boolean |
valueIsSet(Object object)
Returns true if this property has a value in the valueContainer. |
Methods inherited from class net.infonode.properties.util.AbstractProperty |
canBeAssiged, getDescription, getGroup, getName, getType, isMutable, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ValueHandlerProperty(PropertyGroup group, String name, Class type, String description, PropertyValueHandler valueHandler)
group
- the property groupname
- the property nametype
- the property typedescription
- the property descriptionvalueHandler
- handles values for this propertyMethod Detail |
public void setValue(Object object, Object value)
Property
setValue
in interface Property
setValue
in class AbstractProperty
public Object getValue(Object object)
Property
object
- the object containing the value
public boolean valueIsRemovable(Object object)
Property
object
- the object from which to remove the value
public void removeValue(Object object)
Property
object
- the object in which to remove the valuepublic boolean valueIsSet(Object object)
Property
object
- the object that might contain the value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |