public final class Datetime extends AbstractDatatype
datetime
inputs in Web Forms 2.0.
This datatype must not accept the empty string.
AbstractDatatype.CharSequenceWithOffset
Modifier and Type | Field and Description |
---|---|
static Datetime |
THE_INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkHour(java.lang.String hour) |
protected void |
checkMilliSecond(java.lang.String millisecond) |
protected void |
checkMinute(java.lang.String minute) |
protected void |
checkSecond(java.lang.String second) |
void |
checkValid(java.lang.CharSequence literal) |
java.lang.String |
getName() |
protected java.util.regex.Pattern |
getPattern()
Returns the regexp for this datatype.
|
checkValid, createStreamingValidator, createValue, getIdType, isAsciiDigit, isContextDependent, isValid, isWhitespace, newDatatypeException, newDatatypeException, newDatatypeException, newDatatypeException, newDatatypeException, newDatatypeException, newDatatypeException, newDatatypeException, newDatatypeException, newDatatypeException, newDatatypeException, newDatatypeException, sameValue, split, toAsciiLowerCase, toAsciiLowerCase, toAsciiUpperCase, toAsciiUpperCase, valueHashCode
public static final Datetime THE_INSTANCE
protected java.util.regex.Pattern getPattern()
AbstractDatetime.getPattern()
public java.lang.String getName()
getName
in class AbstractDatatype
protected final void checkHour(java.lang.String hour) throws org.relaxng.datatype.DatatypeException
org.relaxng.datatype.DatatypeException
protected final void checkMinute(java.lang.String minute) throws org.relaxng.datatype.DatatypeException
org.relaxng.datatype.DatatypeException
protected final void checkSecond(java.lang.String second) throws org.relaxng.datatype.DatatypeException
org.relaxng.datatype.DatatypeException
protected final void checkMilliSecond(java.lang.String millisecond) throws org.relaxng.datatype.DatatypeException
org.relaxng.datatype.DatatypeException
public void checkValid(java.lang.CharSequence literal) throws org.relaxng.datatype.DatatypeException
checkValid
in class AbstractDatatype
org.relaxng.datatype.DatatypeException