info.bliki.htmlcleaner.util
Class HtmlFormExtractor

java.lang.Object
  extended by info.bliki.htmlcleaner.util.AbstractHtmlExtractor<HtmlForm>
      extended by info.bliki.htmlcleaner.util.HtmlFormExtractor

public class HtmlFormExtractor
extends AbstractHtmlExtractor<HtmlForm>

Extracts a <div class="errorbox">...error text...</div> content.


Field Summary
static java.lang.String FORM_TAG
           
static java.lang.String INPUT_TAG
           
static java.lang.String TEXTAREA_TAG
           
 
Constructor Summary
HtmlFormExtractor(HtmlForm resultForm)
           
HtmlFormExtractor(HtmlForm resultForm, java.lang.String formID)
           
 
Method Summary
 void appendContent(java.util.List nodes)
          Append the content of the nodes to the given result object.
 boolean isFound(TagNode tagNode)
          Append the content of the given TagNode to the resultObject
 
Methods inherited from class info.bliki.htmlcleaner.util.AbstractHtmlExtractor
extractContent, getResultObject, visitBaseToken, visitTokenList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FORM_TAG

public static final java.lang.String FORM_TAG
See Also:
Constant Field Values

INPUT_TAG

public static final java.lang.String INPUT_TAG
See Also:
Constant Field Values

TEXTAREA_TAG

public static final java.lang.String TEXTAREA_TAG
See Also:
Constant Field Values
Constructor Detail

HtmlFormExtractor

public HtmlFormExtractor(HtmlForm resultForm)

HtmlFormExtractor

public HtmlFormExtractor(HtmlForm resultForm,
                         java.lang.String formID)
Method Detail

appendContent

public void appendContent(java.util.List nodes)
Description copied from class: AbstractHtmlExtractor
Append the content of the nodes to the given result object.

Specified by:
appendContent in class AbstractHtmlExtractor<HtmlForm>

isFound

public boolean isFound(TagNode tagNode)
Description copied from class: AbstractHtmlExtractor
Append the content of the given TagNode to the resultObject

Specified by:
isFound in class AbstractHtmlExtractor<HtmlForm>
Returns:
true if appendContent() should be called.


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