public class Node_Literal extends Node_Concrete
Node.NotLiteral| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Nodes only equal other Nodes that have equal labels.
|
Object |
getIndexingValue()
Literal nodes defer their indexing value to the component literal.
|
org.apache.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.
|
String |
getLiteralDatatypeURI()
Answer the data-type URI of this node's literal value, if it is a
literal; otherwise die horribly.
|
boolean |
getLiteralIsXML() |
String |
getLiteralLanguage()
Answer the language of this node's literal value, if it is a literal;
otherwise die horribly.
|
String |
getLiteralLexicalForm()
Answer the lexical form of this node's literal value, if it is a literal;
otherwise die horribly.
|
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(Object o)
Test that two nodes are semantically equivalent.
|
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.
|
Object |
visitWith(NodeVisitor v)
Visit a Node and dispatch on it to the appropriate method from the
NodeVisitor
v. |
isConcretecreate, getBlankNodeId, getBlankNodeLabel, getLocalName, getName, getNameSpace, getURI, hashCode, hasURI, isBlank, isURI, isVariable, toString, toString, toStringpublic org.apache.jena.graph.impl.LiteralLabel getLiteral()
NodegetLiteral in class Nodepublic final Object getLiteralValue()
NodegetLiteralValue in class Nodepublic final String getLiteralLexicalForm()
NodegetLiteralLexicalForm in class Nodepublic final String getLiteralLanguage()
NodegetLiteralLanguage in class Nodepublic final String getLiteralDatatypeURI()
NodegetLiteralDatatypeURI in class Nodepublic final RDFDatatype getLiteralDatatype()
NodegetLiteralDatatype in class Nodepublic final boolean getLiteralIsXML()
getLiteralIsXML in class Nodepublic String toString(PrefixMapping pm, boolean quoting)
Nodepublic boolean isLiteral()
Nodepublic Object getIndexingValue()
getIndexingValue in class NodeNode.getIndexingValue()public Object visitWith(NodeVisitor v)
Nodev.public boolean equals(Object other)
Nodepublic boolean sameValueAs(Object o)
Default implementation is to use equals, subclasses should override this.
sameValueAs in class NodeLicenced under the Apache License, Version 2.0