public class MessageSpecification extends Object implements Serializable
Constructor and Description |
---|
MessageSpecification() |
Modifier and Type | Method and Description |
---|---|
String |
createDetailMessage(Object... args)
Create the detailMessage message.
|
String |
createMessage(String key,
List<String> argKeys,
Object... args)
Creates a message.
|
String |
createSummaryMessage(Object... args)
Create the summaryMessage message.
|
protected List<String> |
getDetailArgs() |
protected String |
getDetailMessage() |
String |
getName() |
String |
getSubject()
Gets the current subject or the configured subject if the
current subject is not found.
|
protected List<String> |
getSummaryArgs() |
protected String |
getSummaryMessage() |
void |
init()
The init method tries to generate the message keys.
|
boolean |
isNoSummary() |
void |
setCurrentSubject(String subject)
Allows client objects to set the subject for the current thread
per instance of the MessageSpecification.
|
void |
setDetailArgs(List<String> argKeys) |
void |
setDetailMessage(String detailKey) |
void |
setName(String aName) |
void |
setNoSummary(boolean noSummary) |
void |
setParent(String parent) |
void |
setSubject(String subject) |
void |
setSummaryArgs(List<String> summaryArgKeys) |
void |
setSummaryMessage(String summaryKey) |
public void init()
public boolean isNoSummary()
public void setNoSummary(boolean noSummary)
public String createSummaryMessage(Object... args)
public String createDetailMessage(Object... args)
public String createMessage(String key, List<String> argKeys, Object... args)
argKeys
- arguments to lookup that were configured.args
- Arguments that were passed via the object that wants to
generate the messagepublic void setCurrentSubject(String subject)
public String getSubject()
protected String getDetailMessage()
public void setDetailMessage(String detailKey)
protected String getSummaryMessage()
public void setSummaryMessage(String summaryKey)
public void setName(String aName)
public String getName()
public void setParent(String parent)
public void setSubject(String subject)
Copyright © 2014. All rights reserved.