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
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | AbstractDateTimeDV.
Represents date time data |
| Modifier and Type | Field and Description |
|---|---|
| protected static final DatatypeFactory | |
| protected static final int | |
| private static final boolean | |
| protected static final int | |
| protected static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected final void | |
| protected final void | |
| protected final void | |
| private void | |
| private void | |
| public int | compare(Object value1, Object value2)
Overrides com.
|
| protected short | Returns: less, greater, less_equal, greater_equal, equalnormalized date representation of the first value date1,normalized date representation of the second value date2,Compare algorithm described in dateDime (3.2.7). |
| protected short | Returns: 0 if date1 and date2 are equal, a value less than 0 if date1 is less than date2, a value greater than 0 if date1 is greater than date2date/time object date1,date/time object date2Given normalized values, determines order-relation between give date/time objects. |
| protected String | |
| protected int | Returns: index of the UTC character that was foundReturn index of UTC char: 'Z', '+', '-' |
| protected int | |
| protected int | |
| public short | getAllowedFacets()
Implements abstract com.
|
| protected int | getDate(String buffer, int
start position start, int end position end, AbstractDateTimeDV.Parses date CCYY-MM-DD |
| protected Duration | |
| protected final BigDecimal | |
| protected void | getTime(String buffer, int start, int end, AbstractDateTimeDV.
Parses time hh:mm:ss.sss and time zone if any |
| protected void | getTimeZone(String buffer, AbstractDateTimeDV.
Parses time zone: 'Z' or {+,-} followed by hh:mm |
| protected XMLGregorianCalendar | |
| protected int | getYearMonth(String buffer, int
start position start, int end position end, AbstractDateTimeDV.Parses date CCYY-MM |
| protected int | |
| public boolean | isIdentical(Object value1, Object value2)
Overrides com.
|
| private boolean | |
| protected final boolean | isNextCharUTCSign(String buffer, int start, int end)
Returns
|
| protected int | Returns: integer containg the number of days in a given monthGiven {year,month} computes maximum number of days for given month |
| protected int | |
| protected int | |
| protected void | normalize(AbstractDateTimeDV.
CCYY-MM-DDThh:mm:ss+03 dateIf timezone present - normalize dateTime [E Adding durations to dateTimes] |
| protected int | |
| protected int | |
| protected double | |
| protected void | parseTimeZone(String buffer, int start, int end, AbstractDateTimeDV.
Shared code from Date and YearMonth datatypes. |
| protected void | resetDateObj(AbstractDateTimeDV.
date/time object dataResets object representation of date/time |
| protected void | |
| protected void | validateDateTime(AbstractDateTimeDV.
Validates given date/time object accoring to W3C PR Schema [D.1 ISO 8601 Conventions] |
| datatypeFactory | back to summary |
|---|---|
| protected static final DatatypeFactory datatypeFactory | |
| DAY | back to summary |
|---|---|
| protected static final int DAY | |
| DEBUG | back to summary |
|---|---|
| private static final boolean DEBUG | |
| MONTH | back to summary |
|---|---|
| protected static final int MONTH | |
| YEAR | back to summary |
|---|---|
| protected static final int YEAR | |
| AbstractDateTimeDV | back to summary |
|---|---|
| public AbstractDateTimeDV() | |
| append | back to summary |
|---|---|
| protected final void append(StringBuffer message, int value, int nch) | |
| append | back to summary |
|---|---|
| protected final void append(StringBuffer message, double value) | |
| append2 | back to summary |
|---|---|
| protected final void append2(StringBuffer message, double value) | |
| append3 | back to summary |
|---|---|
| private void append3(StringBuffer message, double value) | |
| cloneDate | back to summary |
|---|---|
| private void cloneDate(AbstractDateTimeDV. | |
| compare | back to summary |
|---|---|
| public int compare(Object value1, Object value2) Overrides com.
| |
| compareDates | back to summary |
|---|---|
| protected short compareDates(AbstractDateTimeDV. Compare algorithm described in dateDime (3.2.7). Duration datatype overwrites this method
| |
| compareOrder | back to summary |
|---|---|
| protected short compareOrder(AbstractDateTimeDV. Given normalized values, determines order-relation between give date/time objects.
| |
| dateToString | back to summary |
|---|---|
| protected String dateToString(AbstractDateTimeDV. | |
| findUTCSign | back to summary |
|---|---|
| protected int findUTCSign(String buffer, int start, int end) Return index of UTC char: 'Z', '+', '-'
| |
| fQuotient | back to summary |
|---|---|
| protected int fQuotient(int a, int b) | |
| fQuotient | back to summary |
|---|---|
| protected int fQuotient(int temp, int low, int high) | |
| getAllowedFacets | back to summary |
|---|---|
| public short getAllowedFacets() Implements abstract com.
| |
| getDate | back to summary |
|---|---|
| protected int getDate(String buffer, int start, int end, AbstractDateTimeDV. Parses date CCYY-MM-DD
| |
| getDuration | back to summary |
|---|---|
| protected Duration getDuration(AbstractDateTimeDV. | |
| getFractionalSecondsAsBigDecimal | back to summary |
|---|---|
| protected final BigDecimal getFractionalSecondsAsBigDecimal(AbstractDateTimeDV. | |
| getTime | back to summary |
|---|---|
| protected void getTime(String buffer, int start, int end, AbstractDateTimeDV. Parses time hh:mm:ss.sss and time zone if any | |
| getTimeZone | back to summary |
|---|---|
| protected void getTimeZone(String buffer, AbstractDateTimeDV. Parses time zone: 'Z' or {+,-} followed by hh:mm | |
| getXMLGregorianCalendar | back to summary |
|---|---|
| protected XMLGregorianCalendar getXMLGregorianCalendar(AbstractDateTimeDV. | |
| getYearMonth | back to summary |
|---|---|
| protected int getYearMonth(String buffer, int start, int end, AbstractDateTimeDV. Parses date CCYY-MM
| |
| indexOf | back to summary |
|---|---|
| protected int indexOf(String buffer, int start, int end, char ch) Computes index of given char within StringBuffer
| |
| isIdentical | back to summary |
|---|---|
| public boolean isIdentical(Object value1, Object value2) Overrides com.
| |
| isLeapYear | back to summary |
|---|---|
| private boolean isLeapYear(int year) | |
| isNextCharUTCSign | back to summary |
|---|---|
| protected final boolean isNextCharUTCSign(String buffer, int start, int end) Returns
| |
| maxDayInMonthFor | back to summary |
|---|---|
| protected int maxDayInMonthFor(int year, int month) Given {year,month} computes maximum number of days for given month
| |
| mod | back to summary |
|---|---|
| protected int mod(int a, int b, int quotient) | |
| modulo | back to summary |
|---|---|
| protected int modulo(int temp, int low, int high) | |
| normalize | back to summary |
|---|---|
| protected void normalize(AbstractDateTimeDV. If timezone present - normalize dateTime [E Adding durations to dateTimes]
| |
| parseInt | back to summary |
|---|---|
| protected int parseInt(String buffer, int start, int end) throws NumberFormatException Given start and end position, parses string value
| |
| parseIntYear | back to summary |
|---|---|
| protected int parseIntYear(String buffer, int end) | |
| parseSecond | back to summary |
|---|---|
| protected double parseSecond(String buffer, int start, int end) throws NumberFormatException | |
| parseTimeZone | back to summary |
|---|---|
| protected void parseTimeZone(String buffer, int start, int end, AbstractDateTimeDV. Shared code from Date and YearMonth datatypes. Finds if time zone sign is present | |
| resetDateObj | back to summary |
|---|---|
| protected void resetDateObj(AbstractDateTimeDV. Resets object representation of date/time
| |
| saveUnnormalized | back to summary |
|---|---|
| protected void saveUnnormalized(AbstractDateTimeDV. | |
| validateDateTime | back to summary |
|---|---|
| protected void validateDateTime(AbstractDateTimeDV. Validates given date/time object accoring to W3C PR Schema [D.1 ISO 8601 Conventions] | |
| Modifier and Type | Field and Description |
|---|---|
| private volatile String | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv boolean | |
| private String | |
| pack-priv int | |
| pack-priv double | |
| pack-priv int | |
| pack-priv int | |
| pack-priv final AbstractDateTimeDV | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv double | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | DateTimeData(int year, int month, int day, int hour, int minute, double second, int utc, String originalValue, boolean normalized, AbstractDateTimeDV type)
|
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public Duration | |
| public int | |
| public String | |
| public int | |
| public int | |
| public double | |
| public int | |
| public int | |
| public XMLGregorianCalendar | |
| public int | |
| public int | |
| public boolean | |
| public boolean | |
| public XSDateTime | |
| public String |
| canonical | back to summary |
|---|---|
| private volatile String canonical | |
| day | back to summary |
|---|---|
| pack-priv int day | |
| hour | back to summary |
|---|---|
| pack-priv int hour | |
| minute | back to summary |
|---|---|
| pack-priv int minute | |
| month | back to summary |
|---|---|
| pack-priv int month | |
| normalized | back to summary |
|---|---|
| pack-priv boolean normalized | |
| originalValue | back to summary |
|---|---|
| private String originalValue | |
| position | back to summary |
|---|---|
| pack-priv int position | |
| second | back to summary |
|---|---|
| pack-priv double second | |
| timezoneHr | back to summary |
|---|---|
| pack-priv int timezoneHr | |
| timezoneMin | back to summary |
|---|---|
| pack-priv int timezoneMin | |
| type | back to summary |
|---|---|
| pack-priv final AbstractDateTimeDV type | |
| unNormDay | back to summary |
|---|---|
| pack-priv int unNormDay | |
| unNormHour | back to summary |
|---|---|
| pack-priv int unNormHour | |
| unNormMinute | back to summary |
|---|---|
| pack-priv int unNormMinute | |
| unNormMonth | back to summary |
|---|---|
| pack-priv int unNormMonth | |
| unNormSecond | back to summary |
|---|---|
| pack-priv double unNormSecond | |
| unNormYear | back to summary |
|---|---|
| pack-priv int unNormYear | |
| utc | back to summary |
|---|---|
| pack-priv int utc | |
| year | back to summary |
|---|---|
| pack-priv int year | |
| DateTimeData | back to summary |
|---|---|
| public DateTimeData(String originalValue, AbstractDateTimeDV type) | |
| DateTimeData | back to summary |
|---|---|
| public DateTimeData(int year, int month, int day, int hour, int minute, double second, int utc, String originalValue, boolean normalized, AbstractDateTimeDV type) | |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getDays | back to summary |
|---|---|
| public int getDays() Implements com.
| |
| getDuration | back to summary |
|---|---|
| public Duration getDuration() Implements com.
| |
| getHours | back to summary |
|---|---|
| public int getHours() Implements com.
| |
| getLexicalValue | back to summary |
|---|---|
| public String getLexicalValue() Implements com.
| |
| getMinutes | back to summary |
|---|---|
| public int getMinutes() Implements com.
| |
| getMonths | back to summary |
|---|---|
| public int getMonths() Implements com.
| |
| getSeconds | back to summary |
|---|---|
| public double getSeconds() Implements com.
| |
| getTimeZoneHours | back to summary |
|---|---|
| public int getTimeZoneHours() Implements com.
| |
| getTimeZoneMinutes | back to summary |
|---|---|
| public int getTimeZoneMinutes() Implements com.
| |
| getXMLGregorianCalendar | back to summary |
|---|---|
| public XMLGregorianCalendar getXMLGregorianCalendar() Implements com.
| |
| getYears | back to summary |
|---|---|
| public int getYears() Implements com.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| hasTimeZone | back to summary |
|---|---|
| public boolean hasTimeZone() Implements com.
| |
| isNormalized | back to summary |
|---|---|
| public boolean isNormalized() Implements com.
| |
| normalize | back to summary |
|---|---|
| public XSDateTime normalize() Implements com.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |