org.apache.beehive.netui.util
Class Bundle

Object
  extended by Bundle

public class Bundle
extends Object

Convenience class for dealing with resource bundles.


Method Summary
static String getErrorString(String aKey)
           
static String getErrorString(String aKey, Object[] args)
           
static String getString(String aKey)
          Returns the string specified by aKey from the errors.properties bundle.
static String getString(String aKey, Object arg)
          Returns the string specified by aKey from the errors.properties bundle.
static String getString(String aKey, Object[] args)
          Returns the string specified by aKey from the errors.properties bundle.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getString

public static String getString(String aKey)
Returns the string specified by aKey from the errors.properties bundle.


getString

public static String getString(String aKey,
                               Object arg)
Returns the string specified by aKey from the errors.properties bundle.

Parameters:
aKey - The key for the message pattern in the bundle.
arg - The arg to use in the message format.

getString

public static String getString(String aKey,
                               Object[] args)
Returns the string specified by aKey from the errors.properties bundle.

Parameters:
aKey - The key for the message pattern in the bundle.
args - The args to use in the message format.

getErrorString

public static String getErrorString(String aKey,
                                    Object[] args)

getErrorString

public static String getErrorString(String aKey)