org.apache.xerces.validators.datatype
Class DayDatatypeValidator

java.lang.Object
  |
  +--org.apache.xerces.validators.datatype.AbstractDatatypeValidator
        |
        +--org.apache.xerces.validators.datatype.AbstractNumericFacetValidator
              |
              +--org.apache.xerces.validators.datatype.DateTimeValidator
                    |
                    +--org.apache.xerces.validators.datatype.DayDatatypeValidator
All Implemented Interfaces:
java.lang.Cloneable, DatatypeValidator

public class DayDatatypeValidator
extends DateTimeValidator

Validator for datatype (W3C Schema datatypes)

Version:
$Id: DayDatatypeValidator.java 317299 2001-06-21 20:56:13Z elena $
Author:
Elena Litani

Fields inherited from class org.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
 
Fields inherited from class org.apache.xerces.validators.datatype.AbstractNumericFacetValidator
fEnumeration, fMaxExclusive, fMaxInclusive, fMinExclusive, fMinInclusive, INDETERMINATE
 
Fields inherited from class org.apache.xerces.validators.datatype.AbstractDatatypeValidator
fBaseValidator, fFacetsDefined, fFlags, fLocale, fMessageProvider, fPattern, fRegex
 
Fields inherited from interface org.apache.xerces.validators.datatype.DatatypeValidator
COLLAPSE, FACET_DURATION, FACET_ENCODING, FACET_ENUMERATION, FACET_FIXED, FACET_FRACTIONDIGITS, FACET_LENGTH, FACET_MAXEXCLUSIVE, FACET_MAXINCLUSIVE, FACET_MAXLENGTH, FACET_MINEXCLUSIVE, FACET_MININCLUSIVE, FACET_MINLENGTH, FACET_PATTERN, FACET_PERIOD, FACET_TOTALDIGITS, FACET_WHITESPACE, PRESERVE, REPLACE
 
Constructor Summary
DayDatatypeValidator()
           
DayDatatypeValidator(DatatypeValidator base, java.util.Hashtable facets, boolean derivedByList)
           
 
Method Summary
protected  java.lang.String dateToString(int[] date)
          Converts gDay object representation to String
protected  int[] parse(java.lang.String str, int[] date)
          Parses, validates and computes normalized version of gDay object
 
Methods inherited from class org.apache.xerces.validators.datatype.DateTimeValidator
assignAdditionalFacets, checkContent, clone, compare, compareDates, 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 org.apache.xerces.validators.datatype.AbstractNumericFacetValidator
checkBaseFacetConstraints, checkFacetConstraints, inheritAdditionalFacets
 
Methods inherited from class org.apache.xerces.validators.datatype.AbstractDatatypeValidator
getBaseValidator, getErrorString, getWSFacet, setLocale
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DayDatatypeValidator

public DayDatatypeValidator()
                     throws InvalidDatatypeFacetException

DayDatatypeValidator

public DayDatatypeValidator(DatatypeValidator base,
                            java.util.Hashtable facets,
                            boolean derivedByList)
                     throws InvalidDatatypeFacetException
Method Detail

parse

protected int[] parse(java.lang.String str,
                      int[] date)
               throws SchemaDateTimeException
Parses, validates and computes normalized version of gDay object
Overrides:
parse in class DateTimeValidator
Parameters:
str - The lexical representation of gDay object ---DD with possible time zone Z or (-),(+)hh:mm Pattern: ---(\\d\\d)(Z|(([-+])(\\d\\d)(:(\\d\\d))?
date - uninitialized date object
Returns:
normalized date representation
Throws:
java.lang.Exception - Invalid lexical representation

dateToString

protected java.lang.String dateToString(int[] date)
Converts gDay object representation to String
Overrides:
dateToString in class DateTimeValidator
Parameters:
date - gDay object
Returns:
lexical representation of gDay: ---DD with an optional time zone sign


Copyright © 1999-2001 Apache XML Project. All Rights Reserved.