|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hp.hpl.jena.graph.Node
com.hp.hpl.jena.graph.Node_Concrete
com.hp.hpl.jena.graph.Node_Literal
Field Summary |
Fields inherited from class com.hp.hpl.jena.graph.Node |
ANY |
Constructor Summary | |
Node_Literal(java.lang.Object label)
|
Method Summary | |
boolean |
equals(java.lang.Object other)
Nodes only equal other Nodes that have equal labels. |
com.hp.hpl.jena.graph.impl.LiteralLabel |
getLiteral()
get the literal value of a literal node, otherwise die horribly |
boolean |
isLiteral()
is this a literal node - overridden in Node_Literal |
boolean |
matches(Node x)
Answer true iff this node accepts the other one as a match. |
boolean |
sameValueAs(java.lang.Object o)
Test that two nodes are semantically equivalent. |
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_Concrete |
isConcrete |
Methods inherited from class com.hp.hpl.jena.graph.Node |
cache, create, create, create, createAnon, createAnon, createLiteral, createLiteral, createLiteral, createURI, createVariable, getBlankNodeId, getName, getTriple, getURI, hashCode, isBlank, isURI, isVariable, nullLiteralsGenerateWarnings, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Node_Literal(java.lang.Object label)
Method Detail |
public com.hp.hpl.jena.graph.impl.LiteralLabel getLiteral()
Node
getLiteral
in class Node
public boolean isLiteral()
Node
isLiteral
in class Node
public java.lang.Object visitWith(NodeVisitor v)
Node
v
.
visitWith
in class Node
v
- the visitor to apply to the node
public boolean equals(java.lang.Object other)
Node
equals
in class Node
public boolean sameValueAs(java.lang.Object o)
Default implementation is to use equals, subclasses should override this.
sameValueAs
in class Node
public boolean matches(Node x)
Node
matches
in class Node
x
- a node to test for matching
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |