|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hp.hpl.jena.graph.Node com.hp.hpl.jena.graph.Node_Fluid com.hp.hpl.jena.graph.Node_Variable
public class Node_Variable
"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.
Nested Class Summary | |
---|---|
static class |
Node_Variable.VariableName
|
Nested classes/interfaces inherited from class com.hp.hpl.jena.graph.Node |
---|
Node.NotLiteral |
Field Summary |
---|
Fields inherited from class com.hp.hpl.jena.graph.Node |
---|
ANY, NULL |
Constructor Summary | |
---|---|
Node_Variable(String name)
Initialise this Node_Variable from a string name ,
which becomes wrapped in a VariableName. |
Method Summary | |
---|---|
boolean |
equals(Object other)
Nodes only equal other Nodes that have equal labels. |
String |
getName()
get a variable nodes name, otherwise die horribly |
boolean |
isVariable()
Answer true iff this node is a variable node - subclasses override |
String |
toString()
Answer a human-readable representation of this Node. |
static Object |
variable(String name)
|
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_Fluid |
---|
isConcrete |
Methods inherited from class com.hp.hpl.jena.graph.Node |
---|
cache, create, createAnon, createAnon, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createUncachedLiteral, createUncachedLiteral, createURI, createVariable, getBlankNodeId, getBlankNodeLabel, getIndexingValue, getLiteral, getLiteralDatatype, getLiteralDatatypeURI, getLiteralIsXML, getLiteralLanguage, getLiteralLexicalForm, getLiteralValue, getLocalName, getNameSpace, getType, getURI, hashCode, hasURI, isBlank, isLiteral, isURI, matches, sameValueAs, toString, toString, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Node_Variable(String name)
name
,
which becomes wrapped in a VariableName.
Method Detail |
---|
public String getName()
Node
getName
in class Node
public Object visitWith(NodeVisitor v)
Node
v
.
visitWith
in class Node
v
- the visitor to apply to the node
public boolean isVariable()
Node
isVariable
in class Node
public String toString()
Node
toString
in class Node
public boolean equals(Object other)
Node
equals
in class Node
public static Object variable(String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |