Package org.w3c.tidy
Class AttributeTable
java.lang.Object
org.w3c.tidy.AttributeTable
HTML attribute hash table.
- Version:
- $Revision: 486 $ ($Author: fgiust $)
- Author:
- Dave Raggett dsr@w3.org , Andy Quick ac.quick@sympatico.ca (translation to Java), Fabrizio Giustina
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static Attributealt attribute.protected static Attributecontent attribute.protected static Attributedatafld attribute.protected static Attributeheight attribute.protected static Attributehref attribute.protected static Attributeid attribute.protected static Attributeismap attribute.protected static Attributelanguage attribute.protected static Attributelogdesc attribute.protected static Attributename attribute.protected static Attributesrc attribute.protected static Attributesummary attribute.protected static Attributetitle attribute.protected static Attributetype attribute.protected static Attributeusemap attribute.protected static Attributevalue attribute.protected static Attributewidth attribute.protected static Attributexmlns attribute. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeclareLiteralAttrib(String name) Declare a new literal attribute.findAttribute(AttVal attval) public method for finding attribute definition by name.static AttributeTableReturns the default attribute table instance.installs a new Attribute.booleanisLiteralAttribute(String attrname) Does the given attibute contains a literal attribute?booleanDoes the given attibute contains a script?booleanDoes the given attibute contains an url?lookup an installed Attribute.
-
Field Details
-
attrHref
href attribute. -
attrSrc
src attribute. -
attrId
id attribute. -
attrName
name attribute. -
attrSummary
summary attribute. -
attrAlt
alt attribute. -
attrLongdesc
logdesc attribute. -
attrUsemap
usemap attribute. -
attrIsmap
ismap attribute. -
attrLanguage
language attribute. -
attrType
type attribute. -
attrTitle
title attribute. -
attrXmlns
xmlns attribute. -
attrValue
value attribute. -
attrContent
content attribute. -
attrDatafld
datafld attribute. -
attrWidth
width attribute. -
attrHeight
height attribute.
-
-
Constructor Details
-
AttributeTable
public AttributeTable()
-
-
Method Details
-
lookup
lookup an installed Attribute.- Parameters:
name- attribute name- Returns:
- Attribute or null if the attribute is not found
-
install
installs a new Attribute.- Parameters:
attr- Atribute- Returns:
- installed Attribute
-
findAttribute
public method for finding attribute definition by name.- Parameters:
attval- AttVal instance- Returns:
- Attribute with name = attval.name
-
isUrl
Does the given attibute contains an url?- Parameters:
attrname- attribute name- Returns:
trueif the given attribute is expected to contain an URL
-
isScript
Does the given attibute contains a script?- Parameters:
attrname- attribute name- Returns:
trueif the given attribute is expected to contain a script
-
isLiteralAttribute
Does the given attibute contains a literal attribute?- Parameters:
attrname- attribute name- Returns:
trueif the given attribute is expected to contain a literal attribute
-
declareLiteralAttrib
Declare a new literal attribute.- Parameters:
name- atribute name
-
getDefaultAttributeTable
Returns the default attribute table instance.- Returns:
- AttributeTable instance
-