public abstract class AbstractItem extends Object implements Item
EDGE, EDGE_LABEL, NODE, NODE_LABEL| Constructor and Description |
|---|
AbstractItem(Object source,
String type) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getData() |
<D> D |
getData(String key)
Returns data associated to this item.
|
String[] |
getKeys()
Returns all the keys.
|
Object |
getSource()
Returns the source of the item.
|
String |
getType()
Returns the type of the item.
|
void |
setData(String key,
Object value)
Sets data to this item.
|
public String getType()
ItemItem.NODE,
Item.EDGE, Item.NODE_LABEL and Item.EDGE_LABEL.public Object getSource()
ItemNode or Edge.public <D> D getData(String key)
Itempublic void setData(String key, Object value)
ItemCopyright © 2007–2017. All rights reserved.