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, wait
getValue, removeValue, valueIsRemovable, valueIsSet
protected 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()
Property
public java.lang.String getName()
Property
public java.lang.Class getType()
Property
public java.lang.String getDescription()
Property
getDescription
in interface Property
public boolean isMutable()
Property
public void setValue(java.lang.Object object, java.lang.Object value)
Property
public java.lang.String toString()
toString
in class java.lang.Object
public boolean canBeAssiged(java.lang.Object value)
Property
canBeAssiged
in interface Property
value
- the value to assign