|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.custommonkey.xmlunit.AbstractNodeTester
public abstract class AbstractNodeTester
Helper class.
Abstract interface implementation that performs Node-type checks and
delegates testNode() processing to subclass.
Examples and more at xmlunit.sourceforge.net
NodeTest
Constructor Summary | |
---|---|
AbstractNodeTester()
|
Method Summary | |
---|---|
void |
noMoreNodes(NodeTest forTest)
Validate that the Nodes validated one-by-one in the isValid
method were all the Nodes expected. |
void |
testAttribute(org.w3c.dom.Attr attribute)
Template delegator for testNode() method. |
void |
testCDATASection(org.w3c.dom.CDATASection cdata)
Template delegator for testNode() method. |
void |
testComment(org.w3c.dom.Comment comment)
Template delegator for testNode() method. |
void |
testDocumentType(org.w3c.dom.DocumentType doctype)
Template delegator for testNode() method. |
void |
testElement(org.w3c.dom.Element element)
Template delegator for testNode() method. |
void |
testEntity(org.w3c.dom.Entity entity)
Template delegator for testNode() method. |
void |
testEntityReference(org.w3c.dom.EntityReference reference)
Template delegator for testNode() method. |
void |
testNode(org.w3c.dom.Node aNode,
NodeTest forTest)
Validate a single Node by delegating to node type specific methods. |
void |
testNotation(org.w3c.dom.Notation notation)
Template delegator for testNode() method. |
void |
testProcessingInstruction(org.w3c.dom.ProcessingInstruction instr)
Template delegator for testNode() method. |
void |
testText(org.w3c.dom.Text text)
Template delegator for testNode() method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractNodeTester()
Method Detail |
---|
public void testNode(org.w3c.dom.Node aNode, NodeTest forTest) throws NodeTestException
testNode
in interface NodeTester
NodeTestException
- if the node fails the testtestAttribute(Attr)
,
testCDATASection(CDATASection)
,
testComment(Comment)
,
testDocumentType(DocumentType)
,
testElement(Element)
,
testEntity(Entity)
,
testEntityReference(EntityReference)
,
testNotation(Notation)
,
testProcessingInstruction(ProcessingInstruction)
,
testText(Text)
public void testAttribute(org.w3c.dom.Attr attribute) throws NodeTestException
attribute
-
NodeTestException
- always: override if required in subclasspublic void testCDATASection(org.w3c.dom.CDATASection cdata) throws NodeTestException
cdata
-
NodeTestException
- always: override if required in subclasspublic void testComment(org.w3c.dom.Comment comment) throws NodeTestException
comment
-
NodeTestException
- always: override if required in subclasspublic void testDocumentType(org.w3c.dom.DocumentType doctype) throws NodeTestException
doctype
-
NodeTestException
- always: override if required in subclasspublic void testElement(org.w3c.dom.Element element) throws NodeTestException
element
-
NodeTestException
- always: override if required in subclasspublic void testEntity(org.w3c.dom.Entity entity) throws NodeTestException
entity
-
NodeTestException
- always: override if required in subclasspublic void testEntityReference(org.w3c.dom.EntityReference reference) throws NodeTestException
reference
-
NodeTestException
- always: override if required in subclasspublic void testNotation(org.w3c.dom.Notation notation) throws NodeTestException
notation
-
NodeTestException
- always: override if required in subclasspublic void testProcessingInstruction(org.w3c.dom.ProcessingInstruction instr) throws NodeTestException
instr
-
NodeTestException
- always: override if required in subclasspublic void testText(org.w3c.dom.Text text) throws NodeTestException
text
-
NodeTestException
- always: override if required in subclasspublic void noMoreNodes(NodeTest forTest) throws NodeTestException
isValid
method were all the Nodes expected. By default do nothing:
can override to add custom logic
noMoreNodes
in interface NodeTester
NodeTestException
- if mode Nodes were expected
|
XMLUnit is hosted by sourceforge.net |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |