org.whattf.datatype
Class Month

java.lang.Object
  extended by org.whattf.datatype.AbstractDatatype
      extended by org.whattf.datatype.Month
All Implemented Interfaces:
Datatype

public final class Month
extends AbstractDatatype

Version:
$Id: Month.java,v 1.3 2006/11/18 11:51:44 hsivonen Exp $
Author:
hsivonen

Field Summary
static Month THE_INSTANCE
          The singleton instance.
private static Pattern THE_PATTERN
          The rexexp for this datatype.
 
Fields inherited from interface org.relaxng.datatype.Datatype
ID_TYPE_ID, ID_TYPE_IDREF, ID_TYPE_IDREFS, ID_TYPE_NULL
 
Constructor Summary
private Month()
          Constructor.
 
Method Summary
private  void checkMonth(int year, int month)
           
private  void checkMonth(String year, String month)
           
 void checkValid(CharSequence literal)
           
 
Methods inherited from class org.whattf.datatype.AbstractDatatype
checkValid, createStreamingValidator, createValue, getIdType, isContextDependent, isValid, isWhitespace, sameValue, toAsciiLowerCase, toAsciiLowerCase, valueHashCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THE_INSTANCE

public static final Month THE_INSTANCE
The singleton instance.


THE_PATTERN

private static final Pattern THE_PATTERN
The rexexp for this datatype.

Constructor Detail

Month

private Month()
Constructor.

Method Detail

checkMonth

private void checkMonth(String year,
                        String month)
                 throws DatatypeException
Throws:
DatatypeException

checkMonth

private void checkMonth(int year,
                        int month)
                 throws DatatypeException
Throws:
DatatypeException

checkValid

public final void checkValid(CharSequence literal)
                      throws DatatypeException
Specified by:
checkValid in class AbstractDatatype
Throws:
DatatypeException