biweekly.property
Class DateEnd

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

public class DateEnd
extends DateOrDateTimeProperty

Defines the date that an event or free/busy component ends.

Examples:

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

Author:
Michael Angstadt
Specification Reference:
RFC 5545 p.95-6

Field Summary
 
Fields inherited from class biweekly.property.DateOrDateTimeProperty
hasTime, localTime, rawComponents, value
 
Fields inherited from class biweekly.property.ICalProperty
parameters
 
Constructor Summary
DateEnd(Date endDate)
          Creates a date end property.
DateEnd(Date endDate, boolean hasTime)
          Creates a date end 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

DateEnd

public DateEnd(Date endDate)
Creates a date end property.

Parameters:
endDate - the end date

DateEnd

public DateEnd(Date endDate,
               boolean hasTime)
Creates a date end property.

Parameters:
endDate - the end date
hasTime - true to include the time component of the date, false not to


Copyright © 2013 Michael Angstadt. All Rights Reserved.