public class CalendarRecurrence extends Object implements com.aspose.ms.System.IEquatable<CalendarRecurrence>
The main class, represents an iCalendar recurrence.
Constructor and Description |
---|
CalendarRecurrence()
Initializes a new instance of the
CalendarRecurrence class. |
CalendarRecurrence(String pattern)
Initializes a new instance of the
CalendarRecurrence class. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(CalendarRecurrence other)
Determines whether the specified
CalendarRecurrence is equal to this instance. |
boolean |
equals(Object obj)
Determines whether the specified Object is equal to the current Object.
|
static CalendarRecurrence |
fromiCalendar(String pattern)
Gets a recurrence pattern from iCalendar string.
|
static CalendarRecurrence |
fromRecurrence(String xmlString)
Gets a recurrence pattern from XML pattern string.
|
static CalendarRecurrence |
fromRecurrence(com.aspose.ms.System.Xml.XmlElement xmlElement)
Gets a recurrence pattern from XmlElement.
|
DateCollection |
generateOccurrences()
Generates the occurrences.
|
DateCollection |
generateOccurrences(Date rangeStart,
Date rangeEnd)
Generates the occurrences.
|
DateCollection |
generateOccurrences(Date rangeStart,
Date rangeEnd,
int nNextOccurrences)
Generates n next occurrences.
|
DateCollection |
generateOccurrences(int nNextOccurrences)
Generates n next occurrences.
|
Date |
getEndDate()
Gets or sets the end date.
|
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()
Gets or sets the start date.
|
int |
hashCode()
Returns a hash code for this instance.
|
static boolean |
op_Equality(CalendarRecurrence left,
CalendarRecurrence right)
Implements the operator ==.
|
static boolean |
op_Inequality(CalendarRecurrence left,
CalendarRecurrence right)
Implements the operator !=.
|
void |
setEndDate(Date value)
Gets or sets the end date.
|
void |
setStartDate(Date value)
Gets or sets the start date.
|
String |
toiCalendar()
To iCalendar string.
|
public CalendarRecurrence()
Initializes a new instance of the CalendarRecurrence
class.
public CalendarRecurrence(String pattern)
Initializes a new instance of the CalendarRecurrence
class.
pattern
- The pattern.public final DateCollection generateOccurrences()
Generates the occurrences.
DateCollection
.Exception
- throws if StartDate is not set.public final DateCollection generateOccurrences(int nNextOccurrences)
Generates n next occurrences.
nNextOccurrences
- The amount of needed occurrences.DateCollection
.Exception
- throws if StartDate is not set.com.aspose.ms.System.ArgumentOutOfRangeException
- throws if amount of needed occurrences is less or equal zero.public final DateCollection generateOccurrences(Date rangeStart, Date rangeEnd)
Generates the occurrences.
rangeStart
- The range start.rangeEnd
- The range end.DateCollection
.Exception
- throws if StartDate is not setpublic final DateCollection generateOccurrences(Date rangeStart, Date rangeEnd, int nNextOccurrences)
Generates n next occurrences.
rangeStart
- The range start.rangeEnd
- The range end.nNextOccurrences
- The amount of needed occurrences.DateCollection
.Exception
- throws if StartDate is not set.com.aspose.ms.System.ArgumentOutOfRangeException
- throws if amount of needed occurrences is less or equal zero.public static CalendarRecurrence fromiCalendar(String pattern)
Gets a recurrence pattern from iCalendar string.
pattern
- StringString
representation of iCalendar.CalendarRecurrence
.public static CalendarRecurrence fromRecurrence(String xmlString)
Gets a recurrence pattern from XML pattern string.
xmlString
- XML stringString
of pattern.CalendarRecurrence
.public static CalendarRecurrence fromRecurrence(com.aspose.ms.System.Xml.XmlElement xmlElement)
Gets a recurrence pattern from XmlElement.
xmlElement
- XmlElementXmlElement
of pattern.CalendarRecurrence
.public final String toiCalendar()
To iCalendar string.
String
representation of RecurrencePattern.public final Date getStartDate()
Gets or sets the start date.
Value: The start date.public final void setStartDate(Date value)
Gets or sets the start date.
Value: The start date.public final Date getEndDate()
Gets or sets the end date.
Value: The end date.public final void setEndDate(Date value)
Gets or sets the end date.
Value: The end date.public final RecurrenceRuleCollection getRRules()
Gets the R rules.
Value: The R rules.public final RecurrenceRuleCollection getExRules()
Gets the ex rules.
Value: The ex rules.public final DateCollection getRDates()
Gets the R dates.
Value: The R dates.public final DateCollection getExDates()
Gets the ex dates.
Value: The ex dates.public boolean equals(CalendarRecurrence other)
Determines whether the specified CalendarRecurrence
is equal to this instance.
other
- The CalendarRecurrence
to compare with this instance.true
if the specified CalendarRecurrence
is equal to this instance; otherwise, false
.public boolean equals(Object obj)
Determines whether the specified Object is equal to the current Object.
equals
in interface com.aspose.ms.System.IEquatable<CalendarRecurrence>
equals
in class Object
obj
- The Object to compare with the current Object.public int hashCode()
Returns a hash code for this instance.
public static boolean op_Equality(CalendarRecurrence left, CalendarRecurrence right)
Implements the operator ==.
left
- The left.right
- The right.public static boolean op_Inequality(CalendarRecurrence left, CalendarRecurrence right)
Implements the operator !=.
left
- The left.right
- The right.