Package com.ibm.icu.impl
Class TimeZoneNamesImpl.ZNamesLoader
- java.lang.Object
-
- com.ibm.icu.impl.UResource.Sink
-
- com.ibm.icu.impl.TimeZoneNamesImpl.ZNamesLoader
-
- Enclosing class:
- TimeZoneNamesImpl
private static final class TimeZoneNamesImpl.ZNamesLoader extends UResource.Sink
-
-
Field Summary
Fields Modifier and Type Field Description private static TimeZoneNamesImpl.ZNamesLoader
DUMMY_LOADER
Does not load any names, for no-fallback handling.private java.lang.String[]
names
-
Constructor Summary
Constructors Modifier Constructor Description private
ZNamesLoader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.String[]
getNames()
(package private) void
loadMetaZone(ICUResourceBundle zoneStrings, java.lang.String mzID)
(package private) void
loadNames(ICUResourceBundle zoneStrings, java.lang.String key)
(package private) void
loadTimeZone(ICUResourceBundle zoneStrings, java.lang.String tzID)
private static TimeZoneNamesImpl.ZNames.NameTypeIndex
nameTypeIndexFromKey(UResource.Key key)
void
put(UResource.Key key, UResource.Value value, boolean noFallback)
Called once for each bundle (child-parent-...-root).private void
setNameIfEmpty(UResource.Key key, UResource.Value value)
-
-
-
Field Detail
-
names
private java.lang.String[] names
-
DUMMY_LOADER
private static TimeZoneNamesImpl.ZNamesLoader DUMMY_LOADER
Does not load any names, for no-fallback handling.
-
-
Method Detail
-
loadMetaZone
void loadMetaZone(ICUResourceBundle zoneStrings, java.lang.String mzID)
-
loadTimeZone
void loadTimeZone(ICUResourceBundle zoneStrings, java.lang.String tzID)
-
loadNames
void loadNames(ICUResourceBundle zoneStrings, java.lang.String key)
-
nameTypeIndexFromKey
private static TimeZoneNamesImpl.ZNames.NameTypeIndex nameTypeIndexFromKey(UResource.Key key)
-
setNameIfEmpty
private void setNameIfEmpty(UResource.Key key, UResource.Value value)
-
put
public void put(UResource.Key key, UResource.Value value, boolean noFallback)
Description copied from class:UResource.Sink
Called once for each bundle (child-parent-...-root). The value is normally an array or table resource, and implementations of this method normally iterate over the tree of resource items stored there.- Specified by:
put
in classUResource.Sink
- Parameters:
key
- Initially the key string of the enumeration-start resource. Empty if the enumeration starts at the top level of the bundle. Reuse for output values from Array and Table getters.value
- Call getArray() or getTable() as appropriate. Then reuse for output values from Array and Table getters.noFallback
- true if the bundle has no parent; that is, its top-level table has the nofallback attribute, or it is the root bundle of a locale tree.
-
getNames
private java.lang.String[] getNames()
-
-