SMILA 1.0 API documentation

org.eclipse.smila.connectivity.framework.crawler.web.filter.impl
Class CrawlScopeFilter

java.lang.Object
  extended by org.eclipse.smila.connectivity.framework.crawler.web.filter.impl.CrawlScopeFilter
All Implemented Interfaces:
IFilter<Outlink>

public class CrawlScopeFilter
extends java.lang.Object
implements IFilter<Outlink>

Implemenation of the filter that allows to add or exclude some urls from crawlscope.


Constructor Summary
CrawlScopeFilter()
          Empty constructor.
 
Method Summary
 CrawlScope getCrawlScope()
          Returns crawl scope type.
 WorkTypeFiltersCollection getUrlFilters()
          Returns the collection of the URL filters from CrawlScope element.
 boolean matches(Outlink link)
          Returns true if the value of the parameter satisfies the filter and false otherwise.
 void setCrawlScope(CrawlScope scope)
          Assigns crawl scope type.
 void setSeeds(java.util.Set<Outlink> seeds)
          Assigns website seeds for initial filter configuration.
 void setUrlFilters(WorkTypeFiltersCollection filters)
          Assigns the collection of the URL filters from CrawlScope element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrawlScopeFilter

public CrawlScopeFilter()
Empty constructor.

Method Detail

setSeeds

public void setSeeds(java.util.Set<Outlink> seeds)
Assigns website seeds for initial filter configuration.

Parameters:
seeds - Seed outlinks

matches

public boolean matches(Outlink link)
Returns true if the value of the parameter satisfies the filter and false otherwise.

Specified by:
matches in interface IFilter<Outlink>
Parameters:
link - value that will be checked against the filter.
Returns:
filter result

getCrawlScope

public CrawlScope getCrawlScope()
Returns crawl scope type.

Returns:
CrawlScope

setCrawlScope

public void setCrawlScope(CrawlScope scope)
Assigns crawl scope type.

Parameters:
scope - CrawlScope

getUrlFilters

public WorkTypeFiltersCollection getUrlFilters()
Returns the collection of the URL filters from CrawlScope element.

Returns:
WorkTypeFiltersCollection

setUrlFilters

public void setUrlFilters(WorkTypeFiltersCollection filters)
Assigns the collection of the URL filters from CrawlScope element.

Parameters:
filters - WorkTypeFiltersCollection

SMILA 1.0 API documentation