Public Member Functions | |
| Century () | |
| void | setYear (short year) throws OperationNotSupportedException |
| void | setMonth (short month) throws OperationNotSupportedException |
| void | setDay (short day) throws OperationNotSupportedException |
| void | setHour (short hour) throws OperationNotSupportedException |
| void | setMinute (short minute) throws OperationNotSupportedException |
| void | setSecond (short second, short millsecond) throws OperationNotSupportedException |
| void | setZone (short hour, short minute) throws OperationNotSupportedException |
| void | setZoneNegative () throws OperationNotSupportedException |
| String | toString () |
| java.util.Date | toDate () throws ParseException |
Static Public Member Functions | |
| static Object | parse (String str) throws ParseException |
| static Century | parseCentury (String str) throws ParseException |
Describe an XML schema Century
The date type is derived from time period by setting up the facet :
| org.exolab.castor.types.Century.Century | ( | ) |
References org.exolab.castor.types.Century.setZoneNegative().
Referenced by org.exolab.castor.types.Century.parseCentury().
| static Object org.exolab.castor.types.Century.parse | ( | String | str | ) | throws ParseException [static] |
parse a String and convert it into a java.lang.Object
| str | the string to parse |
| ParseException | a parse exception is thrown if the string to parse does not follow the rigth format (see the description of this class) |
Reimplemented from org.exolab.castor.types.RecurringDuration.
References org.exolab.castor.types.Century.parseCentury().
| static Century org.exolab.castor.types.Century.parseCentury | ( | String | str | ) | throws ParseException [static] |
parse a String and convert it into a Century
| str | the string to parse |
| ParseException | a parse exception is thrown if the string to parse does not follow the rigth format (see the description of this class) |
References org.exolab.castor.types.Century.Century(), org.exolab.castor.types.RecurringDurationBase.isNegative(), org.exolab.castor.types.RecurringDuration.setCentury(), and org.exolab.castor.types.RecurringDurationBase.setNegative().
Referenced by org.exolab.castor.types.Century.parse().
| void org.exolab.castor.types.Century.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 from org.exolab.castor.types.RecurringDuration.
| void org.exolab.castor.types.Century.setHour | ( | short | hour | ) | throws OperationNotSupportedException |
set the hour field for this recurringDuration
| hour | the hour to set |
| OperationNotSupportedException | this exception is thrown when changing the value of the hour field is not allowed |
Reimplemented from org.exolab.castor.types.RecurringDurationBase.
| void org.exolab.castor.types.Century.setMinute | ( | short | minute | ) | throws OperationNotSupportedException |
set the minute field for this recurringDuration
| minute | the minute to set |
| OperationNotSupportedException | this exception is thrown when changing the value of the minute field is not allowed |
Reimplemented from org.exolab.castor.types.RecurringDurationBase.
| void org.exolab.castor.types.Century.setMonth | ( | short | month | ) | throws OperationNotSupportedException |
| month | the value to set up Note 1<month<12 |
Reimplemented from org.exolab.castor.types.RecurringDuration.
| void org.exolab.castor.types.Century.setSecond | ( | short | second, | |
| short | millsecond | |||
| ) | throws OperationNotSupportedException |
set the second field for this recurringDuration
| 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 |
Reimplemented from org.exolab.castor.types.RecurringDurationBase.
| void org.exolab.castor.types.Century.setYear | ( | short | year | ) | throws OperationNotSupportedException |
set the Year field Note: 0000 is not allowed
| the | year to set up |
Reimplemented from org.exolab.castor.types.RecurringDuration.
| void org.exolab.castor.types.Century.setZone | ( | short | hour, | |
| short | minute | |||
| ) | throws OperationNotSupportedException |
set the time zone fields for this recurringDuration
| 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 |
Reimplemented from org.exolab.castor.types.RecurringDurationBase.
| void org.exolab.castor.types.Century.setZoneNegative | ( | ) | throws OperationNotSupportedException |
set the time zone negative field to true
| OperationNotSupportedException | this exception is thrown when changing the time zone fields is not allowed |
Reimplemented from org.exolab.castor.types.RecurringDurationBase.
Referenced by org.exolab.castor.types.Century.Century().
| java.util.Date org.exolab.castor.types.Century.toDate | ( | ) | throws ParseException |
convert this recurringDuration into a local Date
Note : Be aware a the 'local' property of the date i.e toDate() will de the conversion between a UTC date and your computer date format. For instance if you have set up your computer time zone on the Pacific Day Time the conversion of 2000-10-20T00:00:00.000 into a java.util.Date will return Thu Oct 19 17:00:00 PDT 2000
| ParseException |
Reimplemented from org.exolab.castor.types.RecurringDuration.
References org.exolab.castor.types.Date.Date(), org.exolab.castor.types.RecurringDurationBase.getZoneHour(), org.exolab.castor.types.RecurringDurationBase.getZoneMinute(), org.exolab.castor.types.RecurringDurationBase.isUTC(), org.exolab.castor.types.RecurringDurationBase.isZoneNegative(), and org.exolab.castor.types.Century.toString().
| String org.exolab.castor.types.Century.toString | ( | ) |
convert this Year to a string The format is defined by W3C XML Schema draft and ISO8601 i.e (+|-)CC
Reimplemented from org.exolab.castor.types.RecurringDuration.
References org.exolab.castor.types.RecurringDurationBase.isNegative().
Referenced by org.exolab.castor.types.CenturyDescriptor.CenturyFieldHandler.getValue(), and org.exolab.castor.types.Century.toDate().
1.7.0