org.apache.xerces.impl.dv.xs
Class AbstractDateTimeDV
java.lang.Object
org.apache.xerces.impl.dv.xs.TypeValidator
org.apache.xerces.impl.dv.xs.AbstractDateTimeDV
- Direct Known Subclasses:
- DateTimeDV, DayDV, DurationDV, MonthDayDV, MonthDV, TimeDV, YearDV, YearMonthDV
public abstract class AbstractDateTimeDV
- extends TypeValidator
This is the base class of all date/time datatype validators.
It implements common code for parsing, validating and comparing datatypes.
Classes that extend this class, must implement parse() method.
REVISIT: There are many instance variables, which would cause problems
when we support grammar caching. A grammar is possibly used by
two parser instances at the same time, then the same simple type
decl object can be used to validate two strings at the same time.
-SG
- Version:
- $Id: AbstractDateTimeDV.java 572095 2007-09-02 18:32:43Z mrglavas $
- Author:
- Elena Litani, Len Berman, Gopal Sharma, SUN Microsystems Inc.
Method Summary |
int |
compare(java.lang.Object value1,
java.lang.Object value2)
|
short |
getAllowedFacets()
|
boolean |
isIdentical(java.lang.Object value1,
java.lang.Object value2)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDateTimeDV
public AbstractDateTimeDV()
getAllowedFacets
public short getAllowedFacets()
- Specified by:
getAllowedFacets
in class TypeValidator
isIdentical
public boolean isIdentical(java.lang.Object value1,
java.lang.Object value2)
- Overrides:
isIdentical
in class TypeValidator
compare
public int compare(java.lang.Object value1,
java.lang.Object value2)
- Overrides:
compare
in class TypeValidator