org.whattf.datatype
Class Week
java.lang.Object
org.whattf.datatype.AbstractDatatype
org.whattf.datatype.Week
- All Implemented Interfaces:
- Datatype
public final class Week
- extends AbstractDatatype
This datatype shall accept strings that conform to the format specified for
week
inputs in Web Forms 2.0.
This datatype must not accept the empty string.
- Version:
- $Id: Week.java,v 1.3 2006/11/18 11:51:44 hsivonen Exp $
- Author:
- hsivonen
Constructor Summary |
private |
Week()
Constructor. |
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 |
THE_INSTANCE
public static final Week THE_INSTANCE
- The singleton instance.
THE_PATTERN
private static final Pattern THE_PATTERN
- The rexexp for this datatype.
Week
private Week()
- Constructor.
checkWeek
private void checkWeek(String year,
String week)
throws DatatypeException
- Throws:
DatatypeException
checkWeek
private void checkWeek(int year,
int week)
throws DatatypeException
- Throws:
DatatypeException
checkValid
public final void checkValid(CharSequence literal)
throws DatatypeException
- Specified by:
checkValid
in class AbstractDatatype
- Throws:
DatatypeException