Package com.ibm.icu.impl
Class ICUResourceBundleImpl.ResourceTable
- 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
-
- com.ibm.icu.impl.ICUResourceBundleImpl.ResourceTable
-
- Enclosing class:
- ICUResourceBundleImpl
static class ICUResourceBundleImpl.ResourceTable extends ICUResourceBundleImpl.ResourceContainer
-
-
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 inherited from class com.ibm.icu.impl.ICUResourceBundleImpl.ResourceContainer
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 ResourceTable(ICUResourceBundle.WholeBundle wholeBundle, int rootRes)
Constructor for the root table of a bundle.ResourceTable(ICUResourceBundleImpl container, java.lang.String key, int resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.lang.String
findString(java.lang.String key)
Returns a String if found, or null if not found or if the key item is not a string.protected java.lang.String
getKey(int index)
int
getType()
Returns the type of a resource.protected UResourceBundle
handleGet(int index, java.util.HashMap<java.lang.String,java.lang.String> aliasesVisited, UResourceBundle requested)
Actual worker method for fetching a resource based on the given index.protected UResourceBundle
handleGet(java.lang.String resKey, java.util.HashMap<java.lang.String,java.lang.String> aliasesVisited, UResourceBundle requested)
Actual worker method for fetching a resource based on the given key.protected java.lang.Object
handleGetObject(java.lang.String key)
protected java.util.Set<java.lang.String>
handleKeySet()
Returns a Set of the keys contained only in this ResourceBundle.-
Methods inherited from class com.ibm.icu.impl.ICUResourceBundleImpl.ResourceContainer
createBundleObject, getContainerResource, getSize, getString
-
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, getUInt, getVersion, handleGetStringArray, instantiateBundle, keySet
-
-
-
-
Constructor Detail
-
ResourceTable
ResourceTable(ICUResourceBundleImpl container, java.lang.String key, int resource)
-
ResourceTable
ResourceTable(ICUResourceBundle.WholeBundle wholeBundle, int rootRes)
Constructor for the root table of a bundle.
-
-
Method Detail
-
getType
public int getType()
Description copied from class:UResourceBundle
- Overrides:
getType
in classUResourceBundle
- Returns:
- type of the given resource.
-
getKey
protected java.lang.String getKey(int index)
-
handleKeySet
protected java.util.Set<java.lang.String> handleKeySet()
Description copied from class:UResourceBundle
Returns a Set of the keys contained only in this ResourceBundle. This does not include further keys from parent bundles.- Overrides:
handleKeySet
in classUResourceBundle
- Returns:
- a Set of the keys contained only in this ResourceBundle, which is empty if this is not a bundle or a table resource
-
handleGet
protected UResourceBundle handleGet(java.lang.String resKey, java.util.HashMap<java.lang.String,java.lang.String> aliasesVisited, UResourceBundle requested)
Description copied from class:UResourceBundle
Actual worker method for fetching a resource based on the given key. Sub classes must override this method if they support resources with keys.- Overrides:
handleGet
in classUResourceBundle
- Parameters:
resKey
- the key string of the resource to be fetchedaliasesVisited
- hashtable object to hold references of resources already seenrequested
- the original resource bundle object on which the get method was invoked. The requested bundle and the bundle on which this method is invoked are the same, except in the cases where aliases are involved.- Returns:
- UResourceBundle a resource associated with the key
-
handleGet
protected UResourceBundle handleGet(int index, java.util.HashMap<java.lang.String,java.lang.String> aliasesVisited, UResourceBundle requested)
Description copied from class:UResourceBundle
Actual worker method for fetching a resource based on the given index. Sub classes must override this method if they support arrays of resources.- Overrides:
handleGet
in classUResourceBundle
- Parameters:
index
- the index of the resource to be fetchedaliasesVisited
- hashtable object to hold references of resources already seenrequested
- the original resource bundle object on which the get method was invoked. The requested bundle and the bundle on which this method is invoked are the same, except in the cases where aliases are involved.- Returns:
- UResourceBundle a resource associated with the index
-
handleGetObject
protected java.lang.Object handleGetObject(java.lang.String key)
Description copied from class:UResourceBundle
- Overrides:
handleGetObject
in classUResourceBundle
-
findString
java.lang.String findString(java.lang.String key)
Returns a String if found, or null if not found or if the key item is not a string.
-
-