public class StrutsTilesAnnotationProcessor extends Object
Definition
s and
Attribute
s in a way as close to tiles.xml
as possible.Constructor and Description |
---|
StrutsTilesAnnotationProcessor() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.tiles.Attribute |
buildAddAttribute(TilesAddAttribute addAttribute) |
protected org.apache.tiles.Attribute |
buildAddListAttribute(TilesAddListAttribute addListAttribute) |
protected org.apache.tiles.Attribute |
buildPutAttribute(TilesPutAttribute putAttribute) |
protected org.apache.tiles.Attribute |
buildPutListAttribute(TilesPutListAttribute putListAttribute) |
protected org.apache.tiles.Attribute |
buildTemplateAttribute(TilesDefinition tilesDef) |
org.apache.tiles.Definition |
buildTilesDefinition(String tileName,
TilesDefinition tilesDefinition)
Builds a
Definition based on given TilesDefinition with
given name. |
TilesDefinition |
findAnnotation(Object action,
String tileName)
Search strategy is as follows:
Check if action has Annotation
TilesDefinition
If not, check if action has Annotation TilesDefinitions
If given tileName is not null and present in TilesDefinitions , return it
Return first element of TilesDefinitions
Return null
|
protected String |
getValueOrNull(String value) |
public TilesDefinition findAnnotation(Object action, String tileName)
TilesDefinition
TilesDefinitions
TilesDefinitions
, return itTilesDefinitions
action
- Annotated action.tileName
- Tilename to search for. May be null in some circumstances.TilesDefinition
public org.apache.tiles.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 org.apache.tiles.Attribute buildTemplateAttribute(TilesDefinition tilesDef)
protected org.apache.tiles.Attribute buildPutAttribute(TilesPutAttribute putAttribute)
protected org.apache.tiles.Attribute buildPutListAttribute(TilesPutListAttribute putListAttribute)
protected org.apache.tiles.Attribute buildAddAttribute(TilesAddAttribute addAttribute)
protected org.apache.tiles.Attribute buildAddListAttribute(TilesAddListAttribute addListAttribute)
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.