com.sap.ip.me.api.services
Class MEResourceBundle

java.lang.Object
  extended byjava.util.ResourceBundle
      extended bycom.sap.ip.me.api.services.MEResourceBundle

public class MEResourceBundle
extends java.util.ResourceBundle

A resource bundle used for internationalization of JavaServer Pages. It does not throw a MissingResourceException if a key is not defined within the resource bundle.

Author:
SAP

Field Summary
 
Fields inherited from class java.util.ResourceBundle
parent
 
Constructor Summary
MEResourceBundle()
          Constructor.
MEResourceBundle(java.lang.String resBundleName)
          Constructor.
MEResourceBundle(java.lang.String resBundleName, java.util.Locale locale)
          Constructor.
MEResourceBundle(java.lang.String resBundleName, java.util.Locale locale, java.lang.ClassLoader classloader)
          Constructor.
 
Method Summary
 java.util.Enumeration getKeys()
          Retruns an enummeration of the keys.
 java.util.Locale getLocale()
          Returns the preferred locale for internationalization.
 java.lang.String getResourceBundleName()
          Returns the name of the resource bundle.
 java.lang.Object handleGetObject(java.lang.String key)
          Get an object from the resource bundle.
 java.lang.String toString()
          Returns a human readable representation of this object.
 
Methods inherited from class java.util.ResourceBundle
getBundle, getBundle, getBundle, getObject, getString, getStringArray, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MEResourceBundle

public MEResourceBundle(java.lang.String resBundleName)
Constructor. Initializes the resBundle. If there are any problems, no exception is thrown but the error is logged.

Parameters:
resBundleName - The full qualified name of the resource bundle.

MEResourceBundle

public MEResourceBundle(java.lang.String resBundleName,
                        java.util.Locale locale)
Constructor. Initializes the resBundle. If there are any problems, no exception is thrown but the error is logged.

Parameters:
resBundleName - The full qualified name of the resource bundle.
locale - The preferred locale to use for internationalization.

MEResourceBundle

public MEResourceBundle(java.lang.String resBundleName,
                        java.util.Locale locale,
                        java.lang.ClassLoader classloader)
Constructor. Initializes the resBundle. If there are any problems, no exception is thrown but the error is logged.

Parameters:
resBundleName - The full qualified name of the resource bundle.
locale - The preferred locale to use for internationalization.
classloader - The classloader that should be used.

MEResourceBundle

public MEResourceBundle()
Constructor. Initializes the resBundle. If there are any problems, no exception is thrown but the error is logged.

Method Detail

getLocale

public java.util.Locale getLocale()
Returns the preferred locale for internationalization.

Returns:
The locale value

getResourceBundleName

public java.lang.String getResourceBundleName()
Returns the name of the resource bundle. Returns null if there are any errors with the name of the resourcebundle.

Returns:
The resourceBundleName value

handleGetObject

public java.lang.Object handleGetObject(java.lang.String key)
Get an object from the resource bundle. Delegates to ResourceBundle class. Does not throw a MissingResourceException if the key is not defined in the ResourceBundle, then it returns the key.

Parameters:
key - Description of the Parameter
Returns:
Description of the Return Value

getKeys

public java.util.Enumeration getKeys()
Retruns an enummeration of the keys. Delegates to resBundle.

Returns:
The keys value

toString

public java.lang.String toString()
Returns a human readable representation of this object.

Returns:
Description of the Return Value


Copyright © 2005 SAP AG. All Rights Reserved.