public Nodes withMigratorClass(String value) { setMigratorClass(value); return this; }
@Override public Nodes findAllNodesInWizardLabels(String searchpath) { // search all .xml files Iterator<File> labelFiles = FileUtils.iterateFiles(new File(searchpath), new String[] { "xml" }, false); Nodes nodes = null; while (labelFiles.hasNext()) { File labelFile = labelFiles.next(); LOGGER.info("Found labelFile: {}", labelFile); String fileName = FilenameUtils.getBaseName(labelFile.getName()); long uniqueId = NodeUtils.parseUniqueId(fileName); if (nodes == null) { // create default empty Nodes instance nodes = new Nodes().withSearchPath(searchpath); } NodeLabel nodeLabel = new NodeLabel(); nodeLabel.withUniqueId(uniqueId); nodes.withNodeLabel(nodeLabel); } if (nodes != null) { LOGGER.info("Set the migrator class."); nodes.setMigratorClass(getClass().getName()); } return nodes; }
nodes.setMigratorClass(getClass().getName());
nodes.setMigratorClass(getClass().getName());