Class NonEmptyNodeReplaceInsert
java.lang.Object
org.broadleafcommerce.common.extensibility.context.merge.handlers.BaseHandler
org.broadleafcommerce.common.extensibility.context.merge.handlers.NodeReplaceInsert
org.broadleafcommerce.common.extensibility.context.merge.handlers.NonEmptyNodeReplaceInsert
- All Implemented Interfaces:
Comparable<Object>,MergeHandler
This handler is responsible for replacing nodes in the source document
with the same nodes from the patch document. Note, additional nodes
from the patch document that are not present in the source document
are simply appended to the source document. This handler differs from its
parent in that it will not replace an existing node with a node from
the patch document if that patch node contains no child nodes.
- Author:
- Jeff Fischer
-
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.NodeReplaceInsert
checkNode, exactNodeExists, exhaustedNodesContains, merge, replaceCeilingEntityNodeMethods inherited from class org.broadleafcommerce.common.extensibility.context.merge.handlers.BaseHandler
compareTo, getChildren, getName, getPriority, getXPath, setChildren, setName, setPriority, setXPath
-
Constructor Details
-
NonEmptyNodeReplaceInsert
public NonEmptyNodeReplaceInsert()
-
-
Method Details
-
replaceNode
protected boolean replaceNode(Node[] primaryNodes, Node testNode, String attribute, List<Node> usedNodes) - Overrides:
replaceNodein classNodeReplaceInsert
-