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

Package class diagram package ListAttribute
java.lang.Object
  extended by org.apache.tiles.Attribute
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.tiles.Attribute
Attribute.AttributeType
 
Field Summary
 
Fields inherited from class org.apache.tiles.Attribute
roles, value
 
Constructor Summary
ListAttribute()
          Constructor.
ListAttribute(String name, List<Object> value)
          Constructor.
 
Method Summary
 void add(Attribute element)
          Add an element in list.
 void add(Object value)
          Add an element in list.
 void addObject(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
 

Constructor Detail

ListAttribute

public ListAttribute()
Constructor.


ListAttribute

public ListAttribute(String name,
                     List<Object> value)
Constructor.

Parameters:
name - Name.
value - List.
Method Detail

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.