public abstract class EventElement extends Object implements Element
| Modifier and Type | Field and Description |
|---|---|
protected Element |
baseElement |
protected EventGraph |
eventGraph |
| Modifier | Constructor and Description |
|---|---|
protected |
EventElement(Element baseElement,
EventGraph eventGraph) |
| 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() |
protected void |
onEdgePropertyChanged(Edge edge,
String key,
Object oldValue,
Object newValue) |
protected void |
onEdgePropertyRemoved(Edge edge,
String key,
Object removedValue) |
protected void |
onVertexPropertyChanged(Vertex vertex,
String key,
Object oldValue,
Object newValue) |
protected void |
onVertexPropertyRemoved(Vertex vertex,
String key,
Object removedValue) |
void |
remove()
Remove the element from the graph.
|
<T> T |
removeProperty(String key)
Raises a vertexPropertyRemoved or edgePropertyRemoved event.
|
void |
setProperty(String key,
Object value)
Raises a vertexPropertyRemoved or edgePropertyChanged event.
|
String |
toString() |
protected final EventGraph eventGraph
protected final Element baseElement
protected EventElement(Element baseElement, EventGraph eventGraph)
protected void onVertexPropertyChanged(Vertex vertex, String key, Object oldValue, Object newValue)
protected void onEdgePropertyChanged(Edge edge, String key, Object oldValue, Object newValue)
protected void onVertexPropertyRemoved(Vertex vertex, String key, Object removedValue)
protected void onEdgePropertyRemoved(Edge edge, String key, Object removedValue)
public Set<String> getPropertyKeys()
ElementgetPropertyKeys in interface Elementpublic Object getId()
Elementpublic <T> T removeProperty(String key)
removeProperty in interface Elementkey - the key of the property to remove from the elementpublic <T> T getProperty(String key)
ElementgetProperty in interface Elementkey - the key of the key/value propertypublic void setProperty(String key, Object value)
setProperty in interface Elementkey - the string key of the propertyvalue - the object value o the propertypublic Element getBaseElement()
Copyright © 2010-2014. All Rights Reserved.