com.tinkerpop.blueprints.impls.neo4j
Class Neo4jEdge

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

public class Neo4jEdge
extends Object
implements Edge

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

Field Summary
protected  Neo4jGraph graph
           
protected  org.neo4j.graphdb.PropertyContainer rawElement
           
 
Constructor Summary
protected Neo4jEdge(org.neo4j.graphdb.Relationship relationship, Neo4jGraph graph)
           
protected Neo4jEdge(org.neo4j.graphdb.Relationship relationship, Neo4jGraph graph, boolean isNew)
           
 
Method Summary
 boolean equals(Object object)
           
 Object getId()
           
 String getLabel()
           
 Object getProperty(String key)
           
 Set<String> getPropertyKeys()
           
 org.neo4j.graphdb.Relationship getRawEdge()
           
 org.neo4j.graphdb.PropertyContainer getRawElement()
           
 Vertex getVertex(Direction direction)
           
 int hashCode()
           
 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

Neo4jEdge

protected Neo4jEdge(org.neo4j.graphdb.Relationship relationship,
                    Neo4jGraph graph)

Neo4jEdge

protected Neo4jEdge(org.neo4j.graphdb.Relationship relationship,
                    Neo4jGraph graph,
                    boolean isNew)
Method Detail

getLabel

public String getLabel()
Specified by:
getLabel in interface Edge

getVertex

public Vertex getVertex(Direction direction)
Specified by:
getVertex in interface Edge

equals

public boolean equals(Object object)

toString

public String toString()
Overrides:
toString in class Object

getRawEdge

public org.neo4j.graphdb.Relationship getRawEdge()

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.