Uses of Interface
org.htmlparser.NodeFilter
Packages that use NodeFilter
Package
Description
The basic API classes which will be used by most developers when working with
the HTML Parser.
The beans package contains Java Beans using the HTML Parser.
The filters package contains example filters to select only desired nodes.
The nodes package has the concrete node implementations.
Example applications.
The tags package contains specific tags.
Code which can be reused by many classes, is located in this package.
-
Uses of NodeFilter in org.htmlparser
Methods in org.htmlparser with parameters of type NodeFilterModifier and TypeMethodDescriptionvoid
Node.collectInto
(NodeList list, NodeFilter filter) Collect this node and its child nodes into a list, provided the node satisfies the filtering criteria.Parser.extractAllNodesThatMatch
(NodeFilter filter) Extract all nodes matching the given filter.Parser.parse
(NodeFilter filter) Parse the given resource, using the filter provided. -
Uses of NodeFilter in org.htmlparser.beans
Fields in org.htmlparser.beans declared as NodeFilterMethods in org.htmlparser.beans that return NodeFilterMethods in org.htmlparser.beans with parameters of type NodeFilterModifier and TypeMethodDescriptionvoid
FilterBean.setFilters
(NodeFilter[] filters) Set the filters for the bean. -
Uses of NodeFilter in org.htmlparser.filters
Classes in org.htmlparser.filters that implement NodeFilterModifier and TypeClassDescriptionclass
Accepts nodes matching all of its predicate filters (AND operation).class
A NodeFilter that accepts nodes based on whether they match a CSS2 selector.class
This class accepts all tags that have a certain attribute, and optionally, with a certain value.class
This class accepts all tags that have a child acceptable to the filter.class
This class accepts all tags that have a parent acceptable to another filter.class
This class accepts all tags that have a sibling acceptable to another filter.class
This class accepts only one specific node.class
This class accepts tags of class LinkTag that contain a link matching a given regex pattern.class
This class accepts tags of class LinkTag that contain a link matching a given pattern string.class
This class accepts all tags of a given class.class
Accepts all nodes not acceptable to it's predicate filter.class
Accepts nodes matching any of its predicates filters (OR operation).class
This filter accepts all string nodes matching a regular expression.class
This class accepts all string nodes containing the given string.class
This class accepts all tags matching the tag name.class
Accepts nodes matching an odd number of its predicates filters (XOR operation).Fields in org.htmlparser.filters declared as NodeFilterModifier and TypeFieldDescriptionprotected NodeFilter
HasChildFilter.mChildFilter
The filter to apply to children.protected NodeFilter
HasParentFilter.mParentFilter
The filter to apply to the parent.protected NodeFilter
NotFilter.mPredicate
The filter to gainsay.protected NodeFilter[]
AndFilter.mPredicates
The predicates that are to be and'ed together;protected NodeFilter[]
OrFilter.mPredicates
The predicates that are to be or'ed together;protected NodeFilter[]
XorFilter.mPredicates
The predicates that are to be xor'ed together;protected NodeFilter
HasSiblingFilter.mSiblingFilter
The filter to apply to the sibling.Methods in org.htmlparser.filters that return NodeFilterModifier and TypeMethodDescriptionHasChildFilter.getChildFilter()
Get the filter used by this HasParentFilter.HasParentFilter.getParentFilter()
Get the filter used by this HasParentFilter.NotFilter.getPredicate()
Get the predicate used by this NotFilter.AndFilter.getPredicates()
Get the predicates used by this AndFilter.OrFilter.getPredicates()
Get the predicates used by this OrFilter.XorFilter.getPredicates()
Get the predicates used by this XorFilter.HasSiblingFilter.getSiblingFilter()
Get the filter used by this HasSiblingFilter.Methods in org.htmlparser.filters with parameters of type NodeFilterModifier and TypeMethodDescriptionvoid
HasChildFilter.setChildFilter
(NodeFilter filter) Set the filter for this HasParentFilter.void
HasParentFilter.setParentFilter
(NodeFilter filter) Set the filter for this HasParentFilter.void
NotFilter.setPredicate
(NodeFilter predicate) Set the predicate for this NotFilter.void
AndFilter.setPredicates
(NodeFilter[] predicates) Set the predicates for this AndFilter.void
OrFilter.setPredicates
(NodeFilter[] predicates) Set the predicates for this OrFilter.void
XorFilter.setPredicates
(NodeFilter[] predicates) Set the predicates for this XorFilter.void
HasSiblingFilter.setSiblingFilter
(NodeFilter filter) Set the filter for this HasSiblingFilter.Constructors in org.htmlparser.filters with parameters of type NodeFilterModifierConstructorDescriptionAndFilter
(NodeFilter[] predicates) Creates an AndFilter that accepts nodes acceptable to all given filters.AndFilter
(NodeFilter left, NodeFilter right) Creates an AndFilter that accepts nodes acceptable to both filters.HasChildFilter
(NodeFilter filter) Creates a new instance of HasChildFilter that accepts nodes with a direct child acceptable to the filter.HasChildFilter
(NodeFilter filter, boolean recursive) Creates a new instance of HasChildFilter that accepts nodes with a child acceptable to the filter.HasParentFilter
(NodeFilter filter) Creates a new instance of HasParentFilter that accepts nodes with the direct parent acceptable to the filter.HasParentFilter
(NodeFilter filter, boolean recursive) Creates a new instance of HasParentFilter that accepts nodes with a parent acceptable to the filter.HasSiblingFilter
(NodeFilter filter) Creates a new instance of HasSiblingFilter that accepts nodes with sibling acceptable to the filter.NotFilter
(NodeFilter predicate) Creates a NotFilter that accepts nodes not acceptable to the predicate.OrFilter
(NodeFilter[] predicates) Creates an OrFilter that accepts nodes acceptable to any of the given filters.OrFilter
(NodeFilter left, NodeFilter right) Creates an OrFilter that accepts nodes acceptable to either filter.XorFilter
(NodeFilter[] predicates) Creates an XorFilter that accepts nodes acceptable an odd number of the given filters.XorFilter
(NodeFilter left, NodeFilter right) Creates an XorFilter that accepts nodes acceptable to either filter, but not both. -
Uses of NodeFilter in org.htmlparser.nodes
Methods in org.htmlparser.nodes with parameters of type NodeFilterModifier and TypeMethodDescriptionvoid
AbstractNode.collectInto
(NodeList list, NodeFilter filter) Collect this node and its child nodes (if-applicable) into the collectionList parameter, provided the node satisfies the filtering criteria. -
Uses of NodeFilter in org.htmlparser.parserapplications
Fields in org.htmlparser.parserapplications declared as NodeFilterModifier and TypeFieldDescriptionprotected NodeFilter
SiteCapturer.mFilter
The filter to apply to the nodes retrieved.Methods in org.htmlparser.parserapplications that return NodeFilterMethods in org.htmlparser.parserapplications with parameters of type NodeFilterModifier and TypeMethodDescriptionprotected void
SiteCapturer.process
(NodeFilter filter) Process a single page.void
SiteCapturer.setFilter
(NodeFilter filter) Setter for property filter. -
Uses of NodeFilter in org.htmlparser.parserapplications.filterbuilder
Classes in org.htmlparser.parserapplications.filterbuilder that implement NodeFilterMethods in org.htmlparser.parserapplications.filterbuilder that return NodeFilterModifier and TypeMethodDescriptionabstract NodeFilter
Filter.getNodeFilter()
Get the underlying node filter object.abstract NodeFilter[]
Filter.getSubNodeFilters()
Get the underlying node filter's subordinate filters.Methods in org.htmlparser.parserapplications.filterbuilder with parameters of type NodeFilterModifier and TypeMethodDescriptionabstract void
Filter.setNodeFilter
(NodeFilter filter, Parser context) Assign the underlying node filter for this wrapper.abstract void
Filter.setSubNodeFilters
(NodeFilter[] filters) Assign the underlying node filter's subordinate filters.static Filter
Filter.wrap
(NodeFilter filter, Parser context) Returns a wrapped filter. -
Uses of NodeFilter in org.htmlparser.parserapplications.filterbuilder.wrappers
Classes in org.htmlparser.parserapplications.filterbuilder.wrappers that implement NodeFilterModifier and TypeClassDescriptionclass
Wrapper for AndFilters.class
Wrapper for HasAttributeFilters.class
Wrapper for HasChildFilters.class
Wrapper for HasParentFilters.class
Wrapper for HasSiblingFilters.class
Wrapper for NodeClassFilters.class
Wrapper for NotFilters.class
Wrapper for OrFilters.class
Wrapper for RegexFilters.class
Wrapper for StringFilters.class
Wrapper for TagNameFilters.Methods in org.htmlparser.parserapplications.filterbuilder.wrappers that return NodeFilterModifier and TypeMethodDescriptionAndFilterWrapper.getNodeFilter()
Get the underlying node filter object.HasAttributeFilterWrapper.getNodeFilter()
Get the underlying node filter object.HasChildFilterWrapper.getNodeFilter()
Get the underlying node filter object.HasParentFilterWrapper.getNodeFilter()
Get the underlying node filter object.HasSiblingFilterWrapper.getNodeFilter()
Get the underlying node filter object.NodeClassFilterWrapper.getNodeFilter()
Get the underlying node filter object.NotFilterWrapper.getNodeFilter()
Get the underlying node filter object.OrFilterWrapper.getNodeFilter()
Get the underlying node filter object.RegexFilterWrapper.getNodeFilter()
Get the underlying node filter object.StringFilterWrapper.getNodeFilter()
Get the underlying node filter object.TagNameFilterWrapper.getNodeFilter()
Get the underlying node filter object.AndFilterWrapper.getSubNodeFilters()
Get the underlying node filter's subordinate filters.HasAttributeFilterWrapper.getSubNodeFilters()
Get the underlying node filter's subordinate filters.HasChildFilterWrapper.getSubNodeFilters()
Get the underlying node filter's subordinate filters.HasParentFilterWrapper.getSubNodeFilters()
Get the underlying node filter's subordinate filters.HasSiblingFilterWrapper.getSubNodeFilters()
Get the underlying node filter's subordinate filters.NodeClassFilterWrapper.getSubNodeFilters()
Get the underlying node filter's subordinate filters.NotFilterWrapper.getSubNodeFilters()
Get the underlying node filter's subordinate filters.OrFilterWrapper.getSubNodeFilters()
Get the underlying node filter's subordinate filters.RegexFilterWrapper.getSubNodeFilters()
Get the underlying node filter's subordinate filters.StringFilterWrapper.getSubNodeFilters()
Get the underlying node filter's subordinate filters.TagNameFilterWrapper.getSubNodeFilters()
Get the underlying node filter's subordinate filters.Methods in org.htmlparser.parserapplications.filterbuilder.wrappers with parameters of type NodeFilterModifier and TypeMethodDescriptionvoid
AndFilterWrapper.setNodeFilter
(NodeFilter filter, Parser context) Assign the underlying node filter for this wrapper.void
HasAttributeFilterWrapper.setNodeFilter
(NodeFilter filter, Parser context) Assign the underlying node filter for this wrapper.void
HasChildFilterWrapper.setNodeFilter
(NodeFilter filter, Parser context) Assign the underlying node filter for this wrapper.void
HasParentFilterWrapper.setNodeFilter
(NodeFilter filter, Parser context) Assign the underlying node filter for this wrapper.void
HasSiblingFilterWrapper.setNodeFilter
(NodeFilter filter, Parser context) Assign the underlying node filter for this wrapper.void
NodeClassFilterWrapper.setNodeFilter
(NodeFilter filter, Parser context) Assign the underlying node filter for this wrapper.void
NotFilterWrapper.setNodeFilter
(NodeFilter filter, Parser context) Assign the underlying node filter for this wrapper.void
OrFilterWrapper.setNodeFilter
(NodeFilter filter, Parser context) Assign the underlying node filter for this wrapper.void
RegexFilterWrapper.setNodeFilter
(NodeFilter filter, Parser context) Assign the underlying node filter for this wrapper.void
StringFilterWrapper.setNodeFilter
(NodeFilter filter, Parser context) Assign the underlying node filter for this wrapper.void
TagNameFilterWrapper.setNodeFilter
(NodeFilter filter, Parser context) Assign the underlying node filter for this wrapper.void
AndFilterWrapper.setSubNodeFilters
(NodeFilter[] filters) Assign the underlying node filter's subordinate filters.void
HasAttributeFilterWrapper.setSubNodeFilters
(NodeFilter[] filters) Assign the underlying node filter's subordinate filters.void
HasChildFilterWrapper.setSubNodeFilters
(NodeFilter[] filters) Assign the underlying node filter's subordinate filters.void
HasParentFilterWrapper.setSubNodeFilters
(NodeFilter[] filters) Assign the underlying node filter's subordinate filters.void
HasSiblingFilterWrapper.setSubNodeFilters
(NodeFilter[] filters) Assign the underlying node filter's subordinate filters.void
NodeClassFilterWrapper.setSubNodeFilters
(NodeFilter[] filters) Assign the underlying node filter's subordinate filters.void
NotFilterWrapper.setSubNodeFilters
(NodeFilter[] filters) Assign the underlying node filter's subordinate filters.void
OrFilterWrapper.setSubNodeFilters
(NodeFilter[] filters) Assign the underlying node filter's subordinate filters.void
RegexFilterWrapper.setSubNodeFilters
(NodeFilter[] filters) Assign the underlying node filter's subordinate filters.void
StringFilterWrapper.setSubNodeFilters
(NodeFilter[] filters) Assign the underlying node filter's subordinate filters.void
TagNameFilterWrapper.setSubNodeFilters
(NodeFilter[] filters) Assign the underlying node filter's subordinate filters. -
Uses of NodeFilter in org.htmlparser.tags
Methods in org.htmlparser.tags with parameters of type NodeFilterModifier and TypeMethodDescriptionvoid
CompositeTag.collectInto
(NodeList list, NodeFilter filter) Collect this node and its child nodes (if-applicable) into the list parameter, provided the node satisfies the filtering criteria. -
Uses of NodeFilter in org.htmlparser.util
Methods in org.htmlparser.util with parameters of type NodeFilterModifier and TypeMethodDescriptionNodeList.extractAllNodesThatMatch
(NodeFilter filter) Filter the list with the given filter non-recursively.NodeList.extractAllNodesThatMatch
(NodeFilter filter, boolean recursive) Filter the list with the given filter.void
NodeList.keepAllNodesThatMatch
(NodeFilter filter) Remove nodes not matching the given filter non-recursively.void
NodeList.keepAllNodesThatMatch
(NodeFilter filter, boolean recursive) Remove nodes not matching the given filter.static String[]
ParserUtils.splitTags
(String input, NodeFilter filter) Split the input string in a string array, considering the tags as delimiter for splitting.static String[]
ParserUtils.splitTags
(String input, NodeFilter filter, boolean recursive, boolean insideTag) Split the input string in a string array, considering the tags as delimiter for splitting.static String
ParserUtils.trimTags
(String input, NodeFilter filter) Trim all tags in the input string and return a string like the input one without the tags and their content.static String
ParserUtils.trimTags
(String input, NodeFilter filter, boolean recursive, boolean insideTag) Trim all tags in the input string and return a string like the input one without the tags and their content (optional).