1 32 33 package com.jeantessier.dependencyfinder; 34 35 import java.beans.*; 36 37 public class VersionBeanInfo extends SimpleBeanInfo { 38 public PropertyDescriptor[] getPropertyDescriptors() { 39 PropertyDescriptor[] result = new PropertyDescriptor[13]; 40 41 try { 42 result[0] = new PropertyDescriptor("ResourceURL", Version.class, "getResourceURL", null); 43 result[1] = new PropertyDescriptor("JarName", Version.class, "getJarName", null); 44 result[2] = new PropertyDescriptor("ImplementationURL", Version.class, "getImplementationURL", null); 45 result[3] = new PropertyDescriptor("ImplementationTitle", Version.class, "getImplementationTitle", null); 46 result[4] = new PropertyDescriptor("ImplementationVersion", Version.class, "getImplementationVersion", null); 47 result[5] = new PropertyDescriptor("ImplementationVendor", Version.class, "getImplementationVendor", null); 48 result[6] = new PropertyDescriptor("ImplementationDate", Version.class, "getImplementationDate", null); 49 result[7] = new PropertyDescriptor("SpecificationTitle", Version.class, "getSpecificationTitle", null); 50 result[8] = new PropertyDescriptor("SpecificationVersion", Version.class, "getSpecificationVersion", null); 51 result[9] = new PropertyDescriptor("SpecificationVendor", Version.class, "getSpecificationVendor", null); 52 result[10] = new PropertyDescriptor("SpecificationDate", Version.class, "getSpecificationDate", null); 53 result[11] = new PropertyDescriptor("CopyrightHolder", Version.class, "getCopyrightHolder", null); 54 result[12] = new PropertyDescriptor("CopyrightDate", Version.class, "getCopyrightDate", null); 55 } catch (IntrospectionException ex) { 56 result = null; 57 } 58 59 return result; 60 } 61 } 62 63 | Popular Tags |