Skip navigation links 
 
oracle.javatools.resourcebundle
Class ResourceBundleAdapter
java.lang.Object
  
oracle.javatools.resourcebundle.ResourceBundleWrapperRT
      
oracle.javatools.resourcebundle.ResourceBundleAdapter
- All Implemented Interfaces:
 
- ResourceBundleWrapper
 
- 
public class ResourceBundleAdapter
 
- extends ResourceBundleWrapperRT
 
The ResourceBundleAdapter provides a run-time implementation of a ResourceBundleWrapper for java resource bundle.
 
 
  
  
 
 
  
 
  
 
| Method Summary | 
 java.util.Set<java.lang.String> | 
findKeysByMetaData(java.util.Map<java.lang.String,java.lang.String> metadata) 
          Gets a Set of keys which contain the specified metadata. | 
 java.util.Set<java.lang.String> | 
findKeysByText(java.lang.String text) 
          Finds the Set of keys containing an exact match for text | 
 java.util.Set<java.lang.String> | 
findKeysLikeKey(java.lang.String key) 
          Finds the Set of keys identifying entries whose key contains the substring key. | 
 java.util.Set<java.lang.String> | 
findKeysLikeText(java.lang.String text) 
          Finds the Set of keys identifying entries whose translated text contains the substring text. | 
 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 | 
 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) 
            | 
 
| Methods inherited from class oracle.javatools.resourcebundle.ResourceBundleWrapperRT | 
addEntry, addEntry, addEntryNoDialog, addResourceBundleListener, deleteEntry, findKeys, getBundleId, getChainedKeyValueMap, getKeyGenerator, getMetadataFromParentChain, getParent, getParentChain, getParentList, removeResourceBundleListener, setBundleId, setKeyGenerator, setParentList, setURL, toString, updateEntry, updateEntryNoDialog | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
 
ResourceBundleAdapter
public ResourceBundleAdapter(java.util.ResourceBundle resourceBundle)
parse
protected void parse(java.net.URL url)
- 
- Specified by:
 
parse in class ResourceBundleWrapperRT 
 
getKeyValueMap
public java.util.Map<java.lang.String,java.lang.String> getKeyValueMap()
- Description copied from class: 
ResourceBundleWrapperRT 
- Gets the map of key-values for this bundle. This map will not include keys from related bundles in the language hierarchy. For that call getChainedKeyValueMap() instead. For example, if bundleA is requested in the Locale.US then the related bundles would be bundleA_en_US, bundleA_en, bundleA
 
- 
- Specified by:
 
getKeyValueMap in class ResourceBundleWrapperRT 
 
- 
- Returns:
 
- map of key/values
 
 
getString
public java.lang.String getString(java.lang.String key)
- Description copied from interface: 
ResourceBundleWrapper 
- Gets the translated text (value) identified by 
key 
- 
- Specified by:
 
getString in interface ResourceBundleWrapper 
- Overrides:
 
getString in class ResourceBundleWrapperRT 
 
- 
- Parameters:
 
key - The key in the resource bundle 
- Returns:
 
- The translated text.
 
 
findKeysLikeKey
public java.util.Set<java.lang.String> findKeysLikeKey(java.lang.String key)
- Description copied from interface: 
ResourceBundleWrapper 
- Finds the 
Set of keys identifying entries whose key contains the substring key. No wildcards are expected or allowed. 
- 
- Parameters:
 
key - The substring key to match 
- Returns:
 
- The 
Set of keys containing a match. If no keys match, then an empty Set is returned. 
 
findKeysByText
public java.util.Set<java.lang.String> findKeysByText(java.lang.String text)
- Description copied from interface: 
ResourceBundleWrapper 
- Finds the 
Set of keys containing an exact match for text 
- 
- Parameters:
 
text - The exact text to match 
- Returns:
 
- The 
Set of keys containing a match. If no keys match, then an empty Set is returned 
 
findKeysLikeText
public java.util.Set<java.lang.String> findKeysLikeText(java.lang.String text)
- Description copied from interface: 
ResourceBundleWrapper 
- Finds the 
Set of keys identifying entries whose translated text contains the substring text. No wildcards are expected or allowed. 
- 
- Parameters:
 
text - The substring text to match 
- Returns:
 
- The 
Set of keys containing a match. If no keys match, then an empty Set is returned. 
 
findKeysByMetaData
public java.util.Set<java.lang.String> findKeysByMetaData(java.util.Map<java.lang.String,java.lang.String> metadata)
- Description copied from interface: 
ResourceBundleWrapper 
- Gets a Set of keys which contain the specified metadata. Metadata Search Rules
| Key | 
Value | 
Result | 
| Key | 
Value | 
Result | 
 
- 
- Parameters:
 
metadata - The metadata search criteria. 
- Returns:
 
- The Set of keys containing a match. If no keys match, then an empty 
Set is returned. 
 
keySet
public java.util.Set<java.lang.String> keySet()
- Description copied from interface: 
ResourceBundleWrapper 
- Returns a set view of the keys contained in this resource bundle. This method provides a "read-only" view of the keys in this resource bundle. Any attempts to modify this Set, directly or through its 
Iterator will throw an UnsupportedOperationException. 
- 
- Returns:
 
- A set view of the keys in this resource bundle
 
 
getMetadata
public java.util.Map<java.lang.String,java.lang.String> getMetadata(java.lang.String key)
- Description copied from interface: 
ResourceBundleWrapper 
- Gets the translated text (value) identified by 
key 
- 
- Parameters:
 
key - The key in the resource bundle 
- Returns:
 
- The metadata
 
 
Skip navigation links 
 
Copyright © 1997, 2011, Oracle. All rights reserved.