net.dpml.cli.resource
Class ResourceHelper
java.lang.Object
net.dpml.cli.resource.ResourceHelper
A utility class used to provide internationalisation support.
String | getBundleName() - Return the resource bundle name.
|
String | getMessage(String key) - Returns the message for the specified key.
|
String | getMessage(String key, Object value) - Returns the message for the specified key and argument.
|
String | getMessage(String key, Object value1, Object value2) - Returns the message for the specified key and arguments.
|
String | getMessage(String key, Object value1, Object value2, Object value3) - Returns the message for the specified key and arguments.
|
String | getMessage(String key, Object[] values) - Returns the message for the specified key and arguments.
|
static ResourceHelper | getResourceHelper() - Gets the ResourceHelper appropriate to the specified class.
|
getBundleName
public String getBundleName()
Return the resource bundle name.
getMessage
public String getMessage(String key)
Returns the message for the specified key.
key
- the unique identifier of the message
- String the formatted String
getMessage
public String getMessage(String key,
Object value)
Returns the message for the specified key and argument.
key
- the unique identifier of the messagevalue
- the argument value
- String the formatted String
getMessage
public String getMessage(String key,
Object value1,
Object value2)
Returns the message for the specified key and arguments.
key
- the unique identifier of the messagevalue1
- an argument valuevalue2
- an argument value
- String the formatted String
getMessage
public String getMessage(String key,
Object value1,
Object value2,
Object value3)
Returns the message for the specified key and arguments.
key
- the unique identifier of the messagevalue1
- an argument valuevalue2
- an argument valuevalue3
- an argument value
- String the formatted String
getMessage
public String getMessage(String key,
Object[] values)
Returns the message for the specified key and arguments.
key
- the unique identifier of the messagevalues
- argument values
- String the formatted String