Top Description Fields Constructors Methods
org.apache.xerces.impl.dv.xs

public Class YearMonthDV

extends AbstractDateTimeDV
Class Inheritance
Imports
javax.xml.datatype.DatatypeConstants, .XMLGregorianCalendar, org.apache.xerces.impl.dv.InvalidDatatypeValueException, .ValidationContext

Validator for <gYearMonth> datatype (W3C Schema Datatypes)
Authors
Elena Litani, Gopal Sharma, SUN Microsystem Inc.
Version
$Id: YearMonthDV.java 937741 2010-04-25 04:25:46Z mrglavas $

Field Summary

Inherited from org.apache.xerces.impl.dv.xs.AbstractDateTimeDV:
datatypeFactoryDAYMONTHYEAR

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected String
public Object

Returns:

a valid and normalized gYearMonth object
getActualValue
(String
The lexical representation of gYearMonth
content
,
ValidationContext context)

Implements abstract org.apache.xerces.impl.dv.xs.TypeValidator.getActualValue.

Convert a string to a compiled form
protected XMLGregorianCalendar
protected AbstractDateTimeDV.DateTimeData

Returns:

normalized date representation
parse
(String
The lexical representation of gYearMonth object CCYY-MM with possible time zone Z or (-),(+)hh:mm
str
)

Parses, validates and computes normalized version of gYearMonth object

Inherited from org.apache.xerces.impl.dv.xs.AbstractDateTimeDV:
appendappendappend2comparecompareDatescompareOrderfindUTCSignfQuotientfQuotientgetAllowedFacetsgetDategetDurationgetFractionalSecondsAsBigDecimalgetTimegetTimeZonegetYearMonthindexOfisIdenticalisNextCharUTCSignmaxDayInMonthFormodmodulonormalizeparseIntparseIntYearparseSecondparseTimeZoneresetDateObjsaveUnnormalizedvalidateDateTime

Constructor Detail

YearMonthDVback to summary
public YearMonthDV()

Method Detail

dateToStringback to summary
protected String dateToString(AbstractDateTimeDV.DateTimeData date)

Overrides org.apache.xerces.impl.dv.xs.AbstractDateTimeDV.dateToString.

getActualValueback to summary
public Object getActualValue(String content, ValidationContext context) throws InvalidDatatypeValueException

Implements abstract org.apache.xerces.impl.dv.xs.TypeValidator.getActualValue.

Convert a string to a compiled form

Parameters
content:String

The lexical representation of gYearMonth

Returns:Object

a valid and normalized gYearMonth object

getXMLGregorianCalendarback to summary
protected XMLGregorianCalendar getXMLGregorianCalendar(AbstractDateTimeDV.DateTimeData date)

Overrides org.apache.xerces.impl.dv.xs.AbstractDateTimeDV.getXMLGregorianCalendar.

parseback to summary
protected AbstractDateTimeDV.DateTimeData parse(String str) throws SchemaDateTimeException

Parses, validates and computes normalized version of gYearMonth object

Parameters
str:String

The lexical representation of gYearMonth object CCYY-MM with possible time zone Z or (-),(+)hh:mm

Returns:AbstractDateTimeDV.DateTimeData

normalized date representation

Exceptions
SchemaDateTimeException:
Invalid lexical representation