Class 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
    • Field Detail

      • TYPE_

        public static final Name TYPE_
        Name of the hydra.neo4j.model.Element type.
      • NODE

        public static final Name NODE
        Name of the hydra.neo4j.model.Element.node field.
      • RELATIONSHIP

        public static final Name RELATIONSHIP
        Name of the hydra.neo4j.model.Element.relationship field.
    • Method Detail

      • accept

        public abstract <R> R accept​(Element.Visitor<R> visitor)
        Dispatch to visitor.
      • hydraOrdinal

        public abstract int hydraOrdinal()