public interface CompoundAttribute
The purpose of this class is to allow to specify how some values are stored in the graph and can be exported to files (or others) when the graph is output. Most graph writers can only handle basic types for attributes (when they are able to store attributes in files). This interface may allow to store more complex attributes, made of several elements. The DGS writer is able to understand these kinds of attributes and store them in files.
The compound attribute is made of fields. Each fields has a name and a value. For these fields to be exported successfully, they must be transformable to a hash map where each element is indexed by its name (a String).
For the values to be exported successfully, they must either be basic types, or be themselves instances of CompountAttribute.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getKey()
The usual key used to store this attribute inside a graph element.
|
java.util.HashMap<?,?> |
toHashMap()
Transforms this object to a hash map where each field is stored as a pair
(key,value) where the key is the field name.
|
java.util.HashMap<?,?> toHashMap()
java.lang.String getKey()