|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.p13n.xml.schema.RecurringDay
com.bea.p13n.xml.schema.RecurringDate
This class provides the Java biding for the XML schema type recurringDate as specified in Section 3.3.31 of XML Schema Part 2: Datatypes.
recurringDate represents a date that recurs, specifically a day of the year. Recurring day is a one-year long annually periodic instances.
The value space of month is the set of Gregorian calendar dates specified as --MM-DD.
Example: 05-11
, May 11th, that occurs every
year.
Field Summary |
Fields inherited from class com.bea.p13n.xml.schema.RecurringDay |
_internal, reference |
Constructor Summary | |
protected |
RecurringDate()
Constructs a new RecurringDate instance. |
protected |
RecurringDate(TimeInstant instant)
Constructs a new RecurringDate instance with month and day specified with a timeInstant. |
Method Summary | |
Object |
clone()
Returns a copy. |
static RecurringDate |
createRecurringDate()
Returns a RecurringDate for the current month and day. |
static RecurringDate |
createRecurringDate(String recurringDate)
Given a string of the form --MM-DD, returns a RecurringDate instance. |
int |
getMonth()
Returns the month (MM) field |
Date |
next()
Returns the next date based on the reference time instant. |
Date |
next(TimeInstant instant)
Returns the next date with repsect to the specified time instant. |
Date |
previous()
Returns the previous date based on the reference time instant. |
Date |
previous(TimeInstant instant)
Returns the previous date with repsect to the specified time instant. |
void |
setMonth(int month)
Sets the month (MM) field |
String |
toString()
Returns a string representation in the form of ---DD with the time zone. |
Methods inherited from class com.bea.p13n.xml.schema.RecurringDay |
createRecurringDay, createRecurringDay, getDay, getReference, getTimeZone, setDay, setReference, setTimeZone |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected RecurringDate()
protected RecurringDate(TimeInstant instant)
Method Detail |
public Object clone()
clone
in class RecurringDay
public static RecurringDate createRecurringDate()
public static RecurringDate createRecurringDate(String recurringDate) throws ParseException
Given a string of the form --MM-DD, returns a RecurringDate 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
- thrown due to illegal
string argument.public int getMonth()
public Date next()
next
in class RecurringDay
RecurringDay.setReference(com.bea.p13n.xml.schema.TimeInstant)
public Date next(TimeInstant instant)
next
in class RecurringDay
instant
- reference time instant
public Date previous()
previous
in class RecurringDay
RecurringDay.setReference(com.bea.p13n.xml.schema.TimeInstant)
public Date previous(TimeInstant instant)
previous
in class RecurringDay
instant
- reference time instant
public void setMonth(int month)
month
- month fieldpublic String toString()
toString
in class RecurringDay
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |