Class MonthDayDV


public class MonthDayDV extends AbstractDateTimeDV
Validator for <gMonthDay> datatype (W3C Schema Datatypes)

INTERNAL:

Usage of this class is not supported. It may be altered or removed at any time.
Version:
$Id: MonthDayDV.java 937741 2010-04-25 04:25:46Z mrglavas $
Author:
Elena Litani, Gopal Sharma, SUN Microsystem Inc.
  • Constructor Details

    • MonthDayDV

      public MonthDayDV()
  • Method Details

    • getActualValue

      public Object getActualValue(String content, ValidationContext context) throws InvalidDatatypeValueException
      Convert a string to a compiled form
      Specified by:
      getActualValue in class TypeValidator
      Parameters:
      content - The lexical representation of gMonthDay
      Returns:
      a valid and normalized gMonthDay object
      Throws:
      InvalidDatatypeValueException
    • parse

      protected 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.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
    • getXMLGregorianCalendar

      protected XMLGregorianCalendar getXMLGregorianCalendar(org.apache.xerces.impl.dv.xs.AbstractDateTimeDV.DateTimeData date)
      Overrides:
      getXMLGregorianCalendar in class AbstractDateTimeDV