Package org.eclipse.graphiti
Class PropertyBag
- java.lang.Object
-
- org.eclipse.graphiti.PropertyBag
-
- All Implemented Interfaces:
IPropertyBag
- Direct Known Subclasses:
DefaultContext
public class PropertyBag extends java.lang.Object implements IPropertyBag
The class PropertyBag.
-
-
Constructor Summary
Constructors Constructor Description PropertyBag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetProperty(java.lang.Object key)Returns the value to which the specified key is mapped, ornullif there is no mapping for the key.java.util.List<java.lang.Object>getPropertyKeys()Returns aListof all available property keys.java.lang.ObjectputProperty(java.lang.Object key, java.lang.Object value)Associates the specified value with the specified key.
-
-
-
Method Detail
-
getProperty
public java.lang.Object getProperty(java.lang.Object key)
Description copied from interface:IPropertyBagReturns the value to which the specified key is mapped, ornullif there is no mapping for the key.- Specified by:
getPropertyin interfaceIPropertyBag- See Also:
IPropertyBag.putProperty(Object, Object)
-
putProperty
public java.lang.Object putProperty(java.lang.Object key, java.lang.Object value)Description copied from interface:IPropertyBagAssociates the specified value with the specified key. If a mapping for the key already exists, the old value is replaced.- Specified by:
putPropertyin interfaceIPropertyBag- 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)
-
getPropertyKeys
public java.util.List<java.lang.Object> getPropertyKeys()
Description copied from interface:IPropertyBagReturns aListof all available property keys. The list may be empty.- Specified by:
getPropertyKeysin interfaceIPropertyBag- Returns:
- The list of all property keys.
- Since:
- 0.10
-
-