public final class MessageItemBase extends AbstractResourceItem<MessageItem,MessageParams,MessageResource> implements MessageItemReal
MessageItemReal.Log, MessageItemReal.Msg
Constructor and Description |
---|
MessageItemBase() |
Modifier and Type | Method and Description |
---|---|
static MessageItemBase |
create()
Create a new
MessageItem instance. |
void |
define(MessageResource forcedValue)
Define a new forced string.
|
JRLevel |
getLevel()
Return the optional log level if any.
|
org.slf4j.Marker |
getMarker()
Return the optional log marker if any.
|
String |
getText(Object... stringParameters)
Get the message formatted text with or without parameterized objects.
|
void |
persist()
Persist a message value.
|
MessageItem |
set(MessageParams messageParams)
Attach the resource parameter.
|
uid, uid
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
builder, get
public MessageItemBase()
public static MessageItemBase create()
MessageItem
instance.MessageItem
instancepublic String getText(Object... stringParameters)
getText
in interface MessageItem
getText
in interface MessageItemReal
stringParameters
- the list of object used as string parameterpublic void define(MessageResource forcedValue)
define
in interface MessageItem
define
in interface MessageItemReal
forcedValue
- the new string for this messagepublic void persist()
persist
in interface MessageItem
persist
in interface MessageItemReal
public org.slf4j.Marker getMarker()
getMarker
in interface MessageItem
getMarker
in interface MessageItemReal
public JRLevel getLevel()
getLevel
in interface MessageItem
getLevel
in interface MessageItemReal
public MessageItem set(MessageParams messageParams)
set
in interface ResourceItem<MessageItem,MessageParams,MessageResource>
set
in interface MessageItemReal
messageParams
- the primitive values for this resourceCopyright © 2011–2016 JRebirth OSS. All rights reserved.