| Modifier and Type | Field and Description |
|---|---|
protected Element |
baseElement |
| Constructor and Description |
|---|
ReadOnlyEdge(Edge baseEdge) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
Object |
getId()
An identifier that is unique to its inheriting class.
|
String |
getLabel()
Return the label associated with the edge.
|
<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.
|
Vertex |
getVertex(Direction direction)
Return the tail/out or head/in vertex.
|
int |
hashCode() |
void |
remove()
Remove the element from the graph.
|
Object |
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() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetId, getProperty, getPropertyKeys, remove, removeProperty, setPropertyprotected final Element baseElement
public ReadOnlyEdge(Edge baseEdge)
public Vertex getVertex(Direction direction) throws IllegalArgumentException
EdgegetVertex in interface Edgedirection - whether to return the tail/out or head/in vertexIllegalArgumentException - is thrown if a direction of both is providedpublic String getLabel()
Edgepublic Set<String> getPropertyKeys()
ElementgetPropertyKeys in interface Elementpublic Object getId()
Elementpublic Object removeProperty(String key) throws UnsupportedOperationException
ElementremoveProperty in interface Elementkey - the key of the property to remove from the elementUnsupportedOperationExceptionpublic <T> T getProperty(String key)
ElementgetProperty in interface Elementkey - the key of the key/value propertypublic void setProperty(String key, Object value) throws UnsupportedOperationException
ElementsetProperty in interface Elementkey - the string key of the propertyvalue - the object value o the propertyUnsupportedOperationExceptionpublic void remove()
ElementCopyright © 2010-2014. All Rights Reserved.