Package com.onwbp.base.text
Class UserMessageRef
- java.lang.Object
- com.onwbp.base.text.UserMessage
- com.onwbp.base.text.UserMessageRef
 
 
 - public class UserMessageRef extends UserMessage 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);- See Also:
- ResourceBundle,- MessageFormat
 
-   Constructor SummaryConstructors Constructor Description 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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals (Object o)StringgetBundleBaseName()Returns the qualified name of the bundle.ClassLoadergetClassLoader()Returns the class loader used for finding the bundle, if specified.StringgetInternalId()Returns a specific identifier for logging and technical auditing.StringgetMessageKey()Returns the identifier of the message in the bundle.inthashCode()StringtoString()-   Methods inherited from class com.onwbp.base.text.UserMessagecreateError, createError, createFatal, createFatal, createInfo, createWarning, formatMessage, getSeverity, getThrowable, isError, isFatal, isInfo, isWarning, setSeverity, setSeverity
 
-   
 
-   
-   Constructor Detail- UserMessageRef- public UserMessageRef(String aMessageKey, Throwable aThrowable, String bundleBaseName, Object[] params, ClassLoader bundleClassLoader) 
 - UserMessageRef- public UserMessageRef(String aMessageKey, Throwable aThrowable, String bundleBaseName, Object[] params) 
 - UserMessageRef- public UserMessageRef(Severity severity, String aMessageKey, String bundleBaseName, Object[] params, ClassLoader bundleClassLoader) 
 
 -   Method Detail- getInternalId- public final String getInternalId() Description copied from class:- UserMessageReturns a specific identifier for logging and technical auditing. Returns- nullif this message has no identifier (this is the case for a- UserMessageString).- Specified by:
- getInternalIdin class- UserMessage
 
 - getBundleBaseName- public final String getBundleBaseName() Returns the qualified name of the bundle.
 - getClassLoader- public final ClassLoader getClassLoader() Returns the class loader used for finding the bundle, if specified.
 - getMessageKey- public final String getMessageKey() Returns the identifier of the message in the bundle.
 
 
-