| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectpublic class Monthextends TimePeriodConstructor Summary | |
| |
Method Summary | |
static Object |
|
static Month |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
java.util.Date |
|
String |
|
Methods inherited from class org.exolab.castor.types.TimePeriod | |
setFields, setPeriod | |
Methods inherited from class org.exolab.castor.types.RecurringDuration | |
equal, equals, getCentury, getDay, getMonth, getValues, getYear, isGreater, isLeap, parse, parseRecurringDuration, setCentury, setDay, setMonth, setValues, setYear, toDate, toString | |
Methods inherited from class org.exolab.castor.types.RecurringDurationBase | |
equal, equals, getDuration, getHour, getMilli, getMinute, getPeriod, getSeconds, getValues, getZoneHour, getZoneMinute, isGreater, isNegative, isUTC, isZoneNegative, setDuration, setDuration, setHour, setMinute, setNegative, setPeriod, setPeriod, setSecond, setUTC, setValues, setZone, setZoneNegative | |
public static Object parse(String str)
throws ParseException
- Overrides:
- parse in interface RecurringDuration
public static Month parseMonth(String str) throws ParseException
parse a String and convert it into a Month
- Parameters:
str- the string to parse
- Returns:
- the Month represented by the string
public void setDay(short day)
throws OperationNotSupportedException
- Overrides:
- setDay in interface RecurringDuration
public void setHour(short hour)
throws OperationNotSupportedExceptionset the hour field for this recurringDuration
- Overrides:
- setHour in interface RecurringDurationBase
- Parameters:
hour- the hour to set
- Throws:
OperationNotSupportedException- this exception is thrown when changing the value of the hour field is not allowed
public void setMinute(short minute)
throws OperationNotSupportedExceptionset the minute field for this recurringDuration
- Overrides:
- setMinute in interface RecurringDurationBase
- Parameters:
minute- the minute to set
- Throws:
OperationNotSupportedException- this exception is thrown when changing the value of the minute field is not allowed
public void setSecond(short second,
short millsecond)
throws OperationNotSupportedExceptionset the second field for this recurringDuration
- Overrides:
- setSecond in interface RecurringDurationBase
- Parameters:
second- the second to setmillsecond- the millisecond to set
- Throws:
OperationNotSupportedException- this exception is thrown when changing the value of the second field is not allowed
public void setZone(short hour,
short minute)
throws OperationNotSupportedExceptionset the time zone fields for this recurringDuration
- Overrides:
- setZone in interface RecurringDurationBase
- Parameters:
hour- the time zone hour to setminute- the time zone minute to set
- Throws:
OperationNotSupportedException- this exception is thrown when changing the value of the time zone fields is not allowed
public void setZoneNegative()
throws OperationNotSupportedExceptionset the time zone negative field to true
- Overrides:
- setZoneNegative in interface RecurringDurationBase
- Throws:
OperationNotSupportedException- this exception is thrown when changing the time zone fields is not allowed
public java.util.Date toDate()
throws ParseException
- Overrides:
- toDate in interface RecurringDuration
public String toString()
convert this Month to a string The format is defined by W3C XML Schema draft and ISO8601 i.e (+|-)CCYY-MM
- Overrides:
- toString in interface RecurringDuration
- Returns:
- a string representing this Month