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

public class InsertItems extends BaseHandler
This handler implementation provides behavior where a list of elements from the patch document are appended to the same parent element in the source document.
Author:
jfischer
  • Constructor Details

    • InsertItems

      public InsertItems()
  • Method Details

    • merge

      public Node[] merge(List<Node> nodeList1, List<Node> 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