SMILA (incubation) API documentation

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

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

public class MetaTagFilter
extends WorkTypeFilter<HTMLMetaTags>

Implementation of the filter for omitting content by meta tags.


Field Summary
 
Fields inherited from class org.eclipse.smila.connectivity.framework.crawler.web.filter.WorkTypeFilter
_workType
 
Constructor Summary
MetaTagFilter()
           
 
Method Summary
 java.lang.String getContent()
          Returns filter content.
 java.lang.String getName()
          Returns the name of meta tag.
 HtmlMetaTagType getType()
          Returns filter type (Name or HttpEquiv).
 boolean matches(HTMLMetaTags test)
          Returns true if the value of the parameter satisfies the filter and false otherwise.
 void setContent(java.lang.String content)
          Assigns filter content.
 void setName(java.lang.String name)
          Assigns the name of meta tag.
 void setType(HtmlMetaTagType type)
          Assigns filter type (Name or HttpEquiv).
 
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

MetaTagFilter

public MetaTagFilter()
Method Detail

getContent

public java.lang.String getContent()
Returns filter content.

Returns:
String

setContent

public void setContent(java.lang.String content)
Assigns filter content.

Parameters:
content - String

getType

public HtmlMetaTagType getType()
Returns filter type (Name or HttpEquiv).

Returns:
HtmlMetaTagType

setType

public void setType(HtmlMetaTagType type)
Assigns filter type (Name or HttpEquiv).

Parameters:
type - HtmlMetaTagType

getName

public java.lang.String getName()
Returns the name of meta tag.

Returns:
String

setName

public void setName(java.lang.String name)
Assigns the name of meta tag.

Parameters:
name - String

matches

public boolean matches(HTMLMetaTags 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