Enum Class Tag

java.lang.Object
java.lang.Enum<Tag>
org.ctan.markup.Tag
All Implemented Interfaces:
Serializable, Comparable<Tag>, Constable

public enum Tag extends Enum<Tag>
This enumeration represents HTML tags.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    This enumeration defines the modes to sanitise tags.

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The _DOCTYPE tag.
    The _SKIP pseudo tag for everything to be skipped.
    The field A represents the a tag.
    The constant ABBR represents the abbr tag.
    The constant ACRONYM represents the acronym tag.
    The constant ADDRESS represents the address tag.
    The constant APPLET represents the applet tag.
    The constant AREA represents the area tag.
    The constant B represents the b tag.
    The constant B_I represents the b-i tag combination.
    The constant BASE represents the base tag.
    The constant BASEFONT represents the basefont tag.
    The constant BDO represents the bdo tag.
    The constant BIG represents the big tag.
    The constant BLOCKQUOTE represents the blockquote tag.
    The constant BODY represents the body tag.
    The constant BR represents the br tag.
    The constant BUTTON represents the button tag.
    The constant CAPTION represents the caption tag.
    The constant CENTER represents the center tag.
    The constant CITE represents the cite tag.
    The constant CODE represents the code tag.
    The constant COL represents the col tag.
    The constant COLGROUP represents the colgroup tag.
    The constant DD represents the dd tag.
    The constant DEL represents the del tag.
    The constant DFN represents the dfn tag.
    The constant DIR represents the dir tag.
    The constant DIV represents the div tag.
    The constant DL represents the dl tag.
    The constant DT represents the dt tag.
    The constant EM represents the em tag.
    The constant FIELDSET represents the fieldset tag.
    The constant FONT represents the font tag.
    The constant FORM represents the form tag.
    The constant FRAME represents the frame tag.
    The constant FRAMESET represents the frameset tag.
    The H1 tag.
    The H2 tag.
    The H3 tag.
    The H4 tag.
    The H5 tag.
    The H6 tag.
    The constant HEAD represents the head tag.
    The constant HR represents the hr tag.
    The constant HTML represents the html tag.
    The constant I represents the i tag.
    The constant IFRAME represents the iframe tag.
    The constant IMG represents the img tag.
    The constant INPUT represents the input tag.
    The constant INS represents the ins tag.
    The constant ISINDEX represents the isindex tag.
    The constant KBD represents the kbd tag.
    The constant LABEL represents the label tag.
    The constant LEGEND represents the legend tag.
    The constant LI represents the li tag.
    The constant LINK represents the link tag.
    The constant MAP represents the map tag.
    The constant MENU represents the menu tag.
    The constant META represents the meta tag.
    The constant NOFRAMES represents the noframes tag.
    The constant NOSCRIPT represents the noscript tag.
    The constant OBJECT represents the object tag.
    The constant OL represents the ol tag.
    The constant OPTGROUP represents the optgroup tag.
    The constant OPTION represents the option tag.
    The constant P represents the p tag.
    The constant PARAM represents the param tag.
    The constant PRE represents the pre tag.
    The constant Q represents the q tag.
    The constant S represents the s tag.
    The constant SAMP represents the samp tag.
    The constant SCRIPT represents the script tag.
    The constant SELECT represents the select tag.
    The constant SMALL represents the small tag.
    The constant SPAN represents the span tag.
    The constant STRIKE represents the strike tag.
    The constant STRONG represents the strong tag.
    The constant STYLE represents the style tag.
    The constant SUB represents the sub tag.
    The constant SUP represents the sup tag.
    The constant TABLE represents the table tag.
    The constant TBODY represents the tbody tag.
    The constant TD represents the td tag.
    The constant TEXTAREA represents the textarea tag.
    The constant TFOOT represents the tfoot tag.
    The constant TH represents the th tag.
    The constant THEAD represents the thead tag.
    The constant TITLE represents the title tag.
    The constant TR represents the tr tag.
    The constant TT represents the tt tag.
    The constant U represents the u tag.
    The constant UL represents the ul tag.
    The constant VAR represents the var tag.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final List<Tag>
    The constant SECTION contains a list of section tags in ascending order.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    end(Writer writer)
    This method writes the start tag to the writer.
    boolean
    The method isSection is the getter for the section indicator.
    void
    start(Writer writer)
    This method writes the start tag to the writer.
    void
    start(Writer writer, String key, String value)
    This method writes the start tag to the writer.
    void
    start(Writer writer, Map<String,String> attr)
    This method writes the start tag to the writer.
    boolean
    startSave(Writer writer, String base, Map<String,String> attributes)
    This method writes the start tag to the writer.
    static Tag
    Returns the enum constant of this class with the specified name.
    static Tag[]
    Returns an array containing the constants of this enum class, in the order they are declared.
    void
    write(Writer writer, Map<String,String> attributes)
    This method writes the tag to the writer.
    void
    writeSave(Writer writer, Map<String,String> attributes)
    This method writes the tag to the writer.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • _SKIP

      public static final Tag _SKIP
      The _SKIP pseudo tag for everything to be skipped.
    • _DOCTYPE

      public static final Tag _DOCTYPE
      The _DOCTYPE tag.
    • A

      public static final Tag A
      The field A represents the a tag.
    • ABBR

      public static final Tag ABBR
      The constant ABBR represents the abbr tag.
    • ACRONYM

      public static final Tag ACRONYM
      The constant ACRONYM represents the acronym tag.
    • ADDRESS

      public static final Tag ADDRESS
      The constant ADDRESS represents the address tag.
    • APPLET

      public static final Tag APPLET
      The constant APPLET represents the applet tag.
    • AREA

      public static final Tag AREA
      The constant AREA represents the area tag.
    • B

      public static final Tag B
      The constant B represents the b tag.
    • B_I

      public static final Tag B_I
      The constant B_I represents the b-i tag combination.
    • BASE

      public static final Tag BASE
      The constant BASE represents the base tag.
    • BASEFONT

      public static final Tag BASEFONT
      The constant BASEFONT represents the basefont tag.
    • BDO

      public static final Tag BDO
      The constant BDO represents the bdo tag.
    • BIG

      public static final Tag BIG
      The constant BIG represents the big tag.
    • BLOCKQUOTE

      public static final Tag BLOCKQUOTE
      The constant BLOCKQUOTE represents the blockquote tag.
    • BODY

      public static final Tag BODY
      The constant BODY represents the body tag.
    • BR

      public static final Tag BR
      The constant BR represents the br tag.
    • BUTTON

      public static final Tag BUTTON
      The constant BUTTON represents the button tag.
    • CAPTION

      public static final Tag CAPTION
      The constant CAPTION represents the caption tag.
    • CENTER

      public static final Tag CENTER
      The constant CENTER represents the center tag.
    • CITE

      public static final Tag CITE
      The constant CITE represents the cite tag.
    • CODE

      public static final Tag CODE
      The constant CODE represents the code tag.
    • COL

      public static final Tag COL
      The constant COL represents the col tag.
    • COLGROUP

      public static final Tag COLGROUP
      The constant COLGROUP represents the colgroup tag.
    • DD

      public static final Tag DD
      The constant DD represents the dd tag.
    • DEL

      public static final Tag DEL
      The constant DEL represents the del tag.
    • DFN

      public static final Tag DFN
      The constant DFN represents the dfn tag.
    • DIR

      public static final Tag DIR
      The constant DIR represents the dir tag.
    • DIV

      public static final Tag DIV
      The constant DIV represents the div tag.
    • DL

      public static final Tag DL
      The constant DL represents the dl tag.
    • DT

      public static final Tag DT
      The constant DT represents the dt tag.
    • EM

      public static final Tag EM
      The constant EM represents the em tag.
    • FIELDSET

      public static final Tag FIELDSET
      The constant FIELDSET represents the fieldset tag.
    • FONT

      public static final Tag FONT
      The constant FONT represents the font tag.
    • FORM

      public static final Tag FORM
      The constant FORM represents the form tag.
    • FRAME

      public static final Tag FRAME
      The constant FRAME represents the frame tag.
    • FRAMESET

      public static final Tag FRAMESET
      The constant FRAMESET represents the frameset tag.
    • H1

      public static final Tag H1
      The H1 tag.
    • H2

      public static final Tag H2
      The H2 tag.
    • H3

      public static final Tag H3
      The H3 tag.
    • H4

      public static final Tag H4
      The H4 tag.
    • H5

      public static final Tag H5
      The H5 tag.
    • H6

      public static final Tag H6
      The H6 tag.
    • HR

      public static final Tag HR
      The constant HR represents the hr tag.
    • HTML

      public static final Tag HTML
      The constant HTML represents the html tag.
    • I

      public static final Tag I
      The constant I represents the i tag.
    • IFRAME

      public static final Tag IFRAME
      The constant IFRAME represents the iframe tag.
    • IMG

      public static final Tag IMG
      The constant IMG represents the img tag.
    • INPUT

      public static final Tag INPUT
      The constant INPUT represents the input tag.
    • INS

      public static final Tag INS
      The constant INS represents the ins tag.
    • ISINDEX

      public static final Tag ISINDEX
      The constant ISINDEX represents the isindex tag.
    • KBD

      public static final Tag KBD
      The constant KBD represents the kbd tag.
    • LABEL

      public static final Tag LABEL
      The constant LABEL represents the label tag.
    • LEGEND

      public static final Tag LEGEND
      The constant LEGEND represents the legend tag.
    • LI

      public static final Tag LI
      The constant LI represents the li tag.
    • MAP

      public static final Tag MAP
      The constant MAP represents the map tag.
    • META

      public static final Tag META
      The constant META represents the meta tag.
    • NOFRAMES

      public static final Tag NOFRAMES
      The constant NOFRAMES represents the noframes tag.
    • NOSCRIPT

      public static final Tag NOSCRIPT
      The constant NOSCRIPT represents the noscript tag.
    • OBJECT

      public static final Tag OBJECT
      The constant OBJECT represents the object tag.
    • OL

      public static final Tag OL
      The constant OL represents the ol tag.
    • OPTGROUP

      public static final Tag OPTGROUP
      The constant OPTGROUP represents the optgroup tag.
    • OPTION

      public static final Tag OPTION
      The constant OPTION represents the option tag.
    • P

      public static final Tag P
      The constant P represents the p tag.
    • PARAM

      public static final Tag PARAM
      The constant PARAM represents the param tag.
    • PRE

      public static final Tag PRE
      The constant PRE represents the pre tag.
    • Q

      public static final Tag Q
      The constant Q represents the q tag.
    • S

      public static final Tag S
      The constant S represents the s tag.
    • SAMP

      public static final Tag SAMP
      The constant SAMP represents the samp tag.
    • SCRIPT

      public static final Tag SCRIPT
      The constant SCRIPT represents the script tag.
    • SELECT

      public static final Tag SELECT
      The constant SELECT represents the select tag.
    • SMALL

      public static final Tag SMALL
      The constant SMALL represents the small tag.
    • SPAN

      public static final Tag SPAN
      The constant SPAN represents the span tag.
    • STRIKE

      public static final Tag STRIKE
      The constant STRIKE represents the strike tag.
    • STRONG

      public static final Tag STRONG
      The constant STRONG represents the strong tag.
    • STYLE

      public static final Tag STYLE
      The constant STYLE represents the style tag.
    • SUB

      public static final Tag SUB
      The constant SUB represents the sub tag.
    • SUP

      public static final Tag SUP
      The constant SUP represents the sup tag.
    • TABLE

      public static final Tag TABLE
      The constant TABLE represents the table tag.
    • TBODY

      public static final Tag TBODY
      The constant TBODY represents the tbody tag.
    • TD

      public static final Tag TD
      The constant TD represents the td tag.
    • TEXTAREA

      public static final Tag TEXTAREA
      The constant TEXTAREA represents the textarea tag.
    • TFOOT

      public static final Tag TFOOT
      The constant TFOOT represents the tfoot tag.
    • TH

      public static final Tag TH
      The constant TH represents the th tag.
    • THEAD

      public static final Tag THEAD
      The constant THEAD represents the thead tag.
    • TITLE

      public static final Tag TITLE
      The constant TITLE represents the title tag.
    • TR

      public static final Tag TR
      The constant TR represents the tr tag.
    • TT

      public static final Tag TT
      The constant TT represents the tt tag.
    • U

      public static final Tag U
      The constant U represents the u tag.
    • UL

      public static final Tag UL
      The constant UL represents the ul tag.
    • VAR

      public static final Tag VAR
      The constant VAR represents the var tag.
  • Field Details

    • SECTION

      public static final List<Tag> SECTION
      The constant SECTION contains a list of section tags in ascending order.
  • Method Details

    • values

      public static Tag[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Tag valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • end

      public void end(Writer writer) throws IOException
      This method writes the start tag to the writer.
      Parameters:
      writer - the writer
      Throws:
      IOException - in case of an I/O error
    • isSection

      public boolean isSection()
      The method isSection is the getter for the section indicator.
      Returns:
      true if the tag is a H* tag.
    • start

      public void start(Writer writer) throws IOException
      This method writes the start tag to the writer.
      Parameters:
      writer - the writer
      Throws:
      IOException - in case of an I/O error
    • start

      public void start(Writer writer, Map<String,String> attr) throws IOException
      This method writes the start tag to the writer.
      Parameters:
      writer - the writer
      attr - the attribute values
      Throws:
      IOException - in case of an I/O error
    • start

      public void start(Writer writer, String key, String value) throws IOException
      This method writes the start tag to the writer.
      Parameters:
      writer - the writer
      key - the key of a single property
      value - the value for the key
      Throws:
      IOException - in case of an I/O error
    • startSave

      public boolean startSave(Writer writer, String base, Map<String,String> attributes) throws IOException
      This method writes the start tag to the writer.
      Parameters:
      writer - the writer
      base - the base URL
      attributes - the attributes
      Returns:
      true iff the tag is save
      Throws:
      IOException - in case of an I/O error
    • write

      public void write(Writer writer, Map<String,String> attributes) throws IOException
      This method writes the tag to the writer.
      Parameters:
      writer - the writer
      attributes - the attributes
      Throws:
      IOException - in case of an I/O error
    • writeSave

      public void writeSave(Writer writer, Map<String,String> attributes) throws IOException
      This method writes the tag to the writer.
      Parameters:
      writer - the writer
      attributes - the attributes
      Throws:
      IOException - in case of an I/O error