Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.javatools.resourcebundle
Class ResourceBundleUtils

java.lang.Object
  extended by oracle.javatools.resourcebundle.ResourceBundleUtils
Direct Known Subclasses:
ResourceBundleUtils

public class ResourceBundleUtils
extends java.lang.Object


Field Summary
static java.lang.String ADF_CONFIG
           
static java.lang.String ADF_CONFIG_CHILD
           
static java.lang.String ADF_NAMESPACE
           
static java.lang.String APP_BUNDLE_NODE
           
static java.lang.String BUNDLE_ID_NODE
           
static java.lang.String BUNDLE_LIST_NODE
           
static java.lang.String EXPIRE_SECONDS
           
static java.lang.String EXPIRE_TIME
           
static java.lang.String INITIAL_SIZE_ATTRIBUTE
           
static java.lang.String LOAD_FACTOR_ATTRIBUTE
           
static java.lang.String MAX_SIZE_ATTRIBUTE
           
static java.lang.String OVERRIDE_ATTRIBUTE
           
static java.lang.String RESOURCE_BUNDLE_CACHE_NODE
           
static java.lang.String XMLNS
           
static java.lang.String XMLNS_RESBUNDLE
           
 
Constructor Summary
protected ResourceBundleUtils()
           
 
Method Summary
static java.lang.String addUnicodeEscapes(java.lang.String theString, boolean escapeSpace)
          Deprecated. Please use ResourceUtils.addUnicodeEscapes instead.
static java.lang.String convertMetadataToDisplayString(java.util.Map<java.lang.String,java.lang.String> map)
           
static java.lang.String convertMetadataToString(java.util.Map<java.lang.String,java.lang.String> metadata)
           
static java.util.Map<java.lang.String,java.lang.String> convertStringToMetadata(java.lang.String metadataString)
           
static java.util.Map createConfigMap(org.w3c.dom.Element el)
          Used to create a map from the ADFConfig data for resource bundles.
static java.util.List<java.lang.String> createNewParentList(java.util.List<java.lang.String> fileNames, java.lang.String currentFile)
           
static oracle.adf.share.ADFConfig getADFConfig()
          Deprecated. This has been deprecated since 11.1.2.0 Please use ADFContext.getCurrent().getADFConfig(); Gets the ADFConfig
static oracle.adf.share.ADFContext getADFContext()
          Deprecated. This has been deprecated since 11.1.2.0 Please use ADFContext.getCurrent(); Gets the ADFContext
static AppBundleInfo getAppBundleInfo()
           
static AppBundleInfo getAppBundleInfoForLocale(java.util.Locale locale)
           
static java.lang.String getSystemProperty(java.lang.String propName)
           
static java.lang.String getTextString(org.w3c.dom.Node node)
          Gets the text from a dom node
static boolean isMetadataEqual(java.util.Map<java.lang.String,java.lang.String> newMetadata, java.util.Map<java.lang.String,java.lang.String> oldMetadata)
          Compares metadata to determine if they are equal
static java.lang.String stripUnicodeEscapes(java.lang.String inString)
          Deprecated. Please use ResourceUtils.addUnicodeEscapes instead.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADF_CONFIG_CHILD

public static final java.lang.String ADF_CONFIG_CHILD
See Also:
Constant Field Values

ADF_NAMESPACE

public static final java.lang.String ADF_NAMESPACE
See Also:
Constant Field Values

ADF_CONFIG

public static final java.lang.String ADF_CONFIG
See Also:
Constant Field Values

XMLNS

public static final java.lang.String XMLNS
See Also:
Constant Field Values

XMLNS_RESBUNDLE

public static final java.lang.String XMLNS_RESBUNDLE
See Also:
Constant Field Values

APP_BUNDLE_NODE

public static final java.lang.String APP_BUNDLE_NODE
See Also:
Constant Field Values

BUNDLE_LIST_NODE

public static final java.lang.String BUNDLE_LIST_NODE
See Also:
Constant Field Values

BUNDLE_ID_NODE

public static final java.lang.String BUNDLE_ID_NODE
See Also:
Constant Field Values

OVERRIDE_ATTRIBUTE

public static final java.lang.String OVERRIDE_ATTRIBUTE
See Also:
Constant Field Values

RESOURCE_BUNDLE_CACHE_NODE

public static final java.lang.String RESOURCE_BUNDLE_CACHE_NODE
See Also:
Constant Field Values

INITIAL_SIZE_ATTRIBUTE

public static final java.lang.String INITIAL_SIZE_ATTRIBUTE
See Also:
Constant Field Values

MAX_SIZE_ATTRIBUTE

public static final java.lang.String MAX_SIZE_ATTRIBUTE
See Also:
Constant Field Values

LOAD_FACTOR_ATTRIBUTE

public static final java.lang.String LOAD_FACTOR_ATTRIBUTE
See Also:
Constant Field Values

EXPIRE_SECONDS

public static final java.lang.String EXPIRE_SECONDS
See Also:
Constant Field Values

EXPIRE_TIME

public static final java.lang.String EXPIRE_TIME
See Also:
Constant Field Values
Constructor Detail

ResourceBundleUtils

protected ResourceBundleUtils()
Method Detail

isMetadataEqual

public static boolean isMetadataEqual(java.util.Map<java.lang.String,java.lang.String> newMetadata,
                                      java.util.Map<java.lang.String,java.lang.String> oldMetadata)
Compares metadata to determine if they are equal

Parameters:
newMetadata - new metadata
oldMetadata - old metadata
Returns:
true if they are the same; false otherwise

convertMetadataToString

public static java.lang.String convertMetadataToString(java.util.Map<java.lang.String,java.lang.String> metadata)

convertMetadataToDisplayString

public static java.lang.String convertMetadataToDisplayString(java.util.Map<java.lang.String,java.lang.String> map)

convertStringToMetadata

public static java.util.Map<java.lang.String,java.lang.String> convertStringToMetadata(java.lang.String metadataString)

createConfigMap

public static java.util.Map createConfigMap(org.w3c.dom.Element el)
Used to create a map from the ADFConfig data for resource bundles.

Parameters:
el - Should either be the element that represents the root of the resource bundle data or the document element

getTextString

public static java.lang.String getTextString(org.w3c.dom.Node node)
Gets the text from a dom node

Parameters:
node - the node to get the text from
Returns:
the text in the node

getAppBundleInfo

public static AppBundleInfo getAppBundleInfo()

getAppBundleInfoForLocale

public static AppBundleInfo getAppBundleInfoForLocale(java.util.Locale locale)

getADFContext

public static oracle.adf.share.ADFContext getADFContext()
Deprecated. This has been deprecated since 11.1.2.0 Please use ADFContext.getCurrent(); Gets the ADFContext

Returns:
the current ADFContext or null

getADFConfig

public static oracle.adf.share.ADFConfig getADFConfig()
Deprecated. This has been deprecated since 11.1.2.0 Please use ADFContext.getCurrent().getADFConfig(); Gets the ADFConfig

Returns:
the ADFConfig or null

getSystemProperty

public static final java.lang.String getSystemProperty(java.lang.String propName)

createNewParentList

public static java.util.List<java.lang.String> createNewParentList(java.util.List<java.lang.String> fileNames,
                                                                   java.lang.String currentFile)

addUnicodeEscapes

public static java.lang.String addUnicodeEscapes(java.lang.String theString,
                                                 boolean escapeSpace)
Deprecated. Please use ResourceUtils.addUnicodeEscapes instead.

Converts unicodes characters to encoded escapes (\\uxxxx) and escapes special characters with a preceding slash


stripUnicodeEscapes

public static java.lang.String stripUnicodeEscapes(java.lang.String inString)
Deprecated. Please use ResourceUtils.addUnicodeEscapes instead.

Converts encoded unicode escapes (\\uxxxx) to unicode chars and changes special saved chars to their original forms


Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

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