|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.infonode.properties.util.AbstractProperty
public abstract class AbstractProperty
An abstract base class for properties.
Field Summary | |
---|---|
private java.lang.String |
description
|
private PropertyGroup |
group
|
private java.lang.String |
name
|
private java.lang.Class |
type
|
Constructor Summary | |
---|---|
protected |
AbstractProperty(PropertyGroup group,
java.lang.String name,
java.lang.Class type,
java.lang.String description)
Constructor. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.infonode.properties.base.Property |
---|
getValue, removeValue, valueIsRemovable, valueIsSet |
Field Detail |
---|
private PropertyGroup group
private java.lang.String name
private java.lang.Class type
private java.lang.String description
Constructor Detail |
---|
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 descriptionMethod Detail |
---|
public PropertyGroup getGroup()
Property
getGroup
in interface Property
public java.lang.String getName()
Property
getName
in interface Property
public java.lang.Class getType()
Property
getType
in interface Property
public java.lang.String getDescription()
Property
getDescription
in interface Property
public boolean isMutable()
Property
isMutable
in interface Property
public void setValue(java.lang.Object object, java.lang.Object value)
Property
setValue
in interface Property
object
- the object to set the property value invalue
- the value of the propertypublic 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |