com.ibm.icu.text
Class TimeZoneNames.MatchInfo

java.lang.Object
  extended by com.ibm.icu.text.TimeZoneNames.MatchInfo
Enclosing class:
TimeZoneNames

Deprecated. This API might change or be removed in a future release.

public static class TimeZoneNames.MatchInfo
extends Object

A MatchInfo represents a time zone name match used by TimeZoneNames.find(String, int, EnumSet).

Status:
Technology Preview. This API is still in the early stages of development. Use at your own risk.

Constructor Summary
TimeZoneNames.MatchInfo(TimeZoneNames.NameType nameType, String tzID, String mzID, int matchLength)
          Deprecated. This API might change or be removed in a future release.
 
Method Summary
 int matchLength()
          Deprecated. This API might change or be removed in a future release.
 String mzID()
          Deprecated. This API might change or be removed in a future release.
 TimeZoneNames.NameType nameType()
          Deprecated. This API might change or be removed in a future release.
 String tzID()
          Deprecated. This API might change or be removed in a future release.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeZoneNames.MatchInfo

public TimeZoneNames.MatchInfo(TimeZoneNames.NameType nameType,
                               String tzID,
                               String mzID,
                               int matchLength)
Deprecated. This API might change or be removed in a future release.

Constructing a MatchInfo.

Parameters:
nameType - the name type enum.
tzID - the time zone ID, or null
mzID - the meta zone ID, or null
matchLength - the match length.
Throws:
IllegalArgumentException - when 1) nameType is null, or 2) both tzID and mzID are null, or 3) matchLength is 0 or smaller.
See Also:
TimeZoneNames.NameType
Status:
Technology Preview. This API is still in the early stages of development. Use at your own risk.
Method Detail

tzID

public String tzID()
Deprecated. This API might change or be removed in a future release.

Returns the time zone ID, or null if not available.

Note: A MatchInfo must have either a time zone ID or a meta zone ID.

Returns:
the time zone ID, or null.
See Also:
mzID()
Status:
Technology Preview. This API is still in the early stages of development. Use at your own risk.

mzID

public String mzID()
Deprecated. This API might change or be removed in a future release.

Returns the meta zone ID, or null if not available.

Note: A MatchInfo must have either a time zone ID or a meta zone ID.

Returns:
the meta zone ID, or null.
See Also:
tzID()
Status:
Technology Preview. This API is still in the early stages of development. Use at your own risk.

nameType

public TimeZoneNames.NameType nameType()
Deprecated. This API might change or be removed in a future release.

Returns the time zone name type.

Returns:
the time zone name type enum.
See Also:
TimeZoneNames.NameType
Status:
Technology Preview. This API is still in the early stages of development. Use at your own risk.

matchLength

public int matchLength()
Deprecated. This API might change or be removed in a future release.

Returns the match length.

Returns:
the match length.
Status:
Technology Preview. This API is still in the early stages of development. Use at your own risk.


Copyright (c) 2011 IBM Corporation and others.