1 18 19 package org.apache.strutsel.taglib.tiles; 20 21 import java.beans.PropertyDescriptor ; 22 import java.beans.IntrospectionException ; 23 import java.util.ArrayList ; 24 import java.beans.SimpleBeanInfo ; 25 26 32 public class ELPutTagBeanInfo extends SimpleBeanInfo 33 { 34 public PropertyDescriptor [] getPropertyDescriptors() 35 { 36 ArrayList proplist = new ArrayList (); 37 38 try { 39 proplist.add(new PropertyDescriptor ("name", ELPutTag.class, 40 null, "setNameExpr")); 41 } catch (IntrospectionException ex) {} 42 try { 43 proplist.add(new PropertyDescriptor ("value", ELPutTag.class, 44 null, "setValueExpr")); 45 } catch (IntrospectionException ex) {} 46 try { 47 proplist.add(new PropertyDescriptor ("content", ELPutTag.class, 48 null, "setContentExpr")); 49 } catch (IntrospectionException ex) {} 50 try { 51 proplist.add(new PropertyDescriptor ("direct", ELPutTag.class, 52 null, "setDirectExpr")); 53 } catch (IntrospectionException ex) {} 54 try { 55 proplist.add(new PropertyDescriptor ("type", ELPutTag.class, 56 null, "setTypeExpr")); 57 } catch (IntrospectionException ex) {} 58 try { 59 proplist.add(new PropertyDescriptor ("beanName", ELPutTag.class, 60 null, "setBeanNameExpr")); 61 } catch (IntrospectionException ex) {} 62 try { 63 proplist.add(new PropertyDescriptor ("beanProperty", ELPutTag.class, 64 null, "setBeanPropertyExpr")); 65 } catch (IntrospectionException ex) {} 66 try { 67 proplist.add(new PropertyDescriptor ("beanScope", ELPutTag.class, 68 null, "setBeanScopeExpr")); 69 } catch (IntrospectionException ex) {} 70 try { 71 proplist.add(new PropertyDescriptor ("role", ELPutTag.class, 72 null, "setRoleExpr")); 73 } catch (IntrospectionException ex) {} 74 75 PropertyDescriptor [] result = 76 new PropertyDescriptor [proplist.size()]; 77 return ((PropertyDescriptor []) proplist.toArray(result)); 78 } 79 } 80 | Popular Tags |