|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.custommonkey.xmlunit.examples.MultiLevelElementNameAndTextQualifier
Per popular request an interface implementation that uses element names and the text node containes in the n'th child node to compare elements.
This means ElementNameQualifier and MultiLevelElementNameQualifier(1) should
lead to the same results.
Any attribute values ar completely ignored. Only works on elements with exactly one child element at each level.
This class mostly exists as an example for custom ElementQualifiers.
| Constructor Summary | |
MultiLevelElementNameAndTextQualifier(int levels)
Uses element names and the text nested levels
child elements deeper into the element to compare elements. |
|
| Method Summary | |
boolean |
qualifyForComparison(org.w3c.dom.Element control,
org.w3c.dom.Element test)
Determine whether two elements are comparable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MultiLevelElementNameAndTextQualifier(int levels)
levels
child elements deeper into the element to compare elements.
| Method Detail |
public boolean qualifyForComparison(org.w3c.dom.Element control,
org.w3c.dom.Element test)
ElementQualifier
qualifyForComparison in interface ElementQualifiercontrol - an Element from the control XML NodeListtest - an Element from the test XML NodeList
|
XMLUnit is hosted by sourceforge.net |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||