public final class I18n extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
NOT_INITIALIZED_MSG
Field NOT_INITIALIZED_MSG
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getExceptionMessage(String msgID)
Method getExceptionMessage
|
static String |
getExceptionMessage(String msgID,
Exception originalException)
Method getExceptionMessage
|
static String |
getExceptionMessage(String msgID,
Object[] exArgs)
Method getExceptionMessage
|
static void |
init(ResourceBundle resourceBundle)
Method init
|
static void |
init(String languageCode,
String countryCode)
Method init
|
static String |
translate(String message)
Method translate
translates a message ID into an internationalized String, see also
XMLSecurityException.getExceptionMessage() |
static String |
translate(String message,
Object[] args)
Method translate
translates a message ID into an internationalized String, see alse
XMLSecurityException.getExceptionMEssage(). |
public static final String NOT_INITIALIZED_MSG
public static String translate(String message, Object[] args)
XMLSecurityException.getExceptionMEssage(). The strings are
stored in the ResourceBundle, which is identified in
exceptionMessagesResourceBundleBasemessage - args - is an Object[] array of strings which are inserted into
the String which is retrieved from the ResouceBundlepublic static String translate(String message)
XMLSecurityException.getExceptionMessage()message - public static String getExceptionMessage(String msgID)
msgID - public static String getExceptionMessage(String msgID, Exception originalException)
msgID - originalException - public static String getExceptionMessage(String msgID, Object[] exArgs)
msgID - exArgs - public static void init(String languageCode, String countryCode)
languageCode - countryCode - public static void init(ResourceBundle resourceBundle)
resourceBundle - Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.