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(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)
Determine whether the qualifying attributes are present in both elements
and if so whether their values are the same
|
boolean |
qualifyForComparison(org.w3c.dom.Element control,
org.w3c.dom.Element test)
Determine whether two elements qualify for further Difference comparison.
|
equalsNamespace, getNonNamespacedNodeName
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 ElementQualifier
qualifyForComparison
in class ElementNameQualifier
differenceEngine
- the DifferenceEngine instance wanting to
determine if the elements are comparablecontrol
- test
- protected boolean areAttributesComparable(org.w3c.dom.Element control, org.w3c.dom.Element test)
control
- test
-