de.dbsystems.simplescrape
Class AbstractHTMLToken

java.lang.Object
  extended by de.dbsystems.simplescrape.AbstractHTMLToken
Direct Known Subclasses:
HTMLComment, HTMLTag, TextToken

public abstract class AbstractHTMLToken
extends java.lang.Object

Common superclass for all tokens that can be found in an HTML-file.

Since:
04.04.2007
Author:
Ronald Bieber, DB Systems GmbH

Constructor Summary
AbstractHTMLToken()
           
 
Method Summary
abstract  boolean match(AbstractHTMLToken other, ScrapeOptions options)
          Determines whether two tokens match.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractHTMLToken

public AbstractHTMLToken()
Method Detail

match

public abstract boolean match(AbstractHTMLToken other,
                              ScrapeOptions options)
Determines whether two tokens match.

Parameters:
other - The search-HtmlToken to be tested against.
options - A set of options. Relevant options are attributesStrict, trimText and ignoreCase.
Returns:
true: The two elements match, false: they don't (duh!)