public class ElementNameAndAttributeQualifier extends ElementNameQualifier
Constructor and Description |
---|
ElementNameAndAttributeQualifier()
No-args constructor: use all attributes from all elements to determine
whether elements qualify for comparability
|
ElementNameAndAttributeQualifier(String attrName)
Simple constructor for a single qualifying attribute name
|
ElementNameAndAttributeQualifier(String[] attrNames)
Extended constructor for multiple qualifying attribute names
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
areAttributesComparable(Element control,
Element test)
Deprecated.
this method is no longer used by this class and is
only kept for backwards compatibility, overriding
it won't have any effect anymore
|
boolean |
qualifyForComparison(Element control,
Element test)
Determine whether two elements qualify for further Difference comparison.
|
equalsNamespace, getNonNamespacedNodeName
public ElementNameAndAttributeQualifier()
public ElementNameAndAttributeQualifier(String attrName)
attrName
- the value to use to qualify whether two elements can be
compared further for differencespublic ElementNameAndAttributeQualifier(String[] attrNames)
attrNames
- the array of values to use to qualify whether two
elements can be compared further for differencespublic boolean qualifyForComparison(Element control, Element test)
qualifyForComparison
in interface ElementQualifier
qualifyForComparison
in class ElementNameQualifier
control
- test
- @Deprecated protected final boolean areAttributesComparable(Element control, Element test)
control
- test
- Copyright © 2001–2017 XMLUnit. All rights reserved.