Package org.apache.struts.action
Class ActionMessages.ActionMessageItem
java.lang.Object
org.apache.struts.action.ActionMessages.ActionMessageItem
- All Implemented Interfaces:
Serializable
- Enclosing class:
ActionMessages
This class is used to store a set of messages associated with a property/key and the position it was initially added to list.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionActionMessageItem
(List<ActionMessage> list, int iOrder, String property) Construct an instance of this class. -
Method Summary
Modifier and TypeMethodDescriptiongetList()
Retrieve the list of messages associated with this item.int
getOrder()
Retrieve the position in the message list.Retrieve the property associated with this item.void
setList
(List<ActionMessage> list) Set the list of messages associated with this item.void
setOrder
(int iOrder) Set the position in the message list.void
setProperty
(String property) Set the property associated with this item.toString()
Construct a string representation of this object.
-
Field Details
-
list
The list of
ActionMessage
s. -
iOrder
protected int iOrderThe position in the list of messages.
-
property
The property associated with
ActionMessage
.
-
-
Constructor Details
-
ActionMessageItem
Construct an instance of this class.
- Parameters:
list
- The list of ActionMessages.iOrder
- The position in the list of messages.property
- The property associated with ActionMessage.
-
-
Method Details
-
getList
Retrieve the list of messages associated with this item.
- Returns:
- The list of messages associated with this item.
-
setList
Set the list of messages associated with this item.
- Parameters:
list
- The list of messages associated with this item.
-
getOrder
public int getOrder()Retrieve the position in the message list.
- Returns:
- The position in the message list.
-
setOrder
public void setOrder(int iOrder) Set the position in the message list.
- Parameters:
iOrder
- The position in the message list.
-
getProperty
Retrieve the property associated with this item.
- Returns:
- The property associated with this item.
-
setProperty
Set the property associated with this item.
- Parameters:
property
- The property associated with this item.
-
toString
Construct a string representation of this object.
-