org.apache.xerces.impl.dv.xs
Class DurationDV
Validator for <duration> datatype (W3C Schema Datatypes)
$Id: DurationDV.java 517284 2007-03-12 17:03:54Z mrglavas $- Elena Litani
- Gopal Sharma, SUN Microsystem Inc.
protected short | compareDates(org.apache.xerces.impl.dv.xs.AbstractDateTimeDV.DateTimeData date1, org.apache.xerces.impl.dv.xs.AbstractDateTimeDV.DateTimeData date2, boolean strict)- Compares 2 given durations.
|
protected String | dateToString(org.apache.xerces.impl.dv.xs.AbstractDateTimeDV.DateTimeData date)
|
Object | getActualValue(String content, ValidationContext context)
|
protected Duration | getDuration(org.apache.xerces.impl.dv.xs.AbstractDateTimeDV.DateTimeData date)
|
protected org.apache.xerces.impl.dv.xs.AbstractDateTimeDV.DateTimeData | parse(String str, int durationType)- Parses, validates and computes normalized version of duration object
|
protected double | parseSecond(String buffer, int start, int end)
|
append, append, append2, compare, compareDates, compareOrder, dateToString, fQuotient, fQuotient, findUTCSign, getAllowedFacets, getDate, getDuration, getTime, getTimeZone, getXMLGregorianCalendar, getYearMonth, indexOf, isIdentical, isNextCharUTCSign, maxDayInMonthFor, mod, modulo, normalize, parseInt, parseIntYear, parseSecond, parseTimeZone, resetDateObj, saveUnnormalized, validateDateTime |
DAYTIMEDURATION_TYPE
public static final int DAYTIMEDURATION_TYPE
DURATION_TYPE
public static final int DURATION_TYPE
YEARMONTHDURATION_TYPE
public static final int YEARMONTHDURATION_TYPE
compareDates
protected short compareDates(org.apache.xerces.impl.dv.xs.AbstractDateTimeDV.DateTimeData date1,
org.apache.xerces.impl.dv.xs.AbstractDateTimeDV.DateTimeData date2,
boolean strict) Compares 2 given durations. (refer to W3C Schema Datatypes "3.2.6 duration")
- compareDates in interface AbstractDateTimeDV
date1 - Unnormalized durationdate2 - Unnormalized durationstrict - (min/max)Exclusive strict == true ( LESS_THAN ) or ( GREATER_THAN )
(min/max)Inclusive strict == false (LESS_EQUAL) or (GREATER_EQUAL)
- INDETERMINATE if the order relationship between date1 and date2 is indeterminate.
EQUAL if the order relation between date1 and date2 is EQUAL.
If the strict parameter is true, return LESS_THAN if date1 is less than date2 and
return GREATER_THAN if date1 is greater than date2.
If the strict parameter is false, return LESS_THAN if date1 is less than OR equal to date2 and
return GREATER_THAN if date1 is greater than OR equal to date2
dateToString
protected String dateToString(org.apache.xerces.impl.dv.xs.AbstractDateTimeDV.DateTimeData date)
- dateToString in interface AbstractDateTimeDV
getDuration
protected Duration getDuration(org.apache.xerces.impl.dv.xs.AbstractDateTimeDV.DateTimeData date)
- getDuration in interface AbstractDateTimeDV
parse
protected org.apache.xerces.impl.dv.xs.AbstractDateTimeDV.DateTimeData parse(String str,
int durationType)
throws SchemaDateTimeException Parses, validates and computes normalized version of duration object
str - The lexical representation of duration object PnYn MnDTnH nMnSdurationType -
- normalized date representation
parseSecond
protected double parseSecond(String buffer,
int start,
int end)
throws NumberFormatException- parseSecond in interface AbstractDateTimeDV
Copyright B) 1999-2007 The Apache Software Foundation. All Rights Reserved.