info.bliki.htmlcleaner.util.HtmlFormExtractor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bliki-core Show documentation
Show all versions of bliki-core Show documentation
This is the core project.
The newest version!
package info.bliki.htmlcleaner.util;
import info.bliki.htmlcleaner.TagNode;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* Extracts a <div class="errorbox">...error text...</div>
* content.
*
*/
public class HtmlFormExtractor extends AbstractHtmlExtractor {
public static final String FORM_TAG = "form";
public static final String INPUT_TAG = "input";
public static final String TEXTAREA_TAG = "textarea";
private final String fFormID;
public HtmlFormExtractor(HtmlForm resultForm) {
this(resultForm, "editform");
}
public HtmlFormExtractor(HtmlForm resultForm, String formID) {
super(resultForm);
fFormID = formID;
}
@Override
public void appendContent(List