About the WebLogic Server Internationalization and Localization Interfaces
As another example, when the
programs.utils.MyUtilLogger.class
in the catalog, this class contains static public methods as defined by the
attribute.
TextFormatter
include static methods for accessing localized and formatted text from the catalog.
They are convenience classes that handle the interface with the message body,
placeholders, and
method attribute in each message definition. For example, if the definition of a
message in a catalog includes the attribute,
TextFormatter
Listing 4-1 Example of a TextFormatter Class
package my.text;
public class xyzTextFormatter
{
. . .
public String getErrorNumber(int err)
{
. . .
}
}
Listing 4-2
shows an example of how the
code.
Listing 4-2 Example of getErrorNumber Method
import my.text.xyzTextFormatter
. . .
xyzTextFormatter xyzL10n = new xyzTextFormatter();
System.out.println(xyzL10n.getErrorNumber(someVal));
MyUtilLog.xml
classes are generated for each simple message catalog. These classes
. You specify the formatting methods through the
MessageFormat
class shown in
Listing 4-1
catalog is used, the class
is generated. For each log message defined
method=getErrorNumber(int err)
is generated.
method could be used in
getErrorNumber
Internationalization Guide
method
, the
4-3
Need help?
Do you have a question about the BEA WebLogic Server and is the answer not in the manual?