public final class AttrValueNodeFilter extends Object implements org.w3c.dom.traversal.NodeFilter
A node filter can be shared by multiple iterators. When a filters is reused, it is better to retrieve a copy of the filter from a static list. This mechanism is supported by calling the static method lookup(java.lang.String, java.lang.String) and should be used for named filters that are routinely reused.
NodeFilter, NodeIteratorFILTER_ACCEPT, FILTER_REJECT, FILTER_SKIP, SHOW_ALL, SHOW_ATTRIBUTE, SHOW_CDATA_SECTION, SHOW_COMMENT, SHOW_DOCUMENT, SHOW_DOCUMENT_FRAGMENT, SHOW_DOCUMENT_TYPE, SHOW_ELEMENT, SHOW_ENTITY, SHOW_ENTITY_REFERENCE, SHOW_NOTATION, SHOW_PROCESSING_INSTRUCTION, SHOW_TEXT| Modifier and Type | Method and Description |
|---|---|
short | acceptNode(Node node) |
static org.w3c.dom.traversal.NodeFilter | lookup(String attrName, String attrValue)Returns a node filter for the specified attribute name and value. |
public short acceptNode(Node node)
acceptNode in interface org.w3c.dom.traversal.NodeFilterpublic static org.w3c.dom.traversal.NodeFilter lookup(String attrName, String attrValue)
attrName - The filtered attribute's nameattrValue - The filtered attribute's valuePhantom® and NetPhantom® are registered trademarks of Mindus SARL.
© 2026 Mindus SARL. All rights reserved.