Class DefaultNodeMatcher.DefaultNodeTypeMatcher

java.lang.Object
org.xmlunit.diff.DefaultNodeMatcher.DefaultNodeTypeMatcher
All Implemented Interfaces:
DefaultNodeMatcher.NodeTypeMatcher
Enclosing class:
DefaultNodeMatcher

public static class DefaultNodeMatcher.DefaultNodeTypeMatcher extends Object implements DefaultNodeMatcher.NodeTypeMatcher
DefaultNodeMatcher.NodeTypeMatcher that marks pairs of nodes of the same node type as well as pairs of CDATA sections and text nodes as eligible.
  • Constructor Details

    • DefaultNodeTypeMatcher

      public DefaultNodeTypeMatcher()
  • Method Details

    • canBeCompared

      public boolean canBeCompared(short controlType, short testType)
      Description copied from interface: DefaultNodeMatcher.NodeTypeMatcher
      Determines whether two Nodes are eligible for comparison based on their node type.
      Specified by:
      canBeCompared in interface DefaultNodeMatcher.NodeTypeMatcher
      Parameters:
      controlType - the node type of the control node
      testType - the node type of the test node
      Returns:
      whether two nodes of the given types are eligible for comparison