|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.danet.an.workflow.api.PrioritizedMessage
This class presents a prioritized message that will be internationalized using the specified resource bundle and the referenced entry. For details see the description of its class contructor.
Nested Class Summary | |
static class |
PrioritizedMessage.Priority
This class represents the priority of a given message. |
Constructor Summary | |
PrioritizedMessage(PrioritizedMessage.Priority priority,
java.lang.String message)
Constructs a prioritized message. |
|
PrioritizedMessage(PrioritizedMessage.Priority priority,
java.lang.String message,
java.lang.Object[] data)
Constructs a prioritized message. |
Method Summary | |
java.lang.String |
message()
Returns the message. |
java.lang.String |
message(java.util.Locale locale)
Returns the message. |
PrioritizedMessage.Priority |
priority()
Returns the priority of the message. |
java.lang.String |
toString()
Returns a string representation of the message. |
java.lang.String |
unmappedMessage()
Returns the message that it is not internationalized. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PrioritizedMessage(PrioritizedMessage.Priority priority, java.lang.String message)
a.resource.bundle.base.name#key
" it is interpreted as the
base name of a ReosurceBundle
and the key of an entry in this
resource bundle.
priority
- the priority of the given message.message
- a message or a resource and key reference.message()
public PrioritizedMessage(PrioritizedMessage.Priority priority, java.lang.String message, java.lang.Object[] data)
a.resource.bundle.base.name#key
" it is interpreted as the
base name of a ReosurceBundle
and the key of an entry in this
resource bundle.
If the parameter data
is not null
,
the message (or the string looked up in the resource bundle)
will be fomatted using
.
MessageFormat.format
priority
- the priority of the given message.message
- a message or a resource and key reference.data
- additional data used when formatting the message.message()
Method Detail |
public PrioritizedMessage.Priority priority()
public java.lang.String message()
a.resource.bundle.base.name#key
", it will be
internationalized using the specified resource bundle and the
referenced entry with the default Locale
.
message(Locale)
public java.lang.String message(java.util.Locale locale)
a.resource.bundle.base.name#key
", it will be
internationalized using the specified resource bundle and the
referenced entry using the given Locale
.
locale
- the Locale
to be used for
resource bundle lookup.
public java.lang.String unmappedMessage()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |