Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.2)

Part Number E27170-01

weblogic.i18ntools
Class GetText

java.lang.Object
  extended by weblogic.i18ntools.GetText

public class GetText
extends Object

The GetText class provides a standard mechanism for extracting text from WLS log message catalogs. Messages are identified by their message id, and may be qualified by a subsystem name. The basic format of the String objects returned by the GetText methods is the message body of the requested message.

If detailed output is requested the output is of the form:

 nnnnnn: message body
 Subsystem: subsystem name
 Severity: message severity
 Message Detail: detailed message text
 Cause: why problem happened
 Action: what user should do to resolve
 

If verbose output is requested the output is of the form:

 nnnnnn: message body
 L10n Package: package for text properties
 I18n Package: package for formatting class
 Subsystem: subsystem name
 Severity: message severity
 Stack Trace: true|false
 Message Detail: detailed message text
 Cause: why problem happened
 Action: what user should do to resolve
 

If any of the messages is unable to locate the specified message id in the catalogs, the text

 nnnnnn: Message not found!!
 

is returned, where nnnnnn is the relevant message id.


Constructor Summary
GetText()
           
 
Method Summary
static String getDetailedText(String id)
          Detailed message text in current locale.
static String getDetailedText(String id, Locale l)
          Detailed message text in specified locale.
static String getRetiredMessage(String id)
          Retired message text: Subsystem:id text
static String getRetiredMessage(String id, String subSystem)
          Retired message text: Subsystem:id text
static String getText(String id)
          Message body in current locale.
static String getText(String id, boolean detailed, boolean verbose, String subSystem, Locale l)
          Generalized message text retrieval.
static String getText(String id, Locale l)
          Message body in specified locale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetText

public GetText()
Method Detail

getText

public static String getText(String id)
Message body in current locale.

Parameters:
id - is message id

getText

public static String getText(String id,
                             Locale l)
Message body in specified locale.

Parameters:
id - is message id
l - specifies a locale

getDetailedText

public static String getDetailedText(String id)
Detailed message text in current locale.

Parameters:
id - is message id

getDetailedText

public static String getDetailedText(String id,
                                     Locale l)
Detailed message text in specified locale.

Parameters:
id - is message id
l - specifies a locale

getText

public static String getText(String id,
                             boolean detailed,
                             boolean verbose,
                             String subSystem,
                             Locale l)
Generalized message text retrieval. Text only returned if message subsystem matches subSystem parameter.

Parameters:
id - is message id
detailed - specifies whether to access detailed text
verbose - specifies whether to access detailed text and other metadat in the catalog
subSystem - specifies subsystem name to match
l - specifies a locale

getRetiredMessage

public static String getRetiredMessage(String id)
Retired message text: Subsystem:id text

Parameters:
id - is the message id
Returns:
text if message is retired, otherwise returns null (message not retired)

getRetiredMessage

public static String getRetiredMessage(String id,
                                       String subSystem)
Retired message text: Subsystem:id text

Parameters:
id - is the message id
subSystem - filters on subsystem name
Returns:
text if message is retired and matches subsystem, otherwise returns null (message not retired)

Copyright 1996, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.2)

Part Number E27170-01