Package net.fortuna.ical4j.model
Interface TimeZoneRegistry
-
- All Known Implementing Classes:
TimeZoneRegistryImpl
public interface TimeZoneRegistry
$Id$ Created on 18/09/2005 Implementors provide a list of timezone definitions applicable for use with iCalendar objects.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear()
Clears all registered timezones.static ZoneId
getGlobalZoneId(String tzId)
TimeZone
getTimeZone(String id)
Returns a timezone with the specified identifier.String
getTzId(String zoneId)
ZoneId
getZoneId(String tzId)
Map<String,ZoneRules>
getZoneRules()
void
register(TimeZone timezone)
Registers a new timezone for use with iCalendar objects.void
register(TimeZone timezone, boolean update)
Registers a new timezone for use with iCalendar objects.
-
-
-
Method Detail
-
register
void register(TimeZone timezone)
Registers a new timezone for use with iCalendar objects. If a timezone with the same identifier is already registered this timezone will take precedence.- Parameters:
timezone
- a timezone to be registered for use with iCalendar objects
-
register
void register(TimeZone timezone, boolean update)
Registers a new timezone for use with iCalendar objects. If a timezone with the same identifier is already registered this timezone will take precedence.- Parameters:
timezone
- a timezone to be registered for use with iCalendar objectsupdate
- attempt to update the definition from any specified TZURL property if true
-
clear
void clear()
Clears all registered timezones.
-
getTimeZone
TimeZone getTimeZone(String id)
Returns a timezone with the specified identifier.- Parameters:
id
- a timezone identifier- Returns:
- a timezone matching the specified identifier. If no timezone is registered with the specified identifier null is returned.
-
-