org.ontoware.rdf2go.model.node.impl
Class LiteralImpl

java.lang.Object
  extended by 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

Constructor Summary
LiteralImpl()
           
 
Method Summary
 BlankNode asBlankNode()
           
 Literal asLiteral()
           
 Resource asResource()
           
 URI asURI()
           
abstract  java.lang.String getValue()
           
protected static java.lang.String sparqlEncode(java.lang.String raw)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ontoware.rdf2go.model.node.Node
asDatatypeLiteral, asLanguageTagLiteral, toSPARQL
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

LiteralImpl

public LiteralImpl()
Method Detail

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.