it.unimi.dsi.parser
Class Element

java.lang.Object
  extended by it.unimi.dsi.parser.Element

public final class Element
extends Object

An HTML element type.


Field Summary
static Element A
           
static Element ABBR
           
static Element ACRONYM
           
static Element ADDRESS
           
static Element APPLET
           
static Element AREA
           
static Element B
           
static Element BASE
           
static Element BASEFONT
           
static Element BDO
           
static Element BIG
           
static Element BLOCKQUOTE
           
static Element BODY
           
static Element BR
           
 boolean breaksFlow
          Whether this element breaks the flow.
static Element BUTTON
           
static Element CAPTION
           
static Element CENTER
           
static Element CITE
           
static Element CODE
           
static Element COL
           
static Element COLGROUP
           
static Element DD
           
static Element DEL
           
static Element DFN
           
static Element DIR
           
static Element DIV
           
static Element DL
           
static Element DT
           
static Element EM
           
static Element EMBED
           
static Element FIELDSET
           
static Element FONT
           
static Element FORM
           
static Element FRAME
           
static Element FRAMESET
           
static Element H1
           
static Element H2
           
static Element H3
           
static Element H4
           
static Element H5
           
static Element H6
           
static Element HEAD
           
static Element HR
           
static Element HTML
           
static Element I
           
static Element IFRAME
           
static Element IMG
           
static Element INPUT
           
static Element INS
           
 boolean isImplicit
          Whether this element has implicit closure.
static Element ISINDEX
           
 boolean isSimple
          Whether this element is simple.
static Element KBD
           
static Element LABEL
           
static Element LEGEND
           
static Element LI
           
static Element LINK
           
static Element MAP
           
static Element MENU
           
static Element META
           
 CharSequence name
          The name of the type of this element.
 int nameLength
          The length of name.
static Element NOFRAMES
           
static Element NOSCRIPT
           
static Element OBJECT
           
static Element OL
           
static Element OPTGROUP
           
static Element OPTION
           
static Element P
           
static Element PARAM
           
static Element PRE
           
static Element Q
           
static Element S
           
static Element SAMP
           
static Element SCRIPT
           
static Element SELECT
           
static Element SMALL
           
static Element SPAN
           
static Element STRIKE
           
static Element STRONG
           
static Element STYLE
           
static Element SUB
           
static Element SUP
           
static Element TABLE
           
static Element TBODY
           
static Element TD
           
static Element TEXTAREA
           
static Element TFOOT
           
static Element TH
           
static Element THEAD
           
static Element TITLE
           
static Element TR
           
static Element TT
           
static Element U
           
static Element UL
           
static Element UNKNOWN
           
static Element VAR
           
 
Constructor Summary
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
 String toString()
          Returns the name of this element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public final CharSequence name
The name of the type of this element.


nameLength

public final int nameLength
The length of name.


breaksFlow

public final boolean breaksFlow
Whether this element breaks the flow.


isSimple

public final boolean isSimple
Whether this element is simple.


isImplicit

public final boolean isImplicit
Whether this element has implicit closure.


A

public static final Element A

ABBR

public static final Element ABBR

ACRONYM

public static final Element ACRONYM

ADDRESS

public static final Element ADDRESS

APPLET

public static final Element APPLET

AREA

public static final Element AREA

B

public static final Element B

BASE

public static final Element BASE

BASEFONT

public static final Element BASEFONT

BDO

public static final Element BDO

BIG

public static final Element BIG

BLOCKQUOTE

public static final Element BLOCKQUOTE

BODY

public static final Element BODY

BR

public static final Element BR

BUTTON

public static final Element BUTTON

CAPTION

public static final Element CAPTION

CENTER

public static final Element CENTER

CITE

public static final Element CITE

CODE

public static final Element CODE

COL

public static final Element COL

COLGROUP

public static final Element COLGROUP

DD

public static final Element DD

DEL

public static final Element DEL

DFN

public static final Element DFN

DIR

public static final Element DIR

DIV

public static final Element DIV

DL

public static final Element DL

DT

public static final Element DT

EM

public static final Element EM

EMBED

public static final Element EMBED

FIELDSET

public static final Element FIELDSET

FONT

public static final Element FONT

FORM

public static final Element FORM

FRAME

public static final Element FRAME

FRAMESET

public static final Element FRAMESET

H1

public static final Element H1

H2

public static final Element H2

H3

public static final Element H3

H4

public static final Element H4

H5

public static final Element H5

H6

public static final Element H6

HEAD

public static final Element HEAD

HR

public static final Element HR

HTML

public static final Element HTML

I

public static final Element I

IFRAME

public static final Element IFRAME

IMG

public static final Element IMG

INPUT

public static final Element INPUT

INS

public static final Element INS

ISINDEX

public static final Element ISINDEX

KBD

public static final Element KBD

LABEL

public static final Element LABEL

LEGEND

public static final Element LEGEND

LI

public static final Element LI

LINK

public static final Element LINK

MAP

public static final Element MAP

MENU

public static final Element MENU

META

public static final Element META

NOFRAMES

public static final Element NOFRAMES

NOSCRIPT

public static final Element NOSCRIPT

OBJECT

public static final Element OBJECT

OL

public static final Element OL

OPTION

public static final Element OPTION

OPTGROUP

public static final Element OPTGROUP

P

public static final Element P

PARAM

public static final Element PARAM

PRE

public static final Element PRE

Q

public static final Element Q

SAMP

public static final Element SAMP

SCRIPT

public static final Element SCRIPT

SELECT

public static final Element SELECT

SMALL

public static final Element SMALL

SPAN

public static final Element SPAN

STRIKE

public static final Element STRIKE

S

public static final Element S

STRONG

public static final Element STRONG

STYLE

public static final Element STYLE

SUB

public static final Element SUB

SUP

public static final Element SUP

TABLE

public static final Element TABLE

TBODY

public static final Element TBODY

TD

public static final Element TD

TEXTAREA

public static final Element TEXTAREA

TFOOT

public static final Element TFOOT

TH

public static final Element TH

THEAD

public static final Element THEAD

TITLE

public static final Element TITLE

TR

public static final Element TR

TT

public static final Element TT

U

public static final Element U

UL

public static final Element UL

VAR

public static final Element VAR

UNKNOWN

public static final Element UNKNOWN
Constructor Detail

Element

public Element(CharSequence name)
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

public Element(CharSequence name,
               boolean breaksFlow,
               boolean isSimple)
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

public Element(CharSequence name,
               boolean breaksFlow,
               boolean isSimple,
               boolean isImplicit)
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 Detail

toString

public String toString()
Returns the name of this element.

Overrides:
toString in class Object
Returns:
the name of this element.