org.cyberneko.html

Class HTMLElements


public class HTMLElements
extends Object

Collection of HTML element information.
Version:
$Id: HTMLElements.java,v 1.12 2005/02/14 07:16:59 andyc Exp $
Author:
Andy Clark

Nested Class Summary

static class
HTMLElements.Element
Element information.
static class
HTMLElements.ElementList
Unsynchronized list of elements.

Field Summary

static short
A
static short
ABBR
static short
ACRONYM
static short
ADDRESS
static short
APPLET
static short
AREA
static short
B
static short
BASE
static short
BASEFONT
static short
BDO
static short
BGSOUND
static short
BIG
static short
BLINK
static short
BLOCKQUOTE
static short
BODY
static short
BR
static short
BUTTON
static short
CAPTION
static short
CENTER
static short
CITE
static short
CODE
static short
COL
static short
COLGROUP
static short
COMMENT
static short
DD
static short
DEL
static short
DFN
static short
DIR
static short
DIV
static short
DL
static short
DT
protected static HTMLElements.ElementList
ELEMENTS
Element information as a contiguous list.
protected static HTMLElements.Element[][]
ELEMENTS_ARRAY
Element information organized by first letter.
static short
EM
static short
EMBED
static short
FIELDSET
static short
FONT
static short
FORM
static short
FRAME
static short
FRAMESET
static short
H1
static short
H2
static short
H3
static short
H4
static short
H5
static short
H6
static short
HEAD
static short
HR
static short
HTML
static short
I
static short
IFRAME
static short
ILAYER
static short
IMG
static short
INPUT
static short
INS
static short
ISINDEX
static short
KBD
static short
KEYGEN
static short
LABEL
static short
LAYER
static short
LEGEND
static short
LI
static short
LINK
static short
LISTING
static short
MAP
static short
MARQUEE
static short
MENU
static short
META
static short
MULTICOL
static short
NEXTID
static short
NOBR
static short
NOEMBED
static short
NOFRAMES
static short
NOLAYER
static short
NOSCRIPT
static HTMLElements.Element
NO_SUCH_ELEMENT
No such element.
static short
OBJECT
static short
OL
static short
OPTGROUP
static short
OPTION
static short
P
static short
PARAM
static short
PLAINTEXT
static short
PRE
static short
Q
static short
RB
static short
RBC
static short
RP
static short
RT
static short
RTC
static short
RUBY
static short
S
static short
SAMP
static short
SCRIPT
static short
SELECT
static short
SMALL
static short
SOUND
static short
SPACER
static short
SPAN
static short
STRIKE
static short
STRONG
static short
STYLE
static short
SUB
static short
SUP
static short
TABLE
static short
TBODY
static short
TD
static short
TEXTAREA
static short
TFOOT
static short
TH
static short
THEAD
static short
TITLE
static short
TR
static short
TT
static short
U
static short
UL
static short
UNKNOWN
static short
VAR
static short
WBR
static short
XML
static short
XMP

Method Summary

static HTMLElements.Element
getElement(String ename)
Returns the element information for the specified element name.
static HTMLElements.Element
getElement(String ename, HTMLElements.Element element)
Returns the element information for the specified element name.
static HTMLElements.Element
getElement(short code)
Returns the element information for the specified element code.

Field Details

A

public static final short A
Field Value:
0

ABBR

public static final short ABBR
Field Value:
1

ACRONYM

public static final short ACRONYM
Field Value:
2

ADDRESS

public static final short ADDRESS
Field Value:
3

APPLET

public static final short APPLET
Field Value:
4

AREA

public static final short AREA
Field Value:
5

B

public static final short B
Field Value:
6

BASE

public static final short BASE
Field Value:
7

BASEFONT

public static final short BASEFONT
Field Value:
8

BDO

public static final short BDO
Field Value:
9

BGSOUND

public static final short BGSOUND
Field Value:
10

BIG

public static final short BIG
Field Value:
11

BLINK

public static final short BLINK
Field Value:
12

BLOCKQUOTE

public static final short BLOCKQUOTE
Field Value:
13

BODY

public static final short BODY
Field Value:
14

BR

public static final short BR
Field Value:
15

BUTTON

public static final short BUTTON
Field Value:
16

CAPTION

public static final short CAPTION
Field Value:
17

CENTER

public static final short CENTER
Field Value:
18

CITE

public static final short CITE
Field Value:
19

CODE

public static final short CODE
Field Value:
20

COL

public static final short COL
Field Value:
21

COLGROUP

public static final short COLGROUP
Field Value:
22

COMMENT

public static final short COMMENT
Field Value:
23

DD

public static final short DD
Field Value:
28

DEL

public static final short DEL
Field Value:
24

DFN

public static final short DFN
Field Value:
25

DIR

public static final short DIR
Field Value:
26

DIV

public static final short DIV
Field Value:
27

DL

public static final short DL
Field Value:
29

DT

public static final short DT
Field Value:
30

ELEMENTS

protected static final HTMLElements.ElementList ELEMENTS
Element information as a contiguous list.

ELEMENTS_ARRAY

protected static final HTMLElements.Element[][] ELEMENTS_ARRAY
Element information organized by first letter.

EM

public static final short EM
Field Value:
31

EMBED

public static final short EMBED
Field Value:
32

FIELDSET

public static final short FIELDSET
Field Value:
33

FONT

public static final short FONT
Field Value:
34

FORM

public static final short FORM
Field Value:
35

FRAME

public static final short FRAME
Field Value:
36

FRAMESET

public static final short FRAMESET
Field Value:
37

H1

public static final short H1
Field Value:
38

H2

public static final short H2
Field Value:
39

H3

public static final short H3
Field Value:
40

H4

public static final short H4
Field Value:
41

H5

public static final short H5
Field Value:
42

H6

public static final short H6
Field Value:
43

HEAD

public static final short HEAD
Field Value:
44

HR

public static final short HR
Field Value:
45

HTML

public static final short HTML
Field Value:
46

I

public static final short I
Field Value:
47

IFRAME

public static final short IFRAME
Field Value:
48

ILAYER

public static final short ILAYER
Field Value:
49

IMG

public static final short IMG
Field Value:
50

INPUT

public static final short INPUT
Field Value:
51

INS

public static final short INS
Field Value:
52

ISINDEX

public static final short ISINDEX
Field Value:
53

KBD

public static final short KBD
Field Value:
54

KEYGEN

public static final short KEYGEN
Field Value:
55

LABEL

public static final short LABEL
Field Value:
56

LAYER

public static final short LAYER
Field Value:
57

LEGEND

public static final short LEGEND
Field Value:
58

LI

public static final short LI
Field Value:
59

LINK

public static final short LINK
Field Value:
60

LISTING

public static final short LISTING
Field Value:
61

MAP

public static final short MAP
Field Value:
62

MARQUEE

public static final short MARQUEE
Field Value:
63

MENU

public static final short MENU
Field Value:
64

META

public static final short META
Field Value:
65

MULTICOL

public static final short MULTICOL
Field Value:
66

NEXTID

public static final short NEXTID
Field Value:
67

NOBR

public static final short NOBR
Field Value:
68

NOEMBED

public static final short NOEMBED
Field Value:
69

NOFRAMES

public static final short NOFRAMES
Field Value:
70

NOLAYER

public static final short NOLAYER
Field Value:
71

NOSCRIPT

public static final short NOSCRIPT
Field Value:
72

NO_SUCH_ELEMENT

public static final HTMLElements.Element NO_SUCH_ELEMENT
No such element.

OBJECT

public static final short OBJECT
Field Value:
73

OL

public static final short OL
Field Value:
74

OPTGROUP

public static final short OPTGROUP
Field Value:
76

OPTION

public static final short OPTION
Field Value:
75

P

public static final short P
Field Value:
77

PARAM

public static final short PARAM
Field Value:
78

PLAINTEXT

public static final short PLAINTEXT
Field Value:
79

PRE

public static final short PRE
Field Value:
80

Q

public static final short Q
Field Value:
81

RB

public static final short RB
Field Value:
82

RBC

public static final short RBC
Field Value:
83

RP

public static final short RP
Field Value:
84

RT

public static final short RT
Field Value:
85

RTC

public static final short RTC
Field Value:
86

RUBY

public static final short RUBY
Field Value:
87

S

public static final short S
Field Value:
88

SAMP

public static final short SAMP
Field Value:
89

SCRIPT

public static final short SCRIPT
Field Value:
90

SELECT

public static final short SELECT
Field Value:
91

SMALL

public static final short SMALL
Field Value:
92

SOUND

public static final short SOUND
Field Value:
93

SPACER

public static final short SPACER
Field Value:
94

SPAN

public static final short SPAN
Field Value:
95

STRIKE

public static final short STRIKE
Field Value:
96

STRONG

public static final short STRONG
Field Value:
97

STYLE

public static final short STYLE
Field Value:
98

SUB

public static final short SUB
Field Value:
99

SUP

public static final short SUP
Field Value:
100

TABLE

public static final short TABLE
Field Value:
101

TBODY

public static final short TBODY
Field Value:
102

TD

public static final short TD
Field Value:
103

TEXTAREA

public static final short TEXTAREA
Field Value:
104

TFOOT

public static final short TFOOT
Field Value:
105

TH

public static final short TH
Field Value:
106

THEAD

public static final short THEAD
Field Value:
107

TITLE

public static final short TITLE
Field Value:
108

TR

public static final short TR
Field Value:
109

TT

public static final short TT
Field Value:
110

U

public static final short U
Field Value:
111

UL

public static final short UL
Field Value:
112

UNKNOWN

public static final short UNKNOWN
Field Value:
117

VAR

public static final short VAR
Field Value:
113

WBR

public static final short WBR
Field Value:
114

XML

public static final short XML
Field Value:
115

XMP

public static final short XMP
Field Value:
116

Method Details

getElement

public static final HTMLElements.Element getElement(String ename)
Returns the element information for the specified element name.
Parameters:
ename - The element name.

getElement

public static final HTMLElements.Element getElement(String ename,
                                                    HTMLElements.Element element)
Returns the element information for the specified element name.
Parameters:
ename - The element name.
element - The default element to return if not found.

getElement

public static final HTMLElements.Element getElement(short code)
Returns the element information for the specified element code.
Parameters:
code - The element code.

(C) Copyright 2002-2005, Andy Clark. All rights reserved.