|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A property is belongs to a PropertyGroup
and contains name, description, type etc.
A property can have multiple values which can be stored in any type of object.
Method Summary | |
boolean |
canBeAssiged(Object value)
Returns true if the value can be assigned to this property. |
String |
getDescription()
Returns a description of this property. |
PropertyGroup |
getGroup()
Returns the property group that this property belongs to. |
String |
getName()
Returns the property name. |
Class |
getType()
Returns the value type of this property. |
Object |
getValue(Object valueContainer)
Returns the value of this property in a value container. |
boolean |
isMutable()
Returns true if this property is mutable. |
void |
removeValue(Object valueContainer)
Removes the value of this property from an valueContainer. |
void |
setValue(Object valueContainer,
Object value)
Sets the value of this property in an object. |
boolean |
valueIsRemovable(Object valueContainer)
Returns true if the value of this property can be removed from the valueContainer. |
boolean |
valueIsSet(Object valueContainer)
Returns true if this property has a value in the valueContainer. |
Method Detail |
public String getName()
public String getDescription()
public Class getType()
public PropertyGroup getGroup()
public Object getValue(Object valueContainer) throws InvalidPropertyException
valueContainer
- the object containing the value
InvalidPropertyException
- if the property can not be read from the value containerpublic void setValue(Object valueContainer, Object value) throws ImmutablePropertyException, InvalidPropertyException, InvalidPropertyValueException
valueContainer
- the object to set the property value invalue
- the value of the property
ImmutablePropertyException
- if this property is immutable
InvalidPropertyException
- if this property can't be set in the object
InvalidPropertyValueException
- if the property value is invalidpublic boolean canBeAssiged(Object value)
value
- the value to assign
public boolean isMutable()
public boolean valueIsRemovable(Object valueContainer)
valueContainer
- the object from which to remove the value
public boolean valueIsSet(Object valueContainer)
valueContainer
- the object that might contain the value
public void removeValue(Object valueContainer) throws ImmutablePropertyException, CantRemoveValueException
valueContainer
- the object in which to remove the value
ImmutablePropertyException
- if the property is immutable
CantRemoveValueException
- if the property value can't be removed from the valueContainer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |