com.clarkparsia.pellet.datatypes.types.datetime
Class XSDDateTimeStamp

java.lang.Object
  extended by com.clarkparsia.pellet.datatypes.AbstractBaseDatatype<javax.xml.datatype.XMLGregorianCalendar>
      extended by com.clarkparsia.pellet.datatypes.types.datetime.AbstractTimelineDatatype
          extended by com.clarkparsia.pellet.datatypes.types.datetime.XSDDateTimeStamp
All Implemented Interfaces:
Datatype<javax.xml.datatype.XMLGregorianCalendar>

public class XSDDateTimeStamp
extends AbstractTimelineDatatype

Title: xsd:dateTimeStamp

Description: Singleton implementation of xsd:dateTimeStamp datatype

Copyright: Copyright (c) 2009

Company: Clark & Parsia, LLC.

Author:
Mike Smith

Method Summary
 RestrictedDatatype<javax.xml.datatype.XMLGregorianCalendar> asDataRange()
          Get the canonical data range for a datatype
 aterm.ATermAppl getCanonicalRepresentation(aterm.ATermAppl input)
          Get the canonical representation of a lexical form
static XSDDateTimeStamp getInstance()
           
 Datatype<?> getPrimitiveDatatype()
          Get the primitive datatype associated with this datatype.
 javax.xml.datatype.XMLGregorianCalendar getValue(aterm.ATermAppl literal)
          Get the Java object representation of a data value
 boolean isPrimitive()
          Check if a datatype is primitive.
 
Methods inherited from class com.clarkparsia.pellet.datatypes.types.datetime.AbstractTimelineDatatype
getLiteral
 
Methods inherited from class com.clarkparsia.pellet.datatypes.AbstractBaseDatatype
equals, getName, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static XSDDateTimeStamp getInstance()

asDataRange

public RestrictedDatatype<javax.xml.datatype.XMLGregorianCalendar> asDataRange()
Description copied from interface: Datatype
Get the canonical data range for a datatype

Returns:
a DataRange representation of the datatype value space

getCanonicalRepresentation

public aterm.ATermAppl getCanonicalRepresentation(aterm.ATermAppl input)
                                           throws InvalidLiteralException
Description copied from interface: Datatype
Get the canonical representation of a lexical form

Specified by:
getCanonicalRepresentation in interface Datatype<javax.xml.datatype.XMLGregorianCalendar>
Overrides:
getCanonicalRepresentation in class AbstractTimelineDatatype
Parameters:
input - a lexical form of the literal
Returns:
the canonical representation of the lexical form
Throws:
InvalidLiteralException

getPrimitiveDatatype

public Datatype<?> getPrimitiveDatatype()
Description copied from interface: Datatype
Get the primitive datatype associated with this datatype.

Specified by:
getPrimitiveDatatype in interface Datatype<javax.xml.datatype.XMLGregorianCalendar>
Overrides:
getPrimitiveDatatype in class AbstractTimelineDatatype
Returns:
this if isPrimitive() == true, else a primitive datatype that is a superset of the value space of this datatype.

getValue

public javax.xml.datatype.XMLGregorianCalendar getValue(aterm.ATermAppl literal)
                                                 throws InvalidLiteralException
Description copied from interface: Datatype
Get the Java object representation of a data value

Specified by:
getValue in interface Datatype<javax.xml.datatype.XMLGregorianCalendar>
Overrides:
getValue in class AbstractTimelineDatatype
Parameters:
literal - the literal
Returns:
the Java object representation of the lexical form
Throws:
InvalidLiteralException

isPrimitive

public boolean isPrimitive()
Description copied from interface: Datatype
Check if a datatype is primitive. All datatypes are either primitive or derived. Derived datatypes are names for subsets of the value spaces of primitive datatypes, defined using specific constraining facet values.

Specified by:
isPrimitive in interface Datatype<javax.xml.datatype.XMLGregorianCalendar>
Overrides:
isPrimitive in class AbstractTimelineDatatype
Returns:
true if the datatype is primitive, false else


Copyright © 2004 Evren Sirin. All Rights Reserved.