public enum HtmlTag extends Enum<HtmlTag>
Modifier and Type | Class and Description |
---|---|
static class |
HtmlTag.Attr |
static class |
HtmlTag.AttrKind |
static class |
HtmlTag.BlockType
Enum representing the type of HTML element.
|
static class |
HtmlTag.EndKind
Enum representing HTML end tag requirement.
|
static class |
HtmlTag.Flag |
Enum Constant and Description |
---|
A |
B |
BIG |
BLOCKQUOTE |
BODY |
BR |
CAPTION |
CENTER |
CITE |
CODE |
DD |
DFN |
DIV |
DL |
DT |
EM |
FONT |
FRAME |
FRAMESET |
H1 |
H2 |
H3 |
H4 |
H5 |
H6 |
HEAD |
HR |
HTML |
I |
IMG |
LI |
LINK |
MENU |
META |
NOFRAMES |
NOSCRIPT |
OL |
P |
PRE |
SCRIPT |
SMALL |
SPAN |
STRONG |
SUB |
SUP |
TABLE |
TBODY |
TD |
TFOOT |
TH |
THEAD |
TITLE |
TR |
TT |
U |
UL |
VAR |
Modifier and Type | Field and Description |
---|---|
HtmlTag.BlockType |
blockType |
HtmlTag.EndKind |
endKind |
Set<HtmlTag.Flag> |
flags |
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(HtmlTag t) |
boolean |
acceptsText() |
HtmlTag.Attr |
getAttr(Name attrName) |
HtmlTag.AttrKind |
getAttrKind(Name attrName) |
String |
getText() |
static HtmlTag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HtmlTag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HtmlTag A
public static final HtmlTag B
public static final HtmlTag BIG
public static final HtmlTag BLOCKQUOTE
public static final HtmlTag BODY
public static final HtmlTag BR
public static final HtmlTag CAPTION
public static final HtmlTag CENTER
public static final HtmlTag CITE
public static final HtmlTag CODE
public static final HtmlTag DD
public static final HtmlTag DFN
public static final HtmlTag DIV
public static final HtmlTag DL
public static final HtmlTag DT
public static final HtmlTag EM
public static final HtmlTag FONT
public static final HtmlTag FRAME
public static final HtmlTag FRAMESET
public static final HtmlTag H1
public static final HtmlTag H2
public static final HtmlTag H3
public static final HtmlTag H4
public static final HtmlTag H5
public static final HtmlTag H6
public static final HtmlTag HEAD
public static final HtmlTag HR
public static final HtmlTag HTML
public static final HtmlTag I
public static final HtmlTag IMG
public static final HtmlTag LI
public static final HtmlTag LINK
public static final HtmlTag MENU
public static final HtmlTag META
public static final HtmlTag NOFRAMES
public static final HtmlTag NOSCRIPT
public static final HtmlTag OL
public static final HtmlTag P
public static final HtmlTag PRE
public static final HtmlTag SCRIPT
public static final HtmlTag SMALL
public static final HtmlTag SPAN
public static final HtmlTag STRONG
public static final HtmlTag SUB
public static final HtmlTag SUP
public static final HtmlTag TABLE
public static final HtmlTag TBODY
public static final HtmlTag TD
public static final HtmlTag TFOOT
public static final HtmlTag TH
public static final HtmlTag THEAD
public static final HtmlTag TITLE
public static final HtmlTag TR
public static final HtmlTag TT
public static final HtmlTag U
public static final HtmlTag UL
public static final HtmlTag VAR
public final HtmlTag.BlockType blockType
public final HtmlTag.EndKind endKind
public final Set<HtmlTag.Flag> flags
public static HtmlTag[] values()
for (HtmlTag c : HtmlTag.values()) System.out.println(c);
public static HtmlTag valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean accepts(HtmlTag t)
public boolean acceptsText()
public String getText()
public HtmlTag.Attr getAttr(Name attrName)
public HtmlTag.AttrKind getAttrKind(Name attrName)
Copyright © 2016. All rights reserved.