info.bliki.htmlcleaner.util
Class AbstractHtmlExtractor<T>

java.lang.Object
  extended by info.bliki.htmlcleaner.util.AbstractHtmlExtractor<T>
Direct Known Subclasses:
DivErrorboxExtractor, HtmlFormExtractor

public abstract class AbstractHtmlExtractor<T>
extends java.lang.Object


Constructor Summary
AbstractHtmlExtractor(T resultObject)
           
 
Method Summary
protected abstract  void appendContent(java.util.List nodes)
          Append the content of the nodes to the given result object.
 void extractContent(java.lang.String html)
          Extract the information from the given html text.
protected  T getResultObject()
           
protected abstract  boolean isFound(TagNode tagNode)
          Append the content of the given TagNode to the resultObject
protected  void visitBaseToken(BaseToken node)
           
protected  void visitTokenList(java.util.List nodes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractHtmlExtractor

public AbstractHtmlExtractor(T resultObject)
Method Detail

appendContent

protected abstract void appendContent(java.util.List nodes)
Append the content of the nodes to the given result object.

Parameters:
nodes -

isFound

protected abstract boolean isFound(TagNode tagNode)
Append the content of the given TagNode to the resultObject

Parameters:
tagNode -
Returns:
true if appendContent() should be called.

getResultObject

protected T getResultObject()

visitTokenList

protected void visitTokenList(java.util.List nodes)

visitBaseToken

protected void visitBaseToken(BaseToken node)

extractContent

public void extractContent(java.lang.String html)
Extract the information from the given html text.

Parameters:
html -


Copyright © 2012 Java Wikipedia API (Bliki engine). All Rights Reserved.