org.semanticweb.kaon2.extensionapi.datatype
Interface DatatypeHandler


public interface DatatypeHandler

Instances of this class are responsible for various operations on datatypes, such as loading or storing the datatype.


Method Summary
 java.lang.String[] getAdditionalDatatypeURIs()
          Returns additional URIs of the datatype.
 java.lang.String getDatatypeURI()
          Returns the URI of the datatype.
 boolean handles(java.lang.Object object)
          Returns true if this handler handles object of given type.
 java.lang.Object parseObject(java.lang.String objectValue)
          Creates an object of this datatype having the given string representation.
 java.lang.String toString(java.lang.Object object)
          Creates the string representation of an object.
 

Method Detail

handles

boolean handles(java.lang.Object object)
Returns true if this handler handles object of given type.

Parameters:
object - the object
Returns:
true if this handler is repsonsible for the given object

getDatatypeURI

java.lang.String getDatatypeURI()
Returns the URI of the datatype.

Returns:
the URI of the datatype

getAdditionalDatatypeURIs

java.lang.String[] getAdditionalDatatypeURIs()
Returns additional URIs of the datatype.

Returns:
the additional URI of the datatype

toString

java.lang.String toString(java.lang.Object object)
Creates the string representation of an object.

Parameters:
object - the object
Returns:
string representation of the object

parseObject

java.lang.Object parseObject(java.lang.String objectValue)
                             throws KAON2Exception
Creates an object of this datatype having the given string representation.

Parameters:
objectValue - the value of the object
Returns:
the object with the given string value
Throws:
KAON2Exception - thrown if string cannot be parsed