org.whattf.datatype
Class DatetimeLocal

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

public final class DatetimeLocal
extends AbstractDatetime

This datatype shall accept strings that conform to the format specified for datetime-local inputs in Web Forms 2.0.

This datatype must not accept the empty string.

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

Field Summary
static DatetimeLocal 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 DatetimeLocal()
          Constructor.
 
Method Summary
protected  Pattern getPattern()
          Returns the regexp for this datatype.
 
Methods inherited from class org.whattf.datatype.AbstractDatetime
checkHour, checkMinute, checkSecond, checkValid
 
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 DatetimeLocal THE_INSTANCE
The singleton instance.


THE_PATTERN

private static final Pattern THE_PATTERN
The rexexp for this datatype.

Constructor Detail

DatetimeLocal

private DatetimeLocal()
Constructor.

Method Detail

getPattern

protected final Pattern getPattern()
Returns the regexp for this datatype.

Specified by:
getPattern in class AbstractDatetime
Returns:
the regexp for this datatype
See Also:
AbstractDatetime.getPattern()