biweekly.property
Class DateDue

java.lang.Object
  extended by biweekly.property.ICalProperty
      extended by biweekly.property.DateOrDateTimeProperty
          extended by biweekly.property.DateDue

public class DateDue
extends DateOrDateTimeProperty

Defines the date that a to-do task is due by.

Examples:

 //date and time
 Date datetime = ...
 DateDue due = new DateDue(datetime);
 
 //date
 Date date = ...
 DateDue due = new DateDue(date, false);
 
 //with timezone 
 Date datetime = ... 
 DateDue due = new DateDue(datetime); 
 due.setTimezoneId("America/New_York");
 

Author:
Michael Angstadt
Specification Reference:
RFC 5545 p.96-7

Field Summary
 
Fields inherited from class biweekly.property.DateOrDateTimeProperty
hasTime, localTime, rawComponents, value
 
Fields inherited from class biweekly.property.ICalProperty
parameters
 
Constructor Summary
DateDue(Date dueDate)
          Creates a due date property.
DateDue(Date dueDate, boolean hasTime)
          Creates a due date property.
 
Method Summary
 
Methods inherited from class biweekly.property.DateOrDateTimeProperty
getRawComponents, getTimezoneId, getValue, hasTime, isLocalTime, setLocalTime, setRawComponents, setTimezone, setTimezoneId, setValue, validate
 
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

DateDue

public DateDue(Date dueDate)
Creates a due date property.

Parameters:
dueDate - the due date

DateDue

public DateDue(Date dueDate,
               boolean hasTime)
Creates a due date property.

Parameters:
dueDate - the due date
hasTime - true to include the time component of the date, false not to


Copyright © 2013 Michael Angstadt. All Rights Reserved.