Package com.onwbp.base.text
Class UserMessageLocalized
- java.lang.Object
-
- com.onwbp.base.text.UserMessage
-
- com.onwbp.base.text.UserMessageLocalized
-
public class UserMessageLocalized extends UserMessage
Provides a localized message based on strings directly set from Java code (not externalized).
-
-
Constructor Summary
Constructors Constructor Description UserMessageLocalized()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserMessageLocalized
copy()
String
getDefaultMessage()
String
getInternalId()
Returns a specific identifier for logging and technical auditing.String
getMessage(Locale aLocale)
void
setMessage(String aMessage)
void
setMessage(Locale aLocale, String aMessage)
String
toString()
-
Methods inherited from class com.onwbp.base.text.UserMessage
createError, createError, createFatal, createFatal, createInfo, createWarning, formatMessage, getSeverity, getThrowable, isError, isFatal, isInfo, isWarning, setSeverity, setSeverity
-
-
-
-
Method Detail
-
setMessage
public void setMessage(String aMessage)
-
getDefaultMessage
public String getDefaultMessage()
-
getInternalId
public String getInternalId()
Description copied from class:UserMessage
Returns a specific identifier for logging and technical auditing. Returnsnull
if this message has no identifier (this is the case for aUserMessageString
).- Specified by:
getInternalId
in classUserMessage
-
copy
public UserMessageLocalized copy()
-
-