Class DayDV


  • public class DayDV
    extends AbstractDateTimeDV
    Validator for <gDay> datatype (W3C Schema datatypes)
    Version:
    $Id$
    Author:
    Elena Litani, Gopal Sharma, SUN Microsystem Inc.
    • Constructor Detail

      • DayDV

        public DayDV()
    • Method Detail

      • parse

        protected org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.dv.xs.AbstractDateTimeDV.DateTimeData parse​(String str)
                                                                                                                throws SchemaDateTimeException
        Parses, validates and computes normalized version of gDay object
        Parameters:
        str - The lexical representation of gDay object ---DD with possible time zone Z or (-),(+)hh:mm Pattern: ---(\\d\\d)(Z|(([-+])(\\d\\d)(:(\\d\\d))?
        Returns:
        normalized date representation
        Throws:
        SchemaDateTimeException - Invalid lexical representation
      • dateToString

        protected String dateToString​(org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.dv.xs.AbstractDateTimeDV.DateTimeData date)
        Converts gDay object representation to String
        Overrides:
        dateToString in class AbstractDateTimeDV
        Parameters:
        date - gDay object
        Returns:
        lexical representation of gDay: ---DD with an optional time zone sign