Package org.htmlparser
Interface NodeFilter
-
- All Superinterfaces:
java.lang.Cloneable,java.io.Serializable
- All Known Implementing Classes:
AndFilter,AndFilterWrapper,CssSelectorNodeFilter,Filter,HasAttributeFilter,HasAttributeFilterWrapper,HasChildFilter,HasChildFilterWrapper,HasParentFilter,HasParentFilterWrapper,HasSiblingFilter,HasSiblingFilterWrapper,IsEqualFilter,LinkRegexFilter,LinkStringFilter,NodeClassFilter,NodeClassFilterWrapper,NotFilter,NotFilterWrapper,OrFilter,OrFilterWrapper,RegexFilter,RegexFilterWrapper,StringFilter,StringFilterWrapper,TagNameFilter,TagNameFilterWrapper,XorFilter
public interface NodeFilter extends java.io.Serializable, java.lang.CloneableImplement this interface to select particular nodes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaccept(Node node)Predicate to determine whether or not to keep the given node.
-
-
-
Method Detail
-
accept
boolean accept(Node node)
Predicate to determine whether or not to keep the given node. The behaviour based on this outcome is determined by the context in which it is called. It may lead to the node being added to a list or printed out. See the calling routine for details.- Parameters:
node- The node to test.- Returns:
trueif the node is to be kept,falseif it is to be discarded.
-
-