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.ELImportAttributeTag</code> class.
29 * It is needed to override the default mapping of custom tag attribute names
30 * to class attribute names.
31 */
32 public class ELImportAttributeTagBeanInfo extends SimpleBeanInfo {
33 public PropertyDescriptor[] getPropertyDescriptors() {
34 ArrayList proplist = new ArrayList();
35
36 try {
37 proplist.add(new PropertyDescriptor("scope",
38 ELImportAttributeTag.class, null, "setScopeExpr"));
39 } catch (IntrospectionException ex) {
40 }
41
42 try {
43 proplist.add(new PropertyDescriptor("name",
44 ELImportAttributeTag.class, null, "setNameExpr"));
45 } catch (IntrospectionException ex) {
46 }
47
48 try {
49 proplist.add(new PropertyDescriptor("ignore",
50 ELImportAttributeTag.class, null, "setIgnoreExpr"));
51 } catch (IntrospectionException ex) {
52 }
53
54 PropertyDescriptor[] result = new PropertyDescriptor[proplist.size()];
55
56 return ((PropertyDescriptor[]) proplist.toArray(result));
57 }
58 }