jp.ne.dti.lares.foozy.sasax
Class DateTimeElement.CustomValidation
java.lang.Object
|
+--jp.ne.dti.lares.foozy.sasax.DateTimeElement.CustomValidation
- All Implemented Interfaces:
- Validation
- Enclosing class:
- DateTimeElement
- public static class DateTimeElement.CustomValidation
- extends java.lang.Object
- implements Validation
Implementation to validate dateTime value string representation
in XML document.
This implementation parses text as
XML "dateTime" built-in data type
specified in
"XML schema data type"
(this implementation referes
Recommendation 02 May 2001).
- Author:
- FUJIWARA Katsunori <foozy@lares.dti.ne.jp>(code/doc)
Method Summary |
java.lang.Object |
validate(ParseContext context,
java.lang.Object value)
Validate value from(or of) string in XML document. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateTimeElement.CustomValidation
public DateTimeElement.CustomValidation(java.util.TimeZone timezone,
boolean allow,
boolean require)
- Constructor.
- Parameters:
timezone
- default timezone used if not specified in document.allow
- or not presence of timezone in textrequire
- or not presence of timezone in text.- See Also:
DateTimeElement
validate
public java.lang.Object validate(ParseContext context,
java.lang.Object value)
throws org.xml.sax.SAXException
- Validate value from(or of) string in XML document.
- Specified by:
validate
in interface Validation
- Parameters:
context
- of SAX document parsing.value
- to validate.- Returns:
- instanciated(and validated) value.
- Throws:
org.xml.sax.SAXException
- if parsing should not be continued.