SMILA (incubation) API documentation

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

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

public class ContentTypeFilter
extends WorkTypeFilter<java.lang.String>

Implementation of the filter that filters content type on a regular expression.


Field Summary
 
Fields inherited from class org.eclipse.smila.connectivity.framework.crawler.web.filter.WorkTypeFilter
_workType
 
Constructor Summary
ContentTypeFilter()
          Default empty constructor.
 
Method Summary
 java.lang.String getValue()
          Returns the filter value.
 boolean matches(java.lang.String test)
          Returns true if the value of the parameter satisfies the filter and false otherwise.
 void setValue(java.lang.String value)
          Assigns the filter value.
 
Methods inherited from class org.eclipse.smila.connectivity.framework.crawler.web.filter.WorkTypeFilter
getWorkType, setWorkType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentTypeFilter

public ContentTypeFilter()
Default empty constructor.

Method Detail

getValue

public java.lang.String getValue()
Returns the filter value.

Returns:
String

setValue

public void setValue(java.lang.String value)
Assigns the filter value.

Parameters:
value - String

matches

public boolean matches(java.lang.String test)
Returns true if the value of the parameter satisfies the filter and false otherwise.

Parameters:
test - value that will be checked against the filter.
Returns:
filter result

SMILA (incubation) API documentation