public abstract class BaseNature extends Object
Modifier | Constructor and Description |
---|---|
protected |
BaseNature(PropertyHolder holder)
Constructor taking a
PropertyHolder . |
Modifier and Type | Method and Description |
---|---|
protected boolean |
getBooleanPropertyDefaultFalse(String propertyName)
Returns boolean value of the property or false if property value is null.
|
protected PropertyHolder |
getHolder()
Returns the
PropertyHolder . |
String |
getId()
Returns the fully qualified name of the Nature.
|
protected Object |
getProperty(String key)
Returns the property mapped to the key or null if not set before.
|
protected List |
getPropertyAsList(String property)
Returns value of the property as a List.
|
protected Map |
getPropertyAsMap(String property)
Returns value of the property as a List.
|
protected void |
setProperty(String key,
Object property)
Sets the property for a given.
|
protected BaseNature(PropertyHolder holder)
PropertyHolder
. Must be called from
subclasses. Does a health check on the given PropertyHolder, whether the
extending Nature exists.holder
- a PropertyHolder.protected final Object getProperty(String key)
key
- to look up.protected final void setProperty(String key, Object property)
property
- to set.key
- to insert.protected final boolean getBooleanPropertyDefaultFalse(String propertyName)
propertyName
- name of the property.protected final PropertyHolder getHolder()
PropertyHolder
.protected List getPropertyAsList(String property)
propertyName
- name of the property.protected Map getPropertyAsMap(String property)
propertyName
- name of the property.public String getId()
Copyright © 2013. All rights reserved.