net.fortuna.ical4j.model
Interface TimeZoneRegistry
public interface TimeZoneRegistry
$Id: TimeZoneRegistry.java,v 1.4 2008/12/16 12:34:52 fortuna Exp $
Created on 18/09/2005
Implementors provide a list of timezone definitions applicable for use
with iCalendar objects.
void | clear() - Clears all registered timezones.
|
TimeZone | getTimeZone(String id) - Returns a timezone with the specified identifier.
|
void | register(TimeZone timezone) - Registers a new timezone for use with iCalendar objects.
|
clear
public void clear()
Clears all registered timezones.
getTimeZone
public TimeZone getTimeZone(String id)
Returns a timezone with the specified identifier.
id
- a timezone identifier
- a timezone matching the specified identifier. If no timezone
is registered with the specified identifier null is returned.
register
public 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.
timezone
- a timezone to be registered for use with iCalendar
objects