Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

oracle.javatools.resourcebundle
Class ResourceBundleAdapter

java.lang.Object
  extended by oracle.javatools.resourcebundle.ResourceBundleWrapperRT
      extended by oracle.javatools.resourcebundle.ResourceBundleAdapter
All Implemented Interfaces:
ResourceBundleWrapper, SearchSupport

public class ResourceBundleAdapter
extends ResourceBundleWrapperRT

The ResourceBundleAdapter provides a run-time implementation of a ResourceBundleWrapper for java resource bundle.


Nested Class Summary
protected static class ResourceBundleAdapter.AdapterDefaultSearchContext
           
 
Nested classes/interfaces inherited from class oracle.javatools.resourcebundle.ResourceBundleWrapperRT
ResourceBundleWrapperRT.DefaultSearchContext, ResourceBundleWrapperRT.SearchType
 
Nested classes/interfaces inherited from interface oracle.javatools.resourcebundle.ResourceBundleWrapper
ResourceBundleWrapper.KeyInfo
 
Field Summary
 
Fields inherited from class oracle.javatools.resourcebundle.ResourceBundleWrapperRT
_parent
 
Constructor Summary
ResourceBundleAdapter(java.util.ResourceBundle resourceBundle)
           
 
Method Summary
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
 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, findKeysByMetaData, findKeysByMetaData, findKeysByText, findKeysByText, findKeysLikeKey, findKeysLikeKey, findKeysLikeMetaData, findKeysLikeText, findKeysLikeText, getBundleId, getChainedKeyValueMap, getKeyGenerator, getMetadataFromParentChain, getParent, getParentChain, getParentList, refreshBundleIfNeeded, 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
 

Constructor Detail

ResourceBundleAdapter

public ResourceBundleAdapter(java.util.ResourceBundle resourceBundle)
Method Detail

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.

findKeys

protected java.util.Set<java.lang.String> findKeys(java.lang.String searchTypeMeth,
                                                   java.lang.Object searchTerm,
                                                   boolean ignoreCase)
Description copied from class: ResourceBundleWrapperRT
This is the single pinch-point method that most override classes can extend to support their own policies and enhancements to the find operations. They will then call super.findKeys to let this impl do the heavy-lifting, or (less likely) pass in their own SearchContext impl for their custom work...

Overrides:
findKeys in class ResourceBundleWrapperRT
Parameters:
searchTypeMeth - type of search to perform
searchTerm - term being searched for
ignoreCase - whether to _ignoreCase of searchTerm for matches
Returns:
result set of matching keys

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

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

Copyright © 1997, 2013, Oracle. All rights reserved.