|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.core.properties.MapPropertyHolder
public class MapPropertyHolder
An abstract holder class for properties that uses a hash map.
Constructor Summary | |
---|---|
MapPropertyHolder()
|
Method Summary | ||
---|---|---|
void |
checkProperties(IProperty<?>... newProperties)
Check for upper and lower bounds. |
|
void |
copyProperties(IPropertyHolder other)
Copy all properties from another property holder to this one. |
|
Map<IProperty<?>,Object> |
getAllProperties()
Returns a map of all assigned properties with associated values. |
|
|
getProperty(Class<T> clazz)
Retrieves a property value for a given class. |
|
|
getProperty(IProperty<T> property)
Retrieves a property value. |
|
void |
setProperty(IProperty<?> property,
Object value)
Sets a property value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapPropertyHolder()
Method Detail |
---|
public void setProperty(IProperty<?> property, Object value)
setProperty
in interface IPropertyHolder
property
- the property to setvalue
- the new valuepublic <T> T getProperty(IProperty<T> property)
getProperty
in interface IPropertyHolder
T
- type of propertyproperty
- the property to get
public <T> T getProperty(Class<T> clazz)
getProperty(IProperty)
, so use it with caution.
T
- type of propertyclazz
- a class
null
if there is nonepublic void copyProperties(IPropertyHolder other)
copyProperties
in interface IPropertyHolder
other
- another property holderpublic Map<IProperty<?>,Object> getAllProperties()
getAllProperties
in interface IPropertyHolder
public void checkProperties(IProperty<?>... newProperties)
newProperties
- the properties that shall be checked
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |