Uses of Interface
org.htmlparser.NodeFilter
-
Packages that use NodeFilter Package Description org.htmlparser The basic API classes which will be used by most developers when working with the HTML Parser.org.htmlparser.beans The beans package contains Java Beans using the HTML Parser.org.htmlparser.filters The filters package contains example filters to select only desired nodes.org.htmlparser.nodes The nodes package has the concrete node implementations.org.htmlparser.parserapplications Example applications.org.htmlparser.parserapplications.filterbuilder org.htmlparser.parserapplications.filterbuilder.wrappers org.htmlparser.tags The tags package contains specific tags.org.htmlparser.util 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 NodeFilter Modifier and Type Method Description voidNode. collectInto(NodeList list, NodeFilter filter)Collect this node and its child nodes into a list, provided the node satisfies the filtering criteria.NodeListParser. extractAllNodesThatMatch(NodeFilter filter)Extract all nodes matching the given filter.NodeListParser. 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 NodeFilter Modifier and Type Field Description protected NodeFilter[]FilterBean. mFiltersThe filter set.Methods in org.htmlparser.beans that return NodeFilter Modifier and Type Method Description NodeFilter[]FilterBean. getFilters()Get the current filter set.Methods in org.htmlparser.beans with parameters of type NodeFilter Modifier and Type Method Description voidFilterBean. setFilters(NodeFilter[] filters)Set the filters for the bean. -
Uses of NodeFilter in org.htmlparser.filters
Classes in org.htmlparser.filters that implement NodeFilter Modifier and Type Class Description classAndFilterAccepts nodes matching all of its predicate filters (AND operation).classCssSelectorNodeFilterA NodeFilter that accepts nodes based on whether they match a CSS2 selector.classHasAttributeFilterThis class accepts all tags that have a certain attribute, and optionally, with a certain value.classHasChildFilterThis class accepts all tags that have a child acceptable to the filter.classHasParentFilterThis class accepts all tags that have a parent acceptable to another filter.classHasSiblingFilterThis class accepts all tags that have a sibling acceptable to another filter.classIsEqualFilterThis class accepts only one specific node.classLinkRegexFilterThis class accepts tags of class LinkTag that contain a link matching a given regex pattern.classLinkStringFilterThis class accepts tags of class LinkTag that contain a link matching a given pattern string.classNodeClassFilterThis class accepts all tags of a given class.classNotFilterAccepts all nodes not acceptable to it's predicate filter.classOrFilterAccepts nodes matching any of its predicates filters (OR operation).classRegexFilterThis filter accepts all string nodes matching a regular expression.classStringFilterThis class accepts all string nodes containing the given string.classTagNameFilterThis class accepts all tags matching the tag name.classXorFilterAccepts nodes matching an odd number of its predicates filters (XOR operation).Fields in org.htmlparser.filters declared as NodeFilter Modifier and Type Field Description protected NodeFilterHasChildFilter. mChildFilterThe filter to apply to children.protected NodeFilterHasParentFilter. mParentFilterThe filter to apply to the parent.protected NodeFilterNotFilter. mPredicateThe filter to gainsay.protected NodeFilter[]AndFilter. mPredicatesThe predicates that are to be and'ed together;protected NodeFilter[]OrFilter. mPredicatesThe predicates that are to be or'ed together;protected NodeFilter[]XorFilter. mPredicatesThe predicates that are to be xor'ed together;protected NodeFilterHasSiblingFilter. mSiblingFilterThe filter to apply to the sibling.Methods in org.htmlparser.filters that return NodeFilter Modifier and Type Method Description NodeFilterHasChildFilter. getChildFilter()Get the filter used by this HasParentFilter.NodeFilterHasParentFilter. getParentFilter()Get the filter used by this HasParentFilter.NodeFilterNotFilter. getPredicate()Get the predicate used by this NotFilter.NodeFilter[]AndFilter. getPredicates()Get the predicates used by this AndFilter.NodeFilter[]OrFilter. getPredicates()Get the predicates used by this OrFilter.NodeFilter[]XorFilter. getPredicates()Get the predicates used by this XorFilter.NodeFilterHasSiblingFilter. getSiblingFilter()Get the filter used by this HasSiblingFilter.Methods in org.htmlparser.filters with parameters of type NodeFilter Modifier and Type Method Description voidHasChildFilter. setChildFilter(NodeFilter filter)Set the filter for this HasParentFilter.voidHasParentFilter. setParentFilter(NodeFilter filter)Set the filter for this HasParentFilter.voidNotFilter. setPredicate(NodeFilter predicate)Set the predicate for this NotFilter.voidAndFilter. setPredicates(NodeFilter[] predicates)Set the predicates for this AndFilter.voidOrFilter. setPredicates(NodeFilter[] predicates)Set the predicates for this OrFilter.voidXorFilter. setPredicates(NodeFilter[] predicates)Set the predicates for this XorFilter.voidHasSiblingFilter. setSiblingFilter(NodeFilter filter)Set the filter for this HasSiblingFilter.Constructors in org.htmlparser.filters with parameters of type NodeFilter Constructor Description AndFilter(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 NodeFilter Modifier and Type Method Description voidAbstractNode. 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 NodeFilter Modifier and Type Field Description protected NodeFilterSiteCapturer. mFilterThe filter to apply to the nodes retrieved.Methods in org.htmlparser.parserapplications that return NodeFilter Modifier and Type Method Description NodeFilterSiteCapturer. getFilter()Getter for property filter.Methods in org.htmlparser.parserapplications with parameters of type NodeFilter Modifier and Type Method Description protected voidSiteCapturer. process(NodeFilter filter)Process a single page.voidSiteCapturer. setFilter(NodeFilter filter)Setter for property filter. -
Uses of NodeFilter in org.htmlparser.parserapplications.filterbuilder
Classes in org.htmlparser.parserapplications.filterbuilder that implement NodeFilter Modifier and Type Class Description classFilterBase class for all filters.Methods in org.htmlparser.parserapplications.filterbuilder that return NodeFilter Modifier and Type Method Description abstract NodeFilterFilter. 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 NodeFilter Modifier and Type Method Description abstract voidFilter. setNodeFilter(NodeFilter filter, Parser context)Assign the underlying node filter for this wrapper.abstract voidFilter. setSubNodeFilters(NodeFilter[] filters)Assign the underlying node filter's subordinate filters.static FilterFilter. 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 NodeFilter Modifier and Type Class Description classAndFilterWrapperWrapper for AndFilters.classHasAttributeFilterWrapperWrapper for HasAttributeFilters.classHasChildFilterWrapperWrapper for HasChildFilters.classHasParentFilterWrapperWrapper for HasParentFilters.classHasSiblingFilterWrapperWrapper for HasSiblingFilters.classNodeClassFilterWrapperWrapper for NodeClassFilters.classNotFilterWrapperWrapper for NotFilters.classOrFilterWrapperWrapper for OrFilters.classRegexFilterWrapperWrapper for RegexFilters.classStringFilterWrapperWrapper for StringFilters.classTagNameFilterWrapperWrapper for TagNameFilters.Methods in org.htmlparser.parserapplications.filterbuilder.wrappers that return NodeFilter Modifier and Type Method Description NodeFilterAndFilterWrapper. getNodeFilter()Get the underlying node filter object.NodeFilterHasAttributeFilterWrapper. getNodeFilter()Get the underlying node filter object.NodeFilterHasChildFilterWrapper. getNodeFilter()Get the underlying node filter object.NodeFilterHasParentFilterWrapper. getNodeFilter()Get the underlying node filter object.NodeFilterHasSiblingFilterWrapper. getNodeFilter()Get the underlying node filter object.NodeFilterNodeClassFilterWrapper. getNodeFilter()Get the underlying node filter object.NodeFilterNotFilterWrapper. getNodeFilter()Get the underlying node filter object.NodeFilterOrFilterWrapper. getNodeFilter()Get the underlying node filter object.NodeFilterRegexFilterWrapper. getNodeFilter()Get the underlying node filter object.NodeFilterStringFilterWrapper. getNodeFilter()Get the underlying node filter object.NodeFilterTagNameFilterWrapper. getNodeFilter()Get the underlying node filter object.NodeFilter[]AndFilterWrapper. getSubNodeFilters()Get the underlying node filter's subordinate filters.NodeFilter[]HasAttributeFilterWrapper. getSubNodeFilters()Get the underlying node filter's subordinate filters.NodeFilter[]HasChildFilterWrapper. getSubNodeFilters()Get the underlying node filter's subordinate filters.NodeFilter[]HasParentFilterWrapper. getSubNodeFilters()Get the underlying node filter's subordinate filters.NodeFilter[]HasSiblingFilterWrapper. getSubNodeFilters()Get the underlying node filter's subordinate filters.NodeFilter[]NodeClassFilterWrapper. getSubNodeFilters()Get the underlying node filter's subordinate filters.NodeFilter[]NotFilterWrapper. getSubNodeFilters()Get the underlying node filter's subordinate filters.NodeFilter[]OrFilterWrapper. getSubNodeFilters()Get the underlying node filter's subordinate filters.NodeFilter[]RegexFilterWrapper. getSubNodeFilters()Get the underlying node filter's subordinate filters.NodeFilter[]StringFilterWrapper. getSubNodeFilters()Get the underlying node filter's subordinate filters.NodeFilter[]TagNameFilterWrapper. getSubNodeFilters()Get the underlying node filter's subordinate filters.Methods in org.htmlparser.parserapplications.filterbuilder.wrappers with parameters of type NodeFilter Modifier and Type Method Description voidAndFilterWrapper. setNodeFilter(NodeFilter filter, Parser context)Assign the underlying node filter for this wrapper.voidHasAttributeFilterWrapper. setNodeFilter(NodeFilter filter, Parser context)Assign the underlying node filter for this wrapper.voidHasChildFilterWrapper. setNodeFilter(NodeFilter filter, Parser context)Assign the underlying node filter for this wrapper.voidHasParentFilterWrapper. setNodeFilter(NodeFilter filter, Parser context)Assign the underlying node filter for this wrapper.voidHasSiblingFilterWrapper. setNodeFilter(NodeFilter filter, Parser context)Assign the underlying node filter for this wrapper.voidNodeClassFilterWrapper. setNodeFilter(NodeFilter filter, Parser context)Assign the underlying node filter for this wrapper.voidNotFilterWrapper. setNodeFilter(NodeFilter filter, Parser context)Assign the underlying node filter for this wrapper.voidOrFilterWrapper. setNodeFilter(NodeFilter filter, Parser context)Assign the underlying node filter for this wrapper.voidRegexFilterWrapper. setNodeFilter(NodeFilter filter, Parser context)Assign the underlying node filter for this wrapper.voidStringFilterWrapper. setNodeFilter(NodeFilter filter, Parser context)Assign the underlying node filter for this wrapper.voidTagNameFilterWrapper. setNodeFilter(NodeFilter filter, Parser context)Assign the underlying node filter for this wrapper.voidAndFilterWrapper. setSubNodeFilters(NodeFilter[] filters)Assign the underlying node filter's subordinate filters.voidHasAttributeFilterWrapper. setSubNodeFilters(NodeFilter[] filters)Assign the underlying node filter's subordinate filters.voidHasChildFilterWrapper. setSubNodeFilters(NodeFilter[] filters)Assign the underlying node filter's subordinate filters.voidHasParentFilterWrapper. setSubNodeFilters(NodeFilter[] filters)Assign the underlying node filter's subordinate filters.voidHasSiblingFilterWrapper. setSubNodeFilters(NodeFilter[] filters)Assign the underlying node filter's subordinate filters.voidNodeClassFilterWrapper. setSubNodeFilters(NodeFilter[] filters)Assign the underlying node filter's subordinate filters.voidNotFilterWrapper. setSubNodeFilters(NodeFilter[] filters)Assign the underlying node filter's subordinate filters.voidOrFilterWrapper. setSubNodeFilters(NodeFilter[] filters)Assign the underlying node filter's subordinate filters.voidRegexFilterWrapper. setSubNodeFilters(NodeFilter[] filters)Assign the underlying node filter's subordinate filters.voidStringFilterWrapper. setSubNodeFilters(NodeFilter[] filters)Assign the underlying node filter's subordinate filters.voidTagNameFilterWrapper. 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 NodeFilter Modifier and Type Method Description voidCompositeTag. 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 NodeFilter Modifier and Type Method Description NodeListNodeList. extractAllNodesThatMatch(NodeFilter filter)Filter the list with the given filter non-recursively.NodeListNodeList. extractAllNodesThatMatch(NodeFilter filter, boolean recursive)Filter the list with the given filter.voidNodeList. keepAllNodesThatMatch(NodeFilter filter)Remove nodes not matching the given filter non-recursively.voidNodeList. keepAllNodesThatMatch(NodeFilter filter, boolean recursive)Remove nodes not matching the given filter.static java.lang.String[]ParserUtils. splitTags(java.lang.String input, NodeFilter filter)Split the input string in a string array, considering the tags as delimiter for splitting.static java.lang.String[]ParserUtils. splitTags(java.lang.String input, NodeFilter filter, boolean recursive, boolean insideTag)Split the input string in a string array, considering the tags as delimiter for splitting.static java.lang.StringParserUtils. trimTags(java.lang.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 java.lang.StringParserUtils. trimTags(java.lang.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).
-