public class GetText extends Object
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.
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
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 idpublic static String getRetiredMessage(String id, String subSystem)
id - is the message idsubSystem - filters on subsystem name