HTML Parser Home Page

Uses of Interface
org.htmlparser.NodeFilter

Packages that use NodeFilter
org.htmlparser The basic API classes which will be used by most users when working with the html parser (the Parser class is the most important one in this). 
org.htmlparser.filters The filters package contains example filters to select only desired nodes. 
org.htmlparser.nodeDecorators The nodeDecorators package contains classes that use the Decorator pattern. 
org.htmlparser.parserapplications Developers and users alike should try out the applications in this package. 
org.htmlparser.tags The tags package contains tag types that are created mostly by the scanners. 
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
 void Parser.parse(NodeFilter filter)
          Parse the given resource, using the filter provided.
 NodeList Parser.extractAllNodesThatMatch(NodeFilter filter)
          Extract all nodes matching the given filter.
 void Node.collectInto(NodeList collectionList, NodeFilter filter)
          Collect this node and its child nodes (if-applicable) into the collectionList parameter, provided the node satisfies the filtering criteria.
 void 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.filters
 

Classes in org.htmlparser.filters that implement NodeFilter
 class AndFilter
          This class accepts all nodes matching both filters (AND operation).
 class HasAttributeFilter
          This class accepts all tags that have a certain attribute, and optionally, with a certain value.
 class HasChildFilter
          This class accepts all tags that have a child acceptable to the filter.
 class HasParentFilter
          This class accepts all tags that have a parent acceptable to the filter.
 class IsEqualFilter
          This class accepts only one specific node.
 class NodeClassFilter
          This class accepts all tags of a given class.
 class NotFilter
          This class accepts all nodes not acceptable to the filter.
 class OrFilter
          This class accepts all nodes matching either filter (OR operation).
 class StringFilter
          This class accepts all string nodes containing the given string.
 class TagNameFilter
          This class accepts all tags matching the tag name.
 

Fields in org.htmlparser.filters declared as NodeFilter
protected  NodeFilter OrFilter.mLeft
          The left hand side.
protected  NodeFilter OrFilter.mRight
          The right hand side.
protected  NodeFilter NotFilter.mFilter
          The filter to gainsay.
 NodeFilter HasParentFilter.mFilter
          The filter to apply to children.
protected  NodeFilter HasChildFilter.mFilter
          The filter to apply to children.
protected  NodeFilter AndFilter.mLeft
          The left hand side.
protected  NodeFilter AndFilter.mRight
          The right hand side.
 

Constructors in org.htmlparser.filters with parameters of type NodeFilter
OrFilter(NodeFilter left, NodeFilter right)
          Creates a new instance of OrFilter that accepts nodes acceptable to either filter.
NotFilter(NodeFilter filter)
          Creates a new instance of NotFilter that accepts nodes not acceptable to the filter.
HasParentFilter(NodeFilter filter)
          Creates a new instance of HasParentFilter that accepts tags with parent acceptable to the filter.
HasChildFilter(NodeFilter filter)
          Creates a new instance of HasChildFilter that accepts tags with children acceptable to the filter.
AndFilter(NodeFilter left, NodeFilter right)
          Creates a new instance of AndFilter that accepts nodes acceptable to both filters.
 

Uses of NodeFilter in org.htmlparser.nodeDecorators
 

Methods in org.htmlparser.nodeDecorators with parameters of type NodeFilter
 void AbstractNodeDecorator.collectInto(NodeList list, NodeFilter filter)
           
 

Uses of NodeFilter in org.htmlparser.parserapplications
 

Fields in org.htmlparser.parserapplications declared as NodeFilter
protected  NodeFilter SiteCapturer.mFilter
          The filter to apply to the nodes retrieved.
 

Methods in org.htmlparser.parserapplications that return NodeFilter
 NodeFilter SiteCapturer.getFilter()
          Getter for property filter.
 

Methods in org.htmlparser.parserapplications with parameters of type NodeFilter
 void SiteCapturer.setFilter(NodeFilter filter)
          Setter for property filter.
protected  void SiteCapturer.process(NodeFilter filter)
          Process a single page.
 

Uses of NodeFilter in org.htmlparser.tags
 

Methods in org.htmlparser.tags with parameters of type NodeFilter
 void CompositeTag.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.util
 

Methods in org.htmlparser.util with parameters of type NodeFilter
 NodeList NodeList.extractAllNodesThatMatch(NodeFilter filter)
          Filter the list with the given filter non-recursively.
 NodeList 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.
 


© 2004 Somik Raha
Mar 14, 2004

HTML Parser is an open source library released under LGPL.
SourceForge.net