com.hp.hpl.jena.graph
Class Node_ANY

java.lang.Object
  extended by com.hp.hpl.jena.graph.Node
      extended by com.hp.hpl.jena.graph.Node_Fluid
          extended by com.hp.hpl.jena.graph.Node_ANY

public class Node_ANY
extends Node_Fluid

A Node_ANY (there should be only one) is a meta-node that is used to stand for any other node in a query.

Author:
kers

Nested Class Summary
 
Nested classes/interfaces inherited from class com.hp.hpl.jena.graph.Node
Node.NotLiteral
 
Field Summary
 
Fields inherited from class com.hp.hpl.jena.graph.Node
ANY, NULL
 
Method Summary
 boolean equals(Object other)
          Node_ANY's are only equal to other Node_ANY's
 boolean matches(Node other)
          Answer true iff this node accepts the other one as a match.
 String toString()
          Answer a human-readable representation of this Node.
 String toString(PrefixMapping pm, boolean quoting)
          Answer a human readable representation of this Node, quoting literals if specified, and compressing URIs using the prefix mapping supplied.
 Object visitWith(NodeVisitor v)
          Visit a Node and dispatch on it to the appropriate method from the NodeVisitor v.
 
Methods inherited from class com.hp.hpl.jena.graph.Node_Fluid
isConcrete
 
Methods inherited from class com.hp.hpl.jena.graph.Node
cache, create, createAnon, createAnon, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createUncachedLiteral, createUncachedLiteral, createURI, createVariable, getBlankNodeId, getBlankNodeLabel, getIndexingValue, getLiteral, getLiteralDatatype, getLiteralDatatypeURI, getLiteralIsXML, getLiteralLanguage, getLiteralLexicalForm, getLiteralValue, getLocalName, getName, getNameSpace, getType, getURI, hashCode, hasURI, isBlank, isLiteral, isURI, isVariable, sameValueAs, toString, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

equals

public boolean equals(Object other)
Node_ANY's are only equal to other Node_ANY's

Specified by:
equals 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

matches

public boolean matches(Node other)
Description copied from class: Node
Answer true iff this node accepts the other one as a match. The default is an equality test; it is over-ridden in subclasses to provide the appropriate semantics for literals, ANY, and variables.

Overrides:
matches in class Node
Parameters:
other - a node to test for matching
Returns:
true iff this node accepts the other as a match

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).

Overrides:
toString in class Node

toString

public String toString(PrefixMapping pm,
                       boolean quoting)
Description copied from class: Node
Answer a human readable representation of this Node, quoting literals if specified, and compressing URIs using the prefix mapping supplied.

Overrides:
toString in class Node


Licenced under the Apache License, Version 2.0