1 18 19 package org.apache.strutsel.taglib.logic; 20 21 import java.beans.IntrospectionException ; 22 import java.beans.PropertyDescriptor ; 23 import java.beans.SimpleBeanInfo ; 24 import java.util.ArrayList ; 25 26 39 public class ELMatchTagBeanInfo extends SimpleBeanInfo 40 { 41 public PropertyDescriptor [] getPropertyDescriptors() 42 { 43 ArrayList proplist = new ArrayList (); 44 45 try { 46 proplist.add(new PropertyDescriptor ("cookie", ELMatchTag.class, 47 null, "setCookieExpr")); 48 } catch (IntrospectionException ex) {} 49 try { 50 proplist.add(new PropertyDescriptor ("header", ELMatchTag.class, 51 null, "setHeaderExpr")); 52 } catch (IntrospectionException ex) {} 53 try { 54 proplist.add(new PropertyDescriptor ("location", ELMatchTag.class, 55 null, "setLocationExpr")); 56 } catch (IntrospectionException ex) {} 57 try { 58 proplist.add(new PropertyDescriptor ("name", ELMatchTag.class, 59 null, "setNameExpr")); 60 } catch (IntrospectionException ex) {} 61 try { 62 proplist.add(new PropertyDescriptor ("parameter", ELMatchTag.class, 63 null, "setParameterExpr")); 64 } catch (IntrospectionException ex) {} 65 try { 66 proplist.add(new PropertyDescriptor ("property", ELMatchTag.class, 67 null, "setPropertyExpr")); 68 } catch (IntrospectionException ex) {} 69 try { 70 proplist.add(new PropertyDescriptor ("scope", ELMatchTag.class, 71 null, "setScopeExpr")); 72 } catch (IntrospectionException ex) {} 73 try { 74 proplist.add(new PropertyDescriptor ("value", ELMatchTag.class, 75 null, "setValueExpr")); 76 } catch (IntrospectionException ex) {} 77 try { 78 proplist.add(new PropertyDescriptor ("expr", ELMatchTag.class, 79 null, "setExpr")); 80 } catch (IntrospectionException ex) {} 81 82 PropertyDescriptor [] result = 83 new PropertyDescriptor [proplist.size()]; 84 return ((PropertyDescriptor []) proplist.toArray(result)); 85 } 86 } 87 | Popular Tags |