biweekly.property
Class TimezoneId

java.lang.Object
  extended by biweekly.property.ICalProperty
      extended by biweekly.property.ValuedProperty<String>
          extended by biweekly.property.TextProperty
              extended by biweekly.property.TimezoneId

public class TimezoneId
extends TextProperty

Defines a unique identifier for a VTimezone component. The identifier must be unique within the scope of the iCalendar object.

Date-time properties that support timezones (such as DateStart) can format their date-time values according to the rules defined in the VTimezone component, and then use this ID to reference the component by assigning the ID to a TZID parameter.

All properties that support timezones will have get/setTimezoneId() methods. If a property has no timezone assigned to it, it is written in UTC.

Examples:

 VTimezone timezone = new VTimezone("Eastern");
 
 Date start = ...;
 DateStart dtstart = new DateStart(start);
 dtStart.setTimezoneId("Eastern");
 

Author:
Michael Angstadt
Specification Reference:
RFC 5545 p.102-3

Field Summary
 
Fields inherited from class biweekly.property.ValuedProperty
value
 
Fields inherited from class biweekly.property.ICalProperty
parameters
 
Constructor Summary
TimezoneId(String timezone)
          Creates a timezone identifier property.
 
Method Summary
 
Methods inherited from class biweekly.property.ValuedProperty
getValue, 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

TimezoneId

public TimezoneId(String timezone)
Creates a timezone identifier property.

Parameters:
timezone - the timezone identifier


Copyright © 2013 Michael Angstadt. All Rights Reserved.