| Modifier and Type | Field and Description |
|---|---|
protected Element |
baseElement |
protected IdGraph |
idGraph |
protected boolean |
propertyBased |
| Modifier | Constructor and Description |
|---|---|
protected |
IdElement(Element baseElement,
IdGraph idGraph,
boolean propertyBased) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
Object |
getId()
An identifier that is unique to its inheriting class.
|
<T> T |
getProperty(String key)
Return the object value associated with the provided string key.
|
Set<String> |
getPropertyKeys()
Return all the keys associated with the element.
|
int |
hashCode() |
void |
remove()
Remove the element from the graph.
|
<T> T |
removeProperty(String key)
Un-assigns a key/value property from the element.
|
void |
setProperty(String key,
Object value)
Assign a key/value property to the element.
|
protected final Element baseElement
protected final IdGraph idGraph
protected final boolean propertyBased
public <T> T getProperty(String key)
ElementgetProperty in interface Elementkey - the key of the key/value propertypublic Set<String> getPropertyKeys()
ElementgetPropertyKeys in interface Elementpublic void setProperty(String key, Object value)
ElementsetProperty in interface Elementkey - the string key of the propertyvalue - the object value o the propertypublic <T> T removeProperty(String key)
ElementremoveProperty in interface Elementkey - the key of the property to remove from the elementpublic Object getId()
ElementCopyright © 2010-2014. All Rights Reserved.