org.apache.axis.i18n
Class MessageBundle
java.lang.Object
org.apache.axis.i18n.MessageBundle
public class MessageBundle
extends java.lang.Object
Accept parameters for ProjectResourceBundle,
but defer object instantiation (and therefore
resource bundle loading) until required.
- Richard A. Sitze (rsitze@us.ibm.com)
- Karl Moss (kmoss@macromedia.com)
- Glen Daniels (gdaniels@apache.org)
MessageBundle(String projectName, String packageName, String resourceName, Locale locale, ClassLoader classLoader, ResourceBundle parent) - Construct a new ExtendMessages
|
String | getMessage(String key) - Gets a string message from the resource bundle for the given key
|
String | getMessage(String key, String arg0) - Gets a string message from the resource bundle for the given key.
|
String | getMessage(String key, String arg0, String arg1) - Gets a string message from the resource bundle for the given key.
|
String | getMessage(String key, String arg0, String arg1, String arg2) - Gets a string message from the resource bundle for the given key.
|
String | getMessage(String key, String arg0, String arg1, String arg2, String arg3) - Gets a string message from the resource bundle for the given key.
|
String | getMessage(String key, String arg0, String arg1, String arg2, String arg3, String arg4) - Gets a string message from the resource bundle for the given key.
|
String | getMessage(String key, String[] array) - Gets a string message from the resource bundle for the given key.
|
ProjectResourceBundle | getResourceBundle()
|
MessageBundle
public MessageBundle(String projectName,
String packageName,
String resourceName,
Locale locale,
ClassLoader classLoader,
ResourceBundle parent)
throws MissingResourceException
Construct a new ExtendMessages
getMessage
public String getMessage(String key)
throws MissingResourceException
Gets a string message from the resource bundle for the given key
key
- The resource key
- The message
getMessage
public String getMessage(String key,
String arg0)
throws MissingResourceException
Gets a string message from the resource bundle for the given key. The
message may contain variables that will be substituted with the given
arguments. Variables have the format:
This message has two variables: {0} and {1}
key
- The resource keyarg0
- The argument to place in variable {0}
- The message
getMessage
public String getMessage(String key,
String arg0,
String arg1)
throws MissingResourceException
Gets a string message from the resource bundle for the given key. The
message may contain variables that will be substituted with the given
arguments. Variables have the format:
This message has two variables: {0} and {1}
key
- The resource keyarg0
- The argument to place in variable {0}arg1
- The argument to place in variable {1}
- The message
getMessage
public String getMessage(String key,
String arg0,
String arg1,
String arg2)
throws MissingResourceException
Gets a string message from the resource bundle for the given key. The
message may contain variables that will be substituted with the given
arguments. Variables have the format:
This message has two variables: {0} and {1}
key
- The resource keyarg0
- The argument to place in variable {0}arg1
- The argument to place in variable {1}arg2
- The argument to place in variable {2}
- The message
getMessage
public String getMessage(String key,
String arg0,
String arg1,
String arg2,
String arg3)
throws MissingResourceException
Gets a string message from the resource bundle for the given key. The
message may contain variables that will be substituted with the given
arguments. Variables have the format:
This message has two variables: {0} and {1}
key
- The resource keyarg0
- The argument to place in variable {0}arg1
- The argument to place in variable {1}arg2
- The argument to place in variable {2}arg3
- The argument to place in variable {3}
- The message
getMessage
public String getMessage(String key,
String arg0,
String arg1,
String arg2,
String arg3,
String arg4)
throws MissingResourceException
Gets a string message from the resource bundle for the given key. The
message may contain variables that will be substituted with the given
arguments. Variables have the format:
This message has two variables: {0} and {1}
key
- The resource keyarg0
- The argument to place in variable {0}arg1
- The argument to place in variable {1}arg2
- The argument to place in variable {2}arg3
- The argument to place in variable {3}arg4
- The argument to place in variable {4}
- The message
getMessage
public String getMessage(String key,
String[] array)
throws MissingResourceException
Gets a string message from the resource bundle for the given key. The
message may contain variables that will be substituted with the given
arguments. Variables have the format:
This message has two variables: {0} and {1}
key
- The resource keyarray
- An array of objects to place in corresponding variables
- The message
Copyright B) 2005 Apache Web Services Project. All Rights Reserved.