|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.UCL.xmiddle.lib.reconciliation.LevelTreeReconcile
LevelTreeReconcile is used to reconcile differences between two trees. The two trees are passed to this class, and their differences found. These differences are then reconciled, either application-independently, or if no general case is possible, then application-specifically. This relies on the application's default reconciliation policy, or any reconciliation policy specified locally to the reconciled Node.
LevelTreeDiff
,
LevelTreeMerge
Constructor Summary | |
LevelTreeReconcile()
|
Method Summary | |
static boolean |
areNodesEqual(org.w3c.dom.Node n1,
org.w3c.dom.Node n2)
This method compares two nodes (by means of a recursive procedure). |
static boolean |
areNodesEqualNotStandard(org.w3c.dom.Node n1,
org.w3c.dom.Node n2)
This method compares two nodes (recursive style - alternative implementation). |
static org.w3c.dom.Node |
findNode(org.w3c.dom.Node n,
org.w3c.dom.Document dataSchema)
Finds the node that can be duplicated using the given Schema Document . |
static org.w3c.dom.Document |
reconcile(org.w3c.dom.Document treeA,
org.w3c.dom.Document treeB,
org.w3c.dom.Document latestCommonDocument,
org.w3c.dom.Document schema)
Apply reconciliation policies to the two trees. |
static void |
resolveAttributes(org.w3c.dom.Node n1,
org.w3c.dom.Node n2,
org.w3c.dom.Node nOld)
Solves attribute conflicts (in the case order not important). |
static void |
resolveNode(org.w3c.dom.Node n1,
org.w3c.dom.Node n2,
org.w3c.dom.Node nOld)
This method solve conflicts according to a non standard resolution policy (case of presence of attribute Resolutor with value different from null). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LevelTreeReconcile()
Method Detail |
public static org.w3c.dom.Document reconcile(org.w3c.dom.Document treeA, org.w3c.dom.Document treeB, org.w3c.dom.Document latestCommonDocument, org.w3c.dom.Document schema)
treeA
- the first of a pair of trees to be reconciled.treeB
- the second of a pair of trees to be reconciled.latestCommonDocument
- The latest common document
Document
public static boolean areNodesEqual(org.w3c.dom.Node n1, org.w3c.dom.Node n2)
public static boolean areNodesEqualNotStandard(org.w3c.dom.Node n1, org.w3c.dom.Node n2)
public static org.w3c.dom.Node findNode(org.w3c.dom.Node n, org.w3c.dom.Document dataSchema)
Document
.
n
- the node from which the retrieving process starts(a "leaf" node)dataSchema
- the associated Schema Document
public static void resolveNode(org.w3c.dom.Node n1, org.w3c.dom.Node n2, org.w3c.dom.Node nOld)
public static void resolveAttributes(org.w3c.dom.Node n1, org.w3c.dom.Node n2, org.w3c.dom.Node nOld)
n1
- node of the base documentn2
- node of the other documentnOld
- node of the common latest edition document
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |