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:
java.io.Serializable
- 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.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Node_Variable.VariableName
-
Nested classes/interfaces inherited from class org.apache.jena.graph.Node
Node.NotLiteral
-
-
Constructor Summary
Constructors Constructor Description Node_Variable(java.lang.String name)
Initialise this Node_Variable from a stringname
, which becomes wrapped in a VariableName.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 horriblyboolean
isVariable()
Answer true iff this node is a variable node - subclasses overridejava.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 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, isLiteral, isNodeGraph, isNodeTriple, isURI, matches, sameValueAs, toString, toString, toString
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from class:Node
get a variable nodes name, otherwise die horribly
-
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
.
-
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
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).
-
equals
public boolean equals(java.lang.Object other)
Description copied from class:Node
Nodes only equal other Nodes that have equal labels.
-
variable
public static java.lang.Object variable(java.lang.String name)
-
-