biweekly.property
Class DateStart

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

public class DateStart
extends DateOrDateTimeProperty

Defines the date that an event, free/busy component, or timezone component starts.

Examples:

 //date and time
 Date datetime = ...
 DateStart dtstart = new DateStart(datetime);
 
 //date
 Date date = ...
 DateStart dtstart = new DateStart(date, false);
 
 //local date and time (don't print a timezone)
 Date datetime = ...
 DateStart dtstart = new DateStart(datetime);
 dtstart.setLocalTime(true);
 
 //with timezone 
 Date datetime = ... 
 DateStart dtstart = new DateStart(datetime); 
 dtstart.setTimezoneId("America/New_York");
 
 //raw components 
 DateTimeComponents components = new DateTimeComponents(1999, 4, 4, 2, 0, 0, false);
 DateStart dtstart = new DateStart(components);
 

Author:
Michael Angstadt
Specification Reference:
RFC 5545 p.97-8

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

DateStart

public DateStart(Date startDate)
Creates a start date property.

Parameters:
startDate - the start date

DateStart

public DateStart(Date startDate,
                 boolean hasTime)
Creates a start date property.

Parameters:
startDate - the start date
hasTime - true to include the time component of the date, false not to

DateStart

public DateStart(DateTimeComponents components)
Creates a start date property.

Parameters:
components - the raw components of the date-time value


Copyright © 2013 Michael Angstadt. All Rights Reserved.