Class Node_Ext<X>

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    Node_Marker

    public abstract class Node_Ext<X>
    extends Node
    Extension to the RDF Data model. This class and any subclasses exist for experimentation and custom extensions. There is no support for them within Apache Jena.

    Extension nodes exist so that the machinery of datastructures (graphs, triples) can be used. There is no guarantee that processing Nodes (e.g. writing) will handle extensions.

    See Also:
    Serialized Form
    • Method Detail

      • visitWith

        public java.lang.Object visitWith​(NodeVisitor v)
        Description copied from class: Node
        Visit a Node and dispatch on it to the appropriate method from the NodeVisitor v.
        Specified by:
        visitWith in class Node
        Parameters:
        v - the visitor to apply to the node
        Returns:
        the value returned by the applied method
      • isConcrete

        public boolean isConcrete()
        Description copied from class: Node
        Answer true iff this node is concrete, ie not variable, ie URI, blank, or literal.
        Specified by:
        isConcrete in class Node
      • get

        public X get()
      • isExt

        public boolean isExt()
        Description copied from class: Node
        Extension node. Typically used in data structures based on triples.
        Overrides:
        isExt in class Node
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Node
      • equals

        public boolean equals​(java.lang.Object obj)
        Description copied from class: Node
        Nodes only equal other Nodes that have equal labels.
        Specified by:
        equals in class Node