/** * This method returns the list of subclasses of the className * * @author aarti_sharma * @param className * @return * @throws ClassNotFoundException */ public static List getSubClassList(String className) throws ClassNotFoundException { List list = new ArrayList(); Class classObj = Class.forName(className); Iterator it = cfg.getClassMapping(classObj).getDirectSubclasses(); while (it.hasNext()) { Subclass subClass = (Subclass) it.next(); System.out.println(subClass.getClass().getName()); System.out.println("Name " + subClass.getName()); list.add(subClass.getName()); } return list; }