public abstract class LiteralImpl extends Object implements Literal
| Constructor and Description |
|---|
LiteralImpl() |
| Modifier and Type | Method and Description |
|---|---|
BlankNode |
asBlankNode()
A convenience method for a cast to
org.ontoware.rdf2go.model.node.BlankNode
|
Literal |
asLiteral()
A convenience method for a cast to org.ontoware.rdf2go.model.node.Literal
|
Resource |
asResource()
A convenience method for a cast to
org.ontoware.rdf2go.model.node.Resource
|
URI |
asURI()
A convenience method for a cast to org.ontoware.rdf2go.model.node.URI
|
abstract String |
getValue()
gets the value of the literal
|
protected static String |
sparqlEncode(String raw) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasDatatypeLiteral, asLanguageTagLiteral, toSPARQLcompareTopublic abstract String getValue()
Literalpublic Resource asResource() throws ClassCastException
NodeasResource in interface NodeClassCastException - if the node is not a Resourcepublic Literal asLiteral() throws ClassCastException
NodeasLiteral in interface NodeClassCastException - if the node is not a Literalpublic URI asURI() throws ClassCastException
NodeasURI in interface NodeClassCastException - if the node is not a URIpublic BlankNode asBlankNode() throws ClassCastException
NodeasBlankNode in interface NodeClassCastException - if the node is not a BlankNodeCopyright © 2005–2016 IT-Consulting Dr. Max V?lkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.