|
© 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
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.
Field Summary | |
protected RecurringDuration |
_internal
|
protected TimeInstant |
reference
|
Constructor Summary | |
protected |
RecurringDay()
Constructs a new RecurringDay instance. |
protected |
RecurringDay(TimeInstant instant)
Constructs a new RecurringDay instance with the with a timeInstant. |
Method Summary | |
Object |
clone()
Returns a copy. |
static RecurringDay |
createRecurringDay()
Returns a RecurringDay for the current day. |
static RecurringDay |
createRecurringDay(String recurringDay)
Given a string of the form ----DD, returns a RecurringDay instance. |
int |
getDay()
Returns the day (DD) field |
TimeInstant |
getReference()
Returns the reference instant. |
TimeZone |
getTimeZone()
Returns the time zone |
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 |
setDay(int day)
Sets the day (DD) field |
void |
setReference(TimeInstant reference)
Sets the reference instant. |
void |
setTimeZone(TimeZone timeZone)
Sets the time zone |
String |
toString()
Returns a string representation in the form of ----DD with the time zone. |
Methods inherited from class java.lang.Object |
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()
public static RecurringDay createRecurringDay()
public static RecurringDay createRecurringDay(String recurringDay) throws ParseException
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
- thrown due to illegal
string argument.public int getDay()
public TimeInstant getReference()
public TimeZone getTimeZone()
public Date next()
setReference(com.bea.p13n.xml.schema.TimeInstant)
public Date next(TimeInstant instant)
instant
- reference time instant
public Date previous()
setReference(com.bea.p13n.xml.schema.TimeInstant)
public Date previous(TimeInstant instant)
instant
- reference time instant
public void setDay(int day)
day
- day fieldpublic void setReference(TimeInstant reference)
reference
- reference time instantpublic void setTimeZone(TimeZone timeZone)
timeZone
- time zonepublic String toString()
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |