Enum Class TagName

java.lang.Object
java.lang.Enum<TagName>
com.renomad.minum.htmlparsing.TagName
All Implemented Interfaces:
Serializable, Comparable<TagName>, Constable

public enum TagName extends Enum<TagName>
Possible tag names per the W3C HTML spec. Pulled from The W3C spec
  • Enum Constant Details

    • A

      public static final TagName A
    • ABBR

      public static final TagName ABBR
    • ADDRESS

      public static final TagName ADDRESS
    • AREA

      public static final TagName AREA
    • ARTICLE

      public static final TagName ARTICLE
    • ASIDE

      public static final TagName ASIDE
    • AUDIO

      public static final TagName AUDIO
    • B

      public static final TagName B
    • BASE

      public static final TagName BASE
    • BDI

      public static final TagName BDI
    • BDO

      public static final TagName BDO
    • BLOCKQUOTE

      public static final TagName BLOCKQUOTE
    • BODY

      public static final TagName BODY
    • BR

      public static final TagName BR
    • BUTTON

      public static final TagName BUTTON
    • CANVAS

      public static final TagName CANVAS
    • CAPTION

      public static final TagName CAPTION
    • CITE

      public static final TagName CITE
    • CODE

      public static final TagName CODE
    • COL

      public static final TagName COL
    • COLGROUP

      public static final TagName COLGROUP
    • COMMAND

      public static final TagName COMMAND
    • DATALIST

      public static final TagName DATALIST
    • DD

      public static final TagName DD
    • DEL

      public static final TagName DEL
    • DETAILS

      public static final TagName DETAILS
    • DFN

      public static final TagName DFN
    • DIV

      public static final TagName DIV
    • DL

      public static final TagName DL
    • DT

      public static final TagName DT
    • EM

      public static final TagName EM
    • EMBED

      public static final TagName EMBED
    • FIELDSET

      public static final TagName FIELDSET
    • FIGCAPTION

      public static final TagName FIGCAPTION
    • FIGURE

      public static final TagName FIGURE
    • FORM

      public static final TagName FORM
    • H1

      public static final TagName H1
    • H2

      public static final TagName H2
    • H3

      public static final TagName H3
    • H4

      public static final TagName H4
    • H5

      public static final TagName H5
    • H6

      public static final TagName H6
    • HGROUP

      public static final TagName HGROUP
    • HR

      public static final TagName HR
    • HTML

      public static final TagName HTML
    • I

      public static final TagName I
    • IFRAME

      public static final TagName IFRAME
    • IMG

      public static final TagName IMG
    • INPUT

      public static final TagName INPUT
    • INS

      public static final TagName INS
    • KBD

      public static final TagName KBD
    • KEYGEN

      public static final TagName KEYGEN
    • LABEL

      public static final TagName LABEL
    • LEGEND

      public static final TagName LEGEND
    • LI

      public static final TagName LI
    • MAP

      public static final TagName MAP
    • MARK

      public static final TagName MARK
    • META

      public static final TagName META
    • METER

      public static final TagName METER
    • NOSCRIPT

      public static final TagName NOSCRIPT
    • OBJECT

      public static final TagName OBJECT
    • OL

      public static final TagName OL
    • OPTGROUP

      public static final TagName OPTGROUP
    • OPTION

      public static final TagName OPTION
    • OUTPUT

      public static final TagName OUTPUT
    • P

      public static final TagName P
    • PARAM

      public static final TagName PARAM
    • PRE

      public static final TagName PRE
    • PROGRESS

      public static final TagName PROGRESS
    • Q

      public static final TagName Q
    • RP

      public static final TagName RP
    • RT

      public static final TagName RT
    • RUBY

      public static final TagName RUBY
    • S

      public static final TagName S
    • SAMP

      public static final TagName SAMP
    • SCRIPT

      public static final TagName SCRIPT
    • SECTION

      public static final TagName SECTION
    • SELECT

      public static final TagName SELECT
    • SMALL

      public static final TagName SMALL
    • SOURCE

      public static final TagName SOURCE
    • SPAN

      public static final TagName SPAN
    • STRONG

      public static final TagName STRONG
    • STYLE

      public static final TagName STYLE
    • SUB

      public static final TagName SUB
    • SUMMARY

      public static final TagName SUMMARY
    • SUP

      public static final TagName SUP
    • TABLE

      public static final TagName TABLE
    • TBODY

      public static final TagName TBODY
    • TD

      public static final TagName TD
    • TEMPLATE

      public static final TagName TEMPLATE
    • TEXTAREA

      public static final TagName TEXTAREA
    • TFOOT

      public static final TagName TFOOT
    • TH

      public static final TagName TH
    • THEAD

      public static final TagName THEAD
    • TIME

      public static final TagName TIME
    • TITLE

      public static final TagName TITLE
    • TR

      public static final TagName TR
    • TRACK

      public static final TagName TRACK
    • U

      public static final TagName U
    • UL

      public static final TagName UL
    • VAR

      public static final TagName VAR
    • VIDEO

      public static final TagName VIDEO
    • WBR

      public static final TagName WBR
    • SVG

      public static final TagName SVG
    • MATH

      public static final TagName MATH
    • DOCTYPE

      public static final TagName DOCTYPE
      In HTML, the doctype is the required preamble found at the top of all documents. Its sole purpose is to prevent a browser from switching into so-called "quirks mode" when rendering a document; that is, it ensures that the browser makes a best-effort attempt at following the relevant specifications, rather than using a different rendering mode that is incompatible with some specifications.
    • UNRECOGNIZED

      public static final TagName UNRECOGNIZED
      A special tag, meant for cases where we are scanning through unfamiliar namespaces, like svg or math.
    • NULL

      public static final TagName NULL
      Used to indicate no tag
  • Field Details

    • isVoidElement

      public final boolean isVoidElement
      Void elements are disallowed to have closing tags
  • Method Details

    • values

      public static TagName[] 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 TagName 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
    • findMatchingTagname

      public static TagName findMatchingTagname(String tagNameString)