org.apache.xerces.impl.dv.xs
Class AbstractDateTimeDV

java.lang.Object
  extended by org.apache.xerces.impl.dv.xs.TypeValidator
      extended by 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.

Field Summary
 
Fields inherited from class org.apache.xerces.impl.dv.xs.TypeValidator
EQUAL, GREATER_THAN, INDETERMINATE, LESS_THAN
 
Constructor Summary
AbstractDateTimeDV()
           
 
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 org.apache.xerces.impl.dv.xs.TypeValidator
checkExtraRules, getActualValue, getDataLength, getDigit, getFractionDigits, getTotalDigits, isDigit
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDateTimeDV

public AbstractDateTimeDV()
Method Detail

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