Package org.apache.tiles.api
Class ListAttribute
java.lang.Object
org.apache.tiles.api.Attribute
org.apache.tiles.api.ListAttribute
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.- Since:
- 2.1.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdd an element in list.copy()booleangetValue()Returns the list of the attributes that are elements of this attribute.inthashCode()voidinherit(ListAttribute parent) Inherits elements present in a "parent" list attribute.booleanIf true, the attribute will put the elements of the attribute with the same name of the parent definition before the ones specified here.voidsetInherit(boolean inherit) If true, the attribute will put the elements of the attribute with the same name of the parent definition before the ones specified here.voidSets the list of the attributes that are elements of this attribute.Methods inherited from class org.apache.tiles.api.AttributecreateTemplateAttribute, createTemplateAttribute, getExpressionObject, getRenderer, getRole, getRoles, inherit, isPermitted, setExpressionObject, setRenderer, setRole, setRoles, setValue, toString
- 
Constructor Details- 
ListAttributepublic ListAttribute()Constructor.- Since:
- 2.1.0
 
- 
ListAttributeCopy constructor.- Parameters:
- toCopy- The list attribute to copy.
- Since:
- 2.1.3
 
 
- 
- 
Method Details- 
setValueSets the list of the attributes that are elements of this attribute.- Parameters:
- attributes- The attributes.
- Since:
- 3.0.0
 
- 
getValueReturns the list of the attributes that are elements of this attribute.
- 
addAdd an element in list. We use a property to avoid rewriting a new class.- Parameters:
- element- XmlAttribute to add.
- Since:
- 2.1.0
 
- 
setInheritpublic void setInherit(boolean inherit) If true, the attribute will put the elements of the attribute with the same name of the parent definition before the ones specified here. By default, it is 'false'- Parameters:
- inherit- The "inherit" value.
- Since:
- 2.1.0
 
- 
isInheritpublic boolean isInherit()If true, the attribute will put the elements of the attribute with the same name of the parent definition before the ones specified here. By default, it is 'false'- Returns:
- inherit The "inherit" value.
- Since:
- 2.1.0
 
- 
inheritInherits elements present in a "parent" list attribute. The elements will be put before the ones already present.- Parameters:
- parent- The parent list attribute.
- Since:
- 2.1.0
 
- 
equals
- 
hashCodepublic int hashCode()
- 
copy
 
-