elemRefs ? child : null); constructHierarchy(childNode, child, elemRefs, trimFlag); node.addChild(childNode); handleDelimiters(node, childNode, trimFlag);
elemRefs ? child : null); constructHierarchy(childNode, child, elemRefs, trimFlag); node.addChild(childNode); handleDelimiters(node, childNode, trimFlag);
peek().addChild(node); push(node);
peek().addChild(node); push(node);
configuration.getRoot().addChild(child);
configuration.getRoot().addChild(child);
/** * Creates a new instance of {@code Node} based on the given * source node. All properties of the source node, including its * children and attributes, will be copied. * * @param src the node to be copied */ public Node(ConfigurationNode src) { this(src.getName(), src.getValue()); setReference(src.getReference()); for (ConfigurationNode nd : src.getChildren()) { // Don't change the parent node ConfigurationNode parent = nd.getParentNode(); addChild(nd); nd.setParentNode(parent); } for (ConfigurationNode nd : src.getAttributes()) { // Don't change the parent node ConfigurationNode parent = nd.getParentNode(); addAttribute(nd); nd.setParentNode(parent); } }
/** * Creates a new instance of {@code Node} based on the given * source node. All properties of the source node, including its * children and attributes, will be copied. * * @param src the node to be copied */ public Node(ConfigurationNode src) { this(src.getName(), src.getValue()); setReference(src.getReference()); for (ConfigurationNode nd : src.getChildren()) { // Don't change the parent node ConfigurationNode parent = nd.getParentNode(); addChild(nd); nd.setParentNode(parent); } for (ConfigurationNode nd : src.getAttributes()) { // Don't change the parent node ConfigurationNode parent = nd.getParentNode(); addAttribute(nd); nd.setParentNode(parent); } }
/** * Adds the given node to the children of this node. * * @param node the child to be added */ public void addChild(Node node) { addChild((ConfigurationNode) node); }
/** * Adds the given node to the children of this node. * * @param node the child to be added */ public void addChild(Node node) { addChild((ConfigurationNode) node); }