|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softwareag.mdm.base.text.UserMessage com.softwareag.mdm.base.text.UserMessageRef
Holds a user message that is persisted in a Java "resource bundle".
The raw text is looked up by calling:
ResourceBundle resources; if (this.classLoader == null) resources = ResourceBundle.getBundle(this.bundleBaseName, aLocale); else resources = ResourceBundle.getBundle(this.bundleBaseName, aLocale, this.classLoader); return resources.getString(this.messageKey);
ResourceBundle
,
MessageFormat
Constructor Summary | |
UserMessageRef(Severity severity,
String aMessageKey,
String bundleBaseName,
Object[] params)
|
|
UserMessageRef(Severity severity,
String aMessageKey,
String bundleBaseName,
Object[] params,
ClassLoader bundleClassLoader)
|
|
UserMessageRef(String aMessageKey,
Throwable aThrowable,
String bundleBaseName,
Object[] params)
|
|
UserMessageRef(String aMessageKey,
Throwable aThrowable,
String bundleBaseName,
Object[] params,
ClassLoader bundleClassLoader)
|
Method Summary | |
String |
getBundleBaseName()
Returns the qualified name of the bundle. |
ClassLoader |
getClassLoader()
Returns the class loader used for finding the bundle, if specified. |
String |
getInternalId()
Returns a specific identifier for logging and technical audit. |
String |
getMessageKey()
Returns the identifier of the message in the bundle. |
String |
toString()
|
Methods inherited from class com.softwareag.mdm.base.text.UserMessage |
createError, createError, createInfo, createWarning, formatMessage, getSeverity, getThrowable, isError, isFatal, isInfo, isWarning, setSeverity |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public UserMessageRef(String aMessageKey, Throwable aThrowable, String bundleBaseName, Object[] params, ClassLoader bundleClassLoader)
public UserMessageRef(String aMessageKey, Throwable aThrowable, String bundleBaseName, Object[] params)
public UserMessageRef(Severity severity, String aMessageKey, String bundleBaseName, Object[] params, ClassLoader bundleClassLoader)
public UserMessageRef(Severity severity, String aMessageKey, String bundleBaseName, Object[] params)
Method Detail |
public String toString()
public String getInternalId()
UserMessage
null
if this message has no identifier (this
is the case for a UserMessageString
).
getInternalId
in class UserMessage
public String getBundleBaseName()
public ClassLoader getClassLoader()
public String getMessageKey()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
(report a bug)
webMethods MDM 4.2.8 [0558]
Copyright Software AG 2000-2007. All rights reserved.