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

java.lang.Object
  extended by org.apache.xerces.impl.dv.xs.TypeValidator
      extended by org.apache.xerces.impl.dv.xs.AbstractDateTimeDV
          extended by org.apache.xerces.impl.dv.xs.DurationDV

public class DurationDV
extends AbstractDateTimeDV

Validator for <duration> datatype (W3C Schema Datatypes)

Version:
$Id: DurationDV.java 517284 2007-03-12 17:03:54Z mrglavas $
Author:
Elena Litani, Gopal Sharma, SUN Microsystem Inc.

Field Summary
static int DAYTIMEDURATION_TYPE
           
static int DURATION_TYPE
           
static int YEARMONTHDURATION_TYPE
           
 
Fields inherited from class org.apache.xerces.impl.dv.xs.TypeValidator
EQUAL, GREATER_THAN, INDETERMINATE, LESS_THAN
 
Constructor Summary
DurationDV()
           
 
Method Summary
 java.lang.Object getActualValue(java.lang.String content, ValidationContext context)
           
 
Methods inherited from class org.apache.xerces.impl.dv.xs.AbstractDateTimeDV
compare, getAllowedFacets, isIdentical
 
Methods inherited from class org.apache.xerces.impl.dv.xs.TypeValidator
checkExtraRules, getDataLength, getDigit, getFractionDigits, getTotalDigits, isDigit
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DURATION_TYPE

public static final int DURATION_TYPE
See Also:
Constant Field Values

YEARMONTHDURATION_TYPE

public static final int YEARMONTHDURATION_TYPE
See Also:
Constant Field Values

DAYTIMEDURATION_TYPE

public static final int DAYTIMEDURATION_TYPE
See Also:
Constant Field Values
Constructor Detail

DurationDV

public DurationDV()
Method Detail

getActualValue

public java.lang.Object getActualValue(java.lang.String content,
                                       ValidationContext context)
                                throws InvalidDatatypeValueException
Specified by:
getActualValue in class TypeValidator
Throws:
InvalidDatatypeValueException