org.broadleafcommerce.common.extensibility.context.merge.handlers
Class InsertChildrenOf

java.lang.Object
  extended by org.broadleafcommerce.common.extensibility.context.merge.handlers.BaseHandler
      extended by org.broadleafcommerce.common.extensibility.context.merge.handlers.InsertChildrenOf
All Implemented Interfaces:
Comparable<Object>, MergeHandler

public class InsertChildrenOf
extends BaseHandler

This handler implementation provides behavior where the child nodes from an element in the patch document are added to the same node in the source document.

Author:
jfischer

Field Summary
 
Fields inherited from class org.broadleafcommerce.common.extensibility.context.merge.handlers.BaseHandler
children, name, priority, xpath
 
Constructor Summary
InsertChildrenOf()
           
 
Method Summary
 Node[] merge(NodeList nodeList1, NodeList nodeList2, List<Node> exhaustedNodes)
          Perform the merge using the supplied list of nodes from the source and patch documents, respectively.
 
Methods inherited from class org.broadleafcommerce.common.extensibility.context.merge.handlers.BaseHandler
compareTo, getChildren, getName, getPriority, getXPath, setChildren, setName, setPriority, setXPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsertChildrenOf

public InsertChildrenOf()
Method Detail

merge

public Node[] merge(NodeList nodeList1,
                    NodeList nodeList2,
                    List<Node> exhaustedNodes)
Description copied from interface: MergeHandler
Perform the merge using the supplied list of nodes from the source and patch documents, respectively. Also, a list of nodes that have already been merged is provided and may be used by the implementation when necessary.

Parameters:
nodeList1 - list of nodes to be merged from the source document
nodeList2 - list of nodes to be merged form the patch document
exhaustedNodes - already merged nodes
Returns:
list of merged nodes


Copyright © 2012. All Rights Reserved.