public abstract class AbstractProperty extends java.lang.Object implements Property
Constructor and Description |
---|
AbstractProperty(Configuration configuration,
java.lang.String name,
java.lang.Class<?> c,
boolean mutable) |
Modifier and Type | Method and Description |
---|---|
protected Configuration |
getConfiguration() |
protected java.lang.String |
getDefaultDocumentation(java.lang.reflect.Method[] methods) |
java.lang.String |
getDocumentation() |
java.lang.String |
getName() |
java.lang.Class<?> |
getType() |
boolean |
isMutable() |
void |
setDocumentation(java.lang.String text) |
void |
setName(java.lang.String name) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFixedCardinality
public AbstractProperty(Configuration configuration, java.lang.String name, java.lang.Class<?> c, boolean mutable)
configuration
- Configuration to which the Property belongsname
- Name of the Propertyc
- Type of the Propertymutable
- Whether the Property value(s) can be modifiedpublic java.lang.String getName()
getName
in interface Property
Property.getName()
public void setName(java.lang.String name)
setName
in interface Property
name
- New Property nameProperty.setName(java.lang.String)
public java.lang.Class<?> getType()
getType
in interface Property
Property.getType()
public boolean isMutable()
isMutable
in interface Property
Property.isMutable()
protected Configuration getConfiguration()
public java.lang.String getDocumentation()
getDocumentation
in interface Property
Property.getDocumentation()
public void setDocumentation(java.lang.String text)
text
- New documentation text (can be plain text or HTML)protected java.lang.String getDefaultDocumentation(java.lang.reflect.Method[] methods)
methods
- The methods that underlie this property