Module ical4j.core

Class RRule<T extends Temporal>

All Implemented Interfaces:
Serializable, Comparable<Property>, FluentProperty, Prototype<Property>

public class RRule<T extends Temporal> extends Property
$Id$

Created: [Apr 6, 2004]

Defines an RRULE iCalendar component property.

See Also:
  • Constructor Details

    • RRule

      public RRule()
      Default constructor.
    • RRule

      public RRule(Frequency frequency)
    • RRule

      public RRule(String value)
      Parameters:
      value - a rule string
    • RRule

      public RRule(ParameterList aList, String aValue)
      Parameters:
      aList - a list of parameters for this component
      aValue - a value string for this component
      See Also:
    • RRule

      public RRule(Recur<T> aRecur)
      Parameters:
      aRecur - a recurrence value
    • RRule

      public RRule(ParameterList aList, Recur<T> aRecur)
      Parameters:
      aList - a list of parameters for this component
      aRecur - a recurrence value
  • Method Details

    • getRecur

      public final Recur<T> getRecur()
      Returns:
      Returns the recur.
    • setRecur

      public void setRecur(Recur<T> recur)
    • setValue

      public void setValue(String aValue)
      Sets the current value of the property.
      Specified by:
      setValue in class Property
      Parameters:
      aValue - a string representation of the property value
    • getValue

      public final String getValue()
      Specified by:
      getValue in class Content
      Returns:
      the content value
    • validate

      public ValidationResult validate() throws ValidationException
      Description copied from class: Property
      Perform validation on a property.
      Specified by:
      validate in class Property
      Throws:
      ValidationException - where the property is not in a valid state
    • newFactory

      protected PropertyFactory<RRule<T>> newFactory()
      Description copied from class: Property
      Returns a new property factory used to create deep copies.
      Specified by:
      newFactory in class Property
      Returns:
      a property factory instance