com.sap.netweaver.bc.rf.util.resource

Class ResourceBundles

java.lang.Object
  extended by com.sap.netweaver.bc.rf.util.resource.ResourceBundles

public class ResourceBundles
extends Object

A helper class to load resource bundles.


Method Summary
 boolean exists(String key)
          TBD: Description of the Method.
 boolean exists(String key, Locale locale)
          TBD: Description of the Method.
static ResourceBundles getBundle(String baseName)
          Get the bundle attribute of the ResourceBundles class.
 String getString(String key)
          Get the string attribute of the ResourceBundles object.
 String getString(String key, Locale locale)
          Get the string attribute of the ResourceBundles object.
 String getString(String key, Locale locale, Object obj)
          Get the string attribute of the ResourceBundles object.
 String getString(String key, Locale locale, Object[] objs)
          Get the string attribute of the ResourceBundles object.
 String getString(String key, Locale locale, Object obj1, Object obj2)
          Get the string attribute of the ResourceBundles object.
 String getString(String key, Object obj)
          Get the string attribute of the ResourceBundles object.
 String getString(String key, Object[] objs)
          Get the string attribute of the ResourceBundles object.
 String getString(String key, Object obj1, Object obj2)
          Get the string attribute of the ResourceBundles object.
static void registerClassLoader(ClassLoader cl)
          TBD: Description of the Method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getString

public String getString(String key,
                        Locale locale,
                        Object[] objs)
                 throws MissingResourceException
Get the string attribute of the ResourceBundles object.

Parameters:
key - TBD: Description of the incoming method parameter
locale - TBD: Description of the incoming method parameter
objs - TBD: Description of the incoming method parameter
Returns:
The string value
Throws:
MissingResourceException - Exception raised in failure situation

getString

public String getString(String key,
                        Object[] objs)
                 throws MissingResourceException
Get the string attribute of the ResourceBundles object.

Parameters:
key - TBD: Description of the incoming method parameter
objs - TBD: Description of the incoming method parameter
Returns:
The string value
Throws:
MissingResourceException - Exception raised in failure situation

getString

public String getString(String key,
                        Object obj)
                 throws MissingResourceException
Get the string attribute of the ResourceBundles object.

Parameters:
key - TBD: Description of the incoming method parameter
obj - TBD: Description of the incoming method parameter
Returns:
The string value
Throws:
MissingResourceException - Exception raised in failure situation

getString

public String getString(String key,
                        Object obj1,
                        Object obj2)
                 throws MissingResourceException
Get the string attribute of the ResourceBundles object.

Parameters:
key - TBD: Description of the incoming method parameter
obj1 - TBD: Description of the incoming method parameter
obj2 - TBD: Description of the incoming method parameter
Returns:
The string value
Throws:
MissingResourceException - Exception raised in failure situation

getString

public String getString(String key,
                        Locale locale)
                 throws MissingResourceException
Get the string attribute of the ResourceBundles object.

Parameters:
key - TBD: Description of the incoming method parameter
locale - TBD: Description of the incoming method parameter
Returns:
The string value
Throws:
MissingResourceException - Exception raised in failure situation

getString

public String getString(String key,
                        Locale locale,
                        Object obj)
                 throws MissingResourceException
Get the string attribute of the ResourceBundles object.

Parameters:
key - TBD: Description of the incoming method parameter
locale - TBD: Description of the incoming method parameter
obj - TBD: Description of the incoming method parameter
Returns:
The string value
Throws:
MissingResourceException - Exception raised in failure situation

getString

public String getString(String key,
                        Locale locale,
                        Object obj1,
                        Object obj2)
                 throws MissingResourceException
Get the string attribute of the ResourceBundles object.

Parameters:
key - TBD: Description of the incoming method parameter
locale - TBD: Description of the incoming method parameter
obj1 - TBD: Description of the incoming method parameter
obj2 - TBD: Description of the incoming method parameter
Returns:
The string value
Throws:
MissingResourceException - Exception raised in failure situation

getString

public String getString(String key)
                 throws MissingResourceException
Get the string attribute of the ResourceBundles object.

Parameters:
key - TBD: Description of the incoming method parameter
Returns:
The string value
Throws:
MissingResourceException - Exception raised in failure situation

exists

public boolean exists(String key,
                      Locale locale)
TBD: Description of the Method.

Parameters:
key - TBD: Description of the incoming method parameter
locale - TBD: Description of the incoming method parameter
Returns:
TBD: Description of the outgoing return value

exists

public boolean exists(String key)
TBD: Description of the Method.

Parameters:
key - TBD: Description of the incoming method parameter
Returns:
TBD: Description of the outgoing return value

registerClassLoader

public static void registerClassLoader(ClassLoader cl)
TBD: Description of the Method.

Parameters:
cl - TBD: Description of the incoming method parameter

getBundle

public static ResourceBundles getBundle(String baseName)
Get the bundle attribute of the ResourceBundles class.

Parameters:
baseName - TBD: Description of the incoming method parameter
Returns:
The bundle value
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM


Copyright 2012 SAP AG Complete Copyright Notice