Class Node_Variable

All Implemented Interfaces:
Direct Known Subclasses:

public class Node_Variable extends Node_Fluid
"variable" nodes; these are outside the RDF2003 specification, but are used internally for "placeholder" nodes where blank nodes would be wrong, most specifically in Query.
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

    • getName

      public String getName()
      Description copied from class: Node
      get a variable nodes name, otherwise die horribly
      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
      v - the visitor to apply to the node
      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
      isVariable in class Node
    • toString

      public String toString()
      Description copied from class: Node
      Answer a human-readable representation of this Node. It will not compress URIs, nor quote literals (because at the moment too many places use toString() for something machine-oriented).
      toString in class Node
    • equals

      public boolean equals(Object other)
      Description copied from class: Node
      Nodes only equal other Nodes that have equal labels.
      Specified by:
      equals in class Node
    • variable

      public static Object variable(String name)