Package org.eclipse.graphiti
Class PropertyBag
java.lang.Object
org.eclipse.graphiti.PropertyBag
- All Implemented Interfaces:
IPropertyBag
- Direct Known Subclasses:
DefaultContext
The class PropertyBag.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetProperty
(Object key) Returns the value to which the specified key is mapped, ornull
if there is no mapping for the key.Returns aList
of all available property keys.putProperty
(Object key, Object value) Associates the specified value with the specified key.
-
Constructor Details
-
PropertyBag
public PropertyBag()
-
-
Method Details
-
getProperty
Description copied from interface:IPropertyBag
Returns the value to which the specified key is mapped, ornull
if there is no mapping for the key.- Specified by:
getProperty
in interfaceIPropertyBag
- See Also:
-
putProperty
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 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:
-
getPropertyKeys
Description copied from interface:IPropertyBag
Returns aList
of all available property keys. The list may be empty.- Specified by:
getPropertyKeys
in interfaceIPropertyBag
- Returns:
- The list of all property keys.
- Since:
- 0.10
-