org.custommonkey.xmlunit

Class NodeTest.NodeTypeNodeFilter

private class NodeTest.NodeTypeNodeFilter extends Object implements NodeFilter

Node type specific Node Filter: accepts Nodes of those types specified in constructor, rejects all others
Constructor Summary
NodeTypeNodeFilter(short[] nodeTypes)
Construct filter for specific node types
Method Summary
shortacceptNode(Node aNode)
NodeFilter method.

Constructor Detail

NodeTypeNodeFilter

public NodeTypeNodeFilter(short[] nodeTypes)
Construct filter for specific node types

Parameters: nodeTypes note Node.ATTRIBUTE_NODE is not exposed by the DocumentTraversal node iterator unless the root node is itself an attribute - so a NodeTester that needs to test attributes should obtain those attributes from Node.ELEMENT_NODE nodes

Method Detail

acceptNode

public short acceptNode(Node aNode)
NodeFilter method.

Parameters: aNode

Returns: