Class MessageBundle
-
Constructor Summary
ConstructorsConstructorDescriptionMessageBundle(String projectName, String packageName, String resourceName, Locale locale, ClassLoader classLoader, ResourceBundle parent) Construct a new ExtendMessages -
Method Summary
Modifier and TypeMethodDescriptiongetMessage(String key) Gets a string message from the resource bundle for the given keygetMessage(String key, String arg0) Gets a string message from the resource bundle for the given key.getMessage(String key, String[] array) Gets a string message from the resource bundle for the given key.getMessage(String key, String arg0, String arg1) Gets a string message from the resource bundle for the given key.getMessage(String key, String arg0, String arg1, String arg2) Gets a string message from the resource bundle for the given key.Gets a string message from the resource bundle for the given key.Gets a string message from the resource bundle for the given key.final ProjectResourceBundle
-
Constructor Details
-
MessageBundle
public MessageBundle(String projectName, String packageName, String resourceName, Locale locale, ClassLoader classLoader, ResourceBundle parent) throws MissingResourceException Construct a new ExtendMessages- Throws:
MissingResourceException
-
-
Method Details
-
getResourceBundle
-
getMessage
Gets a string message from the resource bundle for the given key- Parameters:
key- The resource key- Returns:
- The message
- Throws:
MissingResourceException
-
getMessage
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} - Parameters:
key- The resource keyarg0- The argument to place in variable {0}- Returns:
- The message
- Throws:
MissingResourceException
-
getMessage
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} - Parameters:
key- The resource keyarg0- The argument to place in variable {0}arg1- The argument to place in variable {1}- Returns:
- The message
- Throws:
MissingResourceException
-
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} - Parameters:
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}- Returns:
- The message
- Throws:
MissingResourceException
-
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} - Parameters:
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}- Returns:
- The message
- Throws:
MissingResourceException
-
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} - Parameters:
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}- Returns:
- The message
- Throws:
MissingResourceException
-
getMessage
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} - Parameters:
key- The resource keyarray- An array of objects to place in corresponding variables- Returns:
- The message
- Throws:
MissingResourceException
-