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

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.YearMonthDV

public class YearMonthDV
extends AbstractDateTimeDV

Validator for <gYearMonth> datatype (W3C Schema Datatypes)

Version:
$Id: YearMonthDV.java 446745 2006-09-15 21:43:58Z mrglavas $
Author:
Elena Litani, Gopal Sharma, SUN Microsystem Inc.

Field Summary
 
Fields inherited from class org.apache.xerces.impl.dv.xs.TypeValidator
EQUAL, GREATER_THAN, INDETERMINATE, LESS_THAN
 
Constructor Summary
YearMonthDV()
           
 
Method Summary
 java.lang.Object getActualValue(java.lang.String content, ValidationContext context)
          Convert a string to a compiled form
 
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
 

Constructor Detail

YearMonthDV

public YearMonthDV()
Method Detail

getActualValue

public java.lang.Object getActualValue(java.lang.String content,
                                       ValidationContext context)
                                throws InvalidDatatypeValueException
Convert a string to a compiled form

Specified by:
getActualValue in class TypeValidator
Parameters:
content - The lexical representation of gYearMonth
Returns:
a valid and normalized gYearMonth object
Throws:
InvalidDatatypeValueException