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 Anchoranchor/node hash.protected Dicta tag.protected Dictapplet tag.protected Dictarea tag.protected Dictb tag.protected Dictbase tag.protected Dictbig tag.protected Dicta proprietary tag added by Tidy, along with tag_nobr, tag_wbr.protected Dictblockquote tag.protected Dictbody tag.protected Dictbr tag.protected Dictcaption tag.protected Dictcenter tag.protected Dictcol tag.protected Dictcolgroup tag.protected Dictdd tag.protected Dictdir tag.protected Dictdiv tag.protected Dictdl tag.protected Dictdt tag.protected Dictem tag.protected Dictfont tag.protected Dictform tag.protected Dictframe tag.protected Dictframeset tag.protected Dicth1 tag.protected Dicth2 tag.protected Dicthead tag.protected Dicthr tag.protected Dicthtml tag.protected Dicti tag.protected Dictiframe tag.protected Dictimg tag.protected Dictinput tag.protected Dictlayer tag.protected Dictli tag.protected Dictlink tag.protected Dictlisting tag.protected Dictmap tag.protected Dictmeta tag.protected Dictnobr tag.protected Dictnoframes tag.protected Dictnoscript tag.protected Dictobject tag.protected Dictol tag.protected Dictoptgroup tag.protected Dictoption tag.protected Dictp tag.protected Dictparam tag.protected Dictpre tag.protected Dicttag.protected Dictscript tag.protected Dictsmall tag.protected Dictspacer tag.protected Dictspan tag.protected Dictstrong tag.protected Dictstyle tag.protected Dicttable tag.protected Dicttd tag.protected Dicttextarea tag.protected Dictth tag.protected Dicttitle tag.protected Dicttr tag.protected Dictul tag.protected Dictwbr tag.static final Dictdummy entry for all xml tags. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDefines a new tag.findParser(Node node) Finds a parser fo the given node.booleanFinds a tag by name.voidFree node's attributes.Installs a new tag in the tag table, or modify an existing one.Lookup a tag definition by its name.voidsetConfiguration(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
-