public Method getGetter(String name) { Method getMethod = null; try { getMethod = this.getClass().getMethod(name, (Class[]) null); } catch (Exception ea) { ea.printStackTrace(); } return getMethod; }
public EditorPanel getEditorPanelWithInstance() { EditorPanel thePanel = null; try { thePanel = new KeywordPanel(); thePanel.edit(this); } catch (Exception ea) { ea.printStackTrace(); } return (thePanel); }
public Method getSetter(String name, Class argName) { Class[] paramList = new Class[1]; Method setMethod = null; try { // System.out.println("setter " + name + " " // + paramList + " " + argName); if (argName == DefaultPersistibleList.class) argName = Collection.class; // System.out.println("setter " + name + " " // + paramList + " " + argName); paramList[0] = argName; setMethod = this.getClass().getMethod(name, paramList); } catch (Exception ea) { ea.printStackTrace(); } return setMethod; }