com.hp.hpl.jena.graph
Class Node_Variable
java.lang.Object
com.hp.hpl.jena.graph.Node
com.hp.hpl.jena.graph.Node_Fluid
com.hp.hpl.jena.graph.Node_Variable
- Direct Known Subclasses:
- Node_RuleVariable
- 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.
- Author:
- kers
Fields inherited from class com.hp.hpl.jena.graph.Node |
ANY, NULL |
Method Summary |
boolean |
equals(java.lang.Object other)
Nodes only equal other Nodes that have equal labels. |
java.lang.String |
getName()
get a variable nodes name, otherwise die horribly |
boolean |
isVariable()
is this a variable node - overridden in Node_Variable |
java.lang.String |
toString()
Answer a human-readable representation of this Node. |
static java.lang.Object |
variable(java.lang.String name)
|
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, getURI, hashCode, isBlank, isLiteral, isURI, matches, nullLiteralsGenerateWarnings, sameValueAs, toString, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Node_Variable
public Node_Variable(java.lang.Object name)
getName
public java.lang.String getName()
- Description copied from class:
Node
- get a variable nodes name, otherwise die horribly
- Overrides:
getName
in class Node
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
isVariable
public boolean isVariable()
- Description copied from class:
Node
- is this a variable node - overridden in Node_Variable
- Overrides:
isVariable
in class Node
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).
- Overrides:
toString
in class Node
equals
public boolean equals(java.lang.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 java.lang.Object variable(java.lang.String name)
Copyright © 2000-2003 Hewlett-Packard. All Rights Reserved.