|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.UCL.xmiddle.lib.treediff.LevelTreeMerge
LevelTreeMerge implements an algorithm to apply a diff-tree to a base tree so as to produce a new, modified tree. The diff tree can be created using the LevelTreeDiff class.
LevelTreeDiff
Constructor Summary | |
LevelTreeMerge()
|
Method Summary | |
static org.w3c.dom.Document |
merge(org.w3c.dom.Document base,
org.w3c.dom.Document diff)
This method applies all changes in a diff tree to a base tree. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LevelTreeMerge()
Method Detail |
public static org.w3c.dom.Document merge(org.w3c.dom.Document base, org.w3c.dom.Document diff)
base
- the Document object of the base tree. Make sure you don't
pass a null object or any other invalid stuff.diff
- the Document object corresponding to the diff tree, as
produced by LevelTreeDiff. The diff tree must be in the format
specified in LevelTreeDiff.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |