org.apache.struts.tiles.xmlDefinition
Class XmlListAttribute
public class XmlListAttribute
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.
void | add(Object value) - Add an element in list.
|
void | add(XmlAttribute element) - Add an element in list.
|
void | addObject(Object value) - Add an element in list.
|
computeRealValue , getAttribute , getName , getRole , getValue , setAttribute , setBody , setContent , setDirect , setName , setRole , setType , setValue |
list
private List list
List.
We declare a List to avoid cast.
Parent "value" property points to the same list.
XmlListAttribute
public XmlListAttribute()
Constructor.
XmlListAttribute
public XmlListAttribute(String name,
List value)
Constructor.
name
- Name.value
- List.
add
public void add(Object value)
Add an element in list.
add
public void add(XmlAttribute element)
Add an element in list.
We use a property to avoid rewriting a new class.
element
- XmlAttribute to add.
addObject
public void addObject(Object value)
Add an element in list.
Copyright B) 2000-2007 - The Apache Software Foundation