public final class MessageItemBase extends Object implements MessageItem
| Modifier and Type | Field and Description |
|---|---|
private int |
uid
The unique identifier of the color item.
|
| Constructor and Description |
|---|
MessageItemBase(MessageParams messageParams)
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
MessageBuilder |
builder()
Return the resource builder.
|
void |
define(MessageResource forcedValue)
Define a new forced string.
|
MessageResource |
get()
Return the resource unique instance.
|
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.
|
int |
getUid()
Gets the uid.
|
void |
persist()
Persist a message value.
|
void |
setUid(int uid)
Sets the uid.
|
public MessageItemBase(MessageParams messageParams)
ResourcesmessageParams - the params for i18n messagepublic MessageResource get()
get in interface ResourceItem<MessageResource,MessageBuilder>public String getText(Object... stringParameters)
getText in interface MessageItemstringParameters - the list of object used as string parameterpublic void define(MessageResource forcedValue)
define in interface MessageItemforcedValue - the new string for this messagepublic MessageBuilder builder()
builder in interface ResourceItem<MessageResource,MessageBuilder>public int getUid()
public void setUid(int uid)
uid - The uid to set.public void persist()
persist in interface MessageItempublic org.slf4j.Marker getMarker()
getMarker in interface MessageItempublic JRLevel getLevel()
getLevel in interface MessageItemCopyright © 2011–2014 JRebirth OSS. All rights reserved.