ALocalizer Class Reference for BEA WebLogic Server
A-2 Internationalization Guide
Localizer Methods
Localizers are extensions to the java.util.ListResourceBundle class. Four
additional methods are provided to simplify the access of the localization data in the
Localizer. These methods are described in Table A-1.
Each of the methods for accessing localization data has a key argument. The following
list shows the recognized values for the key argument:
Localizer.SEVERITY
Localizer.MESSAGE_ID
Localizer.MESSAGE_BODY
Localizer.MESSAGE_DETAIL
Localizer.CAUSE
Localizer.ACTION
With the exception of the Localizer.SEVERITY key, the localization data returned by
Localizers are String objects that return an integer object.
Table A-1 Methods for Localization Data Access
Method Description
public Object getObject(String key, String id) Returns localization text
for the key element for
message id.
public Object getObject(String key, int id) Returns localization text
for the key element for
message id.
public String getString(String key, String id) Returns localization text
for the key element for
message id.
public String getString(String key, int id) Returns localization text
for the key element for
message id.