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 TypeMethodDescriptionbooleanNodes only equal other Nodes that have equal labels.getName()get a variable nodes name, otherwise die horriblybooleanAnswer true iff this node is a variable node - subclasses overridetoString()Answer a human-readable representation of this Node.static ObjectVisit a Node and dispatch on it to the appropriate method from the NodeVisitorv.Methods inherited from class org.apache.jena.graph.Node_Fluid
isConcreteMethods 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:Nodeget a variable nodes name, otherwise die horribly -
visitWith
Description copied from class:NodeVisit a Node and dispatch on it to the appropriate method from the NodeVisitorv. -
isVariable
public boolean isVariable()Description copied from class:NodeAnswer true iff this node is a variable node - subclasses override- Overrides:
isVariablein classNode
-
toString
Description copied from class:NodeAnswer 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:NodeNodes only equal other Nodes that have equal labels. -
variable
-