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 Attribute
alt attribute.protected static Attribute
content attribute.protected static Attribute
datafld attribute.protected static Attribute
height attribute.protected static Attribute
href attribute.protected static Attribute
id attribute.protected static Attribute
ismap attribute.protected static Attribute
language attribute.protected static Attribute
logdesc attribute.protected static Attribute
name attribute.protected static Attribute
src attribute.protected static Attribute
summary attribute.protected static Attribute
title attribute.protected static Attribute
type attribute.protected static Attribute
usemap attribute.protected static Attribute
value attribute.protected static Attribute
width attribute.protected static Attribute
xmlns attribute. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
declareLiteralAttrib
(String name) Declare a new literal attribute.findAttribute
(AttVal attval) public method for finding attribute definition by name.static AttributeTable
Returns the default attribute table instance.installs a new Attribute.boolean
isLiteralAttribute
(String attrname) Does the given attibute contains a literal attribute?boolean
Does the given attibute contains a script?boolean
Does 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:
true
if the given attribute is expected to contain an URL
-
isScript
Does the given attibute contains a script?- Parameters:
attrname
- attribute name- Returns:
true
if the given attribute is expected to contain a script
-
isLiteralAttribute
Does the given attibute contains a literal attribute?- Parameters:
attrname
- attribute name- Returns:
true
if 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
-