Package org.w3c.tidy
Class AttributeTable
- java.lang.Object
-
- org.w3c.tidy.AttributeTable
-
public class AttributeTable extends java.lang.ObjectHTML attribute hash table.- Version:
- $Revision$ ($Author$)
- Author:
- Dave Raggett dsr@w3.org , Andy Quick ac.quick@sympatico.ca (translation to Java), Fabrizio Giustina
-
-
Field Summary
Fields Modifier and Type Field Description protected static AttributeattrAltalt attribute.protected static AttributeattrContentcontent attribute.protected static AttributeattrDataflddatafld attribute.protected static AttributeattrHeightheight attribute.protected static AttributeattrHrefhref attribute.protected static AttributeattrIdid attribute.protected static AttributeattrIsmapismap attribute.protected static AttributeattrLanguagelanguage attribute.protected static AttributeattrLongdesclogdesc attribute.protected static AttributeattrNamename attribute.protected static AttributeattrSrcsrc attribute.protected static AttributeattrSummarysummary attribute.protected static AttributeattrTitletitle attribute.protected static AttributeattrTypetype attribute.protected static AttributeattrUsemapusemap attribute.protected static AttributeattrValuevalue attribute.protected static AttributeattrWidthwidth attribute.protected static AttributeattrXmlnsxmlns attribute.
-
Constructor Summary
Constructors Constructor Description AttributeTable()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeclareLiteralAttrib(java.lang.String name)Declare a new literal attribute.AttributefindAttribute(AttVal attval)public method for finding attribute definition by name.static AttributeTablegetDefaultAttributeTable()Returns the default attribute table instance.Attributeinstall(Attribute attr)installs a new Attribute.booleanisLiteralAttribute(java.lang.String attrname)Does the given attibute contains a literal attribute?booleanisScript(java.lang.String attrname)Does the given attibute contains a script?booleanisUrl(java.lang.String attrname)Does the given attibute contains an url?Attributelookup(java.lang.String name)lookup an installed Attribute.
-
-
-
Field Detail
-
attrHref
protected static Attribute attrHref
href attribute.
-
attrSrc
protected static Attribute attrSrc
src attribute.
-
attrId
protected static Attribute attrId
id attribute.
-
attrName
protected static Attribute attrName
name attribute.
-
attrSummary
protected static Attribute attrSummary
summary attribute.
-
attrAlt
protected static Attribute attrAlt
alt attribute.
-
attrLongdesc
protected static Attribute attrLongdesc
logdesc attribute.
-
attrUsemap
protected static Attribute attrUsemap
usemap attribute.
-
attrIsmap
protected static Attribute attrIsmap
ismap attribute.
-
attrLanguage
protected static Attribute attrLanguage
language attribute.
-
attrType
protected static Attribute attrType
type attribute.
-
attrTitle
protected static Attribute attrTitle
title attribute.
-
attrXmlns
protected static Attribute attrXmlns
xmlns attribute.
-
attrValue
protected static Attribute attrValue
value attribute.
-
attrContent
protected static Attribute attrContent
content attribute.
-
attrDatafld
protected static Attribute attrDatafld
datafld attribute.
-
attrWidth
protected static Attribute attrWidth
width attribute.
-
attrHeight
protected static Attribute attrHeight
height attribute.
-
-
Method Detail
-
lookup
public Attribute lookup(java.lang.String name)
lookup an installed Attribute.- Parameters:
name- attribute name- Returns:
- Attribute or null if the attribute is not found
-
install
public Attribute install(Attribute attr)
installs a new Attribute.- Parameters:
attr- Atribute- Returns:
- installed Attribute
-
findAttribute
public Attribute findAttribute(AttVal attval)
public method for finding attribute definition by name.- Parameters:
attval- AttVal instance- Returns:
- Attribute with name = attval.name
-
isUrl
public boolean isUrl(java.lang.String attrname)
Does the given attibute contains an url?- Parameters:
attrname- attribute name- Returns:
trueif the given attribute is expected to contain an URL
-
isScript
public boolean isScript(java.lang.String attrname)
Does the given attibute contains a script?- Parameters:
attrname- attribute name- Returns:
trueif the given attribute is expected to contain a script
-
isLiteralAttribute
public boolean isLiteralAttribute(java.lang.String attrname)
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
public void declareLiteralAttrib(java.lang.String name)
Declare a new literal attribute.- Parameters:
name- atribute name
-
getDefaultAttributeTable
public static AttributeTable getDefaultAttributeTable()
Returns the default attribute table instance.- Returns:
- AttributeTable instance
-
-