Package com.ibm.icu.impl
Class ICUResourceBundleImpl.ResourceContainer
- java.lang.Object
-
- java.util.ResourceBundle
-
- com.ibm.icu.util.UResourceBundle
-
- com.ibm.icu.impl.ICUResourceBundle
-
- com.ibm.icu.impl.ICUResourceBundleImpl
-
- com.ibm.icu.impl.ICUResourceBundleImpl.ResourceContainer
-
- Direct Known Subclasses:
ICUResourceBundleImpl.ResourceArray
,ICUResourceBundleImpl.ResourceTable
- Enclosing class:
- ICUResourceBundleImpl
abstract static class ICUResourceBundleImpl.ResourceContainer extends ICUResourceBundleImpl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.ibm.icu.impl.ICUResourceBundleImpl
ICUResourceBundleImpl.ResourceArray, ICUResourceBundleImpl.ResourceContainer, ICUResourceBundleImpl.ResourceTable
-
Nested classes/interfaces inherited from class com.ibm.icu.impl.ICUResourceBundle
ICUResourceBundle.OpenType, ICUResourceBundle.WholeBundle
-
-
Field Summary
Fields Modifier and Type Field Description protected ICUResourceBundleReader.Container
value
-
Fields inherited from class com.ibm.icu.impl.ICUResourceBundleImpl
resource
-
Fields inherited from class com.ibm.icu.impl.ICUResourceBundle
ALIAS, ARRAY16, ICU_DATA_CLASS_LOADER, INSTALLED_LOCALES, key, NO_INHERITANCE_MARKER, RES_BOGUS, STRING_V2, TABLE16, TABLE32, wholeBundle
-
Fields inherited from class com.ibm.icu.util.UResourceBundle
ARRAY, BINARY, INT, INT_VECTOR, NONE, STRING, TABLE
-
-
Constructor Summary
Constructors Constructor Description ResourceContainer(ICUResourceBundle.WholeBundle wholeBundle)
ResourceContainer(ICUResourceBundleImpl container, java.lang.String key, int resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected UResourceBundle
createBundleObject(int index, java.lang.String resKey, java.util.HashMap<java.lang.String,java.lang.String> aliasesVisited, UResourceBundle requested)
protected int
getContainerResource(int index)
int
getSize()
Returns the size of a resource.java.lang.String
getString(int index)
Returns the string in a given resource at the specified index.-
Methods inherited from class com.ibm.icu.impl.ICUResourceBundleImpl
createBundleObject, getResource
-
Methods inherited from class com.ibm.icu.impl.ICUResourceBundle
at, at, createBundle, equals, findStringWithFallback, findTopLevel, findTopLevel, findWithFallback, get, getAliasedResource, getAliasedResource, getAllChildrenWithFallback, getAllItemsWithFallback, getAllItemsWithFallbackNoFail, getAvailableLocaleNameSet, getAvailableLocaleNameSet, getAvailableLocales, getAvailableLocales, getAvailableLocales, getAvailableLocales, getAvailableULocales, getAvailableULocales, getAvailableULocales, getAvailableULocales, getBaseName, getBundleInstance, getBundleInstance, getBundleInstance, getFullLocaleNameSet, getFullLocaleNameSet, getFunctionalEquivalent, getKey, getKeywordValues, getLocale, getLocaleID, getLocaleList, getParent, getParentLocaleID, getStringWithFallback, getTopLevelKeySet, getULocale, getValueWithFallback, getWithFallback, handleGetKeys, hashCode, isRoot, isTopLevelResource, setParent, setTopLevelKeySet
-
Methods inherited from class com.ibm.icu.util.UResourceBundle
get, get, getBinary, getBinary, getBundleInstance, getBundleInstance, getBundleInstance, getBundleInstance, getBundleInstance, getBundleInstance, getBundleInstance, getBundleInstance, getInt, getIntVector, getIterator, getKeys, getString, getStringArray, getType, getUInt, getVersion, handleGet, handleGet, handleGetObject, handleGetStringArray, handleKeySet, instantiateBundle, keySet
-
-
-
-
Field Detail
-
value
protected ICUResourceBundleReader.Container value
-
-
Constructor Detail
-
ResourceContainer
ResourceContainer(ICUResourceBundleImpl container, java.lang.String key, int resource)
-
ResourceContainer
ResourceContainer(ICUResourceBundle.WholeBundle wholeBundle)
-
-
Method Detail
-
getSize
public int getSize()
Description copied from class:UResourceBundle
Returns the size of a resource. Size for scalar types is always 1, and for vector/table types is the number of child resources.
Note: Integer array is treated as a scalar type. There are no APIs to access individual members of an integer array. It is always returned as a whole.- Overrides:
getSize
in classUResourceBundle
- Returns:
- number of resources in a given resource.
-
getString
public java.lang.String getString(int index)
Description copied from class:UResourceBundle
Returns the string in a given resource at the specified index.- Overrides:
getString
in classUResourceBundle
- Parameters:
index
- an index to the wanted string.- Returns:
- a string which lives in the resource.
-
getContainerResource
protected int getContainerResource(int index)
-
createBundleObject
protected UResourceBundle createBundleObject(int index, java.lang.String resKey, java.util.HashMap<java.lang.String,java.lang.String> aliasesVisited, UResourceBundle requested)
-
-