org.broadleafcommerce.profile.extensibility.context.merge.handlers
Class AttributePreserveInsert
java.lang.Object
org.broadleafcommerce.profile.extensibility.context.merge.handlers.BaseHandler
org.broadleafcommerce.profile.extensibility.context.merge.handlers.AttributePreserveInsert
- All Implemented Interfaces:
- java.lang.Comparable<java.lang.Object>, MergeHandler
public class AttributePreserveInsert
- extends BaseHandler
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
|
Method Summary |
org.w3c.dom.Node[] |
merge(org.w3c.dom.NodeList nodeList1,
org.w3c.dom.NodeList nodeList2,
java.util.List<org.w3c.dom.Node> exhaustedNodes)
Perform the merge using the supplied list of nodes from the source and
patch documents, respectively. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributePreserveInsert
public AttributePreserveInsert()
merge
public org.w3c.dom.Node[] merge(org.w3c.dom.NodeList nodeList1,
org.w3c.dom.NodeList nodeList2,
java.util.List<org.w3c.dom.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 documentnodeList2 - list of nodes to be merged form the patch documentexhaustedNodes - already merged nodes
- Returns:
- list of merged nodes
Copyright © 2011. All Rights Reserved.