|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compoze.collab.exchange.RecurrencePattern
public class RecurrencePattern
This class is used as a base class for Exchange recurrence patterns.
Recurrence patterns are not necessarily static upon calling any of the
createXXX
methods. After a pattern is created, it is internally normalized.
This is done because the recurrence pattern must contain fields for number
of occurrences and end date, even if those fields are not used directly by
the pattern. Normalization also adjusts start pattern start dates to make
sure it falls on the pattern. So for example, creating a weekly pattern
with a start date on Tuesday with a day mask of Wednesday will alter the
start date to the next available Wednesday to match the pattern.
Additionally, if creating a monthly or yearly pattern with DayOfMonth or MonthOfYear set
to zero, those fields will be reset to the day or month of the pattern start date. In
other words, calling getDayOfMonth()
will not return zero.
Method Summary | |
---|---|
int |
getDayOfMonth()
Gets the day of the month for the pattern (only valid for RecurrenceTypeEnum.MONTHLY and RecurrenceTypeEnum.YEARLY ) |
DaysOfWeek |
getDaysOfWeek()
Gets the days of the week mask for the recurrence (only valid for RecurrenceTypeEnum.WEEKLY , RecurrenceTypeEnum.MONTHLY_NTH and
RecurrenceTypeEnum.YEARLY_NTH ). |
RecurrenceEndType |
getEndType()
Gets the end type of the pattern. |
RecurrenceInstance |
getInstance()
Gets the instance of the day within the period (only valid for RecurrenceTypeEnum.MONTHLY_NTH and RecurrenceTypeEnum.YEARLY_NTH ). |
int |
getInterval()
Gets the number of recurrence units between instances. |
int |
getMonthOfYear()
Gets the month of year for the pattern (only valid for types RecurrenceTypeEnum.YEARLY and RecurrenceTypeEnum.YEARLY_NTH ). |
int |
getOccurrences()
Gets the number of occurrences in the pattern. |
java.util.Date |
getPatternEndDate()
Gets the date of the last recurring instance. |
java.util.Date |
getPatternStartDate()
Gets the date of the first recurring instance. |
RecurrenceType |
getType()
Gets the type of the recurrence. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getDayOfMonth()
RecurrenceTypeEnum.MONTHLY
and RecurrenceTypeEnum.YEARLY
)
public DaysOfWeek getDaysOfWeek()
RecurrenceTypeEnum.WEEKLY
, RecurrenceTypeEnum.MONTHLY_NTH
and
RecurrenceTypeEnum.YEARLY_NTH
).
public RecurrenceInstance getInstance()
RecurrenceTypeEnum.MONTHLY_NTH
and RecurrenceTypeEnum.YEARLY_NTH
).
null
if not setpublic int getInterval()
public int getMonthOfYear()
RecurrenceTypeEnum.YEARLY
and RecurrenceTypeEnum.YEARLY_NTH
).
public int getOccurrences()
public java.util.Date getPatternStartDate()
public java.util.Date getPatternEndDate()
public RecurrenceType getType()
public RecurrenceEndType getEndType()
|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |