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 privateIgnoreDoctypeNotPresentDifferences()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComparisonResultevaluate(Comparison comparison, ComparisonResult outcome)May alter the outcome of a comparison.private booleanhasDoctypeChild(org.w3c.dom.Node n)private booleanisDoctype(Comparison.Detail detail)private booleanisDocumentWithDocTypeDifference(Comparison comparison)
-
-
-
Method Detail
-
evaluate
public ComparisonResult evaluate(Comparison comparison, ComparisonResult outcome)
Description copied from interface:DifferenceEvaluatorMay alter the outcome of a comparison.- Specified by:
evaluatein 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)
-
-