Class XSDGYear

  • All Implemented Interfaces:
    Datatype<javax.xml.datatype.XMLGregorianCalendar>

    public class XSDGYear
    extends AbstractTimelineDatatype

    Title: xsd:gYear

    Description: Singleton implementation of xsd:gYear 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 Detail

      • getInstance

        public static XSDGYear 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