示例#1
0
 @When("the relationship \"$children\" is configured with root node \"$rootNode\"")
 public void setRootNodeForChildren(String childName, String root) {
   if (options == null) {
     options = new ParsingOptions();
   }
   ParsingOptions opt = options.children.get(childName);
   opt.rootNode = root;
   options.children.put(childName, opt);
 }
示例#2
0
 @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;
   }
 }