Package it.unimi.dsi.parser
Class Element
java.lang.Object
it.unimi.dsi.parser.Element
public final class Element extends Object
An HTML element type.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Element(CharSequence name)Creates a new element with the specified name.Element(CharSequence name, boolean breaksFlow, boolean isSimple)Creates a new element with the specified name and flags.Element(CharSequence name, boolean breaksFlow, boolean isSimple, boolean isImplicit)Creates a new element. -
Method Summary
-
Field Details
-
name
The name of the type of this element. -
nameLength
public final int nameLengthThe length ofname. -
breaksFlow
public final boolean breaksFlowWhether this element breaks the flow. -
isSimple
public final boolean isSimpleWhether this element is simple. -
isImplicit
public final boolean isImplicitWhether this element has implicit closure. -
A
-
ABBR
-
ACRONYM
-
ADDRESS
-
APPLET
-
AREA
-
B
-
BASE
-
BASEFONT
-
BDO
-
BIG
-
BLOCKQUOTE
-
BODY
-
BR
-
BUTTON
-
CAPTION
-
CENTER
-
CITE
-
CODE
-
COL
-
COLGROUP
-
DD
-
DEL
-
DFN
-
DIR
-
DIV
-
DL
-
DT
-
EM
-
EMBED
-
FIELDSET
-
FONT
-
FORM
-
FRAME
-
FRAMESET
-
H1
-
H2
-
H3
-
H4
-
H5
-
H6
-
HEAD
-
HR
-
HTML
-
I
-
IFRAME
-
IMG
-
INPUT
-
INS
-
ISINDEX
-
KBD
-
LABEL
-
LEGEND
-
LI
-
LINK
-
MAP
-
MENU
-
META
-
NOFRAMES
-
NOSCRIPT
-
OBJECT
-
OL
-
OPTION
-
OPTGROUP
-
P
-
PARAM
-
PRE
-
Q
-
SAMP
-
SCRIPT
-
SELECT
-
SMALL
-
SPAN
-
STRIKE
-
S
-
STRONG
-
STYLE
-
SUB
-
SUP
-
TABLE
-
TBODY
-
TD
-
TEXTAREA
-
TFOOT
-
TH
-
THEAD
-
TITLE
-
TR
-
TT
-
U
-
UL
-
VAR
-
UNKNOWN
-
-
Constructor Details
-
Element
Creates a new element with the specified name. The element is assumed to break the flow, and neither being simple nor having implicit closure.- Parameters:
name- the name of the type of the new element.
-
Element
Creates a new element with the specified name and flags. The element is assumed not to have implicit closure.- Parameters:
name- the name of the type of the new element.breaksFlow- true if this elements breaks the flow.isSimple- true if this element is simple.
-
Element
Creates a new element.- Parameters:
name- the name of the type of the new element.breaksFlow- true if this elements breaks the flow.isSimple- true if this element is simple.isImplicit- true if this element has implicit closure.
-
-
Method Details