org.apache.tiles.context
Class ListAttribute
java.lang.Object
org.apache.tiles.Attribute
org.apache.tiles.context.ListAttribute
- All Implemented Interfaces:
- java.io.Serializable
public class ListAttribute
- extends org.apache.tiles.Attribute
An attribute as a List
.
This attribute associates a name with a list. The list can be found by the
property name.
Elements in list are retrieved using List methods.
This class is used to read configuration files.
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class org.apache.tiles.Attribute |
org.apache.tiles.Attribute.AttributeType |
Fields inherited from class org.apache.tiles.Attribute |
role, value |
Constructor Summary |
ListAttribute()
Constructor. |
ListAttribute(java.lang.String name,
java.util.List<java.lang.Object> value)
Constructor. |
Method Summary |
void |
add(org.apache.tiles.Attribute element)
Add an element in list. |
void |
add(java.lang.Object value)
Add an element in list. |
void |
addObject(java.lang.Object value)
Add an element in list. |
Methods inherited from class org.apache.tiles.Attribute |
getName, getRole, getType, getValue, setBody, setName, setRole, setType, setValue, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ListAttribute
public ListAttribute()
- Constructor.
ListAttribute
public ListAttribute(java.lang.String name,
java.util.List<java.lang.Object> value)
- Constructor.
- Parameters:
name
- Name.value
- List.
add
public void add(org.apache.tiles.Attribute element)
- Add an element in list.
We use a property to avoid rewriting a new class.
- Parameters:
element
- XmlAttribute to add.
add
public void add(java.lang.Object value)
- Add an element in list.
- Parameters:
value
- Object to add.
addObject
public void addObject(java.lang.Object value)
- Add an element in list.
- Parameters:
value
- Object to add.