public abstract class AbstractProperty extends java.lang.Object implements Property
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractProperty(PropertyGroup group,
java.lang.String name,
java.lang.Class type,
java.lang.String description)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeAssiged(java.lang.Object value)
Returns true if the value can be assigned to this property.
|
java.lang.String |
getDescription()
Returns a description of this property.
|
PropertyGroup |
getGroup()
Returns the property group that this property belongs to.
|
java.lang.String |
getName()
Returns the property name.
|
java.lang.Class |
getType()
Returns the value type of this property.
|
boolean |
isMutable()
Returns true if this property is mutable.
|
void |
setValue(java.lang.Object object,
java.lang.Object value)
Sets the value of this property in an object.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetValue, removeValue, valueIsRemovable, valueIsSetprotected AbstractProperty(PropertyGroup group, java.lang.String name, java.lang.Class type, java.lang.String description)
group - the property groupname - the property nametype - the property typedescription - the property descriptionpublic PropertyGroup getGroup()
Propertypublic java.lang.String getName()
Propertypublic java.lang.Class getType()
Propertypublic java.lang.String getDescription()
PropertygetDescription in interface Propertypublic boolean isMutable()
Propertypublic void setValue(java.lang.Object object,
java.lang.Object value)
Propertypublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean canBeAssiged(java.lang.Object value)
PropertycanBeAssiged in interface Propertyvalue - the value to assign