|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xml.security.utils.I18n
public class I18n
The Internationalization (I18N) pack.
Field Summary | |
---|---|
static String |
NOT_INITIALIZED_MSG
Field NOT_INITIALIZED_MSG |
Method Summary | |
---|---|
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() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NOT_INITIALIZED_MSG
Method Detail |
---|
public static String translate(String message, Object[] args)
XMLSecurityException.getExceptionMEssage()
. The strings are
stored in the ResourceBundle
, which is identified in
exceptionMessagesResourceBundleBase
message
- args
- is an Object[]
array of strings which are inserted into
the String which is retrieved from the ResouceBundle
public 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
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |