public class CreationProperties extends Object implements IMapper<Object,Object>
IMapper
that is typed for Object
keys and values.
This class is used by the GraphMLParser
to store properties of an item before it has been created. An instance
of this class can be found in the ILookup.lookup(java.lang.Class)
of the IParseContext
during the parsing of an item. Custom parsers may populate the dictionary with various properties that can then be used
by the IGraphElementFactory
during the creation of the item.
IGraphElementFactory
,
GraphMLParser
Modifier and Type | Field and Description |
---|---|
static String |
BENDS
Creation property key that tags bend information.
|
static String |
IS_GROUP_NODE
Creation property key that tags group node information.
|
static String |
LABELS
Creation property key that tags label information.
|
static String |
LAYOUT
Creation property key that tags node layout information.
|
static String |
PORT_LOCATION_MODEL_PARAMETER
Creation property key that tags
port location
information. |
static String |
STYLE
Creation property key that tags style information.
|
static String |
TAG
Creation property key that tags
tag object information. |
Constructor and Description |
---|
CreationProperties() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears all entries from this property store.
|
Iterable<Map.Entry<Object,Object>> |
getEntries()
Gets all the entries stored by this instance.
|
Object |
getValue(Object key)
Gets the value associated with the specified key.
|
void |
removeValue(Object key)
Removes the associated entry for the given key.
|
void |
setValue(Object key,
Object value)
Sets the value associated with the specified key.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromConstant, fromFunction
public static final String BENDS
public static final String IS_GROUP_NODE
Stores values of type Boolean
.
public static final String LABELS
Stores values of type Iterable
with ILabel
template instances.
IGraphElementFactory
,
Constant Field Valuespublic static final String LAYOUT
Stores values of type RectD
.
public static final String PORT_LOCATION_MODEL_PARAMETER
port location
information.
Stores values of type IPortLocationModelParameter
.
public static final String STYLE
Stores values of type INodeStyle
,
IEdgeStyle
, and IPortStyle
respectively.
IGraphElementFactory
,
Constant Field Valuespublic static final String TAG
IGraphElementFactory
,
Constant Field Valuespublic final void clear()
public final Iterable<Map.Entry<Object,Object>> getEntries()
public final Object getValue(Object key)
getValue
in interface IMapper<Object,Object>
key
- The key.setValue(Object, Object)
public final void removeValue(Object key)
key
- The entry key to remove.