org.eclipse.graphiti
Class PropertyBag
java.lang.Object
org.eclipse.graphiti.PropertyBag
- All Implemented Interfaces:
- IPropertyBag
public class PropertyBag
- extends java.lang.Object
- implements IPropertyBag
The class PropertyBag.
Field Summary |
private java.util.HashMap<java.lang.Object,java.lang.Object> |
propertyMap
|
Method Summary |
java.lang.Object |
getProperty(java.lang.Object key)
Returns the value to which the specified key is mapped, or null
if there is no mapping for the key. |
private java.util.HashMap<java.lang.Object,java.lang.Object> |
getPropertyMap()
|
java.lang.Object |
putProperty(java.lang.Object key,
java.lang.Object value)
Associates the specified value with the specified key. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
propertyMap
private java.util.HashMap<java.lang.Object,java.lang.Object> propertyMap
PropertyBag
public PropertyBag()
getProperty
public java.lang.Object getProperty(java.lang.Object key)
- Description copied from interface:
IPropertyBag
- Returns the value to which the specified key is mapped, or
null
if there is no mapping for the key.
- Specified by:
getProperty
in interface IPropertyBag
- See Also:
IPropertyBag.putProperty(Object, Object)
putProperty
public java.lang.Object putProperty(java.lang.Object key,
java.lang.Object value)
- Description copied from interface:
IPropertyBag
- Associates the specified value with the specified key. If a mapping for
the key already exists, the old value is replaced.
- Specified by:
putProperty
in interface IPropertyBag
- Parameters:
key
- key with which the specified value is to be associatedvalue
- value to be associated with the specified key
- Returns:
- the previous value associated with key, or null
if there was no mapping for key.
- See Also:
IPropertyBag.getProperty(Object)
getPropertyMap
private java.util.HashMap<java.lang.Object,java.lang.Object> getPropertyMap()
Copyright (c) SAP AG 2005, 2010.