Package io.sf.carte.doc.dom
Interface NodeFilter
public interface NodeFilter
Filter the nodes returned by an iterator, see
ParentNode.iterator(NodeFilter),
ParentNode.iterator(int, NodeFilter) and
DOMDocument.createNodeIterator(Node, int, NodeFilter).
The acceptNode(Node) method determines which nodes are accepted to
be returned by the iterator.
Based on the NodeFilter
callback interface in DOM Level 4, but not identical.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortAccept the node.static final shortSkip the node.static final shortSkip the node and its descendants.static final int[]static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionshortacceptNode(Node node) Find whether the given node is to be returned (or not) by an iterator.
-
Field Details
-
FILTER_ACCEPT
static final short FILTER_ACCEPTAccept the node.- See Also:
-
FILTER_SKIP_NODE
static final short FILTER_SKIP_NODESkip the node.- See Also:
-
FILTER_SKIP_NODE_CHILD
static final short FILTER_SKIP_NODE_CHILDSkip the node and its descendants.- See Also:
-
maskTable
static final int[] maskTable -
SHOW_ALL
static final int SHOW_ALL- See Also:
-
SHOW_ELEMENT
static final int SHOW_ELEMENT- See Also:
-
SHOW_ATTRIBUTE
static final int SHOW_ATTRIBUTE- See Also:
-
SHOW_TEXT
static final int SHOW_TEXT- See Also:
-
SHOW_CDATA_SECTION
static final int SHOW_CDATA_SECTION- See Also:
-
SHOW_ENTITY_REFERENCE
static final int SHOW_ENTITY_REFERENCE- See Also:
-
SHOW_PROCESSING_INSTRUCTION
static final int SHOW_PROCESSING_INSTRUCTION- See Also:
-
SHOW_COMMENT
static final int SHOW_COMMENT- See Also:
-
SHOW_DOCUMENT
static final int SHOW_DOCUMENT- See Also:
-
SHOW_DOCUMENT_TYPE
static final int SHOW_DOCUMENT_TYPE- See Also:
-
SHOW_DOCUMENT_FRAGMENT
static final int SHOW_DOCUMENT_FRAGMENT- See Also:
-
-
Method Details
-
acceptNode
Find whether the given node is to be returned (or not) by an iterator.- Parameters:
node- the node to filter.- Returns:
FILTER_ACCEPT,FILTER_SKIP_NODEorFILTER_SKIP_NODE_CHILD.
-