Home | History | Annotate | Download | only in parser

Lines Matching defs:HTML

17 package com.google.android.mail.common.html.parser;
33 * HtmlDocument is a container for a list of html nodes, and represents the
34 * entire html document. It contains toHTML() method which prints out the html
45 * Creates a Html document.
46 * @param nodes list of html nodes
57 /** Returns a HTML string for the current document */
88 /** Returns the HTML document in debug format */
98 * @see HtmlDocument#createTag(HTML.Element, List, String, String)
100 public static Tag createTag(HTML.Element element, List<TagAttribute> attributes) {
106 * @see HtmlDocument.Tag#Tag(HTML.Element, List, boolean, String, String)
108 public static Tag createTag(HTML.Element element,
117 * @see HtmlDocument#createSelfTerminatingTag(HTML.Element, List, String, String)
119 public static Tag createSelfTerminatingTag(HTML.Element element,
126 * @see HtmlDocument#createTag(HTML.Element, List, String, String)
128 public static Tag createSelfTerminatingTag(HTML.Element element,
136 * @see HtmlDocument#createEndTag(HTML.Element, String)
138 public static EndTag createEndTag(HTML.Element element) {
143 * @see HtmlDocument.EndTag#EndTag(HTML.Element, String)
145 public static EndTag createEndTag(HTML.Element element, String originalHtml) {
150 * @see HtmlDocument#createTagAttribute(HTML.Attribute, String, String)
152 public static TagAttribute createTagAttribute(HTML.Attribute attr, String value) {
157 * @see HtmlDocument.TagAttribute#TagAttribute(HTML.Attribute, String, String)
159 public static TagAttribute createTagAttribute(HTML.Attribute attr,
228 * Html node
235 /** Converts to HTML */
242 /** Converts to HTML */
266 * @param sb Destination of HTML to be appended. Appends original if it's
273 * HTML comment node.
337 * content of this node in HTML format
339 private String html;
342 * @param originalHtml Unaltered original HTML. If not null,
397 * Gets the HTML, with HTML entities escaped.
401 if (html == null) {
402 html = CharEscapers.asciiHtmlEscaper().escape(getText());
404 sb.append(html);
416 * @param sb Appends original HTML to this if available. Otherwise,
429 * @return the original HTML (possibly with entities unescaped if the
430 * document was malformed). May be null if original HTML was not preserved
440 * already HTML unescaped.
501 * Tag is a HTML open tag.
505 private final HTML.Element element;
535 private Tag(HTML.Element element, List<TagAttribute> attributes,
552 public HTML.Element getElement() {
557 public void addAttribute(HTML.Attribute attr, String value) {
577 public TagAttribute getAttribute(HTML.Attribute attr) {
592 public List<TagAttribute> getAttributes(HTML.Attribute attr) {
628 serialize(sb, SerializeType.HTML);
645 ORIGINAL_HTML, HTML, XHTML
663 } else if (type == SerializeType.HTML) {
695 * EndTag is a closing HTML tag.
699 private final HTML.Element element;
704 * @param element The HTML.Element element. Can not be null.
711 private EndTag(HTML.Element element, String originalHtml) {
723 public HTML.Element getElement() {
763 * TagAttribute represents an attribute in a HTML tag.
766 private final HTML.Attribute attribute;
771 * @param attribute the HTML.Attribute. Can't be null.
778 private TagAttribute(HTML.Attribute attribute, String value, String originalHtml) {
790 /** Gets the HTML.Attribute information */
791 public HTML.Attribute getAttribute() {
797 * This value must be in plain-text, not html-escaped.
818 * Writes out the attribute in HTML format with all necessary preceding
825 if (value != null && attribute.getType() != HTML.Attribute.BOOLEAN_TYPE) {
832 /** Returns the attribute html string */
914 /** HTML comment */
1101 * Html visitor allows external code to iterate through the nodes in the
1207 /** Gets the html document that has been constructed */
1214 * A Visitor that prints out the html document in debug format.