|
|||||||||
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.ElementNameAndTextQualifier
public class ElementNameAndTextQualifier
More complex interface implementation that tests two elements for tag name
and text content comparability.
Examples and more at
xmlunit.sourceforge.net
DifferenceEngine.compareNodeList(NodeList, NodeList, int, DifferenceListener, ElementQualifier)
,
Diff.overrideElementQualifier(ElementQualifier)
Constructor Summary | |
---|---|
ElementNameAndTextQualifier()
|
Method Summary | |
---|---|
protected org.w3c.dom.Text |
extractText(org.w3c.dom.Element fromElement)
Extract the normalized text from within an element |
boolean |
qualifyForComparison(org.w3c.dom.Element control,
org.w3c.dom.Element test)
Determine whether two elements qualify for further Difference comparison. |
protected boolean |
similar(org.w3c.dom.Text control,
org.w3c.dom.Text test)
Determine whether the text nodes contain similar values |
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 ElementNameAndTextQualifier()
Method Detail |
---|
public boolean qualifyForComparison(org.w3c.dom.Element control, org.w3c.dom.Element test)
qualifyForComparison
in interface ElementQualifier
qualifyForComparison
in class ElementNameQualifier
control
- test
-
protected boolean similar(org.w3c.dom.Text control, org.w3c.dom.Text test)
control
- test
-
protected org.w3c.dom.Text extractText(org.w3c.dom.Element fromElement)
fromElement
-
|
XMLUnit is hosted by sourceforge.net |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |