java.lang.Object | ||
↳ | org.apache.xerces.impl.dv.xs.TypeValidator | |
↳ | org.apache.xerces.impl.dv.xs.AbstractDateTimeDV |
Known Direct Subclasses |
Known Indirect Subclasses |
This is the base class of all date/time datatype validators. It implements common code for parsing, validating and comparing datatypes. Classes that extend this class, must implement parse() method. REVISIT: There are many instance variables, which would cause problems when we support grammar caching. A grammar is possibly used by two parser instances at the same time, then the same simple type decl object can be used to validate two strings at the same time. -SG
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | DAY | ||||||||||
int | MONTH | ||||||||||
int | YEAR |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.impl.dv.xs.TypeValidator
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
factory |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Compare algorithm described in dateDime (3.2.7).
| |||||||||||
Given normalized values, determines order-relation
between give date/time objects.
| |||||||||||
Return index of UTC char: 'Z', '+', '-'
| |||||||||||
Parses date CCYY-MM-DD
| |||||||||||
Parses time hh:mm:ss.sss and time zone if any
| |||||||||||
Parses time zone: 'Z' or {+,-} followed by hh:mm
| |||||||||||
Parses date CCYY-MM
| |||||||||||
Computes index of given char within StringBuffer
| |||||||||||
Returns
true if the character at start is 'Z', '+' or '-'. | |||||||||||
Given {year,month} computes maximum
number of days for given month
| |||||||||||
If timezone present - normalize dateTime [E Adding durations to dateTimes]
| |||||||||||
Given start and end position, parses string value
| |||||||||||
Shared code from Date and YearMonth datatypes.
| |||||||||||
Resets object representation of date/time
| |||||||||||
Validates given date/time object accoring to W3C PR Schema
[D.1 ISO 8601 Conventions]
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.impl.dv.xs.TypeValidator
| |||||||||||
From class
java.lang.Object
|
Compare algorithm described in dateDime (3.2.7). Duration datatype overwrites this method
date1 | normalized date representation of the first value |
---|---|
date2 | normalized date representation of the second value |
Given normalized values, determines order-relation between give date/time objects.
date1 | date/time object |
---|---|
date2 | date/time object |
Return index of UTC char: 'Z', '+', '-'
Parses time hh:mm:ss.sss and time zone if any
RuntimeException |
---|
Parses time zone: 'Z' or {+,-} followed by hh:mm
RuntimeException |
---|
Computes index of given char within StringBuffer
ch | character to look for in StringBuffer |
---|
Returns true
if the character at start is 'Z', '+' or '-'.
Given {year,month} computes maximum number of days for given month
If timezone present - normalize dateTime [E Adding durations to dateTimes]
date | CCYY-MM-DDThh:mm:ss+03 |
---|
Given start and end position, parses string value
buffer | string to parse |
---|---|
start | start position |
end | end position |
NumberFormatException |
---|
Shared code from Date and YearMonth datatypes. Finds if time zone sign is present
RuntimeException |
---|
Resets object representation of date/time
data | date/time object |
---|
Validates given date/time object accoring to W3C PR Schema [D.1 ISO 8601 Conventions]