Hashtable<String, String> typeOptions = sortClassesByRoot(listS); if (typeOptions == null) {
Hashtable<String, String> typeOptions = sortClassesByRoot(listS); if (typeOptions == null) {
/** * Populates a target folder in the tree for a particular class of weka * algorithm wrapper step * * @param targetFolder the folder to populate * @param wrapper the {@code WekaAlgorithmWrapper} implementation * @param GOEProps generic object editor properties * @throws Exception if a problem occurs */ protected void populateForWekaWrapper(DefaultMutableTreeNode targetFolder, WekaAlgorithmWrapper wrapper, Properties GOEProps) throws Exception { Class wrappedAlgoClass = wrapper.getWrappedAlgorithmClass(); String implList = GOEProps.getProperty(wrappedAlgoClass.getCanonicalName()); String hppRoot = wrappedAlgoClass.getCanonicalName(); hppRoot = hppRoot.substring(0, hppRoot.lastIndexOf('.')); if (implList == null) { throw new WekaException( "Unable to get a list of weka implementations for " + "class '" + wrappedAlgoClass.getCanonicalName() + "'"); } Hashtable<String, String> roots = GenericObjectEditor.sortClassesByRoot(implList); for (Map.Entry<String, String> e : roots.entrySet()) { String classes = e.getValue(); HierarchyPropertyParser hpp = new HierarchyPropertyParser(); hpp.build(classes, ", "); hpp.goTo(hppRoot); processPackage(hpp, targetFolder, wrapper); } }
/** * Populates a target folder in the tree for a particular class of weka * algorithm wrapper step * * @param targetFolder the folder to populate * @param wrapper the {@code WekaAlgorithmWrapper} implementation * @param GOEProps generic object editor properties * @throws Exception if a problem occurs */ protected void populateForWekaWrapper(DefaultMutableTreeNode targetFolder, WekaAlgorithmWrapper wrapper, Properties GOEProps) throws Exception { Class wrappedAlgoClass = wrapper.getWrappedAlgorithmClass(); String implList = GOEProps.getProperty(wrappedAlgoClass.getCanonicalName()); String hppRoot = wrappedAlgoClass.getCanonicalName(); hppRoot = hppRoot.substring(0, hppRoot.lastIndexOf('.')); if (implList == null) { throw new WekaException( "Unable to get a list of weka implementations for " + "class '" + wrappedAlgoClass.getCanonicalName() + "'"); } Hashtable<String, String> roots = GenericObjectEditor.sortClassesByRoot(implList); for (Map.Entry<String, String> e : roots.entrySet()) { String classes = e.getValue(); HierarchyPropertyParser hpp = new HierarchyPropertyParser(); hpp.build(classes, ", "); hpp.goTo(hppRoot); processPackage(hpp, targetFolder, wrapper); } }
.sortClassesByRoot(wekaAlgs); Hashtable<String, HierarchyPropertyParser> hpps = new Hashtable<String, HierarchyPropertyParser>();
.sortClassesByRoot(wekaAlgs); Hashtable<String, HierarchyPropertyParser> hpps = new Hashtable<String, HierarchyPropertyParser>();