nu.validator.servlet.FormEmitter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of validator Show documentation
Show all versions of validator Show documentation
An HTML-checking library (used by https://html5.validator.nu and the HTML5 facet of the W3C Validator)
/* This code was generated by nu.validator.tools.SaxCompiler. Please regenerate instead of editing. */
package nu.validator.servlet;
public final class FormEmitter {
private FormEmitter() {}
public static void emit(org.xml.sax.ContentHandler contentHandler, nu.validator.servlet.VerifierServletTransaction t) throws org.xml.sax.SAXException {
org.xml.sax.helpers.AttributesImpl __attrs__ = new org.xml.sax.helpers.AttributesImpl();
contentHandler.startPrefixMapping("", "http://www.w3.org/1999/xhtml");
__attrs__.clear();
contentHandler.startElement("http://www.w3.org/1999/xhtml", "fieldset", "fieldset", __attrs__);
__attrs__.clear();
contentHandler.startElement("http://www.w3.org/1999/xhtml", "legend", "legend", __attrs__);
contentHandler.characters(__chars__, 0, 13);
contentHandler.endElement("http://www.w3.org/1999/xhtml", "legend", "legend");
__attrs__.clear();
__attrs__.addAttribute("", "class", "class", "CDATA", "checkboxes");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "p", "p", __attrs__);
contentHandler.characters(__chars__, 13, 5);
__attrs__.clear();
__attrs__.addAttribute("", "class", "class", "CDATA", "checkboxgroup");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "span", "span", __attrs__);
__attrs__.clear();
__attrs__.addAttribute("", "title", "title", "CDATA", "Display the markup source of the input document.");
__attrs__.addAttribute("", "for", "for", "CDATA", "showsource");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "label", "label", __attrs__);
t.emitShowSourceField();
contentHandler.characters(__chars__, 18, 6);
contentHandler.endElement("http://www.w3.org/1999/xhtml", "label", "label");
__attrs__.clear();
__attrs__.addAttribute("", "title", "title", "CDATA", "Display an outline of the input document.");
__attrs__.addAttribute("", "for", "for", "CDATA", "showoutline");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "label", "label", __attrs__);
t.emitShowOutlineField();
contentHandler.characters(__chars__, 24, 7);
contentHandler.endElement("http://www.w3.org/1999/xhtml", "label", "label");
__attrs__.clear();
__attrs__.addAttribute("", "title", "title", "CDATA", "Display a report about the textual alternatives for images.");
__attrs__.addAttribute("", "for", "for", "CDATA", "showimagereport");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "label", "label", __attrs__);
t.emitShowImageReportField();
contentHandler.characters(__chars__, 31, 12);
contentHandler.endElement("http://www.w3.org/1999/xhtml", "label", "label");
contentHandler.endElement("http://www.w3.org/1999/xhtml", "span", "span");
__attrs__.clear();
__attrs__.addAttribute("", "id", "id", "CDATA", "show_options");
__attrs__.addAttribute("", "type", "type", "CDATA", "button");
__attrs__.addAttribute("", "value", "value", "CDATA", "Options\u2026");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "input", "input", __attrs__);
contentHandler.endElement("http://www.w3.org/1999/xhtml", "input", "input");
__attrs__.clear();
__attrs__.addAttribute("", "class", "class", "CDATA", "extraoptions hidden");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "span", "span", __attrs__);
__attrs__.clear();
__attrs__.addAttribute("", "class", "class", "CDATA", "checkboxgroup");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "span", "span", __attrs__);
__attrs__.clear();
__attrs__.addAttribute("", "title", "title", "CDATA", "Check the content of all responses, including (non-200) error responses");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "label", "label", __attrs__);
t.emitCheckErrorPagesField();
contentHandler.characters(__chars__, 43, 17);
contentHandler.endElement("http://www.w3.org/1999/xhtml", "label", "label");
contentHandler.endElement("http://www.w3.org/1999/xhtml", "span", "span");
__attrs__.clear();
__attrs__.addAttribute("", "id", "id", "CDATA", "user-agent-label");
__attrs__.addAttribute("", "title", "title", "CDATA", "Specify the user-agent string to send in the document request");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "label", "label", __attrs__);
contentHandler.characters(__chars__, 60, 11);
t.emitUserAgentInput();
contentHandler.endElement("http://www.w3.org/1999/xhtml", "label", "label");
__attrs__.clear();
__attrs__.addAttribute("", "id", "id", "CDATA", "useragents");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "datalist", "datalist", __attrs__);
contentHandler.endElement("http://www.w3.org/1999/xhtml", "datalist", "datalist");
__attrs__.clear();
__attrs__.addAttribute("", "id", "id", "CDATA", "accept-language-label");
__attrs__.addAttribute("", "title", "title", "CDATA", "Specify the accept-language header to send in the document request");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "label", "label", __attrs__);
contentHandler.characters(__chars__, 71, 16);
t.emitAcceptLanguageInput();
contentHandler.endElement("http://www.w3.org/1999/xhtml", "label", "label");
contentHandler.endElement("http://www.w3.org/1999/xhtml", "span", "span");
contentHandler.endElement("http://www.w3.org/1999/xhtml", "p", "p");
__attrs__.clear();
__attrs__.addAttribute("", "id", "id", "CDATA", "inputregion");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "div", "div", __attrs__);
__attrs__.clear();
__attrs__.addAttribute("", "id", "id", "CDATA", "inputlabel");
__attrs__.addAttribute("", "for", "for", "CDATA", "doc");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "label", "label", __attrs__);
contentHandler.characters(__chars__, 87, 13);
contentHandler.endElement("http://www.w3.org/1999/xhtml", "label", "label");
t.emitDocField();
contentHandler.endElement("http://www.w3.org/1999/xhtml", "div", "div");
__attrs__.clear();
contentHandler.startElement("http://www.w3.org/1999/xhtml", "p", "p", __attrs__);
__attrs__.clear();
__attrs__.addAttribute("", "value", "value", "CDATA", "Check");
__attrs__.addAttribute("", "type", "type", "CDATA", "submit");
__attrs__.addAttribute("", "id", "id", "CDATA", "submit");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "input", "input", __attrs__);
contentHandler.endElement("http://www.w3.org/1999/xhtml", "input", "input");
contentHandler.endElement("http://www.w3.org/1999/xhtml", "p", "p");
contentHandler.endElement("http://www.w3.org/1999/xhtml", "fieldset", "fieldset");
contentHandler.endPrefixMapping("");
}
private static final char[] __chars__ = { 'C', 'h', 'e', 'c', 'k', 'e', 'r', ' ', 'I', 'n', 'p', 'u', 't', 'S', 'h', 'o', 'w', ' ', 's', 'o', 'u', 'r', 'c', 'e', 'o', 'u', 't', 'l', 'i', 'n', 'e', 'i', 'm', 'a', 'g', 'e', ' ', 'r', 'e', 'p', 'o', 'r', 't', 'c', 'h', 'e', 'c', 'k', ' ', 'e', 'r', 'r', 'o', 'r', ' ', 'p', 'a', 'g', 'e', 's', 'U', 's', 'e', 'r', '-', 'A', 'g', 'e', 'n', 't', ' ', 'A', 'c', 'c', 'e', 'p', 't', '-', 'L', 'a', 'n', 'g', 'u', 'a', 'g', 'e', ' ', 'D', 'o', 'c', 'u', 'm', 'e', 'n', 't', ' ', 'U', 'R', 'L', ':' };
}