public class ListResourceBundleWrapper extends ResourceBundleWrapperRT
ResourceBundleWrapperRT.DefaultSearchContext, ResourceBundleWrapperRT.SearchType
ResourceBundleWrapper.KeyInfo
_parent
Constructor and Description |
---|
ListResourceBundleWrapper() |
ListResourceBundleWrapper(java.lang.String bundleId,
java.lang.ClassLoader contextClassLoader) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Set<java.lang.String> |
findKeys(java.lang.String searchTypeMeth,
java.lang.Object searchTerm,
boolean ignoreCase)
This is the single pinch-point method that most override classes can extend
to support their own policies and enhancements to the find operations.
|
java.util.Map<java.lang.String,java.lang.String> |
getKeyValueMap()
Gets the map of key-values for this bundle.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata(java.lang.String key)
Gets the translated text (value) identified by
key |
java.lang.String |
getString(java.lang.String key)
Gets the translated text (value) identified by
key |
boolean |
isCacheable() |
java.util.Set<java.lang.String> |
keySet()
Returns a set view of the keys contained in this resource bundle.
|
protected void |
parse(java.net.URL url) |
void |
setClassLoader(java.lang.ClassLoader classLoader) |
addEntry, addEntry, addEntry, addEntryNoDialog, addResourceBundleListener, deleteEntry, deleteEntry, findKeys, findKeysByMetaData, findKeysByMetaData, findKeysByText, findKeysByText, findKeysLikeKey, findKeysLikeKey, findKeysLikeMetaData, findKeysLikeText, findKeysLikeText, getBaseBundleKeyValueMap, getBundleId, getChainedKeyValueMap, getChainedKeyValueMapNoOverride, getChainedKeyValueNoteMap, getExportChainedKeyValueNoteMap, getKeyGenerator, getKeyMapForExport, getKeyMapForFABundleExport, getKeyValueNoteMap, getKeyValueNoteMap, getKeyValueNoteMapFromFABundle, getKeyValueNoteMapFromFABundleChain, getMetadataFromParentChain, getMetadataObject, getMOReference, getMostSpecificWrapperMoName, getParent, getParentChain, getParentList, getSEChainedKeyValueMap, isEmptyReadOnlyWrapper, isIsSEWrapper, refreshBundleIfNeeded, removeResourceBundleListener, setBundleId, setEmptyReadOnlyWrapper, setIsSEWrapper, setKeyGenerator, setParentList, setURL, toString, updateEntry, updateEntry, updateEntry, updateEntry, updateEntryExport, updateEntryImport, updateEntryNoDialog, updateEntryNoDialog
public ListResourceBundleWrapper()
public ListResourceBundleWrapper(java.lang.String bundleId, java.lang.ClassLoader contextClassLoader)
protected void parse(java.net.URL url)
parse
in class ResourceBundleWrapperRT
public java.util.Map<java.lang.String,java.lang.String> getKeyValueMap()
ResourceBundleWrapperRT
getKeyValueMap
in class ResourceBundleWrapperRT
public boolean isCacheable()
isCacheable
in class ResourceBundleWrapperRT
public java.lang.String getString(java.lang.String key)
key
getString
in interface ResourceBundleWrapper
getString
in class ResourceBundleWrapperRT
key
- The key in the resource bundlejava.lang.NullPointerException
- if the key is null
java.util.MissingResourceException
- If the key not found in the resource
bundle.protected java.util.Set<java.lang.String> findKeys(java.lang.String searchTypeMeth, java.lang.Object searchTerm, boolean ignoreCase)
ResourceBundleWrapperRT
findKeys
in class ResourceBundleWrapperRT
searchTypeMeth
- type of search to performsearchTerm
- term being searched forignoreCase
- whether to _ignoreCase of searchTerm for matchespublic java.util.Set<java.lang.String> keySet()
Iterator
will throw an UnsupportedOperationException
.public java.util.Map<java.lang.String,java.lang.String> getMetadata(java.lang.String key)
key
key
- The key in the resource bundlejava.lang.NullPointerException
- if the key is null
java.util.MissingResourceException
- If the key not found in the resource
bundle.
Note: Currently returns null as metadata is not supported in ListResourcebundlepublic void setClassLoader(java.lang.ClassLoader classLoader)