Top Description Fields Constructors Methods
com.sun.org.apache.xml.internal.security.utils

public final Class I18n

extends Object
Class Inheritance
Imports
java.text.MessageFormat, java.util.Locale, .ResourceBundle

The Internationalization (I18N) pack.

Field Summary

Modifier and TypeField and Description
private static boolean
alreadyInitialized

Field alreadyInitialized

public static final String
NOT_INITIALIZED_MSG

Field NOT_INITIALIZED_MSG

private static ResourceBundle
resourceBundle

Field resourceBundle

Constructor Summary

AccessConstructor and Description
private
I18n()

Constructor I18n

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

message translated
getExceptionMessage
(String msgID)

Method getExceptionMessage

public static String

Returns:

message translated
getExceptionMessage
(String msgID, Exception originalException)

Method getExceptionMessage

public static String

Returns:

message translated
getExceptionMessage
(String msgID, Object[] exArgs)

Method getExceptionMessage

public static synchronized void
init(String languageCode, String countryCode)

Method init

public static synchronized void
init(ResourceBundle resourceBundle)

Method init

public static String

Returns:

message translated
translate
(String message, Object[]
is an Object[] array of strings which are inserted into the String which is retrieved from the ResouceBundle
args
)

Method translate translates a message ID into an internationalized String, see also XMLSecurityException.getExceptionMEssage().

public static String

Returns:

message translated
translate
(String message)

Method translate translates a message ID into an internationalized String, see also XMLSecurityException.getExceptionMessage()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

alreadyInitializedback to summary
private static boolean alreadyInitialized

Field alreadyInitialized

NOT_INITIALIZED_MSGback to summary
public static final String NOT_INITIALIZED_MSG

Field NOT_INITIALIZED_MSG

resourceBundleback to summary
private static ResourceBundle resourceBundle

Field resourceBundle

Constructor Detail

I18nback to summary
private I18n()

Constructor I18n

Method Detail

getExceptionMessageback to summary
public static String getExceptionMessage(String msgID)

Method getExceptionMessage

Returns:String

message translated

getExceptionMessageback to summary
public static String getExceptionMessage(String msgID, Exception originalException)

Method getExceptionMessage

Returns:String

message translated

getExceptionMessageback to summary
public static String getExceptionMessage(String msgID, Object[] exArgs)

Method getExceptionMessage

Returns:String

message translated

initback to summary
public static synchronized void init(String languageCode, String countryCode)

Method init

initback to summary
public static synchronized void init(ResourceBundle resourceBundle)

Method init

translateback to summary
public static String translate(String message, Object[] args)

Method translate translates a message ID into an internationalized String, see also XMLSecurityException.getExceptionMEssage(). The strings are stored in the ResourceBundle, which is identified in exceptionMessagesResourceBundleBase

Parameters
args:Object[]

is an Object[] array of strings which are inserted into the String which is retrieved from the ResouceBundle

Returns:String

message translated

translateback to summary
public static String translate(String message)

Method translate translates a message ID into an internationalized String, see also XMLSecurityException.getExceptionMessage()

Returns:String

message translated