| Modifier and Type | Field and Description |
|---|---|
protected Element |
baseElement |
| Constructor and Description |
|---|
ReadOnlyVertex(Vertex baseVertex) |
| Modifier and Type | Method and Description |
|---|---|
Edge |
addEdge(String label,
Vertex vertex)
Add a new outgoing edge from this vertex to the parameter vertex with provided edge label.
|
boolean |
equals(Object object) |
Iterable<Edge> |
getEdges(Direction direction,
String... labels)
Return the edges incident to the vertex according to the provided direction and edge labels.
|
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.
|
Iterable<Vertex> |
getVertices(Direction direction,
String... labels)
Return the vertices adjacent to the vertex according to the provided direction and edge labels.
|
int |
hashCode() |
VertexQuery |
query()
Generate a query object that can be used to fine tune which edges/vertices are retrieved that are incident/adjacent to this vertex.
|
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 ReadOnlyVertex(Vertex baseVertex)
public Iterable<Edge> getEdges(Direction direction, String... labels)
Vertexpublic Iterable<Vertex> getVertices(Direction direction, String... labels)
VertexgetVertices in interface Vertexdirection - the direction of the edges of the adjacent verticeslabels - the labels of the edges of the adjacent verticespublic Edge addEdge(String label, Vertex vertex)
Vertexpublic VertexQuery query()
Vertexpublic 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.