|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MergeHandler
All handlers must implement the MergeHandler interface. It defines the key properties and actions a MergeHandler must perform. MergeHandlers perform the actual merge of data from the patch document to the source document based on the business rules of the implementation.
| Method Summary | |
|---|---|
MergeHandler[] |
getChildren()
Retrieve any child merge handlers associated with this handler. |
java.lang.String |
getName()
Retrieve the name associated with this merge handlers. |
int |
getPriority()
Retrieve the priority for the handler. |
java.lang.String |
getXPath()
Retrieve the XPath query associated with this handler. |
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. |
void |
setChildren(MergeHandler[] children)
Set the child merge handlers |
void |
setName(java.lang.String name)
Set the period-delimited numeric string that names this handler |
void |
setPriority(int priority)
Set the priority for this handler |
void |
setXPath(java.lang.String xpath)
Set the xpath query |
| Method Detail |
|---|
org.w3c.dom.Node[] merge(org.w3c.dom.NodeList nodeList1,
org.w3c.dom.NodeList nodeList2,
java.util.List<org.w3c.dom.Node> exhaustedNodes)
nodeList1 - list of nodes to be merged from the source documentnodeList2 - list of nodes to be merged form the patch documentexhaustedNodes - already merged nodes
int getPriority()
void setPriority(int priority)
priority - java.lang.String getXPath()
void setXPath(java.lang.String xpath)
xpath - MergeHandler[] getChildren()
void setChildren(MergeHandler[] children)
children - java.lang.String getName()
void setName(java.lang.String name)
name -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||