Public Member Functions | |
| void | setCentury (short century) |
| void | setYear (short year) throws OperationNotSupportedException |
| void | setMonth (short month) throws OperationNotSupportedException |
| void | setDay (short day) throws OperationNotSupportedException |
| final boolean | isLeap (int year) |
| void | setHour (short hour) throws OperationNotSupportedException |
| void | setMinute (short minute) throws OperationNotSupportedException |
| void | setSecond (short second, short millsecond) throws OperationNotSupportedException |
| void | setSecond (short second) throws OperationNotSupportedException |
| void | setMilliSecond (short millisecond) throws OperationNotSupportedException |
| void | setZone (short hour, short minute) throws OperationNotSupportedException |
| void | setZoneHour (short hour) throws OperationNotSupportedException |
| void | setZoneMinute (short minute) throws OperationNotSupportedException |
| abstract void | setValues (short[] values) |
| void | setNegative () |
| abstract Date | toDate () |
| void | setZoneNegative (boolean zoneNegative) throws OperationNotSupportedException |
| void | setUTC () |
| short | getCentury () |
| short | getYear () |
| short | getMonth () |
| short | getDay () |
| short | getHour () |
| short | getMinute () |
| short | getSeconds () |
| short | getMilli () |
| short | getZoneHour () |
| short | getZoneMinute () |
| abstract short[] | getValues () |
| boolean | isUTC () |
| boolean | isNegative () |
| boolean | isZoneNegative () |
| void | addDuration (Duration duration) |
| void | normalize () |
| int | compareTo (DateTimeBase dateTime) |
| int | hashCode () |
| boolean | equals (Object object) |
| Calendar | toCalendar () |
Static Public Attributes | |
| static final int | INDETERMINATE = -1 |
| static final int | LESS_THAN = 0 |
| static final int | EQUALS = 1 |
| static final int | GREATER_THAN = 2 |
Protected Member Functions | |
| boolean | equal (DateTimeBase dateTime) |
Static Protected Attributes | |
| static final String | WRONGLY_PLACED = "is wrongly placed." |
The base class for date/time XML Schema types.
The validation of the date/time fields is done in the set methods and follows the ISO8601 Date and Time Format.
Note: the castor date/time type are mutable, unlike the date/time types of the JDK in Java2. This is needed by the Marshalling framework.
| void org.exolab.castor.types.DateTimeBase.addDuration | ( | Duration | duration | ) |
Adds a Duration to this Date/Time type as defined in Adding Duration to dateTimes (W3C XML Schema, part 2 appendix E). This version is using the algorithm defined in the document from W3C, next version may optimize it.
| Duration | the duration to add |
References org.exolab.castor.types.DateTimeBase.getCentury(), org.exolab.castor.types.Duration.getDay(), org.exolab.castor.types.Duration.getHour(), org.exolab.castor.types.DateTimeBase.getMilli(), org.exolab.castor.types.Duration.getMinute(), org.exolab.castor.types.Duration.getMonth(), org.exolab.castor.types.Duration.getSeconds(), org.exolab.castor.types.DateTimeBase.getYear(), org.exolab.castor.types.Duration.getYear(), org.exolab.castor.types.Duration.isNegative(), org.exolab.castor.types.DateTimeBase.setCentury(), org.exolab.castor.types.DateTimeBase.setDay(), org.exolab.castor.types.DateTimeBase.setHour(), org.exolab.castor.types.DateTimeBase.setMinute(), org.exolab.castor.types.DateTimeBase.setMonth(), org.exolab.castor.types.DateTimeBase.setSecond(), and org.exolab.castor.types.DateTimeBase.setYear().
Referenced by org.exolab.castor.types.DateTimeBase.normalize().
| int org.exolab.castor.types.DateTimeBase.compareTo | ( | DateTimeBase | dateTime | ) |
Compares two date/time data types. The algorithm of comparison is defined in W3C XML Schema Recommendation (section 3.2.7.3)
The returned values can be:
| dateTime | the dateTime to compare with the current instance. |
References org.exolab.castor.types.DateTimeBase.GREATER_THAN, org.exolab.castor.types.DateTimeBase.INDETERMINATE, org.exolab.castor.types.DateTimeBase.isUTC(), org.exolab.castor.types.DateTimeBase.LESS_THAN, org.exolab.castor.types.DateTimeBase.normalize(), org.exolab.castor.types.DateTimeBase.setZone(), and org.exolab.castor.types.DateTimeBase.setZoneNegative().
Referenced by org.exolab.castor.types.DateTimeBase.equal().
| boolean org.exolab.castor.types.DateTimeBase.equal | ( | DateTimeBase | dateTime | ) | [protected] |
Returns true if the present instance of date/time type is equal to the parameter.
The equals relation is as defined in the W3C XML Schema Recommendation, part2.
| dateTime | the date/time type to compare with the present instance |
References org.exolab.castor.types.DateTimeBase.compareTo(), and org.exolab.castor.types.DateTimeBase.EQUALS.
Referenced by org.exolab.castor.types.DateTimeBase.equals().
| boolean org.exolab.castor.types.DateTimeBase.equals | ( | Object | object | ) |
Overrides the java.lang.Object.equals method
References org.exolab.castor.types.DateTimeBase.equal().
| short org.exolab.castor.types.DateTimeBase.getCentury | ( | ) |
Reimplemented in org.exolab.castor.types.GMonthDay, and org.exolab.castor.types.Time.
Referenced by org.exolab.castor.types.DateTimeBase.addDuration(), org.exolab.castor.types.GYearMonth.getValues(), org.exolab.castor.types.GYear.getValues(), org.exolab.castor.types.Date.getValues(), org.exolab.castor.types.GYearMonthDescriptor.GYearMonthFieldHandler.setValue(), org.exolab.castor.types.GYearDescriptor.GYearFieldHandler.setValue(), org.exolab.castor.types.DateDescriptor.DateFieldHandler.setValue(), org.exolab.castor.types.GYearMonth.toString(), org.exolab.castor.types.GYear.toString(), and org.exolab.castor.types.Date.toString().
| short org.exolab.castor.types.DateTimeBase.getDay | ( | ) |
Reimplemented in org.exolab.castor.types.GMonth, org.exolab.castor.types.GYearMonth, and org.exolab.castor.types.Time.
Referenced by org.exolab.castor.types.Date.getValues(), org.exolab.castor.types.GMonthDayDescriptor.GMonthDayFieldHandler.setValue(), org.exolab.castor.types.GDayDescriptor.GDayFieldHandler.setValue(), org.exolab.castor.types.DateDescriptor.DateFieldHandler.setValue(), org.exolab.castor.types.GMonthDay.toString(), org.exolab.castor.types.GDay.toString(), and org.exolab.castor.types.Date.toString().
| short org.exolab.castor.types.DateTimeBase.getHour | ( | ) |
| short org.exolab.castor.types.DateTimeBase.getMilli | ( | ) |
| short org.exolab.castor.types.DateTimeBase.getMinute | ( | ) |
| short org.exolab.castor.types.DateTimeBase.getMonth | ( | ) |
Reimplemented in org.exolab.castor.types.GDay, org.exolab.castor.types.GYear, and org.exolab.castor.types.Time.
Referenced by org.exolab.castor.types.GYearMonth.getValues(), org.exolab.castor.types.Date.getValues(), org.exolab.castor.types.GYearMonthDescriptor.GYearMonthFieldHandler.setValue(), org.exolab.castor.types.GMonthDescriptor.GMonthFieldHandler.setValue(), org.exolab.castor.types.GMonthDayDescriptor.GMonthDayFieldHandler.setValue(), org.exolab.castor.types.DateDescriptor.DateFieldHandler.setValue(), org.exolab.castor.types.GYearMonth.toString(), org.exolab.castor.types.GMonthDay.toString(), org.exolab.castor.types.GMonth.toString(), and org.exolab.castor.types.Date.toString().
| short org.exolab.castor.types.DateTimeBase.getSeconds | ( | ) |
| abstract short [] org.exolab.castor.types.DateTimeBase.getValues | ( | ) | [pure virtual] |
returns an array of short with all the fields that describe a date/time type.
Implemented in org.exolab.castor.types.Date, org.exolab.castor.types.GMonthDay, org.exolab.castor.types.GYear, org.exolab.castor.types.GYearMonth, and org.exolab.castor.types.Time.
| short org.exolab.castor.types.DateTimeBase.getYear | ( | ) |
Reimplemented in org.exolab.castor.types.GMonthDay, and org.exolab.castor.types.Time.
Referenced by org.exolab.castor.types.DateTimeBase.addDuration(), org.exolab.castor.types.GYearMonth.getValues(), org.exolab.castor.types.GYear.getValues(), org.exolab.castor.types.Date.getValues(), org.exolab.castor.types.GYearMonthDescriptor.GYearMonthFieldHandler.setValue(), org.exolab.castor.types.GYearDescriptor.GYearFieldHandler.setValue(), org.exolab.castor.types.DateDescriptor.DateFieldHandler.setValue(), org.exolab.castor.types.GYearMonth.toString(), org.exolab.castor.types.GYear.toString(), and org.exolab.castor.types.Date.toString().
| short org.exolab.castor.types.DateTimeBase.getZoneHour | ( | ) |
Referenced by org.exolab.castor.types.TimeDescriptor.TimeFieldHandler.setValue(), org.exolab.castor.types.GYearMonthDescriptor.GYearMonthFieldHandler.setValue(), org.exolab.castor.types.GYearDescriptor.GYearFieldHandler.setValue(), org.exolab.castor.types.GMonthDescriptor.GMonthFieldHandler.setValue(), org.exolab.castor.types.GMonthDayDescriptor.GMonthDayFieldHandler.setValue(), org.exolab.castor.types.GDayDescriptor.GDayFieldHandler.setValue(), org.exolab.castor.types.DateDescriptor.DateFieldHandler.setValue(), org.exolab.castor.types.Time.toDate(), org.exolab.castor.types.GYearMonth.toDate(), org.exolab.castor.types.GYear.toDate(), org.exolab.castor.types.GMonthDay.toDate(), org.exolab.castor.types.GMonth.toDate(), org.exolab.castor.types.GDay.toDate(), org.exolab.castor.types.Date.toDate(), org.exolab.castor.types.Time.toString(), org.exolab.castor.types.GYearMonth.toString(), org.exolab.castor.types.GYear.toString(), org.exolab.castor.types.GMonthDay.toString(), org.exolab.castor.types.GMonth.toString(), org.exolab.castor.types.GDay.toString(), and org.exolab.castor.types.Date.toString().
| short org.exolab.castor.types.DateTimeBase.getZoneMinute | ( | ) |
Referenced by org.exolab.castor.types.TimeDescriptor.TimeFieldHandler.setValue(), org.exolab.castor.types.GYearMonthDescriptor.GYearMonthFieldHandler.setValue(), org.exolab.castor.types.GYearDescriptor.GYearFieldHandler.setValue(), org.exolab.castor.types.GMonthDescriptor.GMonthFieldHandler.setValue(), org.exolab.castor.types.GMonthDayDescriptor.GMonthDayFieldHandler.setValue(), org.exolab.castor.types.GDayDescriptor.GDayFieldHandler.setValue(), org.exolab.castor.types.DateDescriptor.DateFieldHandler.setValue(), org.exolab.castor.types.Time.toDate(), org.exolab.castor.types.GYearMonth.toDate(), org.exolab.castor.types.GYear.toDate(), org.exolab.castor.types.GMonthDay.toDate(), org.exolab.castor.types.GMonth.toDate(), org.exolab.castor.types.GDay.toDate(), org.exolab.castor.types.Date.toDate(), org.exolab.castor.types.Time.toString(), org.exolab.castor.types.GYearMonth.toString(), org.exolab.castor.types.GYear.toString(), org.exolab.castor.types.GMonthDay.toString(), org.exolab.castor.types.GMonth.toString(), org.exolab.castor.types.GDay.toString(), and org.exolab.castor.types.Date.toString().
| int org.exolab.castor.types.DateTimeBase.hashCode | ( | ) |
Overrides the java.lang.Object.hashcode method.
| final boolean org.exolab.castor.types.DateTimeBase.isLeap | ( | int | year | ) |
Returns true if the given year represents a leap year A specific year is a leap year if it is either evenly divisible by 400 OR evenly divisible by 4 and not evenly divisible by 100
| year | the year to test. |
Referenced by org.exolab.castor.types.DateTimeBase.setDay().
| boolean org.exolab.castor.types.DateTimeBase.isNegative | ( | ) |
| boolean org.exolab.castor.types.DateTimeBase.isUTC | ( | ) |
return true if this date/time type is UTC. A date/time type is UTC if a 'Z' appears at the end of the lexical representation type or if it contains a time zone.
Referenced by org.exolab.castor.types.DateTimeBase.compareTo(), org.exolab.castor.types.DateTimeBase.normalize(), org.exolab.castor.types.TimeDescriptor.TimeFieldHandler.setValue(), org.exolab.castor.types.GYearMonthDescriptor.GYearMonthFieldHandler.setValue(), org.exolab.castor.types.GYearDescriptor.GYearFieldHandler.setValue(), org.exolab.castor.types.GMonthDescriptor.GMonthFieldHandler.setValue(), org.exolab.castor.types.GMonthDayDescriptor.GMonthDayFieldHandler.setValue(), org.exolab.castor.types.GDayDescriptor.GDayFieldHandler.setValue(), org.exolab.castor.types.DateDescriptor.DateFieldHandler.setValue(), org.exolab.castor.types.Time.toDate(), org.exolab.castor.types.GYearMonth.toDate(), org.exolab.castor.types.GYear.toDate(), org.exolab.castor.types.GMonthDay.toDate(), org.exolab.castor.types.GMonth.toDate(), org.exolab.castor.types.GDay.toDate(), org.exolab.castor.types.Date.toDate(), org.exolab.castor.types.Time.toString(), org.exolab.castor.types.GYearMonth.toString(), org.exolab.castor.types.GYear.toString(), org.exolab.castor.types.GMonthDay.toString(), org.exolab.castor.types.GMonth.toString(), org.exolab.castor.types.GDay.toString(), and org.exolab.castor.types.Date.toString().
| boolean org.exolab.castor.types.DateTimeBase.isZoneNegative | ( | ) |
Referenced by org.exolab.castor.types.DateTimeBase.normalize(), org.exolab.castor.types.DateDescriptor.DateFieldHandler.setValue(), org.exolab.castor.types.Time.toDate(), org.exolab.castor.types.GYearMonth.toDate(), org.exolab.castor.types.GYear.toDate(), org.exolab.castor.types.GMonthDay.toDate(), org.exolab.castor.types.GMonth.toDate(), org.exolab.castor.types.GDay.toDate(), org.exolab.castor.types.Date.toDate(), org.exolab.castor.types.Time.toString(), org.exolab.castor.types.GYearMonth.toString(), org.exolab.castor.types.GYear.toString(), org.exolab.castor.types.GMonthDay.toString(), org.exolab.castor.types.GMonth.toString(), org.exolab.castor.types.GDay.toString(), and org.exolab.castor.types.Date.toString().
| void org.exolab.castor.types.DateTimeBase.normalize | ( | ) |
Normalizes a date/time datatype as defined in W3C XML Schema Recommendation document: if a timeZone is present but it is not Z then we convert the date/time datatype to Z using the addition operation defined in Adding Duration to dateTimes (W3C XML Schema, part 2 appendix E).
References org.exolab.castor.types.DateTimeBase.addDuration(), org.exolab.castor.types.DateTimeBase.isUTC(), org.exolab.castor.types.DateTimeBase.isZoneNegative(), org.exolab.castor.types.Duration.setHour(), org.exolab.castor.types.Duration.setMinute(), org.exolab.castor.types.Duration.setNegative(), and org.exolab.castor.types.DateTimeBase.setZone().
Referenced by org.exolab.castor.types.DateTimeBase.compareTo().
| void org.exolab.castor.types.DateTimeBase.setCentury | ( | short | century | ) |
set the century field
| century | the value to set up |
Reimplemented in org.exolab.castor.types.GMonthDay, and org.exolab.castor.types.Time.
Referenced by org.exolab.castor.types.DateTimeBase.addDuration(), org.exolab.castor.types.Date.Date(), org.exolab.castor.types.GYear.GYear(), org.exolab.castor.types.GYearMonth.GYearMonth(), org.exolab.castor.types.GYearMonthDescriptor.GYearMonthFieldHandler.setValue(), org.exolab.castor.types.GYearDescriptor.GYearFieldHandler.setValue(), org.exolab.castor.types.DateDescriptor.DateFieldHandler.setValue(), org.exolab.castor.types.GYearMonth.setValues(), org.exolab.castor.types.GYear.setValues(), and org.exolab.castor.types.Date.setValues().
| void org.exolab.castor.types.DateTimeBase.setDay | ( | short | day | ) | throws OperationNotSupportedException |
set the Day Field
| day | the value to set up Note a validation is done on the day field |
Reimplemented in org.exolab.castor.types.GMonth, and org.exolab.castor.types.GYearMonth.
References org.exolab.castor.types.DateTimeBase.isLeap().
Referenced by org.exolab.castor.types.DateTimeBase.addDuration(), org.exolab.castor.types.Date.Date(), org.exolab.castor.types.GDay.GDay(), org.exolab.castor.types.GMonthDay.GMonthDay(), org.exolab.castor.types.GMonthDayDescriptor.GMonthDayFieldHandler.setValue(), org.exolab.castor.types.GDayDescriptor.GDayFieldHandler.setValue(), org.exolab.castor.types.DateDescriptor.DateFieldHandler.setValue(), org.exolab.castor.types.GMonthDay.setValues(), and org.exolab.castor.types.Date.setValues().
| void org.exolab.castor.types.DateTimeBase.setHour | ( | short | hour | ) | throws OperationNotSupportedException |
set the hour field for this date/time type.
| hour | the hour to set |
| OperationNotSupportedException | this exception is thrown when changing the value of the hour field is not allowed |
Reimplemented in org.exolab.castor.types.Date.
Referenced by org.exolab.castor.types.DateTimeBase.addDuration(), org.exolab.castor.types.TimeDescriptor.TimeFieldHandler.setValue(), org.exolab.castor.types.Time.setValues(), and org.exolab.castor.types.Time.Time().
| void org.exolab.castor.types.DateTimeBase.setMilliSecond | ( | short | millisecond | ) | throws OperationNotSupportedException |
Sets the millisecond field for this date/time type
| millsecond | the millisecond to set |
| OperationNotSupportedException | this exception is thrown when changing the value of the second field is not allowed |
Reimplemented in org.exolab.castor.types.Date.
Referenced by org.exolab.castor.types.DateTimeBase.setSecond().
| void org.exolab.castor.types.DateTimeBase.setMinute | ( | short | minute | ) | throws OperationNotSupportedException |
set the minute field for this date/time type.
| minute | the minute to set. |
| OperationNotSupportedException | this exception is thrown when changing the value of the minute field is not allowed |
Reimplemented in org.exolab.castor.types.Date.
Referenced by org.exolab.castor.types.DateTimeBase.addDuration(), org.exolab.castor.types.TimeDescriptor.TimeFieldHandler.setValue(), org.exolab.castor.types.Time.setValues(), and org.exolab.castor.types.Time.Time().
| void org.exolab.castor.types.DateTimeBase.setMonth | ( | short | month | ) | throws OperationNotSupportedException |
| month | the value to set up Note 1<month<12 |
Reimplemented in org.exolab.castor.types.GDay, and org.exolab.castor.types.GYear.
Referenced by org.exolab.castor.types.DateTimeBase.addDuration(), org.exolab.castor.types.Date.Date(), org.exolab.castor.types.GMonth.GMonth(), org.exolab.castor.types.GMonthDay.GMonthDay(), org.exolab.castor.types.GYearMonth.GYearMonth(), org.exolab.castor.types.GYearMonthDescriptor.GYearMonthFieldHandler.setValue(), org.exolab.castor.types.GMonthDescriptor.GMonthFieldHandler.setValue(), org.exolab.castor.types.GMonthDayDescriptor.GMonthDayFieldHandler.setValue(), org.exolab.castor.types.DateDescriptor.DateFieldHandler.setValue(), org.exolab.castor.types.GYearMonth.setValues(), org.exolab.castor.types.GMonthDay.setValues(), and org.exolab.castor.types.Date.setValues().
| void org.exolab.castor.types.DateTimeBase.setNegative | ( | ) |
set the negative field to true
Reimplemented in org.exolab.castor.types.GMonthDay.
| void org.exolab.castor.types.DateTimeBase.setSecond | ( | short | second, | |
| short | millsecond | |||
| ) | throws OperationNotSupportedException |
set the second field for this date/time type
| second | the second to set | |
| millsecond | the millisecond to set |
| OperationNotSupportedException | this exception is thrown when changing the value of the second field is not allowed |
References org.exolab.castor.types.DateTimeBase.setMilliSecond().
Referenced by org.exolab.castor.types.DateTimeBase.addDuration(), org.exolab.castor.types.TimeDescriptor.TimeFieldHandler.setValue(), org.exolab.castor.types.Time.setValues(), and org.exolab.castor.types.Time.Time().
| void org.exolab.castor.types.DateTimeBase.setSecond | ( | short | second | ) | throws OperationNotSupportedException |
Sets the second field for this date/time type
| second | the second to set |
| OperationNotSupportedException | this exception is thrown when changing the value of the second field is not allowed |
Reimplemented in org.exolab.castor.types.Date.
| void org.exolab.castor.types.DateTimeBase.setUTC | ( | ) |
set the UTC field.
Referenced by org.exolab.castor.types.TimeDescriptor.TimeFieldHandler.setValue(), org.exolab.castor.types.GYearMonthDescriptor.GYearMonthFieldHandler.setValue(), org.exolab.castor.types.GYearDescriptor.GYearFieldHandler.setValue(), org.exolab.castor.types.GMonthDescriptor.GMonthFieldHandler.setValue(), org.exolab.castor.types.GMonthDayDescriptor.GMonthDayFieldHandler.setValue(), org.exolab.castor.types.GDayDescriptor.GDayFieldHandler.setValue(), org.exolab.castor.types.DateDescriptor.DateFieldHandler.setValue(), org.exolab.castor.types.DateTimeBase.setZoneHour(), and org.exolab.castor.types.DateTimeBase.setZoneMinute().
| abstract void org.exolab.castor.types.DateTimeBase.setValues | ( | short[] | values | ) | [pure virtual] |
Sets all the fields by reading the values in an array
| values | an array of shorts with the values |
Implemented in org.exolab.castor.types.Date, org.exolab.castor.types.GMonthDay, org.exolab.castor.types.GYear, org.exolab.castor.types.GYearMonth, and org.exolab.castor.types.Time.
| void org.exolab.castor.types.DateTimeBase.setYear | ( | short | year | ) | throws OperationNotSupportedException |
set the Year field Note: 0000 is not allowed
| the | year to set up |
Reimplemented in org.exolab.castor.types.GMonthDay.
Referenced by org.exolab.castor.types.DateTimeBase.addDuration(), org.exolab.castor.types.Date.Date(), org.exolab.castor.types.GYear.GYear(), org.exolab.castor.types.GYearMonth.GYearMonth(), org.exolab.castor.types.GYearMonthDescriptor.GYearMonthFieldHandler.setValue(), org.exolab.castor.types.GYearDescriptor.GYearFieldHandler.setValue(), org.exolab.castor.types.DateDescriptor.DateFieldHandler.setValue(), org.exolab.castor.types.GYearMonth.setValues(), org.exolab.castor.types.GYear.setValues(), and org.exolab.castor.types.Date.setValues().
| void org.exolab.castor.types.DateTimeBase.setZone | ( | short | hour, | |
| short | minute | |||
| ) | throws OperationNotSupportedException |
Sets the time zone fields for this date/time type. A call to this method means that the date/time type used is UTC.
| hour | the time zone hour to set | |
| minute | the time zone minute to set |
| OperationNotSupportedException | this exception is thrown when changing the value of the time zone fields is not allowed |
References org.exolab.castor.types.DateTimeBase.setZoneHour(), and org.exolab.castor.types.DateTimeBase.setZoneMinute().
Referenced by org.exolab.castor.types.DateTimeBase.compareTo(), org.exolab.castor.types.DateTimeBase.normalize(), org.exolab.castor.types.TimeDescriptor.TimeFieldHandler.setValue(), org.exolab.castor.types.GYearMonthDescriptor.GYearMonthFieldHandler.setValue(), org.exolab.castor.types.GYearDescriptor.GYearFieldHandler.setValue(), org.exolab.castor.types.GMonthDescriptor.GMonthFieldHandler.setValue(), org.exolab.castor.types.GMonthDayDescriptor.GMonthDayFieldHandler.setValue(), org.exolab.castor.types.GDayDescriptor.GDayFieldHandler.setValue(), and org.exolab.castor.types.DateDescriptor.DateFieldHandler.setValue().
| void org.exolab.castor.types.DateTimeBase.setZoneHour | ( | short | hour | ) | throws OperationNotSupportedException |
Sets the time zone hour field for this date/time type. A call to this method means that the date/time type used is UTC.
| hour | the time zone hour to set |
| OperationNotSupportedException | this exception is thrown when changing the value of the time zone fields is not allowed |
References org.exolab.castor.types.DateTimeBase.setUTC().
Referenced by org.exolab.castor.types.DateTimeBase.setZone().
| void org.exolab.castor.types.DateTimeBase.setZoneMinute | ( | short | minute | ) | throws OperationNotSupportedException |
Sets the time zone minute field for this date/time type. A call to this method means that the date/time type used is UTC.
| minute | the time zone minute to set |
| OperationNotSupportedException | this exception is thrown when changing the value of the time zone fields is not allowed |
References org.exolab.castor.types.DateTimeBase.setUTC().
Referenced by org.exolab.castor.types.DateTimeBase.setZone().
| void org.exolab.castor.types.DateTimeBase.setZoneNegative | ( | boolean | zoneNegative | ) | throws OperationNotSupportedException |
set the time zone negative field to true
| OperationNotSupportedException | this exception is thrown when changing the time zone fields is not allowed |
Referenced by org.exolab.castor.types.DateTimeBase.compareTo(), and org.exolab.castor.types.DateDescriptor.DateFieldHandler.setValue().
| Calendar org.exolab.castor.types.DateTimeBase.toCalendar | ( | ) |
converts this Date/Time into a local java Calendar.
References org.exolab.castor.types.DateTimeBase.toDate().
| abstract Date org.exolab.castor.types.DateTimeBase.toDate | ( | ) | [pure virtual] |
Returns a java.util.Date that represents the XML Schema Date datatype
Implemented in org.exolab.castor.types.Date, org.exolab.castor.types.GDay, org.exolab.castor.types.GMonth, org.exolab.castor.types.GMonthDay, org.exolab.castor.types.GYear, org.exolab.castor.types.GYearMonth, and org.exolab.castor.types.Time.
Referenced by org.exolab.castor.types.DateTimeBase.toCalendar().
final int org.exolab.castor.types.DateTimeBase.EQUALS = 1 [static] |
Referenced by org.exolab.castor.types.DateTimeBase.equal().
final int org.exolab.castor.types.DateTimeBase.GREATER_THAN = 2 [static] |
Referenced by org.exolab.castor.types.DateTimeBase.compareTo().
final int org.exolab.castor.types.DateTimeBase.INDETERMINATE = -1 [static] |
Fields used for comparison methods
Referenced by org.exolab.castor.types.DateTimeBase.compareTo().
final int org.exolab.castor.types.DateTimeBase.LESS_THAN = 0 [static] |
Referenced by org.exolab.castor.types.DateTimeBase.compareTo().
final String org.exolab.castor.types.DateTimeBase.WRONGLY_PLACED = "is wrongly placed." [static, protected] |
1.7.0