com.tinkerpop.blueprints.impls.neo4j
Class Neo4jVertex

java.lang.Object
  extended by com.tinkerpop.blueprints.impls.neo4j.Neo4jVertex
All Implemented Interfaces:
Element, Vertex

public class Neo4jVertex
extends Object
implements Vertex

Author:
Marko A. Rodriguez (http://markorodriguez.com)

Field Summary
protected  Neo4jGraph graph
           
protected  org.neo4j.graphdb.PropertyContainer rawElement
           
 
Constructor Summary
protected Neo4jVertex(org.neo4j.graphdb.Node node, Neo4jGraph graph)
           
 
Method Summary
 boolean equals(Object object)
           
 Iterable<Edge> getEdges(Direction direction, String... labels)
           
 Object getId()
           
 Object getProperty(String key)
           
 Set<String> getPropertyKeys()
           
 org.neo4j.graphdb.PropertyContainer getRawElement()
           
 org.neo4j.graphdb.Node getRawVertex()
           
 Iterable<Vertex> getVertices(Direction direction, String... labels)
           
 int hashCode()
           
 Query query()
           
 Object removeProperty(String key)
           
 void setProperty(String key, Object value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.tinkerpop.blueprints.Element
getId, getProperty, getPropertyKeys, removeProperty, setProperty
 

Field Detail

graph

protected final Neo4jGraph graph

rawElement

protected org.neo4j.graphdb.PropertyContainer rawElement
Constructor Detail

Neo4jVertex

protected Neo4jVertex(org.neo4j.graphdb.Node node,
                      Neo4jGraph graph)
Method Detail

getEdges

public Iterable<Edge> getEdges(Direction direction,
                               String... labels)
Specified by:
getEdges in interface Vertex

getVertices

public Iterable<Vertex> getVertices(Direction direction,
                                    String... labels)
Specified by:
getVertices in interface Vertex

query

public Query query()
Specified by:
query in interface Vertex

equals

public boolean equals(Object object)

toString

public String toString()
Overrides:
toString in class Object

getRawVertex

public org.neo4j.graphdb.Node getRawVertex()

getProperty

public Object getProperty(String key)
Specified by:
getProperty in interface Element

setProperty

public void setProperty(String key,
                        Object value)
Specified by:
setProperty in interface Element

removeProperty

public Object removeProperty(String key)
Specified by:
removeProperty in interface Element

getPropertyKeys

public Set<String> getPropertyKeys()
Specified by:
getPropertyKeys in interface Element

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getRawElement

public org.neo4j.graphdb.PropertyContainer getRawElement()

getId

public Object getId()
Specified by:
getId in interface Element


Copyright © 2010-2012. All Rights Reserved.