@When("the relationship \"$children\" is configured with node name \"$rootNode\"") public void setNodeNameForChildren(String childName, String node) { if (options == null) { options = new ParsingOptions(); } ParsingOptions opt = options.children.get(childName); opt.nodeName = node; options.children.put(childName, opt); }
@When("I configure the $type node to be \"$rootNode\"") public void setRootNode(String type, String rootNode) { if (options == null) { options = new ParsingOptions(); } if (type.equals("root")) { options.rootNode = rootNode; } else if (type.equals("array")) { options.nodeName = rootNode; } }