public class StrutsTilesAnnotationProcessor extends Object
Definitions and
 Attributes in a way as close to tiles.xml as possible.| Constructor and Description | 
|---|
| StrutsTilesAnnotationProcessor() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected Attribute | buildAddAttribute(TilesAddAttribute addAttribute) | 
| protected Attribute | buildAddListAttribute(TilesAddListAttribute addListAttribute) | 
| protected Attribute | buildPutAttribute(TilesPutAttribute putAttribute) | 
| protected Attribute | buildPutListAttribute(TilesPutListAttribute putListAttribute) | 
| protected Attribute | buildTemplateAttribute(TilesDefinition tilesDef) | 
| Definition | buildTilesDefinition(String tileName,
                    TilesDefinition tilesDefinition)Builds a  Definitionbased on givenTilesDefinitionwith
 given name. | 
| TilesDefinition | findAnnotation(Object action,
              String tileName)Search strategy is as follows:
 
   Check if action has Annotation  TilesDefinitionIf not, check if action has AnnotationTilesDefinitionsIf given tileName is not null and present inTilesDefinitions, return it
   Return first element ofTilesDefinitionsReturn null | 
| protected String | getValueOrNull(String value) | 
public TilesDefinition findAnnotation(Object action, String tileName)
TilesDefinitionTilesDefinitionsTilesDefinitions, return itTilesDefinitionsaction - Annotated action.tileName - Tilename to search for. May be null in some circumstances.TilesDefinitionpublic Definition buildTilesDefinition(String tileName, TilesDefinition tilesDefinition)
Definition based on given TilesDefinition with
 given name.tileName - name for resulting Definition.tilesDefinition - TilesDefinition to process.Definition represented by given TilesDefinition.protected Attribute buildTemplateAttribute(TilesDefinition tilesDef)
protected Attribute buildPutAttribute(TilesPutAttribute putAttribute)
protected Attribute buildPutListAttribute(TilesPutListAttribute putListAttribute)
protected Attribute buildAddAttribute(TilesAddAttribute addAttribute)
protected Attribute buildAddListAttribute(TilesAddListAttribute addListAttribute)
Copyright © 2000–2025 Apache Software Foundation. All rights reserved.