Object
Cloneable
, Serializable
This class provides the Java biding for the XML schema type recurringDay as specified in Section 3.3.32 of XML Schema Part 2: Datatypes.
recurringDay represents a day of the month that recurs every month.
Lexical Representation: Left truncated representation for date as ----DD.
Check with the spec. Sec 3.3.32 specified the lexical representation as ---DD and not as ----DD. Verify this.
Example: ----11
, 11th, that occurs every month.
Object
RecurringDay
Cloneable
, Serializable
RecurringDate
Field Summary |
protected |
|
protected |
|
Constructor Summary |
|
|
Method Summary |
public |
|
public static |
|
public static |
|
public int |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public void |
|
public void |
|
public void |
|
public |
|
Methods from class java.lang. |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected RecurringDuration
_internal
protected TimeInstant
reference
Constructor Detail |
protected RecurringDay()
protected RecurringDay(TimeInstant
instant)
Method Detail |
public Object
clone()
Returns a copy.
Object.clone()
public static RecurringDay
createRecurringDay()
Returns a RecurringDay for the current day.
public staticRecurringDay
createRecurringDay(String
recurringDay)
throwsParseException
Given a string of the form ----DD, returns a RecurringDay instance. The argument may optionally include the timezone specified as "Z" or as <+/->hh:mm.
It is invalid to prepend the argument string with a "+" or "-" (minus) symbol.
ParseException
public int getDay()Returns the day (DD) field
public TimeInstant
getReference()
Returns the reference instant.
public TimeZone
getTimeZone()
Returns the time zone
public Date
next()
Returns the next date based on the reference time instant.
Related Topics
RecurringDay.setReference(TimeInstant)
publicReturns the next date with repsect to the specified time instant.Date
next(TimeInstant
instant)
public Date
previous()
Returns the previous date based on the reference time instant.
Related Topics
RecurringDay.setReference(TimeInstant)
publicReturns the previous date with repsect to the specified time instant.Date
previous(TimeInstant
instant)
public void setDay(int day)Sets the day (DD) field
public void setReference(TimeInstant
reference)
Sets the reference instant.
public void setTimeZone(TimeZone
timeZone)
Sets the time zone
public String
toString()
Returns a string representation in the form of ----DD with the
time zone.
Object.toString()