Package net.infonode.properties.util
Class AbstractProperty
java.lang.Object
net.infonode.properties.util.AbstractProperty
- All Implemented Interfaces:
Property
- Direct Known Subclasses:
ValueHandlerProperty
An abstract base class for properties.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractProperty
(PropertyGroup group, String name, Class type, String description) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canBeAssiged
(Object value) Returns true if the value can be assigned to this property.Returns a description of this property.getGroup()
Returns the property group that this property belongs to.getName()
Returns the property name.getType()
Returns the value type of this property.boolean
Returns true if this property is mutable.void
Sets the value of this property in an object.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
-
Constructor Details
-
AbstractProperty
Constructor.- Parameters:
group
- the property groupname
- the property nametype
- the property typedescription
- the property description
-
-
Method Details
-
getGroup
Description copied from interface:Property
Returns the property group that this property belongs to. -
getName
Description copied from interface:Property
Returns the property name. -
getType
Description copied from interface:Property
Returns the value type of this property. The property can only be set to values that are of this class or a sub class of this class. -
getDescription
Description copied from interface:Property
Returns a description of this property.- Specified by:
getDescription
in interfaceProperty
- Returns:
- a description of this property
-
isMutable
public boolean isMutable()Description copied from interface:Property
Returns true if this property is mutable. -
setValue
Description copied from interface:Property
Sets the value of this property in an object. -
toString
-
canBeAssiged
Description copied from interface:Property
Returns true if the value can be assigned to this property.- Specified by:
canBeAssiged
in interfaceProperty
- Parameters:
value
- the value to assign- Returns:
- true if the value can be assigned to this property
-