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 ELNotPresentTagBeanInfo extends SimpleBeanInfo 40 { 41 public PropertyDescriptor [] getPropertyDescriptors() 42 { 43 ArrayList proplist = new ArrayList (); 44 45 try { 46 proplist.add(new PropertyDescriptor ("cookie", ELNotPresentTag.class, 47 null, "setCookieExpr")); 48 } catch (IntrospectionException ex) {} 49 try { 50 proplist.add(new PropertyDescriptor ("header", ELNotPresentTag.class, 51 null, "setHeaderExpr")); 52 } catch (IntrospectionException ex) {} 53 try { 54 proplist.add(new PropertyDescriptor ("name", ELNotPresentTag.class, 55 null, "setNameExpr")); 56 } catch (IntrospectionException ex) {} 57 try { 58 proplist.add(new PropertyDescriptor ("parameter", ELNotPresentTag.class, 59 null, "setParameterExpr")); 60 } catch (IntrospectionException ex) {} 61 try { 62 proplist.add(new PropertyDescriptor ("property", ELNotPresentTag.class, 63 null, "setPropertyExpr")); 64 } catch (IntrospectionException ex) {} 65 try { 66 proplist.add(new PropertyDescriptor ("role", ELNotPresentTag.class, 67 null, "setRoleExpr")); 68 } catch (IntrospectionException ex) {} 69 try { 70 proplist.add(new PropertyDescriptor ("scope", ELNotPresentTag.class, 71 null, "setScopeExpr")); 72 } catch (IntrospectionException ex) {} 73 try { 74 proplist.add(new PropertyDescriptor ("user", ELNotPresentTag.class, 75 null, "setUserExpr")); 76 } catch (IntrospectionException ex) {} 77 78 PropertyDescriptor [] result = 79 new PropertyDescriptor [proplist.size()]; 80 return ((PropertyDescriptor []) proplist.toArray(result)); 81 } 82 } 83 | Popular Tags |