Package org.apache.jena.graph
Class Node_ANY
- java.lang.Object
-
- org.apache.jena.graph.Node
-
- org.apache.jena.graph.Node_Fluid
-
- org.apache.jena.graph.Node_ANY
-
- All Implemented Interfaces:
java.io.Serializable
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.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.jena.graph.Node
Node.NotLiteral
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
Node_ANY's are only equal to other Node_ANY'sboolean
matches(Node other)
Answer true iff this node accepts the other one as a match.java.lang.String
toString()
Answer a human-readable representation of this Node.java.lang.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.java.lang.Object
visitWith(NodeVisitor v)
Visit a Node and dispatch on it to the appropriate method from the NodeVisitorv
.-
Methods inherited from class org.apache.jena.graph.Node_Fluid
isConcrete
-
Methods inherited from class org.apache.jena.graph.Node
getBlankNodeId, getBlankNodeLabel, getGraph, getIndexingValue, getLiteral, getLiteralDatatype, getLiteralDatatypeURI, getLiteralIsXML, getLiteralLanguage, getLiteralLexicalForm, getLiteralValue, getLocalName, getName, getNameSpace, getTriple, getURI, hashCode, hasURI, isBlank, isExt, isLiteral, isNodeGraph, isNodeTriple, isURI, isVariable, sameValueAs, toString, toString
-
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
Node_ANY's are only equal to other Node_ANY's
-
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 NodeVisitorv
.
-
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.
-
toString
public java.lang.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
public java.lang.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.
-
-