Class I18n
java.lang.Object
org.docx4j.org.apache.xml.security.utils.I18n
public class I18n
extends java.lang.Object
The Internationalization (I18N) pack.
- Author:
- Christian Geuer-Pollmann
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNOT_INITIALIZED_MSGField NOT_INITIALIZED_MSG -
Method Summary
Modifier and Type Method Description static java.lang.StringgetExceptionMessage(java.lang.String msgID)Method getExceptionMessagestatic java.lang.StringgetExceptionMessage(java.lang.String msgID, java.lang.Exception originalException)Method getExceptionMessagestatic java.lang.StringgetExceptionMessage(java.lang.String msgID, java.lang.Object[] exArgs)Method getExceptionMessagestatic voidinit(java.lang.String languageCode, java.lang.String countryCode)Method initstatic voidinit(java.util.ResourceBundle resourceBundle)Method initstatic java.lang.Stringtranslate(java.lang.String message)Method translate translates a message ID into an internationalized String, see alsoXMLSecurityException.getExceptionMessage()static java.lang.Stringtranslate(java.lang.String message, java.lang.Object[] args)Method translate translates a message ID into an internationalized String, see alseXMLSecurityException.getExceptionMEssage().
-
Field Details
-
NOT_INITIALIZED_MSG
public static final java.lang.String NOT_INITIALIZED_MSGField NOT_INITIALIZED_MSG- See Also:
- Constant Field Values
-
-
Method Details
-
translate
public static java.lang.String translate(java.lang.String message, java.lang.Object[] args)Method translate translates a message ID into an internationalized String, see alseXMLSecurityException.getExceptionMEssage(). The strings are stored in theResourceBundle, which is identified inexceptionMessagesResourceBundleBase- Parameters:
message-args- is anObject[]array of strings which are inserted into the String which is retrieved from theResouceBundle- Returns:
- message translated
-
translate
public static java.lang.String translate(java.lang.String message)Method translate translates a message ID into an internationalized String, see alsoXMLSecurityException.getExceptionMessage()- Parameters:
message-- Returns:
- message translated
-
getExceptionMessage
public static java.lang.String getExceptionMessage(java.lang.String msgID)Method getExceptionMessage- Parameters:
msgID-- Returns:
- message translated
-
getExceptionMessage
public static java.lang.String getExceptionMessage(java.lang.String msgID, java.lang.Exception originalException)Method getExceptionMessage- Parameters:
msgID-originalException-- Returns:
- message translated
-
getExceptionMessage
public static java.lang.String getExceptionMessage(java.lang.String msgID, java.lang.Object[] exArgs)Method getExceptionMessage- Parameters:
msgID-exArgs-- Returns:
- message translated
-
init
public static void init(java.lang.String languageCode, java.lang.String countryCode)Method init- Parameters:
languageCode-countryCode-
-
init
public static void init(java.util.ResourceBundle resourceBundle)Method init- Parameters:
resourceBundle-
-