Package com.onwbp.base.text
Class UserMessageString
- java.lang.Object
-
- com.onwbp.base.text.UserMessage
-
- com.onwbp.base.text.UserMessageString
-
public class UserMessageString extends UserMessage
Provides a message based on strings directly set from Java code (not externalized).
-
-
Constructor Summary
Constructors Constructor Description UserMessageString()Creates an information message without parameters.UserMessageString(Severity severity, String aMessage, Object[] params, String anInternalId, Throwable anException)UserMessageString(Severity severity, String aMessage, Object[] params, Throwable anException)UserMessageString(Object[] params)Creates an information message.UserMessageString(Object[] params, Throwable anException)Creates an information message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetInternalId()Returns a specific identifier for logging and technical auditing.voidsetInternalId(String internalId)Specifies the 'internalId'.UserMessagesetString(Locale aLocale, String aRawString)UserMessagesetStringForDefault(String aRawString)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
-
-
-
-
Constructor Detail
-
UserMessageString
public UserMessageString()
Creates an information message without parameters.
-
UserMessageString
public UserMessageString(Object[] params)
Creates an information message.
-
UserMessageString
public UserMessageString(Object[] params, Throwable anException)
Creates an information message.
-
UserMessageString
public UserMessageString(Severity severity, String aMessage, Object[] params, Throwable anException)
-
-
Method Detail
-
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
-
setInternalId
public void setInternalId(String internalId)
Specifies the 'internalId'.- See Also:
getInternalId()
-
setStringForDefault
public UserMessage setStringForDefault(String aRawString)
-
setString
public UserMessage setString(Locale aLocale, String aRawString)
-
-