// JTEM - Java Tools for Experimental Mathematics // GPL Copyright (C) 2002 JTEM-Group // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA String beanInfoMaker(){ return beanInfoMaker(self);} String beanInfoMaker(String fullClassName){ import java.beans.BeanInfo; import java.beans.MethodDescriptor; import java.beans.PropertyDescriptor; import java.beans.Introspector; final int lastP = fullClassName.lastIndexOf('.'); final String packageName = fullClassName.substring(0,lastP); final String myClassName = fullClassName.substring (lastP+((lastP==0)?0:1)); // final String myclassName = myClassName.substring(0,1).toLowerCase() // + myClassName.substring(1); final BeanInfo bI= Introspector.getBeanInfo (Class.forName(fullClassName)); // final MethodDescriptor[] mDA = bI.getMethodDescriptors(); final PropertyDescriptor[] pDA = bI.getPropertyDescriptors(); final StringBuffer pDS = new StringBuffer(500*pDA.length); for (int i=0; i