Uses of Class
org.custommonkey.xmlunit.Difference
Package
Description
Root of the XMLUnit 1.x compatibility layer.
-
Uses of Difference in org.custommonkey.xmlunit
Modifier and TypeFieldDescriptionstatic final Difference
DifferenceConstants.ATTR_NAME_NOT_FOUND
Comparing 2 elements and one has an attribute the other does notstatic final Difference
DifferenceConstants.ATTR_SEQUENCE
Comparing 2 attribute lists with the same attributes in different sequencestatic final Difference
DifferenceConstants.ATTR_VALUE
Comparing 2 attributes with the same name but different valuesstatic final Difference
DifferenceConstants.ATTR_VALUE_EXPLICITLY_SPECIFIED
Comparing an implied attribute value against an explicit valuestatic final Difference
DifferenceConstants.CDATA_VALUE
Comparing 2 CDATA sections with different valuesstatic final Difference
DifferenceConstants.CHILD_NODE_NOT_FOUND
Comparing 2 nodes and one holds more childnodes than can be matched against child nodes of the other.static final Difference
DifferenceConstants.CHILD_NODELIST_LENGTH
Comparing 2 nodes with different numbers of childrenstatic final Difference
DifferenceConstants.CHILD_NODELIST_SEQUENCE
Comparing 2 nodes with children whose nodes are in different sequencestatic final Difference
DifferenceConstants.COMMENT_VALUE
Comparing 2 comments with different valuesstatic final Difference
DifferenceConstants.DOCTYPE_NAME
Comparing 2 document types with different namesstatic final Difference
DifferenceConstants.DOCTYPE_PUBLIC_ID
Comparing 2 document types with different public identifiersstatic final Difference
DifferenceConstants.DOCTYPE_SYSTEM_ID
Comparing 2 document types with different system identifiersstatic final Difference
DifferenceConstants.ELEMENT_NUM_ATTRIBUTES
Comparing 2 elements with different number of attributesstatic final Difference
DifferenceConstants.ELEMENT_TAG_NAME
Comparing 2 elements with different tag namesstatic final Difference
DifferenceConstants.HAS_CHILD_NODES
Comparing 2 nodes but only one has any childrenstatic final Difference
DifferenceConstants.HAS_DOCTYPE_DECLARATION
Comparing 2 Documents only one of which has a doctypestatic final Difference
DifferenceConstants.NAMESPACE_PREFIX
Comparing 2 nodes with different namespace prefixesstatic final Difference
DifferenceConstants.NAMESPACE_URI
Comparing 2 nodes with different namespace URIsstatic final Difference
DifferenceConstants.NO_NAMESPACE_SCHEMA_LOCATION
Comparing 2 nodes with different xsi:noNamespaceSchemaLocation attributes, potentially only one of the two provides such an attribute at all.static final Difference
DifferenceConstants.NODE_TYPE
Comparing 2 nodes with different node typesstatic final Difference
DifferenceConstants.PROCESSING_INSTRUCTION_DATA
Comparing 2 processing instructions with different instructionsstatic final Difference
DifferenceConstants.PROCESSING_INSTRUCTION_TARGET
Comparing 2 processing instructions with different targetsstatic final Difference
DifferenceConstants.SCHEMA_LOCATION
Comparing 2 nodes with different xsi:schemaLocation attributes, potentially only one of the two provides such an attribute at all.static final Difference
DifferenceConstants.TEXT_VALUE
Comparing 2 different text valuesModifier and TypeMethodDescriptionDetailedDiff.getAllDifferences()
Obtain all the differences found by this instancestatic Iterable<Difference>
NewDifferenceEngine.toDifference
(Comparison comp) Maps a Comparison to Differences.Modifier and TypeMethodDescriptionprotected void
DifferenceEngine.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 void
DifferenceEngine.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.int
DetailedDiff.differenceFound
(Difference difference) DifferenceListener implementation.int
Diff.differenceFound
(Difference difference) DifferenceListener implementation.int
DifferenceListener.differenceFound
(Difference difference) Receive notification that 2 nodes are different.int
IgnoreTextAndAttributeValuesDifferenceListener.differenceFound
(Difference difference) int
Diff.evaluate
(Difference difference) Evaluate the difference.boolean
ComparisonController.haltComparison
(Difference afterDifference) Determine whether a Difference that the listener has been notified of should halt further XML comparison.boolean
DetailedDiff.haltComparison
(Difference afterDifference) ComparisonController implementation.boolean
Diff.haltComparison
(Difference afterDifference) ComparisonController implementation.void
MatchTracker.matchFound
(Difference match) Receive notification that 2 match.ModifierConstructorDescriptionprotected
Difference
(Difference prototype, NodeDetail controlNodeDetail, NodeDetail testNodeDetail) Copy constructor using prototype Difference and encountered NodeDetails -
Uses of Difference in org.custommonkey.xmlunit.examples
Modifier and TypeMethodDescriptionprotected int
TextDifferenceListenerBase.attributeDifference
(Difference d) Delegates totextualDifference
.protected int
TextDifferenceListenerBase.cdataDifference
(Difference d) Delegates totextualDifference
.protected int
TextDifferenceListenerBase.commentDifference
(Difference d) Delegates totextualDifference
.int
TextDifferenceListenerBase.differenceFound
(Difference difference) Delegates to the nested DifferenceListener unless the Difference is of typeATTR_VALUE_ID
,CDATA_VALUE_ID
,COMMENT_VALUE_ID
orTEXT_VALUE_ID
- for those special differencesattributeDifference
,cdataDifference
,commentDifference
ortextDifference
are invoked respectively.protected int
TextDifferenceListenerBase.textDifference
(Difference d) Delegates totextualDifference
.protected int
CaseInsensitiveDifferenceListener.textualDifference
(Difference d) protected int
FloatingPointTolerantDifferenceListener.textualDifference
(Difference d) protected int
TextDifferenceListenerBase.textualDifference
(Difference d) Delegates to the nested DifferenceListener.