|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.custommonkey.xmlunit.ElementNameQualifier
org.custommonkey.xmlunit.ElementNameAndAttributeQualifier
More complex interface implementation that tests two elements for tag name
and attribute name comparability.
Examples and more at
xmlunit.sourceforge.net
DifferenceEngine.compareNodeList(NodeList, NodeList, int, DifferenceListener, ElementQualifier),
Diff.overrideElementQualifier(ElementQualifier)| Constructor Summary | |
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 |
|
| Method Summary | |
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. |
| Methods inherited from class org.custommonkey.xmlunit.ElementNameQualifier |
equalsNamespace, getNonNamespacedNodeName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
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 differences| Method Detail |
public boolean qualifyForComparison(org.w3c.dom.Element control,
org.w3c.dom.Element test)
qualifyForComparison in interface ElementQualifierqualifyForComparison in class ElementNameQualifiercontrol - test -
protected boolean areAttributesComparable(org.w3c.dom.Element control,
org.w3c.dom.Element test)
control - test -
|
XMLUnit is hosted by sourceforge.net |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||