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

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.XSDGDay
All Implemented Interfaces:
Datatype<javax.xml.datatype.XMLGregorianCalendar>

public class XSDGDay
extends AbstractTimelineDatatype

Title: xsd:gDay

Description: Singleton implementation of xsd:gDay datatype. This implementation diverges from the XML Schema specification because

  1. the value space is disjoint from the value space of other timeline based datatypes (e.g., xsd:dateTime)
  2. values are treated as points, not as intervals

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
static XSDGDay getInstance()
           
 
Methods inherited from class com.clarkparsia.pellet.datatypes.types.datetime.AbstractTimelineDatatype
getCanonicalRepresentation, getLiteral, getPrimitiveDatatype, getValue, isPrimitive
 
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 XSDGDay 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


Copyright © 2004 Evren Sirin. All Rights Reserved.