com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class CalendarRecurrence

  • All Implemented Interfaces:
    com.aspose.ms.System.IEquatable<CalendarRecurrence>


    public class CalendarRecurrence
    extends Object
    implements com.aspose.ms.System.IEquatable<CalendarRecurrence>

    The main class, represents an iCalendar recurrence.

    • Constructor Detail

      • CalendarRecurrence

        public CalendarRecurrence()

        Initializes a new instance of the CalendarRecurrence class.

      • CalendarRecurrence

        public CalendarRecurrence(String pattern)

        Initializes a new instance of the CalendarRecurrence class.

        Parameters:
        pattern - The pattern.
    • Method Detail

      • generateOccurrences

        public final DateCollection generateOccurrences()

        Generates the occurrences.

        Returns:
        Collection of datesDateCollection.
        Throws:
        Exception - throws if StartDate is not set.
      • generateOccurrences

        public final DateCollection generateOccurrences(int nNextOccurrences)

        Generates n next occurrences.

        Parameters:
        nNextOccurrences - The amount of needed occurrences.
        Returns:
        Collection of datesDateCollection.
        Throws:
        Exception - throws if StartDate is not set.
        com.aspose.ms.System.ArgumentOutOfRangeException - throws if amount of needed occurrences is less or equal zero.
      • generateOccurrences

        public final DateCollection generateOccurrences(Date rangeStart,
                                         Date rangeEnd)

        Generates the occurrences.

        Parameters:
        rangeStart - The range start.
        rangeEnd - The range end.
        Returns:
        Collection of datesDateCollection.
        Throws:
        Exception - throws if StartDate is not set
      • generateOccurrences

        public final DateCollection generateOccurrences(Date rangeStart,
                                         Date rangeEnd,
                                         int nNextOccurrences)

        Generates n next occurrences.

        Parameters:
        rangeStart - The range start.
        rangeEnd - The range end.
        nNextOccurrences - The amount of needed occurrences.
        Returns:
        Collection of datesDateCollection.
        Throws:
        Exception - throws if StartDate is not set.
        com.aspose.ms.System.ArgumentOutOfRangeException - throws if amount of needed occurrences is less or equal zero.
      • fromRecurrence

        public static CalendarRecurrence fromRecurrence(com.aspose.ms.System.Xml.XmlElement xmlElement)

        Gets a recurrence pattern from XmlElement.

        Parameters:
        xmlElement - XmlElementXmlElement of pattern.
        Returns:
        Recurrence patternCalendarRecurrence.
      • toiCalendar

        public final String toiCalendar()

        To iCalendar string.

        Returns:
        StringString representation of RecurrencePattern.
      • getStartDate

        public final Date getStartDate()

        Gets or sets the start date.

        Value: The start date.
      • setStartDate

        public final void setStartDate(Date value)

        Gets or sets the start date.

        Value: The start date.
      • getEndDate

        public final Date getEndDate()

        Gets or sets the end date.

        Value: The end date.
      • setEndDate

        public final void setEndDate(Date value)

        Gets or sets the end date.

        Value: The end date.
      • getRDates

        public final DateCollection getRDates()

        Gets the R dates.

        Value: The R dates.
      • getExDates

        public final DateCollection getExDates()

        Gets the ex dates.

        Value: The ex dates.
      • equals

        public boolean equals(Object obj)

        Determines whether the specified Object is equal to the current Object.

        Specified by:
        equals in interface com.aspose.ms.System.IEquatable<CalendarRecurrence>
        Overrides:
        equals in class Object
        Parameters:
        obj - The Object to compare with the current Object.
        Returns:
        Returns a boolean indicating if the passed in object obj is Equal to this.
      • hashCode

        public int hashCode()

        Returns a hash code for this instance.

        Overrides:
        hashCode in class Object
        Returns:
        A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
      • op_Equality

        public static boolean op_Equality(CalendarRecurrence left,
                          CalendarRecurrence right)

        Implements the operator ==.

        Parameters:
        left - The left.
        right - The right.
        Returns:
        The result of the operator.
      • op_Inequality

        public static boolean op_Inequality(CalendarRecurrence left,
                            CalendarRecurrence right)

        Implements the operator !=.

        Parameters:
        left - The left.
        right - The right.
        Returns:
        The result of the operator.