com.hp.hpl.jena.graph
Class Node_ANY
java.lang.Object
com.hp.hpl.jena.graph.Node
com.hp.hpl.jena.graph.Node_Fluid
com.hp.hpl.jena.graph.Node_ANY
- public class Node_ANY
- extends Node_Fluid
- Author:
- kers
A Node_ANY (there should be only one) is a meta-node that is used to stand
for any other node in a query.
Fields inherited from class com.hp.hpl.jena.graph.Node |
ANY |
Method Summary |
boolean |
equals(java.lang.Object other)
Node_ANY's are only equal to other Node_ANY's |
boolean |
isConcrete()
Answer true iff this node is concrete, ie not variable, ie URI, blank, or literal. |
boolean |
matches(Node other)
Answer true iff this node accepts the other one as a match.
|
java.lang.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 |
cache, create, create, create, createAnon, createAnon, createLiteral, createLiteral, createLiteral, createURI, createVariable, getBlankNodeId, getLiteral, getName, getTriple, getURI, hashCode, isBlank, isLiteral, isURI, isVariable, nullLiteralsGenerateWarnings, sameValueAs, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Node_ANY
public Node_ANY()
equals
public boolean equals(java.lang.Object other)
- Node_ANY's are only equal to other Node_ANY's
- Specified by:
equals
in class Node
isConcrete
public boolean isConcrete()
- Description copied from class:
Node
- Answer true iff this node is concrete, ie not variable, ie URI, blank, or literal.
- Overrides:
isConcrete
in class Node_Fluid
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
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
Copyright © 2001-2003 Hewlett-Packard. All Rights Reserved.