public class PlainLiteralImpl extends LiteralImpl implements PlainLiteral
Constructor and Description |
---|
PlainLiteralImpl(String value) |
Modifier and Type | Method and Description |
---|---|
DatatypeLiteral |
asDatatypeLiteral()
A convenience method for a cast to
org.ontoware.rdf2go.model.node.DatatypeLiteral
|
LanguageTagLiteral |
asLanguageTagLiteral()
A convenience method for a cast to
org.ontoware.rdf2go.model.node.LanguageTagLiteral
|
int |
compareTo(Node other) |
boolean |
equals(Object other) |
String |
getValue()
gets the value of the literal
|
int |
hashCode() |
String |
toSPARQL()
A convenience function to create SPARQL queries from nodes
|
String |
toString() |
asBlankNode, asLiteral, asResource, asURI, sparqlEncode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asBlankNode, asLiteral, asResource, asURI
public PlainLiteralImpl(String value)
public String getValue()
Literal
getValue
in interface Literal
getValue
in class LiteralImpl
public DatatypeLiteral asDatatypeLiteral() throws ClassCastException
Node
asDatatypeLiteral
in interface Node
ClassCastException
- if the node is not a DatatypeLiteralpublic LanguageTagLiteral asLanguageTagLiteral() throws ClassCastException
Node
asLanguageTagLiteral
in interface Node
ClassCastException
- if the node is not a LanguageTagLiteralpublic int compareTo(Node other)
compareTo
in interface Comparable<Node>
Copyright © 2005–2018 IT-Consulting Dr. Max Völkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.