| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static int | Returns: the mnemonic as anint, or 0 if it
can't be found.Finds the mnemonic character in a message. |
| public static String | Returns: a formatted stringthe pattern pattern, Object... arguments)Convenience method for |
| private static String | Returns: the messagethe resource bundle rb, String the key key)Returns the message corresponding to the key in the bundle or a text describing it's missing. |
| public static int | Returns: the mnemonicintthe message message)Returns the mnemonic for a message. |
| public static void | initializeMessages(Class<?>
the class containing the fields clazz, String rbName)Initializes all public static non-final fields in the given class with
messages from a |
| private static boolean | |
| private static int | Returns: the mnemonic as anint, or 0 if it
can't be found.the character to lookup c)Lookups the mnemonic for a key in the |
| private static String | Returns: a message with the mnemonic identifier removedthe message message)Removes the mnemonic identifier ( |
| private static String | Returns: the replaced textthe to be replaced text)Returns a |
| private static void |
| MNEMONIC_LOOKUP | back to summary |
|---|---|
| private static Map<String, Integer> MNEMONIC_LOOKUP | |
| Resources | back to summary |
|---|---|
| private Resources() | |
| findMnemonicInt | back to summary |
|---|---|
| private static int findMnemonicInt(String s) Finds the mnemonic character in a message.
The mnemonic character is the first character followed by the first
| |
| format | back to summary |
|---|---|
| public static String format(String pattern, Object... arguments) Convenience method for | |
| getMessage | back to summary |
|---|---|
| private static String getMessage(ResourceBundle rb, String key) Returns the message corresponding to the key in the bundle or a text describing it's missing.
| |
| getMnemonicInt | back to summary |
|---|---|
| public static int getMnemonicInt(String message) Returns the mnemonic for a message.
| |
| initializeMessages | back to summary |
|---|---|
| public static void initializeMessages(Class<?> clazz, String rbName) Initializes all public static non-final fields in the given class with
messages from a
| |
| isWritableField | back to summary |
|---|---|
| private static boolean isWritableField(Field field) | |
| lookupMnemonicInt | back to summary |
|---|---|
| private static int lookupMnemonicInt(String c) Lookups the mnemonic for a key in the
| |
| removeMnemonicAmpersand | back to summary |
|---|---|
| private static String removeMnemonicAmpersand(String message) Removes the mnemonic identifier ( | |
| replaceWithPlatformLineFeed | back to summary |
|---|---|
| private static String replaceWithPlatformLineFeed(String text) Returns a | |
| setFieldValue | back to summary |
|---|---|
| private static void setFieldValue(Field field, String value) | |