Class Message
java.lang.Object
com.echothree.util.common.message.Message
- All Implemented Interfaces:
Serializable
An encapsulation of an individual message returned by the
validate()
method of an ActionForm
, consisting
of a message key (to be used to look up message text in an appropriate
message resources database) plus up to four placeholder objects that can
be used for parametric replacement in the message text.
- Since:
- Struts 1.1
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKey()
Get the message key for this message.Get the message for this message.Object[]
Get the replacement values for this message.void
setMessage
(String message) Set the message for this message.toString()
Converts to a string representing the data contained within this Message.
-
Field Details
-
key
The message key for this message. -
values
The replacement values for this mesasge. -
message
The message for this message, with all value substitutions completed.
-
-
Constructor Details
-
Message
Creates a new instance of Message -
Message
Creates a new instance of Message
-
-
Method Details
-
getKey
Get the message key for this message. -
getValues
Get the replacement values for this message. -
getMessage
Get the message for this message. -
setMessage
Set the message for this message. -
toString
Converts to a string representing the data contained within this Message.
-