Class MergePoint
java.lang.Object
org.broadleafcommerce.common.extensibility.context.merge.MergePoint
This class provides the xml merging apparatus at a defined XPath merge point in
2 xml documents. The MergeHandler that embodies the XPath point can have
embedded XPath merge points, resulting in a cumulative effect with varying
merge behavior for a sector of the documents. For example, it may be desirable
to replace all the child nodes of a given node with all the child nodes from the same
parent node in the patch document, with the exception of a single node. That single
node may instead contribute its contents in a additive fashion (rather than replace).
- Author:
- jfischer
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MergePoint
-
-
Method Details
-
merge
public Node[] merge(List<Node> exhaustedNodes) throws XPathExpressionException, TransformerException Execute the merge operation and also provide a list of nodes that have already been merged. It is up to the handler implementation to respect or ignore this list.- Parameters:
exhaustedNodes
-- Returns:
- list of merged nodes
- Throws:
XPathExpressionException
TransformerException
-