|
||||||||||
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_Concrete com.hp.hpl.jena.graph.Node_Literal
public class Node_Literal
An RDF node holding a literal value. Literals may have datatypes.
Nested Class Summary |
---|
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 |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
Nodes only equal other Nodes that have equal labels. |
java.lang.Object |
getIndexingValue()
Literal nodes defer their indexing value to the component literal. |
com.hp.hpl.jena.graph.impl.LiteralLabel |
getLiteral()
Answer the literal value of a literal node, or throw an UnsupportedOperationException if it's not a literal node |
RDFDatatype |
getLiteralDatatype()
Answer the RDF datatype object of this node's literal value, if it is a literal; otherwise die horribly. |
java.lang.String |
getLiteralDatatypeURI()
Answer the data-type URI of this node's literal value, if it is a literal; otherwise die horribly. |
boolean |
getLiteralIsXML()
|
java.lang.String |
getLiteralLanguage()
Answer the language of this node's literal value, if it is a literal; otherwise die horribly. |
java.lang.String |
getLiteralLexicalForm()
Answer the lexical form of this node's literal value, if it is a literal; otherwise die horribly. |
java.lang.Object |
getLiteralValue()
Answer the value of this node's literal value, if it is a literal; otherwise die horribly. |
boolean |
isLiteral()
Answer true iff this node is a literal node [subclasses override] |
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.String |
toString(PrefixMapping pm,
boolean quoting)
Answer a human readable representation of this Node, quoting literals if specified, and compressing URIs using the prefix mapping supplied. |
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, createAnon, createAnon, createLiteral, createLiteral, createLiteral, createLiteral, createUncachedLiteral, createURI, createVariable, getBlankNodeId, getBlankNodeLabel, getLocalName, getName, getNameSpace, getType, getURI, hashCode, hasURI, isBlank, isURI, isVariable, toString, toString, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public com.hp.hpl.jena.graph.impl.LiteralLabel getLiteral()
Node
getLiteral
in class Node
public final java.lang.Object getLiteralValue()
Node
getLiteralValue
in class Node
public final java.lang.String getLiteralLexicalForm()
Node
getLiteralLexicalForm
in class Node
public final java.lang.String getLiteralLanguage()
Node
getLiteralLanguage
in class Node
public final java.lang.String getLiteralDatatypeURI()
Node
getLiteralDatatypeURI
in class Node
public final RDFDatatype getLiteralDatatype()
Node
getLiteralDatatype
in class Node
public final boolean getLiteralIsXML()
getLiteralIsXML
in class Node
public java.lang.String toString(PrefixMapping pm, boolean quoting)
Node
toString
in class Node
public boolean isLiteral()
Node
isLiteral
in class Node
public java.lang.Object getIndexingValue()
getIndexingValue
in class Node
Node.getIndexingValue()
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 |