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 UserMessageLocalizedcopy()StringgetDefaultMessage()StringgetInternalId()Returns a specific identifier for logging and technical auditing.StringgetMessage(Locale aLocale)voidsetMessage(String aMessage)voidsetMessage(Locale aLocale, String aMessage)StringtoString()-
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:UserMessageReturns a specific identifier for logging and technical auditing. Returnsnullif this message has no identifier (this is the case for aUserMessageString).- Specified by:
getInternalIdin classUserMessage
-
copy
public UserMessageLocalized copy()
-
-