|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tiles.Attribute org.apache.tiles.ListAttribute
public class 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.
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 |
---|
expression, expressionObject, roles, value |
Constructor Summary | |
---|---|
ListAttribute()
Constructor. |
|
ListAttribute(List<? extends Object> value)
Constructor. |
|
ListAttribute(ListAttribute toCopy)
Copy 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. |
ListAttribute |
clone()
|
boolean |
equals(Object obj)
|
int |
hashCode()
|
void |
inherit(ListAttribute parent)
Inherits elements present in a "parent" list attribute. |
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. |
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. |
Methods inherited from class org.apache.tiles.Attribute |
---|
createTemplateAttribute, createTemplateAttribute, createTemplateAttributeWithExpression, getExpression, getExpressionObject, getName, getRenderer, getRole, getRoles, getType, getValue, inherit, setBody, setExpression, setExpressionObject, setName, setRenderer, setRole, setRoles, setType, setValue, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ListAttribute()
public ListAttribute(List<? extends Object> value)
value
- List.public ListAttribute(ListAttribute toCopy)
toCopy
- The list attribute to copy.Method Detail |
---|
public void add(Attribute element)
element
- XmlAttribute to add.public void add(Object value)
value
- Object to add.public void addObject(Object value)
value
- Object to add.public void setInherit(boolean inherit)
inherit
- The "inherit" value.public boolean isInherit()
public void inherit(ListAttribute parent)
parent
- The parent list attribute.public boolean equals(Object obj)
equals
in class Attribute
public int hashCode()
hashCode
in class Attribute
public ListAttribute clone()
clone
in class Attribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |