biweekly.property
Class TimezoneName
java.lang.Object
biweekly.property.ICalProperty
biweekly.property.ValuedProperty<String>
biweekly.property.TextProperty
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimezoneName
public TimezoneName(String name)
- Creates a timezone name property.
- Parameters:
name
- the timezone name (e.g. "EST")
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.