Class Node_Variable

java.lang.Object
org.apache.jena.graph.Node
org.apache.jena.graph.Node_Variable
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Node_RuleVariable

public class Node_Variable extends Node
"variable" nodes; these are outside the RDF specification
See Also:
  • Constructor Details

    • Node_Variable

      public Node_Variable(String name)
      Initialise this Node_Variable from a string name, which becomes wrapped in a VariableName.
  • Method Details

    • isConcrete

      public boolean isConcrete()
      Description copied from class: Node
      Answer true iff this node is concrete, meaning a node that is data in an RDF Graph.
      Specified by:
      isConcrete in class Node
    • getName

      public String getName()
      Description copied from class: Node
      get a variable nodes name, otherwise die horribly
      Overrides:
      getName in class Node
    • visitWith

      public 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
    • isVariable

      public boolean isVariable()
      Description copied from class: Node
      Answer true iff this node is a variable node - subclasses override
      Overrides:
      isVariable in class Node
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class Node
    • equals

      public boolean equals(Object obj)
      Description copied from class: Node
      Java rules for equals. See also {#sameTermAs} and {#sameValueAs} Nodes only equal other Nodes that have equal labels.
      Specified by:
      equals in class Node
    • toString

      public String toString(PrefixMapping pmap)
      Description copied from class: Node
      Answer a human-readable representation of the Node. For URIs, abbreviate URI. For literals, quoting literals and abbreviating datatype URI.
      Specified by:
      toString in class Node
    • toString

      public String toString()
      Description copied from class: Node
      Answer a human-readable representation of this Node.
      Specified by:
      toString in class Node