1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.strutsel.taglib.tiles;
19
20 import java.beans.IntrospectionException;
21 import java.beans.PropertyDescriptor;
22 import java.beans.SimpleBeanInfo;
23
24 import java.util.ArrayList;
25
26 /***
27 * This is the <code>BeanInfo</code> descriptor for the
28 * <code>org.apache.strutsel.taglib.tiles.ELAddTag</code> class. It is needed
29 * to override the default mapping of custom tag attribute names to class
30 * attribute names.
31 */
32 public class ELInsertTagBeanInfo extends SimpleBeanInfo {
33 public PropertyDescriptor[] getPropertyDescriptors() {
34 ArrayList proplist = new ArrayList();
35
36 try {
37 proplist.add(new PropertyDescriptor("template", ELInsertTag.class,
38 null, "setTemplateExpr"));
39 } catch (IntrospectionException ex) {
40 }
41
42 try {
43 proplist.add(new PropertyDescriptor("component", ELInsertTag.class,
44 null, "setComponentExpr"));
45 } catch (IntrospectionException ex) {
46 }
47
48 try {
49 proplist.add(new PropertyDescriptor("page", ELInsertTag.class,
50 null, "setPageExpr"));
51 } catch (IntrospectionException ex) {
52 }
53
54 try {
55 proplist.add(new PropertyDescriptor("definition",
56 ELInsertTag.class, null, "setDefinitionExpr"));
57 } catch (IntrospectionException ex) {
58 }
59
60 try {
61 proplist.add(new PropertyDescriptor("attribute", ELInsertTag.class,
62 null, "setAttributeExpr"));
63 } catch (IntrospectionException ex) {
64 }
65
66 try {
67 proplist.add(new PropertyDescriptor("name", ELInsertTag.class,
68 null, "setNameExpr"));
69 } catch (IntrospectionException ex) {
70 }
71
72 try {
73 proplist.add(new PropertyDescriptor("beanName", ELInsertTag.class,
74 null, "setBeanNameExpr"));
75 } catch (IntrospectionException ex) {
76 }
77
78 try {
79 proplist.add(new PropertyDescriptor("beanProperty",
80 ELInsertTag.class, null, "setBeanPropertyExpr"));
81 } catch (IntrospectionException ex) {
82 }
83
84 try {
85 proplist.add(new PropertyDescriptor("beanScope", ELInsertTag.class,
86 null, "setBeanScopeExpr"));
87 } catch (IntrospectionException ex) {
88 }
89
90 try {
91 proplist.add(new PropertyDescriptor("flush", ELInsertTag.class,
92 null, "setFlushExpr"));
93 } catch (IntrospectionException ex) {
94 }
95
96 try {
97 proplist.add(new PropertyDescriptor("ignore", ELInsertTag.class,
98 null, "setIgnoreExpr"));
99 } catch (IntrospectionException ex) {
100 }
101
102 try {
103 proplist.add(new PropertyDescriptor("role", ELInsertTag.class,
104 null, "setRoleExpr"));
105 } catch (IntrospectionException ex) {
106 }
107
108 try {
109 proplist.add(new PropertyDescriptor("controllerUrl",
110 ELInsertTag.class, null, "setControllerUrlExpr"));
111 } catch (IntrospectionException ex) {
112 }
113
114 try {
115 proplist.add(new PropertyDescriptor("controllerClass",
116 ELInsertTag.class, null, "setControllerClassExpr"));
117 } catch (IntrospectionException ex) {
118 }
119
120 PropertyDescriptor[] result = new PropertyDescriptor[proplist.size()];
121
122 return ((PropertyDescriptor[]) proplist.toArray(result));
123 }
124 }