weblogic.apache.xerces.validators.datatype
Class DurationDatatypeValidator
java.lang.Object
|
+--weblogic.apache.xerces.validators.datatype.AbstractDatatypeValidator
|
+--weblogic.apache.xerces.validators.datatype.AbstractNumericFacetValidator
|
+--weblogic.apache.xerces.validators.datatype.DateTimeValidator
|
+--weblogic.apache.xerces.validators.datatype.DurationDatatypeValidator
- public class DurationDatatypeValidator
- extends DateTimeValidator
Validator for datatype (W3C Schema Datatypes)
This class is based on an implementation from the Apache XML
Project. In future releases the XML parser, XSLT processor, and
associated classes will likely be updated to be based on a later
version of the Apache implementations. Since Apache does not guarantee
backwards compatibility between versions of their software, we cannot
guarantee backwards compatibility of any of the classes contained in
the weblogic.apache package or sub-packages.
- Version:
- $Id: DurationDatatypeValidator.java,v 1.6 2001/05/31 21:51:46 elena Exp $
- Author:
- Elena Litani
Fields inherited from class weblogic.apache.xerces.validators.datatype.DateTimeValidator |
CY,
D,
DAY,
EQUAL,
fBuffer,
fDateValue,
fEnd,
fEnumSize,
fStart,
GREATER_THAN,
h,
hh,
LESS_THAN,
m,
M,
message,
mm,
MONTH,
MONTH_SIZE,
ms,
s,
timeZone,
TOTAL_SIZE,
utc,
YEAR |
Method Summary
|
protected short |
compareDates(int[] date1,
int[] date2,
boolean strict)
Compares 2 given durations. |
protected java.lang.String |
dateToString(int[] date)
|
protected int[] |
parse(java.lang.String str,
int[] date)
Parses, validates and computes normalized version of duration object |
Methods inherited from class weblogic.apache.xerces.validators.datatype.DateTimeValidator |
assignAdditionalFacets,
checkContent,
clone,
compare,
compareOrder,
compareValues,
findUTCSign,
fQuotient,
fQuotient,
getDate,
getMaxExclusive,
getMaxInclusive,
getMinExclusive,
getMinInclusive,
getTime,
getTimeZone,
getYearMonth,
indexOf,
initializeValues,
maxDayInMonthFor,
mod,
modulo,
normalize,
parseInt,
parseIntYear,
parseTimeZone,
reportError,
resetBuffer,
resetDateObj,
setEnumeration,
setMaxExclusive,
setMaxInclusive,
setMinExclusive,
setMinInclusive,
validate,
validateDate,
validateDateTime |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DurationDatatypeValidator
public DurationDatatypeValidator()
throws InvalidDatatypeFacetException
DurationDatatypeValidator
public DurationDatatypeValidator(DatatypeValidator base,
java.util.Hashtable facets,
boolean derivedByList)
throws InvalidDatatypeFacetException
parse
protected int[] parse(java.lang.String str,
int[] date)
throws SchemaDateTimeException
- Parses, validates and computes normalized version of duration object
- Parameters:
str
- The lexical representation of duration object PnYn MnDTnH nMnSdate
- uninitialized date object- Returns:
- normalized date representation
- Throws:
- java.lang.Exception - Invalid lexical representation
- Overrides:
- parse in class DateTimeValidator
compareDates
protected short compareDates(int[] date1,
int[] date2,
boolean strict)
- Compares 2 given durations. (refer to W3C Schema Datatypes "3.2.6 duration")
- Parameters:
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)- Returns:
-
- Overrides:
- compareDates in class DateTimeValidator
dateToString
protected java.lang.String dateToString(int[] date)
- Overrides:
- dateToString in class DateTimeValidator
Copyright © 2004 BEA Systems, Inc. All Rights Reserved.
WebLogic Server 7.0 API Reference