org.ontoware.rdf2go.model.node.impl
Class LiteralImpl
java.lang.Object
org.ontoware.rdf2go.model.node.impl.LiteralImpl
- All Implemented Interfaces:
- java.lang.Comparable<Node>, Literal, Node, NodeOrVariable
- Direct Known Subclasses:
- DatatypeLiteralImpl, LanguageTagLiteralImpl, PlainLiteralImpl
public abstract class LiteralImpl
- extends java.lang.Object
- implements Literal
Subclasses must have valid equals() and hashCode() implementations.
- Author:
- voelkel
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
compareTo |
LiteralImpl
public LiteralImpl()
getValue
public abstract java.lang.String getValue()
- Specified by:
getValue in interface Literal
asResource
public Resource asResource()
throws java.lang.ClassCastException
- Specified by:
asResource in interface Node
- Throws:
java.lang.ClassCastException
asLiteral
public Literal asLiteral()
throws java.lang.ClassCastException
- Specified by:
asLiteral in interface Node
- Throws:
java.lang.ClassCastException
asURI
public URI asURI()
throws java.lang.ClassCastException
- Specified by:
asURI in interface Node
- Throws:
java.lang.ClassCastException
asBlankNode
public BlankNode asBlankNode()
throws java.lang.ClassCastException
- Specified by:
asBlankNode in interface Node
- Throws:
java.lang.ClassCastException
sparqlEncode
protected static java.lang.String sparqlEncode(java.lang.String raw)
Copyright © 2005-2008 FZI - Forschungszentrum Informatik | Karlsruhe | Germany. All Rights Reserved.