1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.apache.strutsel.taglib.tiles;
22
23 import java.beans.IntrospectionException;
24 import java.beans.PropertyDescriptor;
25 import java.beans.SimpleBeanInfo;
26
27 import java.util.ArrayList;
28
29
30
31
32
33
34
35 public class ELPutTagBeanInfo extends SimpleBeanInfo {
36 public PropertyDescriptor[] getPropertyDescriptors() {
37 ArrayList proplist = new ArrayList();
38
39 try {
40 proplist.add(new PropertyDescriptor("name", ELPutTag.class, null,
41 "setNameExpr"));
42 } catch (IntrospectionException ex) {
43 }
44
45 try {
46 proplist.add(new PropertyDescriptor("value", ELPutTag.class, null,
47 "setValueExpr"));
48 } catch (IntrospectionException ex) {
49 }
50
51 try {
52 proplist.add(new PropertyDescriptor("content", ELPutTag.class,
53 null, "setContentExpr"));
54 } catch (IntrospectionException ex) {
55 }
56
57 try {
58 proplist.add(new PropertyDescriptor("direct", ELPutTag.class, null,
59 "setDirectExpr"));
60 } catch (IntrospectionException ex) {
61 }
62
63 try {
64 proplist.add(new PropertyDescriptor("type", ELPutTag.class, null,
65 "setTypeExpr"));
66 } catch (IntrospectionException ex) {
67 }
68
69 try {
70 proplist.add(new PropertyDescriptor("beanName", ELPutTag.class,
71 null, "setBeanNameExpr"));
72 } catch (IntrospectionException ex) {
73 }
74
75 try {
76 proplist.add(new PropertyDescriptor("beanProperty", ELPutTag.class,
77 null, "setBeanPropertyExpr"));
78 } catch (IntrospectionException ex) {
79 }
80
81 try {
82 proplist.add(new PropertyDescriptor("beanScope", ELPutTag.class,
83 null, "setBeanScopeExpr"));
84 } catch (IntrospectionException ex) {
85 }
86
87 try {
88 proplist.add(new PropertyDescriptor("role", ELPutTag.class, null,
89 "setRoleExpr"));
90 } catch (IntrospectionException ex) {
91 }
92
93 PropertyDescriptor[] result = new PropertyDescriptor[proplist.size()];
94
95 return ((PropertyDescriptor[]) proplist.toArray(result));
96 }
97 }