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 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.
- Version:
- $Rev: 527536 $ $Date: 2007-04-11 17:44:51 +0200 (Wed, 11 Apr 2007) $
- See Also:
- Serialized Form
Constructor Summary |
ListAttribute()
Constructor. |
ListAttribute(java.lang.String name,
java.util.List<java.lang.Object> value)
Constructor. |
Method Summary |
void |
add(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, getRoles, getType, getValue, setBody, setName, setRole, setRoles, 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(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.