Package org.apache.jena.graph
Class Node_Variable
java.lang.Object
org.apache.jena.graph.Node
org.apache.jena.graph.Node_Fluid
org.apache.jena.graph.Node_Variable
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Node_RuleVariable
"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:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.apache.jena.graph.Node
Node.NotLiteral
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionNode_Variable
(String name) Initialise this Node_Variable from a stringname
, which becomes wrapped in a VariableName. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Nodes only equal other Nodes that have equal labels.getName()
get a variable nodes name, otherwise die horriblyboolean
Answer true iff this node is a variable node - subclasses overridetoString()
Answer a human-readable representation of this Node.static Object
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, getNameSpace, getTriple, getURI, hashCode, hasURI, isBlank, isExt, isLiteral, isNodeGraph, isNodeTriple, isURI, matches, sameValueAs, toString, toString, toString
-
Constructor Details
-
Node_Variable
Initialise this Node_Variable from a stringname
, which becomes wrapped in a VariableName.
-
-
Method Details
-
getName
Description copied from class:Node
get a variable nodes name, otherwise die horribly -
visitWith
Description copied from class:Node
Visit a Node and dispatch on it to the appropriate method from the NodeVisitorv
. -
isVariable
public boolean isVariable()Description copied from class:Node
Answer true iff this node is a variable node - subclasses override- Overrides:
isVariable
in classNode
-
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). -
equals
Description copied from class:Node
Nodes only equal other Nodes that have equal labels. -
variable
-