Package org.custommonkey.xmlunit
Class NewDifferenceEngine.IgnoreDoctypeNotPresentDifferences
- java.lang.Object
-
- org.custommonkey.xmlunit.NewDifferenceEngine.IgnoreDoctypeNotPresentDifferences
-
- All Implemented Interfaces:
DifferenceEvaluator
- Enclosing class:
- NewDifferenceEngine
private static final class NewDifferenceEngine.IgnoreDoctypeNotPresentDifferences extends java.lang.Object implements DifferenceEvaluator
-
-
Constructor Summary
Constructors Modifier Constructor Description private
IgnoreDoctypeNotPresentDifferences()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComparisonResult
evaluate(Comparison comparison, ComparisonResult outcome)
May alter the outcome of a comparison.private boolean
hasDoctypeChild(org.w3c.dom.Node n)
private boolean
isDoctype(Comparison.Detail detail)
private boolean
isDocumentWithDocTypeDifference(Comparison comparison)
-
-
-
Method Detail
-
evaluate
public ComparisonResult evaluate(Comparison comparison, ComparisonResult outcome)
Description copied from interface:DifferenceEvaluator
May alter the outcome of a comparison.- Specified by:
evaluate
in interfaceDifferenceEvaluator
- Returns:
- the new result of the comparison.
-
isDoctype
private boolean isDoctype(Comparison.Detail detail)
-
isDocumentWithDocTypeDifference
private boolean isDocumentWithDocTypeDifference(Comparison comparison)
-
hasDoctypeChild
private boolean hasDoctypeChild(org.w3c.dom.Node n)
-
-