edu.stanford.smi.protegex.owl.model
Interface RDFSLiteral

All Superinterfaces:
Comparable, RDFObject, Visitable
All Known Implementing Classes:
DefaultRDFSLiteral

public interface RDFSLiteral
extends Comparable, RDFObject, Visitable

An interface to represent an RDF/XML Schema literal. This encapsulates the value, the datatype and the language tag.

Author:
Holger Knublauch

Method Summary
 boolean getBoolean()
          Gets the value as a boolean.
 byte[] getBytes()
          Gets the appropriate byte array if the value has datatype xsd:base64Binary
 RDFSDatatype getDatatype()
          Gets the RDFSDatatype of this value.
 double getDouble()
           
 float getFloat()
           
 int getInt()
          Gets the value as an int.
 String getLanguage()
          Gets the language if it has been defined for this.
 long getLong()
           
 Object getPlainValue()
          If the datatype of this is one of the default datatypes, which can be optimized by Protege, then this returns an optimized value.
 String getString()
           
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface edu.stanford.smi.protegex.owl.model.RDFObject
equalsStructurally, getBrowserText
 
Methods inherited from interface edu.stanford.smi.protegex.owl.model.visitor.Visitable
accept
 

Method Detail

getBoolean

public boolean getBoolean()
Gets the value as a boolean.

Returns:
the boolean value

getBytes

public byte[] getBytes()
Gets the appropriate byte array if the value has datatype xsd:base64Binary

Returns:
the byte array, I guess

getDatatype

public RDFSDatatype getDatatype()
Gets the RDFSDatatype of this value.

Returns:
the RDFSDatatype

getDouble

public double getDouble()

getFloat

public float getFloat()

getInt

public int getInt()
Gets the value as an int.

Returns:
the int value

getLanguage

public String getLanguage()
Gets the language if it has been defined for this.

Returns:
a language or null

getLong

public long getLong()

getPlainValue

public Object getPlainValue()
If the datatype of this is one of the default datatypes, which can be optimized by Protege, then this returns an optimized value.

Returns:
null or a Boolean, Integer, Float, or String

getString

public String getString()