public class RecurrencePattern extends Object
The main class, represents a recurrence pattern.
Constructor and Description |
---|
RecurrencePattern()
Initializes a new instance of the
RecurrencePattern class. |
RecurrencePattern(String pattern)
Initializes a new instance of the
RecurrencePattern class. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
boolean |
equals(RecurrencePattern other) |
static RecurrencePattern |
fromiCalendar(String pattern)
Gets a recurrence pattern from iCalendar string.
|
DateCollection |
generateOccurrences()
Generates the occurrences.
|
DateCollection |
generateOccurrences(Date rangeStart,
Date rangeEnd) |
DateCollection |
generateOccurrences(Date rangeStart,
Date rangeEnd,
int nNextOccurrences) |
DateCollection |
generateOccurrences(int nNextOccurrences)
Generates n next occurrences.
|
Date |
getEndDate() |
DateCollection |
getExDates()
Gets the ex dates.
|
RecurrenceRuleCollection |
getExRules()
Gets the ex rules.
|
DateCollection |
getRDates()
Gets the R dates.
|
RecurrenceRuleCollection |
getRRules()
Gets the R rules.
|
Date |
getStartDate() |
int |
hashCode()
Returns a hash code for this instance.
|
static boolean |
op_Equality(RecurrencePattern left,
RecurrencePattern right)
Implements the operator ==.
|
static boolean |
op_Inequality(RecurrencePattern left,
RecurrencePattern right)
Implements the operator !=.
|
void |
setEndDate(Date value) |
void |
setStartDate(Date value) |
String |
toiCalendar()
To iCalendar string.
|
public RecurrencePattern()
Initializes a new instance of the RecurrencePattern
class.
public RecurrencePattern(String pattern)
Initializes a new instance of the RecurrencePattern
class.
pattern
- The pattern.public DateCollection generateOccurrences()
Generates the occurrences.
Aspose.iCalendar.DateCollection
.RuntimeException
- throws if StartDate is not set.public DateCollection generateOccurrences(int nNextOccurrences)
Generates n next occurrences.
nNextOccurrences
- The amount of needed occurrences.Aspose.iCalendar.DateCollection
.RuntimeException
- throws if StartDate is not set.com.aspose.email.ms.System.IllegalArgumentException
- throws if amount of needed occurrences is less or equal zero.public DateCollection generateOccurrences(Date rangeStart, Date rangeEnd)
public DateCollection generateOccurrences(Date rangeStart, Date rangeEnd, int nNextOccurrences)
public static RecurrencePattern fromiCalendar(String pattern)
Gets a recurrence pattern from iCalendar string.
pattern
- StringSystem.String
representation of iCalendar.Aspose.iCalendar.RecurrencePattern
.public String toiCalendar()
To iCalendar string.
System.String
representation of RecurrencePattern.public Date getStartDate()
public void setStartDate(Date value)
public Date getEndDate()
public void setEndDate(Date value)
public RecurrenceRuleCollection getRRules()
Gets the R rules.
Value: The R rules.public RecurrenceRuleCollection getExRules()
Gets the ex rules.
Value: The ex rules.public DateCollection getRDates()
Gets the R dates.
Value: The R dates.public DateCollection getExDates()
Gets the ex dates.
Value: The ex dates.public boolean equals(RecurrencePattern other)
public int hashCode()
Returns a hash code for this instance.
public static boolean op_Equality(RecurrencePattern left, RecurrencePattern right)
Implements the operator ==.
left
- The left.right
- The right.public static boolean op_Inequality(RecurrencePattern left, RecurrencePattern right)
Implements the operator !=.
left
- The left.right
- The right.Copyright (c) 2008-2014 Aspose Pty Ltd. All Rights Reserved.