biweekly.property
Class TimezoneName

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

public class TimezoneName
extends TextProperty

Defines a traditional, non-standard name for a timezone observance (for example, "Eastern Standard Time" for standard time on the US east coast).

Examples:

 //creating a new property
 TimezoneName tzname = new TimezoneName("Eastern Standard Time");
 
 //usage in a VTIMEZONE component
 VTimezone timezone = new VTimezone("East Coast");
 
 StandardTime standard = new StandardTime();
 standard.setTimezoneName("Eastern Standard Time");
 ...
 timezone.addStandardTime(standard);
 

Author:
Michael Angstadt
Specification Reference:
RFC 5545 p.103-4

Field Summary
 
Fields inherited from class biweekly.property.ValuedProperty
value
 
Fields inherited from class biweekly.property.ICalProperty
parameters
 
Constructor Summary
TimezoneName(String name)
          Creates a timezone name property.
 
Method Summary
 String getLanguage()
          Gets the language that the property value is written in.
 void setLanguage(String language)
          Sets the language that the property value is written in.
 
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

TimezoneName

public TimezoneName(String name)
Creates a timezone name property.

Parameters:
name - the timezone name (e.g. "EST")
Method Detail

getLanguage

public String getLanguage()
Description copied from class: ICalProperty
Gets the language that the property value is written in.

Returns:
the language (e.g. "en" for English) or null if not set

setLanguage

public void setLanguage(String language)
Description copied from class: ICalProperty
Sets the language that the property value is written in.

Parameters:
language - the language (e.g. "en" for English) or null to remove


Copyright © 2013 Michael Angstadt. All Rights Reserved.