Package org.apache.tiles.template
Class DefaultAttributeResolver
java.lang.Object
org.apache.tiles.template.DefaultAttributeResolver
- All Implemented Interfaces:
- AttributeResolver
The default implementation of AttributeResolver.
- Since:
- 2.2.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncomputeAttribute(TilesContainer container, Attribute attribute, String name, String role, boolean ignore, Object defaultValue, String defaultValueRole, String defaultValueType, Request request) Computes the attribute.
- 
Constructor Details- 
DefaultAttributeResolverpublic DefaultAttributeResolver()
 
- 
- 
Method Details- 
computeAttributepublic Attribute computeAttribute(TilesContainer container, Attribute attribute, String name, String role, boolean ignore, Object defaultValue, String defaultValueRole, String defaultValueType, Request request) Computes the attribute.- Specified by:
- computeAttributein interface- AttributeResolver
- Parameters:
- container- The Tiles container to use.
- attribute- The attribute to return immediately, if not null.
- name- The name of the attribute.
- role- A comma-separated list of roles. If present, the attribute will be rendered only if the current user belongs to one of the roles.
- ignore- If- trueif the computed attribute is null, this problem will be ignored.
- defaultValue- The default value of the attribute. To use only if the attribute was not computed.
- defaultValueRole- The default comma-separated list of roles. To use only if the attribute was not computed.
- defaultValueType- The default type of the attribute. To use only if the attribute was not computed.
- request- TODO
- Returns:
- The computed attribute.
 
 
-