biweekly.property
Class PercentComplete

java.lang.Object
  extended by biweekly.property.ICalProperty
      extended by biweekly.property.ValuedProperty<Integer>
          extended by biweekly.property.IntegerProperty
              extended by biweekly.property.PercentComplete

public class PercentComplete
extends IntegerProperty

Defines a to-do task's level of completion.

Examples:

 PercentComplete percentComplete = new PercentComplete(50); //50%
 
 VTodo todo = new VTodo();
 todo.setPercentComplete(50);
 

Author:
Michael Angstadt
Specification Reference:
RFC 5545 p.88-9

Field Summary
 
Fields inherited from class biweekly.property.ValuedProperty
value
 
Fields inherited from class biweekly.property.ICalProperty
parameters
 
Constructor Summary
PercentComplete(Integer percent)
          Creates a percent complete 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

PercentComplete

public PercentComplete(Integer percent)
Creates a percent complete property.

Parameters:
percent - the percentage (e.g. "50" for 50%)
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 ValuedProperty<Integer>
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.