|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nz.ac.waikato.mcennis.rat.crawler.filter.AndFilter
public class AndFilter
Filter designed to return sites that match all of its sub-filters
Constructor Summary | |
---|---|
AndFilter()
|
Method Summary | |
---|---|
void |
build(java.util.List<CrawlerFilter> parts,
boolean not)
Construct a new filter from the given components |
boolean |
check(java.lang.String site)
Should the URL this string represents be retrieved |
boolean |
check(java.lang.String site,
Properties parameters)
Should the URL this string represents be retrieved, given the parameters provided |
void |
load(java.lang.String site)
Submit the given site to the filter chain without retrieving it. |
void |
load(java.lang.String site,
Properties parameters)
Submit the given site - parameter combination to the filter chain without retrieving it. |
AndFilter |
prototype()
Creates a new default version of this class with no common data excepting static variables |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AndFilter()
Method Detail |
---|
public boolean check(java.lang.String site)
CrawlerFilter
check
in interface CrawlerFilter
site
- URL of the site to be retrieved
public boolean check(java.lang.String site, Properties parameters)
CrawlerFilter
check
in interface CrawlerFilter
site
- URL to be retrievedparameters
- parameters governing the retrieval
public void build(java.util.List<CrawlerFilter> parts, boolean not)
parts
- list of all subfiltersnot
- should the final outcome be negatedpublic void load(java.lang.String site)
CrawlerFilter
load
in interface CrawlerFilter
site
- URL to be addedpublic void load(java.lang.String site, Properties parameters)
CrawlerFilter
load
in interface CrawlerFilter
site
- URL to be addedpublic AndFilter prototype()
CrawlerFilter
prototype
in interface CrawlerFilter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |