Class MonthDayDV


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

      • MonthDayDV

        public MonthDayDV()
    • 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 gMonthDay object
        Parameters:
        str - The lexical representation of gMonthDay object --MM-DD with possible time zone Z or (-),(+)hh:mm
        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 gMonthDay object representation to String
        Overrides:
        dateToString in class AbstractDateTimeDV
        Parameters:
        date - gmonthDay object
        Returns:
        lexical representation of month: --MM-DD with an optional time zone sign