Package nu.validator.datatype
Class DateOrTime
java.lang.Object
nu.validator.datatype.AbstractDatatype
nu.validator.datatype.DateOrTime
- All Implemented Interfaces:
org.relaxng.datatype.Datatype
public class DateOrTime extends AbstractDatatype
-
Nested Class Summary
Nested classes/interfaces inherited from class nu.validator.datatype.AbstractDatatype
AbstractDatatype.CharSequenceWithOffset
-
Field Summary
Fields Modifier and Type Field Description static DateOrTime
THE_INSTANCE
The singleton instance. -
Method Summary
Modifier and Type Method 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()
Methods inherited from class nu.validator.datatype.AbstractDatatype
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
-
Field Details
-
THE_INSTANCE
The singleton instance.
-
-
Method Details
-
getPattern
protected java.util.regex.Pattern getPattern() -
getName
public java.lang.String getName()- Specified by:
getName
in classAbstractDatatype
-
checkHour
protected final void checkHour(java.lang.String hour) throws org.relaxng.datatype.DatatypeException- Throws:
org.relaxng.datatype.DatatypeException
-
checkMinute
protected final void checkMinute(java.lang.String minute) throws org.relaxng.datatype.DatatypeException- Throws:
org.relaxng.datatype.DatatypeException
-
checkSecond
protected final void checkSecond(java.lang.String second) throws org.relaxng.datatype.DatatypeException- Throws:
org.relaxng.datatype.DatatypeException
-
checkMilliSecond
protected final void checkMilliSecond(java.lang.String millisecond) throws org.relaxng.datatype.DatatypeException- Throws:
org.relaxng.datatype.DatatypeException
-
checkValid
public void checkValid(java.lang.CharSequence literal) throws org.relaxng.datatype.DatatypeException- Specified by:
checkValid
in classAbstractDatatype
- Throws:
org.relaxng.datatype.DatatypeException
-