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 Object implements DifferenceEvaluator
  • Constructor Details

    • IgnoreDoctypeNotPresentDifferences

      private IgnoreDoctypeNotPresentDifferences()
  • Method Details

    • evaluate

      public ComparisonResult evaluate(Comparison comparison, ComparisonResult outcome)
      Description copied from interface: DifferenceEvaluator
      May alter the outcome of a comparison.
      Specified by:
      evaluate in interface DifferenceEvaluator
      Parameters:
      comparison - the comparison
      outcome - the current outcome of the comparison
      Returns:
      the new result of the comparison.
    • isDoctype

      private boolean isDoctype(Comparison.Detail detail)
    • isDocumentWithDocTypeDifference

      private boolean isDocumentWithDocTypeDifference(Comparison comparison)
    • hasDoctypeChild

      private boolean hasDoctypeChild(Node n)