Package org.vmguys.vmtools.utils

This package contains classes that manipulate XML data.

See:
          Description

Interface Summary
ProgressReporter A class that implements this interface can be used to report the progress of a running computation.
 

Class Summary
AbstractOperation This is the parent class of the various operations that can be put into a CostOps object.
AttributeDeleteOperation This class represents an operation to delete an attribute of an Element.
AttributeInsertOperation This class represents an operation to insert a new attribute of an Element.
AttributeModifyOperation This class represents a change to an attribute of an Element.
AttributeNameComparator This class implements Comparator, and is used when sorting the attributes of two Elements.
ContentAddOperation This class represents an addition to the content of an Element.
ContentDeleteOperation This class represents a deletion of some of the content of an Element.
ContentModifyOperation This class represents a modification of some of the content of an Element.
CostOps Contains a series of operations and a cost.
DiffElement This class adds properties to Element that are needed by the algorithm used.
DifferenceFinder2 This class contains methods to compare two JDOM trees and find the differences.
DomFactory This extension of the default JDOM factory class instantiates DiffElements instead of Elements.
ElementDeleteOperation This class represents a deletion of a single node from the tree.
ElementRenameOperation This class represents a change to the name of a node in the tree.
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.
JdomPatcher This class takes a set of patch instructions that are in a JDOM tree or a List and applies them to a JDOM tree.
OperationNodeNumberComparator  
SubtreeDeleteOperation This class contains the information needed to delete a subtree.
SubtreeInsertOperation This class contains the information needed to insert a subtree.
VMJdomDiff This class generates and applies difference documents.
XmlBeautify This application parses an XML file and then writes it out.
XPath This class implements a subset of XPath, which allows an element in an XML document to be specified by giving a path to it.
 

Package org.vmguys.vmtools.utils Description

This package contains classes that manipulate XML data.

The primary class is JdomDifferenceFinder. It generates and applies difference files. If given two pieces of XML data, it will generate a difference file that will show the differences between the data. If given a piece of XML data and a difference file, it will apply the update and return the modified data.

The class that performs the work to find the differences between two pieces of XML data is DifferenceFinder2. It takes as input two JDOM trees and returns information about the minimal differences between the trees in a CostOps object.

The remaining classes (CostOps, XPath, and the XxxxxOperation classes) all provide support for the previous classes.



Copyright © 2001 VM Systems, Inc. All Rights Reserved.