Home | History | Annotate | Download | only in parser

Lines Matching defs:HTML

16 package com.android.mail.lib.html.parser;
32 * HtmlDocument is a container for a list of html nodes, and represents the
33 * entire html document. It contains toHTML() method which prints out the html
44 * Creates a Html document.
45 * @param nodes list of html nodes
56 /** Returns a HTML string for the current document */
87 /** Returns the HTML document in debug format */
97 * @see HtmlDocument#createTag(HTML.Element, List, String, String)
99 public static Tag createTag(HTML.Element element, List<TagAttribute> attributes) {
105 * @see HtmlDocument.Tag#Tag(HTML.Element, List, boolean, String, String)
107 public static Tag createTag(HTML.Element element,
116 * @see HtmlDocument#createSelfTerminatingTag(HTML.Element, List, String, String)
118 public static Tag createSelfTerminatingTag(HTML.Element element,
125 * @see HtmlDocument#createTag(HTML.Element, List, String, String)
127 public static Tag createSelfTerminatingTag(HTML.Element element,
135 * @see HtmlDocument#createEndTag(HTML.Element, String)
137 public static EndTag createEndTag(HTML.Element element) {
142 * @see HtmlDocument.EndTag#EndTag(HTML.Element, String)
144 public static EndTag createEndTag(HTML.Element element, String originalHtml) {
149 * @see HtmlDocument#createTagAttribute(HTML.Attribute, String, String)
151 public static TagAttribute createTagAttribute(HTML.Attribute attr, String value) {
156 * @see HtmlDocument.TagAttribute#TagAttribute(HTML.Attribute, String, String)
158 public static TagAttribute createTagAttribute(HTML.Attribute attr,
227 * Html node
234 /** Converts to HTML */
241 /** Converts to HTML */
265 * @param sb Destination of HTML to be appended. Appends original if it's
272 * HTML comment node.
336 * content of this node in HTML format
338 private String html;
341 * @param originalHtml Unaltered original HTML. If not null,
396 * Gets the HTML, with HTML entities escaped.
400 if (html == null) {
401 html = CharEscapers.asciiHtmlEscaper().escape(getText());
403 sb.append(html);
415 * @param sb Appends original HTML to this if available. Otherwise,
428 * @return the original HTML (possibly with entities unescaped if the
429 * document was malformed). May be null if original HTML was not preserved
439 * already HTML unescaped.
500 * Tag is a HTML open tag.
504 private final HTML.Element element;
534 private Tag(HTML.Element element, List<TagAttribute> attributes,
551 public HTML.Element getElement() {
556 public void addAttribute(HTML.Attribute attr, String value) {
576 public TagAttribute getAttribute(HTML.Attribute attr) {
591 public List<TagAttribute> getAttributes(HTML.Attribute attr) {
627 serialize(sb, SerializeType.HTML);
644 ORIGINAL_HTML, HTML, XHTML
662 } else if (type == SerializeType.HTML) {
694 * EndTag is a closing HTML tag.
698 private final HTML.Element element;
703 * @param element The HTML.Element element. Can not be null.
710 private EndTag(HTML.Element element, String originalHtml) {
722 public HTML.Element getElement() {
762 * TagAttribute represents an attribute in a HTML tag.
765 private final HTML.Attribute attribute;
770 * @param attribute the HTML.Attribute. Can't be null.
777 private TagAttribute(HTML.Attribute attribute, String value, String originalHtml) {
789 /** Gets the HTML.Attribute information */
790 public HTML.Attribute getAttribute() {
796 * This value must be in plain-text, not html-escaped.
817 * Writes out the attribute in HTML format with all necessary preceding
824 if (value != null && attribute.getType() != HTML.Attribute.BOOLEAN_TYPE) {
831 /** Returns the attribute html string */
913 /** HTML comment */
1100 * Html visitor allows external code to iterate through the nodes in the
1206 /** Gets the html document that has been constructed */
1213 * A Visitor that prints out the html