| java.lang.Object org.apache.struts.action.ActionMessage
ActionMessage | public class ActionMessage implements Serializable(Code) | | 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.
version: $Rev: 471754 $ $Date: 2005-05-14 01:09:32 -0400 (Sat, 14 May 2005) version: $ since: Struts 1.1 |
Constructor Summary | |
public | ActionMessage(String key) | public | ActionMessage(String key, Object value0) | public | ActionMessage(String key, Object value0, Object value1) | public | ActionMessage(String key, Object value0, Object value1, Object value2) | public | ActionMessage(String key, Object value0, Object value1, Object value2, Object value3) | public | ActionMessage(String key, Object[] values) | public | ActionMessage(String key, boolean resource) |
key | protected String key(Code) | | The message key for this message.
|
resource | protected boolean resource(Code) | | Indicates whether the key is taken to be as a bundle key [true] or
literal value [false].
|
values | protected Object[] values(Code) | | The replacement values for this mesasge.
|
ActionMessage | public ActionMessage(String key)(Code) | | Construct an action message with no replacement values.
Parameters: key - Message key for this message |
ActionMessage | public ActionMessage(String key, Object value0)(Code) | | Construct an action message with the specified replacement
values.
Parameters: key - Message key for this message Parameters: value0 - First replacement value |
ActionMessage | public ActionMessage(String key, Object value0, Object value1)(Code) | | Construct an action message with the specified replacement
values.
Parameters: key - Message key for this message Parameters: value0 - First replacement value Parameters: value1 - Second replacement value |
ActionMessage | public ActionMessage(String key, Object value0, Object value1, Object value2)(Code) | | Construct an action message with the specified replacement
values.
Parameters: key - Message key for this message Parameters: value0 - First replacement value Parameters: value1 - Second replacement value Parameters: value2 - Third replacement value |
ActionMessage | public ActionMessage(String key, Object value0, Object value1, Object value2, Object value3)(Code) | | Construct an action message with the specified replacement
values.
Parameters: key - Message key for this message Parameters: value0 - First replacement value Parameters: value1 - Second replacement value Parameters: value2 - Third replacement value Parameters: value3 - Fourth replacement value |
ActionMessage | public ActionMessage(String key, Object[] values)(Code) | | Construct an action message with the specified replacement
values.
Parameters: key - Message key for this message Parameters: values - Array of replacement values |
ActionMessage | public ActionMessage(String key, boolean resource)(Code) | | Construct an action message with the specified replacement
values.
Parameters: key - Message key for this message Parameters: resource - Indicates whether the key is a bundle key or literalvalue |
getKey | public String getKey()(Code) | | Get the message key for this message.
The message key for this message. |
getValues | public Object[] getValues()(Code) | | Get the replacement values for this message.
The replacement values for this message. |
isResource | public boolean isResource()(Code) | | Indicate whether the key is taken to be as a bundle key [true] or
literal value [false].
true if the key is a bundle key;false otherwise. |
|
|