Package org.w3c.tidy
Class TagTable
java.lang.Object
org.w3c.tidy.TagTable
Tag dictionary node hash table.
- Version:
- $Revision: 633 $ ($Author: fgiust $)
- Author:
- Dave Raggett dsr@w3.org , Andy Quick ac.quick@sympatico.ca (translation to Java), Fabrizio Giustina
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Anchor
anchor/node hash.protected Dict
a tag.protected Dict
applet tag.protected Dict
area tag.protected Dict
b tag.protected Dict
base tag.protected Dict
big tag.protected Dict
a proprietary tag added by Tidy, along with tag_nobr, tag_wbr.protected Dict
blockquote tag.protected Dict
body tag.protected Dict
br tag.protected Dict
caption tag.protected Dict
center tag.protected Dict
col tag.protected Dict
colgroup tag.protected Dict
dd tag.protected Dict
dir tag.protected Dict
div tag.protected Dict
dl tag.protected Dict
dt tag.protected Dict
em tag.protected Dict
font tag.protected Dict
form tag.protected Dict
frame tag.protected Dict
frameset tag.protected Dict
h1 tag.protected Dict
h2 tag.protected Dict
head tag.protected Dict
hr tag.protected Dict
html tag.protected Dict
i tag.protected Dict
iframe tag.protected Dict
img tag.protected Dict
input tag.protected Dict
layer tag.protected Dict
li tag.protected Dict
link tag.protected Dict
listing tag.protected Dict
map tag.protected Dict
meta tag.protected Dict
nobr tag.protected Dict
noframes tag.protected Dict
noscript tag.protected Dict
object tag.protected Dict
ol tag.protected Dict
optgroup tag.protected Dict
option tag.protected Dict
p tag.protected Dict
param tag.protected Dict
pre tag.protected Dict
tag.protected Dict
script tag.protected Dict
small tag.protected Dict
spacer tag.protected Dict
span tag.protected Dict
strong tag.protected Dict
style tag.protected Dict
table tag.protected Dict
td tag.protected Dict
textarea tag.protected Dict
th tag.protected Dict
title tag.protected Dict
tr tag.protected Dict
ul tag.protected Dict
wbr tag.static final Dict
dummy entry for all xml tags. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Defines a new tag.findParser
(Node node) Finds a parser fo the given node.boolean
Finds a tag by name.void
Free node's attributes.Installs a new tag in the tag table, or modify an existing one.Lookup a tag definition by its name.void
setConfiguration
(Configuration configuration) Setter for the current configuration instance.
-
Field Details
-
XML_TAGS
dummy entry for all xml tags. -
tagHtml
html tag. -
tagHead
head tag. -
tagBody
body tag. -
tagFrameset
frameset tag. -
tagFrame
frame tag. -
tagIframe
iframe tag. -
tagNoframes
noframes tag. -
tagMeta
meta tag. -
tagTitle
title tag. -
tagBase
base tag. -
tagHr
hr tag. -
tagPre
pre tag. -
tagListing
listing tag. -
tagH1
h1 tag. -
tagH2
h2 tag. -
tagP
p tag. -
tagUl
ul tag. -
tagOl
ol tag. -
tagDir
dir tag. -
tagLi
li tag. -
tagDt
dt tag. -
tagDd
dd tag. -
tagDl
dl tag. -
tagTd
td tag. -
tagTh
th tag. -
tagTr
tr tag. -
tagCol
col tag. -
tagColgroup
colgroup tag. -
tagBr
br tag. -
tagA
a tag. -
tagLink
link tag. -
tagB
b tag. -
tagI
i tag. -
tagStrong
strong tag. -
tagEm
em tag. -
tagBig
big tag. -
tagSmall
small tag. -
tagParam
param tag. -
tagOption
option tag. -
tagOptgroup
optgroup tag. -
tagImg
img tag. -
tagMap
map tag. -
tagArea
area tag. -
tagNobr
nobr tag. -
tagWbr
wbr tag. -
tagFont
font tag. -
tagSpacer
spacer tag. -
tagLayer
layer tag. -
tagCenter
center tag. -
tagStyle
style tag. -
tagScript
script tag. -
tagNoscript
noscript tag. -
tagTable
table tag. -
tagCaption
caption tag. -
tagForm
form tag. -
tagTextarea
textarea tag. -
tagBlockquote
blockquote tag. -
tagApplet
applet tag. -
tagObject
object tag. -
tagDiv
div tag. -
tagSpan
span tag. -
tagInput
input tag. -
tagQ
tag. -
tagBlink
a proprietary tag added by Tidy, along with tag_nobr, tag_wbr. -
anchorList
anchor/node hash.
-
-
Constructor Details
-
TagTable
protected TagTable()Instantiates a new tag table with known tags.
-
-
Method Details
-
setConfiguration
Setter for the current configuration instance.- Parameters:
configuration
- configuration instance
-
lookup
Lookup a tag definition by its name.- Parameters:
name
- tag name- Returns:
- tag definition (Dict)
-
install
Installs a new tag in the tag table, or modify an existing one.- Parameters:
dict
- tag definition- Returns:
- installed Dict instance
-
findTag
Finds a tag by name.- Parameters:
node
- Node to find. If the element is found the tag property of node will be set.- Returns:
- true if the tag is found, false otherwise
-
findParser
Finds a parser fo the given node.- Parameters:
node
- Node- Returns:
- parser for the node
-
defineTag
Defines a new tag.- Parameters:
tagType
- tag type. Can be TAGTYPE_BLOCK | TAGTYPE_EMPTY | TAGTYPE_PRE | TAGTYPE_INLINEname
- tag name
-
freeAttrs
Free node's attributes.- Parameters:
node
- Node
-