|
||||||||||
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 abstract class MapPropertyHolder
An abstract holder class for properties that uses a hash map.
Constructor Summary | |
---|---|
MapPropertyHolder()
|
Method Summary | ||
---|---|---|
void |
copyProperties(IPropertyHolder holder)
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(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 void copyProperties(IPropertyHolder holder)
copyProperties
in interface IPropertyHolder
holder
- another property holderpublic Map<IProperty<?>,Object> getAllProperties()
getAllProperties
in interface IPropertyHolder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |