de.hedenus.rdfschema
Class LiteralImpl

java.lang.Object
  extended by de.hedenus.rdfschema.ResourceImpl
      extended by de.hedenus.rdfschema.LiteralImpl
All Implemented Interfaces:
Literal, Resource

public class LiteralImpl
extends ResourceImpl
implements Literal

Implementation of a rdfs:Literal.

Author:
Michael Hedenus

Field Summary
 
Fields inherited from interface de.hedenus.rdfschema.Literal
URI
 
Constructor Summary
LiteralImpl()
           
 
Method Summary
 java.lang.String datatype()
          Returns the datatype URI or null if the literal has no datatype URI.
 java.lang.String language()
          Returns the language or null if the literal has no language specifier.
 java.lang.String toString()
          Returns the string value of the literal.
 
Methods inherited from class de.hedenus.rdfschema.ResourceImpl
about, binding, getProperties, getProperty, getProperty, getProperty, init, node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.hedenus.rdfschema.Resource
about, getProperties, getProperty, getProperty, getProperty
 

Constructor Detail

LiteralImpl

public LiteralImpl()
Method Detail

datatype

public java.lang.String datatype()
Description copied from interface: Literal
Returns the datatype URI or null if the literal has no datatype URI.

Specified by:
datatype in interface Literal

language

public java.lang.String language()
Description copied from interface: Literal
Returns the language or null if the literal has no language specifier.

Specified by:
language in interface Literal

toString

public java.lang.String toString()
Description copied from interface: Literal
Returns the string value of the literal.

Specified by:
toString in interface Literal
Overrides:
toString in class ResourceImpl