1
17 package org.apache.tomcat.util.descriptor.tld;
18
19 import java.util.ArrayList;
20 import java.util.List;
21
22 import javax.servlet.jsp.tagext.FunctionInfo;
23
24
33 public class TaglibXml {
34 private String tlibVersion;
35 private String jspVersion;
36 private String shortName;
37 private String uri;
38 private String info;
39 private ValidatorXml validator;
40 private final List<TagXml> tags = new ArrayList<>();
41 private final List<TagFileXml> tagFiles = new ArrayList<>();
42 private final List<String> listeners = new ArrayList<>();
43 private final List<FunctionInfo> functions = new ArrayList<>();
44
45 public String getTlibVersion() {
46 return tlibVersion;
47 }
48
49 public void setTlibVersion(String tlibVersion) {
50 this.tlibVersion = tlibVersion;
51 }
52
53 public String getJspVersion() {
54 return jspVersion;
55 }
56
57 public void setJspVersion(String jspVersion) {
58 this.jspVersion = jspVersion;
59 }
60
61 public String getShortName() {
62 return shortName;
63 }
64
65 public void setShortName(String shortName) {
66 this.shortName = shortName;
67 }
68
69 public String getUri() {
70 return uri;
71 }
72
73 public void setUri(String uri) {
74 this.uri = uri;
75 }
76
77 public String getInfo() {
78 return info;
79 }
80
81 public void setInfo(String info) {
82 this.info = info;
83 }
84
85 public ValidatorXml getValidator() {
86 return validator;
87 }
88
89 public void setValidator(ValidatorXml validator) {
90 this.validator = validator;
91 }
92
93 public void addTag(TagXml tag) {
94 tags.add(tag);
95 }
96
97 public List<TagXml> getTags() {
98 return tags;
99 }
100
101 public void addTagFile(TagFileXml tag) {
102 tagFiles.add(tag);
103 }
104
105 public List<TagFileXml> getTagFiles() {
106 return tagFiles;
107 }
108
109 public void addListener(String listener) {
110 listeners.add(listener);
111 }
112
113 public List<String> getListeners() {
114 return listeners;
115 }
116
117 public void addFunction(String name, String klass, String signature) {
118 functions.add(new FunctionInfo(name, klass, signature));
119 }
120
121 public List<FunctionInfo> getFunctions() {
122 return functions;
123 }
124 }
125