Package Summary  Overview Summary

class:HTML.Tag [NONE]

  • Direct Known Subclasses:
    HTML.UnknownTag
    Enclosing class:
    HTML

    public static class HTML.Tag
    extends Object
    
    Typesafe enumeration for an HTML tag. Although the set of HTML tags is a closed set, we have left the set open so that people can add their own tag types to their custom parser and still communicate to the reader.

field:A [NONE]

  • A

    public static final HTML.Tag A
    Tag <a>

field:ADDRESS [NONE]

  • ADDRESS

    public static final HTML.Tag ADDRESS
    Tag <address>

field:APPLET [NONE]

  • APPLET

    public static final HTML.Tag APPLET
    Tag <applet>

field:AREA [NONE]

  • AREA

    public static final HTML.Tag AREA
    Tag <area>

field:B [NONE]

  • B

    public static final HTML.Tag B
    Tag <b>

field:BASE [NONE]

  • BASE

    public static final HTML.Tag BASE
    Tag <base>

field:BASEFONT [NONE]

  • BASEFONT

    public static final HTML.Tag BASEFONT
    Tag <basefont>

field:BIG [NONE]

  • BIG

    public static final HTML.Tag BIG
    Tag <big>

field:BLOCKQUOTE [NONE]

  • BLOCKQUOTE

    public static final HTML.Tag BLOCKQUOTE
    Tag <blockquote>

field:BODY [NONE]

  • BODY

    public static final HTML.Tag BODY
    Tag <body>

field:BR [NONE]

  • BR

    public static final HTML.Tag BR
    Tag <br>

field:CAPTION [NONE]

  • CAPTION

    public static final HTML.Tag CAPTION
    Tag <caption>

field:CENTER [NONE]

  • CENTER

    public static final HTML.Tag CENTER
    Tag <center>

field:CITE [NONE]

  • CITE

    public static final HTML.Tag CITE
    Tag <cite>

field:CODE [NONE]

  • CODE

    public static final HTML.Tag CODE
    Tag <code>

field:DD [NONE]

  • DD

    public static final HTML.Tag DD
    Tag <dd>

field:DFN [NONE]

  • DFN

    public static final HTML.Tag DFN
    Tag <dfn>

field:DIR [NONE]

  • DIR

    public static final HTML.Tag DIR
    Tag <dir>

field:DIV [NONE]

  • DIV

    public static final HTML.Tag DIV
    Tag <div>

field:DL [NONE]

  • DL

    public static final HTML.Tag DL
    Tag <dl>

field:DT [NONE]

  • DT

    public static final HTML.Tag DT
    Tag <dt>

field:EM [NONE]

  • EM

    public static final HTML.Tag EM
    Tag <em>

field:FONT [NONE]

  • FONT

    public static final HTML.Tag FONT
    Tag <font>

field:FORM [NONE]

  • FORM

    public static final HTML.Tag FORM
    Tag <form>

field:FRAME [NONE]

  • FRAME

    public static final HTML.Tag FRAME
    Tag <frame>

field:FRAMESET [NONE]

  • FRAMESET

    public static final HTML.Tag FRAMESET
    Tag <frameset>

field:H1 [NONE]

  • H1

    public static final HTML.Tag H1
    Tag <h1>

field:H2 [NONE]

  • H2

    public static final HTML.Tag H2
    Tag <h2>

field:H3 [NONE]

  • H3

    public static final HTML.Tag H3
    Tag <h3>

field:H4 [NONE]

  • H4

    public static final HTML.Tag H4
    Tag <h4>

field:H5 [NONE]

  • H5

    public static final HTML.Tag H5
    Tag <h5>

field:H6 [NONE]

  • H6

    public static final HTML.Tag H6
    Tag <h6>

field:HEAD [NONE]

  • HEAD

    public static final HTML.Tag HEAD
    Tag <head>

field:HR [NONE]

  • HR

    public static final HTML.Tag HR
    Tag <hr>

field:HTML [NONE]

  • HTML

    public static final HTML.Tag HTML
    Tag <html>

field:I [NONE]

  • I

    public static final HTML.Tag I
    Tag <i>

field:IMG [NONE]

  • IMG

    public static final HTML.Tag IMG
    Tag <img>

field:INPUT [NONE]

  • INPUT

    public static final HTML.Tag INPUT
    Tag <input>

field:ISINDEX [NONE]

  • ISINDEX

    public static final HTML.Tag ISINDEX
    Tag <isindex>

field:KBD [NONE]

  • KBD

    public static final HTML.Tag KBD
    Tag <kbd>

field:LI [NONE]

  • LI

    public static final HTML.Tag LI
    Tag <li>

field:LINK [NONE]

  • LINK

    public static final HTML.Tag LINK
    Tag <link>

field:MAP [NONE]

  • MAP

    public static final HTML.Tag MAP
    Tag <map>

field:MENU [NONE]

  • MENU

    public static final HTML.Tag MENU
    Tag <menu>

field:META [NONE]

  • META

    public static final HTML.Tag META
    Tag <meta>

field:NOFRAMES [NONE]

  • NOFRAMES

    public static final HTML.Tag NOFRAMES
    Tag <noframes>

field:OBJECT [NONE]

  • OBJECT

    public static final HTML.Tag OBJECT
    Tag <object>

field:OL [NONE]

  • OL

    public static final HTML.Tag OL
    Tag <ol>

field:OPTION [NONE]

  • OPTION

    public static final HTML.Tag OPTION
    Tag <option>

field:P [NONE]

  • P

    public static final HTML.Tag P
    Tag <p>

field:PARAM [NONE]

  • PARAM

    public static final HTML.Tag PARAM
    Tag <param>

field:PRE [NONE]

  • PRE

    public static final HTML.Tag PRE
    Tag <pre>

field:SAMP [NONE]

  • SAMP

    public static final HTML.Tag SAMP
    Tag <samp>

field:SCRIPT [NONE]

  • SCRIPT

    public static final HTML.Tag SCRIPT
    Tag <script>

field:SELECT [NONE]

  • SELECT

    public static final HTML.Tag SELECT
    Tag <select>

field:SMALL [NONE]

  • SMALL

    public static final HTML.Tag SMALL
    Tag <small>

field:SPAN [NONE]

  • SPAN

    public static final HTML.Tag SPAN
    Tag <span>

field:STRIKE [NONE]

  • STRIKE

    public static final HTML.Tag STRIKE
    Tag <strike>

field:S [NONE]

  • S

    public static final HTML.Tag S
    Tag <s>

field:STRONG [NONE]

  • STRONG

    public static final HTML.Tag STRONG
    Tag <strong>

field:STYLE [NONE]

  • STYLE

    public static final HTML.Tag STYLE
    Tag <style>

field:SUB [NONE]

  • SUB

    public static final HTML.Tag SUB
    Tag <sub>

field:SUP [NONE]

  • SUP

    public static final HTML.Tag SUP
    Tag <sup>

field:TABLE [NONE]

  • TABLE

    public static final HTML.Tag TABLE
    Tag <table>

field:TD [NONE]

  • TD

    public static final HTML.Tag TD
    Tag <td>

field:TEXTAREA [NONE]

  • TEXTAREA

    public static final HTML.Tag TEXTAREA
    Tag <textarea>

field:TH [NONE]

  • TH

    public static final HTML.Tag TH
    Tag <th>

field:TITLE [NONE]

  • TITLE

    public static final HTML.Tag TITLE
    Tag <title>

field:TR [NONE]

  • TR

    public static final HTML.Tag TR
    Tag <tr>

field:TT [NONE]

  • TT

    public static final HTML.Tag TT
    Tag <tt>

field:U [NONE]

  • U

    public static final HTML.Tag U
    Tag <u>

field:UL [NONE]

  • UL

    public static final HTML.Tag UL
    Tag <ul>

field:VAR [NONE]

  • VAR

    public static final HTML.Tag VAR
    Tag <var>

field:IMPLIED [NONE]

  • IMPLIED

    public static final HTML.Tag IMPLIED
    All text content must be in a paragraph element. If a paragraph didn't exist when content was encountered, a paragraph is manufactured.

    This is a tag synthesized by the HTML reader. Since elements are identified by their tag type, we create a some fake tag types to mark the elements that were manufactured.

field:CONTENT [NONE]

  • CONTENT

    public static final HTML.Tag CONTENT
    All text content is labeled with this tag.

    This is a tag synthesized by the HTML reader. Since elements are identified by their tag type, we create a some fake tag types to mark the elements that were manufactured.

field:COMMENT [NONE]

  • COMMENT

    public static final HTML.Tag COMMENT
    All comments are labeled with this tag.

    This is a tag synthesized by the HTML reader. Since elements are identified by their tag type, we create a some fake tag types to mark the elements that were manufactured.

constructor:<init>() [NONE]

  • Tag

    public Tag()
    Since:
    1.3

constructor:<init>(java.lang.String) [NONE]

  • Tag

    protected Tag​(String id)
    Creates a new Tag with the specified id, and with causesBreak and isBlock set to false.
    Parameters:
    id - the id of the new tag

constructor:<init>(java.lang.String,boolean,boolean) [NONE]

  • Tag

    protected Tag​(String id,
                  boolean causesBreak,
                  boolean isBlock)
    Creates a new Tag with the specified id; causesBreak and isBlock are defined by the user.
    Parameters:
    id - the id of the new tag
    causesBreak - true if this tag causes a break to the flow of data
    isBlock - true if the tag is used to add structure to a document

method:isBlock() [NONE]

  • isBlock

    public boolean isBlock()
    Returns true if this tag is a block tag, which is a tag used to add structure to a document.
    Returns:
    true if this tag is a block tag, otherwise returns false

method:breaksFlow() [NONE]

  • breaksFlow

    public boolean breaksFlow()
    Returns true if this tag causes a line break to the flow of data, otherwise returns false.
    Returns:
    true if this tag causes a line break to the flow of data, otherwise returns false

method:isPreformatted() [NONE]

  • isPreformatted

    public boolean isPreformatted()
    Returns true if this tag is pre-formatted, which is true if the tag is either PRE or TEXTAREA.
    Returns:
    true if this tag is pre-formatted, otherwise returns false

method:toString() [NONE]

  • toString

    public String toString()
    Returns the string representation of the tag.
    Overrides:
    toString in class Object
    Returns:
    the String representation of the tag

© 2019 Oracle Corporation and/or its affiliates