Uses of Class
org.custommonkey.xmlunit.Difference
Packages that use Difference
Package
Description
Root of the XMLUnit 1.x compatibility layer.
-
Uses of Difference in org.custommonkey.xmlunit
Fields in org.custommonkey.xmlunit declared as DifferenceModifier and TypeFieldDescriptionstatic final DifferenceDifferenceConstants.ATTR_NAME_NOT_FOUNDComparing 2 elements and one has an attribute the other does notstatic final DifferenceDifferenceConstants.ATTR_SEQUENCEComparing 2 attribute lists with the same attributes in different sequencestatic final DifferenceDifferenceConstants.ATTR_VALUEComparing 2 attributes with the same name but different valuesstatic final DifferenceDifferenceConstants.ATTR_VALUE_EXPLICITLY_SPECIFIEDComparing an implied attribute value against an explicit valuestatic final DifferenceDifferenceConstants.CDATA_VALUEComparing 2 CDATA sections with different valuesstatic final DifferenceDifferenceConstants.CHILD_NODE_NOT_FOUNDComparing 2 nodes and one holds more childnodes than can be matched against child nodes of the other.static final DifferenceDifferenceConstants.CHILD_NODELIST_LENGTHComparing 2 nodes with different numbers of childrenstatic final DifferenceDifferenceConstants.CHILD_NODELIST_SEQUENCEComparing 2 nodes with children whose nodes are in different sequencestatic final DifferenceDifferenceConstants.COMMENT_VALUEComparing 2 comments with different valuesstatic final DifferenceDifferenceConstants.DOCTYPE_NAMEComparing 2 document types with different namesstatic final DifferenceDifferenceConstants.DOCTYPE_PUBLIC_IDComparing 2 document types with different public identifiersstatic final DifferenceDifferenceConstants.DOCTYPE_SYSTEM_IDComparing 2 document types with different system identifiersstatic final DifferenceDifferenceConstants.ELEMENT_NUM_ATTRIBUTESComparing 2 elements with different number of attributesstatic final DifferenceDifferenceConstants.ELEMENT_TAG_NAMEComparing 2 elements with different tag namesstatic final DifferenceDifferenceConstants.HAS_CHILD_NODESComparing 2 nodes but only one has any childrenstatic final DifferenceDifferenceConstants.HAS_DOCTYPE_DECLARATIONComparing 2 Documents only one of which has a doctypestatic final DifferenceDifferenceConstants.NAMESPACE_PREFIXComparing 2 nodes with different namespace prefixesstatic final DifferenceDifferenceConstants.NAMESPACE_URIComparing 2 nodes with different namespace URIsstatic final DifferenceDifferenceConstants.NO_NAMESPACE_SCHEMA_LOCATIONComparing 2 nodes with different xsi:noNamespaceSchemaLocation attributes, potentially only one of the two provides such an attribute at all.static final DifferenceDifferenceConstants.NODE_TYPEComparing 2 nodes with different node typesstatic final DifferenceDifferenceConstants.PROCESSING_INSTRUCTION_DATAComparing 2 processing instructions with different instructionsstatic final DifferenceDifferenceConstants.PROCESSING_INSTRUCTION_TARGETComparing 2 processing instructions with different targetsstatic final DifferenceDifferenceConstants.SCHEMA_LOCATIONComparing 2 nodes with different xsi:schemaLocation attributes, potentially only one of the two provides such an attribute at all.static final DifferenceDifferenceConstants.TEXT_VALUEComparing 2 different text valuesMethods in org.custommonkey.xmlunit that return types with arguments of type DifferenceModifier and TypeMethodDescriptionDetailedDiff.getAllDifferences()Obtain all the differences found by this instancestatic Iterable<Difference>NewDifferenceEngine.toDifference(Comparison comp) Maps a Comparison to Differences.Methods in org.custommonkey.xmlunit with parameters of type DifferenceModifier 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.intDetailedDiff.differenceFound(Difference difference) DifferenceListener implementation.intDiff.differenceFound(Difference difference) DifferenceListener implementation.intDifferenceListener.differenceFound(Difference difference) Receive notification that 2 nodes are different.intIgnoreTextAndAttributeValuesDifferenceListener.differenceFound(Difference difference) intDiff.evaluate(Difference difference) Evaluate the difference.booleanComparisonController.haltComparison(Difference afterDifference) Determine whether a Difference that the listener has been notified of should halt further XML comparison.booleanDetailedDiff.haltComparison(Difference afterDifference) ComparisonController implementation.booleanDiff.haltComparison(Difference afterDifference) ComparisonController implementation.voidMatchTracker.matchFound(Difference match) Receive notification that 2 match.Constructors in org.custommonkey.xmlunit with parameters of type DifferenceModifierConstructorDescriptionprotectedDifference(Difference prototype, NodeDetail controlNodeDetail, NodeDetail testNodeDetail) Copy constructor using prototype Difference and encountered NodeDetails -
Uses of Difference in org.custommonkey.xmlunit.examples
Methods in org.custommonkey.xmlunit.examples with parameters of type DifferenceModifier and TypeMethodDescriptionprotected intTextDifferenceListenerBase.attributeDifference(Difference d) Delegates totextualDifference.protected intTextDifferenceListenerBase.cdataDifference(Difference d) Delegates totextualDifference.protected intTextDifferenceListenerBase.commentDifference(Difference d) Delegates totextualDifference.intTextDifferenceListenerBase.differenceFound(Difference difference) Delegates to the nested DifferenceListener unless the Difference is of typeATTR_VALUE_ID,CDATA_VALUE_ID,COMMENT_VALUE_IDorTEXT_VALUE_ID- for those special differencesattributeDifference,cdataDifference,commentDifferenceortextDifferenceare invoked respectively.protected intTextDifferenceListenerBase.textDifference(Difference d) Delegates totextualDifference.protected intCaseInsensitiveDifferenceListener.textualDifference(Difference d) protected intFloatingPointTolerantDifferenceListener.textualDifference(Difference d) protected intTextDifferenceListenerBase.textualDifference(Difference d) Delegates to the nested DifferenceListener.