Package hydra.neo4j.model
Class Element
- java.lang.Object
-
- hydra.neo4j.model.Element
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Element>
- Direct Known Subclasses:
Element.Node,Element.Relationship
public abstract class Element extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<Element>
Either a node or a relationship; the common supertype of the two kinds of graph element. A bare union with no fields of its own: the id and properties live on each variant. Named Element (not Entity, the driver's interface name) to avoid the Neo4j docs' use of "entity" for a node's real-world referent, and to match hydra.pg.model and the root of elementId.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classElement.NodeThe element is a nodestatic interfaceElement.PartialVisitor<R>Partial visitor overElementwith a defaultElement.PartialVisitor.otherwise(hydra.neo4j.model.Element)branch.static classElement.RelationshipThe element is a relationshipstatic interfaceElement.Visitor<R>Visitor overElement.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract <R> Raccept(Element.Visitor<R> visitor)Dispatch tovisitor.abstract inthydraOrdinal()
-
-
-
Method Detail
-
accept
public abstract <R> R accept(Element.Visitor<R> visitor)
Dispatch tovisitor.
-
hydraOrdinal
public abstract int hydraOrdinal()
-
-