|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.vmguys.vmtools.utils.JdomDifferenceFinder
This class finds the differences between two JDOM trees, and returns a JDOM tree containing the operations needed to convert one tree to the other. It uses the methods in DifferenceFinder2 to do most of the work.
| Constructor Summary | |
JdomDifferenceFinder()
Constructs a JdomDifferenceFinder using the namespace of NO_NAMESPACE. |
|
JdomDifferenceFinder(org.jdom.Namespace namespace)
Constructs a JdomDifferenceFinder with the specified namespace. |
|
JdomDifferenceFinder(org.jdom.Namespace namespace,
boolean discardWhitespace)
Constructs a JdomDifferencefinder with the specified namespace and setting for discardWhitespace. |
|
JdomDifferenceFinder(org.jdom.Namespace namespace,
boolean discardWhitespace,
boolean addComments)
Constructs a JdomDifferenceFinder with the specified namespace, setting for discardWhitespace, and setting for addComments. |
|
| Method Summary | |
void |
findDifferences(org.jdom.Element tree1,
org.jdom.Element tree2,
org.jdom.Element diffRoot)
This method finds the minimal differences between two JDOM trees and returns the operations needed to convert one to the other as a JDOM tree. |
void |
setAllowRename(boolean flag)
This method sets property that indicates whether the difference finder should include operations that rename a node. |
void |
setProgressReporter(ProgressReporter pr)
This method sets the progress reporter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JdomDifferenceFinder()
public JdomDifferenceFinder(org.jdom.Namespace namespace)
public JdomDifferenceFinder(org.jdom.Namespace namespace,
boolean discardWhitespace)
public JdomDifferenceFinder(org.jdom.Namespace namespace,
boolean discardWhitespace,
boolean addComments)
| Method Detail |
public void findDifferences(org.jdom.Element tree1,
org.jdom.Element tree2,
org.jdom.Element diffRoot)
throws org.jdom.JDOMException
public void setProgressReporter(ProgressReporter pr)
public void setAllowRename(boolean flag)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||