|
||||||||||
| 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
public class ValueHandlerProperty
Base class for properties that use a PropertyValueHandler.
| Field Summary | |
|---|---|
private PropertyValueHandler |
valueHandler
|
| Constructor Summary | |
|---|---|
ValueHandlerProperty(PropertyGroup group,
java.lang.String name,
java.lang.Class type,
java.lang.String description,
PropertyValueHandler valueHandler)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class net.infonode.properties.util.AbstractProperty |
|---|
canBeAssiged, getDescription, getGroup, getName, getType, isMutable, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private PropertyValueHandler valueHandler
| Constructor Detail |
|---|
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 property| Method Detail |
|---|
public void setValue(java.lang.Object object,
java.lang.Object value)
Property
setValue in interface PropertysetValue in class AbstractPropertyobject - 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 value
public boolean valueIsRemovable(java.lang.Object object)
Property
object - the object from which to remove the value
public 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||