1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.struts2.jasper.compiler;
19
20 import javax.servlet.jsp.tagext.*;
21
22 /***
23 * TagInfo extension used by tag handlers that are implemented via tag files.
24 * This class provides access to the name of the Map used to store the
25 * dynamic attribute names and values passed to the custom action invocation.
26 * This information is used by the code generator.
27 */
28 class JasperTagInfo extends TagInfo {
29
30 private String dynamicAttrsMapName;
31
32 public JasperTagInfo(String tagName,
33 String tagClassName,
34 String bodyContent,
35 String infoString,
36 TagLibraryInfo taglib,
37 TagExtraInfo tagExtraInfo,
38 TagAttributeInfo[] attributeInfo,
39 String displayName,
40 String smallIcon,
41 String largeIcon,
42 TagVariableInfo[] tvi,
43 String mapName) {
44
45 super(tagName, tagClassName, bodyContent, infoString, taglib,
46 tagExtraInfo, attributeInfo, displayName, smallIcon, largeIcon,
47 tvi);
48 this.dynamicAttrsMapName = mapName;
49 }
50
51 public String getDynamicAttributesMapName() {
52 return dynamicAttrsMapName;
53 }
54
55 public boolean hasDynamicAttributes() {
56 return dynamicAttrsMapName != null;
57 }
58 }