nu.validator.servlet.PageEmitter 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 PageEmitter {
private PageEmitter() {}
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();
try {
contentHandler.startDocument();
contentHandler.startPrefixMapping("", "http://www.w3.org/1999/xhtml");
__attrs__.clear();
__attrs__.addAttribute("http://www.w3.org/XML/1998/namespace", "lang", "xml:lang", "CDATA", "en");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "html", "html", __attrs__);
__attrs__.clear();
contentHandler.startElement("http://www.w3.org/1999/xhtml", "head", "head", __attrs__);
t.emitIcon();
t.emitStyle();
__attrs__.clear();
contentHandler.startElement("http://www.w3.org/1999/xhtml", "title", "title", __attrs__);
t.emitTitle(false);
contentHandler.characters(__chars__, 0, 18);
contentHandler.endElement("http://www.w3.org/1999/xhtml", "title", "title");
__attrs__.clear();
__attrs__.addAttribute("", "name", "name", "CDATA", "viewport");
__attrs__.addAttribute("", "content", "content", "CDATA", "width=device-width, initial-scale=1");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "meta", "meta", __attrs__);
contentHandler.endElement("http://www.w3.org/1999/xhtml", "meta", "meta");
contentHandler.endElement("http://www.w3.org/1999/xhtml", "head", "head");
__attrs__.clear();
contentHandler.startElement("http://www.w3.org/1999/xhtml", "body", "body", __attrs__);
__attrs__.clear();
__attrs__.addAttribute("", "id", "id", "CDATA", "banner");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "div", "div", __attrs__);
__attrs__.clear();
__attrs__.addAttribute("", "id", "id", "CDATA", "title");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "h1", "h1", __attrs__);
__attrs__.clear();
__attrs__.addAttribute("", "href", "href", "CDATA", ".");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "a", "a", __attrs__);
__attrs__.clear();
contentHandler.startElement("http://www.w3.org/1999/xhtml", "span", "span", __attrs__);
contentHandler.characters(__chars__, 18, 15);
contentHandler.endElement("http://www.w3.org/1999/xhtml", "span", "span");
contentHandler.endElement("http://www.w3.org/1999/xhtml", "a", "a");
contentHandler.endElement("http://www.w3.org/1999/xhtml", "h1", "h1");
contentHandler.endElement("http://www.w3.org/1999/xhtml", "div", "div");
__attrs__.clear();
__attrs__.addAttribute("", "class", "class", "CDATA", "disclaimer");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "p", "p", __attrs__);
contentHandler.characters(__chars__, 33, 102);
contentHandler.endElement("http://www.w3.org/1999/xhtml", "p", "p");
__attrs__.clear();
__attrs__.addAttribute("", "id", "id", "CDATA", "top");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "h2", "h2", __attrs__);
t.emitTitle(true);
contentHandler.endElement("http://www.w3.org/1999/xhtml", "h2", "h2");
t.emitForm(); t.emitScript();
__attrs__.clear();
__attrs__.addAttribute("", "id", "id", "CDATA", "results");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "div", "div", __attrs__);
t.validate();
contentHandler.endElement("http://www.w3.org/1999/xhtml", "div", "div");
__attrs__.clear();
contentHandler.startElement("http://www.w3.org/1999/xhtml", "hr", "hr", __attrs__);
contentHandler.endElement("http://www.w3.org/1999/xhtml", "hr", "hr");
__attrs__.clear();
__attrs__.addAttribute("", "id", "id", "CDATA", "about");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "div", "div", __attrs__);
__attrs__.clear();
contentHandler.startElement("http://www.w3.org/1999/xhtml", "p", "p", __attrs__);
__attrs__.clear();
__attrs__.addAttribute("", "href", "href", "CDATA", "about.html");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "a", "a", __attrs__);
contentHandler.characters(__chars__, 135, 18);
contentHandler.endElement("http://www.w3.org/1999/xhtml", "a", "a");
contentHandler.characters(__chars__, 153, 3);
__attrs__.clear();
__attrs__.addAttribute("", "href", "href", "CDATA", "about.html#issues");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "a", "a", __attrs__);
contentHandler.characters(__chars__, 156, 15);
contentHandler.endElement("http://www.w3.org/1999/xhtml", "a", "a");
contentHandler.characters(__chars__, 171, 3);
__attrs__.clear();
__attrs__.addAttribute("", "class", "class", "CDATA", "version");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "span", "span", __attrs__);
contentHandler.characters(__chars__, 174, 9);
t.emitVersion();
contentHandler.endElement("http://www.w3.org/1999/xhtml", "span", "span");
contentHandler.endElement("http://www.w3.org/1999/xhtml", "p", "p");
contentHandler.endElement("http://www.w3.org/1999/xhtml", "div", "div");
contentHandler.endElement("http://www.w3.org/1999/xhtml", "body", "body");
contentHandler.endElement("http://www.w3.org/1999/xhtml", "html", "html");
contentHandler.endPrefixMapping("");
} finally {
contentHandler.endDocument();
}
}
private static final char[] __chars__ = { ' ', '-', ' ', 'N', 'u', ' ', 'H', 't', 'm', 'l', ' ', 'C', 'h', 'e', 'c', 'k', 'e', 'r', 'N', 'u', ' ', 'H', 't', 'm', 'l', ' ', 'C', 'h', 'e', 'c', 'k', 'e', 'r', 'T', 'h', 'i', 's', ' ', 't', 'o', 'o', 'l', ' ', 'i', 's', ' ', 'a', 'n', ' ', 'o', 'n', 'g', 'o', 'i', 'n', 'g', ' ', 'e', 'x', 'p', 'e', 'r', 'i', 'm', 'e', 'n', 't', ' ', 'i', 'n', ' ', 'b', 'e', 't', 't', 'e', 'r', ' ', 'H', 'T', 'M', 'L', ' ', 'c', 'h', 'e', 'c', 'k', 'i', 'n', 'g', ',', ' ', 'a', 'n', 'd', ' ', 'i', 't', 's', ' ', 'b', 'e', 'h', 'a', 'v', 'i', 'o', 'r', ' ', 'r', 'e', 'm', 'a', 'i', 'n', 's', ' ', 's', 'u', 'b', 'j', 'e', 'c', 't', ' ', 't', 'o', ' ', 'c', 'h', 'a', 'n', 'g', 'e', 'A', 'b', 'o', 'u', 't', ' ', 't', 'h', 'i', 's', ' ', 'c', 'h', 'e', 'c', 'k', 'e', 'r', ' ', '\u2022', ' ', 'R', 'e', 'p', 'o', 'r', 't', ' ', 'a', 'n', ' ', 'i', 's', 's', 'u', 'e', ' ', '\u2022', ' ', 'V', 'e', 'r', 's', 'i', 'o', 'n', ':', ' ' };
}