biweekly.property
Class ExceptionRule

java.lang.Object
  extended by biweekly.property.ICalProperty
      extended by biweekly.property.ValuedProperty<Recurrence>
          extended by biweekly.property.RecurrenceProperty
              extended by biweekly.property.ExceptionRule

public class ExceptionRule
extends RecurrenceProperty

Defines an exception to a RecurrenceRule.

Note that this property has been removed from the latest version of the iCal specification. Its use should be avoided.

Examples:

 //"bi-weekly"
 Recurrence recur = new Recurrence.Builder(Frequency.WEEKLY).interval(2).build();
 ExceptionRule exrule = new ExceptionRule(recur);
 

Author:
Michael Angstadt
Specification Reference:
RFC 2445 p.114-15

Field Summary
 
Fields inherited from class biweekly.property.ValuedProperty
value
 
Fields inherited from class biweekly.property.ICalProperty
parameters
 
Constructor Summary
ExceptionRule(Recurrence recur)
          Creates a new exception rule property.
 
Method Summary
protected  void validate(List<ICalComponent> components, List<String> warnings)
          Checks the property for data consistency problems or deviations from the spec.
 
Methods inherited from class biweekly.property.ValuedProperty
getValue, setValue
 
Methods inherited from class biweekly.property.ICalProperty
addParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionRule

public ExceptionRule(Recurrence recur)
Creates a new exception rule property.

Parameters:
recur - the recurrence rule
Method Detail

validate

protected void validate(List<ICalComponent> components,
                        List<String> warnings)
Description copied from class: ICalProperty
Checks the property for data consistency problems or deviations from the spec. Meant to be overridden by child classes that wish to provide validation logic.

Overrides:
validate in class RecurrenceProperty
Parameters:
components - the hierarchy of components that the property belongs to
warnings - the list to add the warnings to


Copyright © 2013 Michael Angstadt. All Rights Reserved.