|
||||||||||
| 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. |
String |
getName()
Retrieve the name associated with this merge handlers. |
int |
getPriority()
Retrieve the priority for the handler. |
String |
getXPath()
Retrieve the XPath query associated with this handler. |
Node[] |
merge(NodeList nodeList1,
NodeList nodeList2,
List<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(String name)
Set the period-delimited numeric string that names this handler |
void |
setPriority(int priority)
Set the priority for this handler |
void |
setXPath(String xpath)
Set the xpath query |
| Method Detail |
|---|
Node[] merge(NodeList nodeList1,
NodeList nodeList2,
List<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 - String getXPath()
void setXPath(String xpath)
xpath - MergeHandler[] getChildren()
void setChildren(MergeHandler[] children)
children - String getName()
void setName(String name)
name -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||