public class ElementNameAndAttributeQualifier extends ElementNameQualifier
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String[] |
ALL_ATTRIBUTES |
private java.lang.String[] |
qualifyingAttrNames |
private ElementSelector |
selector |
| Constructor and Description |
|---|
ElementNameAndAttributeQualifier()
No-args constructor: use all attributes from all elements to determine
whether elements qualify for comparability
|
ElementNameAndAttributeQualifier(java.lang.String attrName)
Simple constructor for a single qualifying attribute name
|
ElementNameAndAttributeQualifier(java.lang.String[] attrNames)
Extended constructor for multiple qualifying attribute names
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
areAttributesComparable(org.w3c.dom.Element control,
org.w3c.dom.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
|
private static boolean |
matchesAllAttributes(java.lang.String[] attributes) |
boolean |
qualifyForComparison(org.w3c.dom.Element control,
org.w3c.dom.Element test)
Determine whether two elements qualify for further Difference comparison.
|
equalsNamespace, getNonNamespacedNodeNameprivate final ElementSelector selector
private static final java.lang.String[] ALL_ATTRIBUTES
private final java.lang.String[] qualifyingAttrNames
public ElementNameAndAttributeQualifier()
public ElementNameAndAttributeQualifier(java.lang.String attrName)
attrName - the value to use to qualify whether two elements can be
compared further for differencespublic ElementNameAndAttributeQualifier(java.lang.String[] attrNames)
attrNames - the array of values to use to qualify whether two
elements can be compared further for differencespublic boolean qualifyForComparison(org.w3c.dom.Element control,
org.w3c.dom.Element test)
qualifyForComparison in interface ElementQualifierqualifyForComparison in class ElementNameQualifiercontrol - test - @Deprecated
protected final boolean areAttributesComparable(org.w3c.dom.Element control,
org.w3c.dom.Element test)
control - test - private static boolean matchesAllAttributes(java.lang.String[] attributes)