Class ExRule

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

public class ExRule extends Property
$Id$

Created: [Apr 6, 2004]

Defines a EXRULE iCalendar component property.

See Also:
  • Constructor Details

    • ExRule

      public ExRule()
      Default constructor.
    • ExRule

      public ExRule(ParameterList aList, String aValue) throws ParseException
      Parameters:
      aList - a list of parameters for this component
      aValue - a value string for this component
      Throws:
      ParseException - thrown when the specified string is not a valid representaton of a recurrence
      See Also:
    • ExRule

      public ExRule(Recur aRecur)
      Parameters:
      aRecur - a recurrence
    • ExRule

      public ExRule(ParameterList aList, Recur aRecur)
      Parameters:
      aList - a list of parameters for this component
      aRecur - a recurrence
  • Method Details

    • getRecur

      public final Recur getRecur()
      Returns:
      Returns the recur.
    • setValue

      public final void setValue(String aValue) throws ParseException
      Sets the current value of the property.
      Specified by:
      setValue in class Property
      Parameters:
      aValue - a string representation of the property value
      Throws:
      ParseException - possibly thrown by setting the value of certain properties
    • getValue

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

      public final void setRecur(Recur recur)
      Parameters:
      recur - The recur to set.
    • 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