This project has retired. For details please refer to its
Attic page .
ListAttribute (Tiles 2 2.0.7 API)
org.apache.tiles.context
Class ListAttribute
java.lang.Object
org.apache.tiles.Attribute
org.apache.tiles.context.ListAttribute
All Implemented Interfaces: 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
Methods inherited from class org.apache.tiles.Attribute
getName , getRole , getRoles , getType , getValue , setBody , setName , setRole , setRoles , setType , setValue , toString
ListAttribute
public ListAttribute ()
Constructor.
ListAttribute
public ListAttribute (String name,
List <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 (Object value)
Add an element in list.
Parameters: value
- Object to add.
addObject
public void addObject (Object value)
Add an element in list.
Parameters: value
- Object to add.
Copyright © 2001-2008 Apache Software Foundation . All Rights Reserved.