Uses of Interface
org.custommonkey.xmlunit.DifferenceListener
Packages that use DifferenceListener
Package
Description
Root of the XMLUnit 1.x compatibility layer.
-
Uses of DifferenceListener in org.custommonkey.xmlunit
Classes in org.custommonkey.xmlunit that implement DifferenceListenerModifier and TypeClassDescriptionclassCompares and describes all the differences between two XML documents.classCompares and describes any difference between XML documents.classClass to use when performing a Diff that only compares the structure of 2 pieces of XML, i.e.Fields in org.custommonkey.xmlunit declared as DifferenceListenerModifier and TypeFieldDescriptionprivate DifferenceListenerprivate final DifferenceListenerNewDifferenceEngine.DifferenceListener2DifferenceEvaluator.dlMethods in org.custommonkey.xmlunit with parameters of type DifferenceListenerModifier and TypeMethodDescriptionprotected voidDifferenceEngine.compare(Object expected, Object actual, Node control, Node test, DifferenceListener listener, Difference difference) If the expected and actual values are unequal then inform the listener of a difference and throw a DifferenceFoundException.protected voidDifferenceEngine.compare(Object expected, Object actual, Node control, Node test, DifferenceListener listener, Difference difference, XpathNodeTracker controlLoc, XpathNodeTracker testLoc) If the expected and actual values are unequal then inform the listener of a difference and throw a DifferenceFoundException.voidDifferenceEngine.compare(Node control, Node test, DifferenceListener listener, ElementQualifier elementQualifier) Entry point for Node comparison testing.voidDifferenceEngineContract.compare(Node control, Node test, DifferenceListener listener, ElementQualifier elementQualifier) Entry point for Node comparison testing.voidNewDifferenceEngine.compare(Node control, Node test, DifferenceListener listener, ElementQualifier elementQualifier) Entry point for Node comparison testing.protected voidDifferenceEngine.compareAttribute(Attr control, Attr test, DifferenceListener listener) Compare two attributesprotected voidDifferenceEngine.compareCDataSection(CDATASection control, CDATASection test, DifferenceListener listener) Compare two CDATA sections - unused, kept for backwards compatibilityprivate voidDifferenceEngine.compareCharacterData(CharacterData control, CharacterData test, DifferenceListener listener, Difference difference) Character comparison method used by comments, text and CDATA sectionsprotected voidDifferenceEngine.compareComment(Comment control, Comment test, DifferenceListener listener) Compare two commentsprotected voidDifferenceEngine.compareDocument(Document control, Document test, DifferenceListener listener, ElementQualifier elementQualifier) Compare two Documents for doctype and then element differencesprotected voidDifferenceEngine.compareDocumentType(DocumentType control, DocumentType test, DifferenceListener listener) Compare two DocumentType nodesprotected voidDifferenceEngine.compareElement(Element control, Element test, DifferenceListener listener) Compare 2 elements and their attributes(package private) voidDifferenceEngine.compareElementAttributes(Element control, Element test, NamedNodeMap controlAttr, NamedNodeMap testAttr, DifferenceListener listener) protected voidDifferenceEngine.compareHasChildNodes(Node control, Node test, DifferenceListener listener) Compare the number of children, and if the same, compare the actual children via their NodeLists.protected voidDifferenceEngine.compareNode(Node control, Node test, DifferenceListener listener, ElementQualifier elementQualifier) First point of call: if nodes are comparable it compares node values then recurses to compare node children.protected booleanDifferenceEngine.compareNodeBasics(Node control, Node test, DifferenceListener listener) Compares node type and node namespace characteristics: basically determines if nodes are comparable furtherprotected voidDifferenceEngine.compareNodeChildren(Node control, Node test, DifferenceListener listener, ElementQualifier elementQualifier) Compare the number of children, and if the same, compare the actual children via their NodeLists.protected voidDifferenceEngine.compareNodeList(List<Node> controlChildren, List<Node> testChildren, int numNodes, DifferenceListener listener, ElementQualifier elementQualifier) Compare the contents of two node list one by one, assuming that order of children is NOT important: matching begins at same position in test list as control list.protected voidDifferenceEngine.compareProcessingInstruction(ProcessingInstruction control, ProcessingInstruction test, DifferenceListener listener) Compare two processing instructionsprotected voidDifferenceEngine.compareRecognizedXMLSchemaInstanceAttribute(Attr control, Attr test, DifferenceListener listener) Compare two attributesprotected voidDifferenceEngine.compareText(CharacterData control, CharacterData test, DifferenceListener listener) Compare textprotected voidDifferenceEngine.compareText(Text control, Text test, DifferenceListener listener) Compare text - unused, kept for backwards compatibilityprivate voidDifferenceEngine.missingNode(Node control, Node test, DifferenceListener listener) voidDiff.overrideDifferenceListener(DifferenceListener delegate) Override theDifferenceListenerused to determine how to handle differences that are found.Constructors in org.custommonkey.xmlunit with parameters of type DifferenceListener -
Uses of DifferenceListener in org.custommonkey.xmlunit.examples
Classes in org.custommonkey.xmlunit.examples that implement DifferenceListenerModifier and TypeClassDescriptionclassIgnores case for all textual content.classExpects texts to be floating point numbers and treats them as identical if they only differ by a given tolerance value (or less).classBase class that delegates all differences to another DifferenceListener.Fields in org.custommonkey.xmlunit.examples declared as DifferenceListenerModifier and TypeFieldDescriptionprivate final DifferenceListenerTextDifferenceListenerBase.delegateToConstructors in org.custommonkey.xmlunit.examples with parameters of type DifferenceListenerModifierConstructorDescriptionCaseInsensitiveDifferenceListener(DifferenceListener delegateTo) FloatingPointTolerantDifferenceListener(DifferenceListener delegateTo, double tolerance) protectedTextDifferenceListenerBase(DifferenceListener delegateTo)