public abstract class WrappedElement extends Object implements Element
| Modifier and Type | Field and Description |
|---|---|
protected Element |
baseElement |
| Modifier | Constructor and Description |
|---|---|
protected |
WrappedElement(Element baseElement) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
Element |
getBaseElement() |
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.
|
String |
toString() |
protected Element baseElement
protected WrappedElement(Element baseElement)
public void setProperty(String key, Object value)
ElementsetProperty in interface Elementkey - the string key of the propertyvalue - the object value o the propertypublic <T> T getProperty(String key)
ElementgetProperty in interface Elementkey - the key of the key/value propertypublic <T> T removeProperty(String key)
ElementremoveProperty in interface Elementkey - the key of the property to remove from the elementpublic Set<String> getPropertyKeys()
ElementgetPropertyKeys in interface Elementpublic Object getId()
Elementpublic Element getBaseElement()
public void remove()
ElementCopyright © 2010-2014. All Rights Reserved.