org.apache.xerces.impl.dv.xs
Class MonthDV
Validator for datatype (W3C Schema Datatypes)
Version:
- Elena Litani
- Gopal Sharma, SUN Microsystem Inc.
CY , D , DAY , M , MONTH , TOTAL_SIZE , YEAR , h , hh , m , mm , ms , s , utc |
protected short | compareDates(int[] date1, int[] date2) - Overwrite compare algorithm to optimize month comparison
REVISIT: this one is lack of the third parameter: boolean strict, so it
doesn't override the method in the base.
|
protected String | dateToString(int[] date) - Converts month object representation to String
|
Object | getActualValue(String content, ValidationContext context) - Convert a string to a compiled form
|
protected int[] | parse(String str) - Parses, validates and computes normalized version of gMonth object
|
append , compare , compareDates , compareOrder , dateToString , fQuotient , fQuotient , findUTCSign , getAllowedFacets , getDate , getTime , getTimeZone , getYearMonth , indexOf , maxDayInMonthFor , mod , modulo , normalize , parseInt , parseIntYear , parseTimeZone , resetDateObj , validateDateTime |
compareDates
protected short compareDates(int[] date1,
int[] date2)
Overwrite compare algorithm to optimize month comparison
REVISIT: this one is lack of the third parameter: boolean strict, so it
doesn't override the method in the base. But maybe this method
is not correctly implemented, and I did encounter errors when
trying to add the extra parameter. I'm leaving it as is. -SG
date1
- date2
-
- less, greater, equal, indeterminate
dateToString
protected String dateToString(int[] date)
Converts month object representation to String
- dateToString in interface AbstractDateTimeDV
date
- month object
- lexical representation of month: --MM with an optional time zone sign
parse
protected int[] parse(String str)
throws SchemaDateTimeException
Parses, validates and computes normalized version of gMonth object
str
- The lexical representation of gMonth object --MM
with possible time zone Z or (-),(+)hh:mm
- normalized date representation
SchemaDateTimeException
- Invalid lexical representation
Copyright B) 1999-2004 Apache XML Project. All Rights Reserved.