org.broadleafcommerce.profile.extensibility.context.merge
Class MergePoint
java.lang.Object
org.broadleafcommerce.profile.extensibility.context.merge.MergePoint
public class MergePoint
- extends java.lang.Object
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
|
Method Summary |
org.w3c.dom.Node[] |
merge(java.util.List<org.w3c.dom.Node> exhaustedNodes)
Execute the merge operation and also provide a list of nodes that have already been
merged. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MergePoint
public MergePoint(MergeHandler handler,
org.w3c.dom.Document doc1,
org.w3c.dom.Document doc2)
merge
public org.w3c.dom.Node[] merge(java.util.List<org.w3c.dom.Node> exhaustedNodes)
throws javax.xml.xpath.XPathExpressionException
- 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:
javax.xml.xpath.XPathExpressionException
Copyright © 2011. All Rights Reserved.