Class AttributePreserveInsert
java.lang.Object
org.broadleafcommerce.common.extensibility.context.merge.handlers.BaseHandler
org.broadleafcommerce.common.extensibility.context.merge.handlers.AttributePreserveInsert
- All Implemented Interfaces:
Comparable<Object>,MergeHandler
Merge the attributes of a source and patch node, only adding attributes from
the patch side. When the same attribute is encountered in the source and
patch children list, the source attribute is left untouched.
- Author:
- jfischer
-
Field Summary
Fields inherited from class org.broadleafcommerce.common.extensibility.context.merge.handlers.BaseHandler
children, name, priority, xpath -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.broadleafcommerce.common.extensibility.context.merge.handlers.BaseHandler
compareTo, getChildren, getName, getPriority, getXPath, setChildren, setName, setPriority, setXPath
-
Constructor Details
-
AttributePreserveInsert
public AttributePreserveInsert()
-
-
Method Details
-
merge
Description copied from interface:MergeHandlerPerform 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 documentnodeList2- list of nodes to be merged form the patch documentexhaustedNodes- already merged nodes- Returns:
- list of merged nodes
-