Package org.xmlunit.diff
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canBeCompared
(short controlType, short testType) Determines whether two Nodes are eligible for comparison based on their node type.
-
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 interfaceDefaultNodeMatcher.NodeTypeMatcher
- Parameters:
controlType
- the node type of the control nodetestType
- the node type of the test node- Returns:
- whether two nodes of the given types are eligible for comparison
-