|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.2) Part Number E27170-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.i18ntools.GetText
public class GetText
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 |
---|
public GetText()
Method Detail |
---|
public static String getText(String id)
id
- is message idpublic static String getText(String id, Locale l)
id
- is message idl
- specifies a localepublic static String getDetailedText(String id)
id
- is message idpublic static String getDetailedText(String id, Locale l)
id
- is message idl
- specifies a localepublic static String getText(String id, boolean detailed, boolean verbose, String subSystem, Locale l)
id
- is message iddetailed
- specifies whether to access detailed textverbose
- specifies whether to access detailed text and other metadat in the catalogsubSystem
- specifies subsystem name to matchl
- specifies a localepublic static String getRetiredMessage(String id)
id
- is the message id
public static String getRetiredMessage(String id, String subSystem)
id
- is the message idsubSystem
- filters on subsystem name
|
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-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |