Package nu.validator.htmlparser.impl
Class HtmlAttributes
java.lang.Object
nu.validator.htmlparser.impl.HtmlAttributes
- All Implemented Interfaces:
Attributes
Be careful with this class. QName is the name in from HTML tokenization.
Otherwise, please refer to the interface doc.
- Version:
- $Id: AttributesImpl.java 206 2008-03-20 14:09:29Z hsivonen $
- Author:
- hsivonen
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbooleanequalsAnother(HtmlAttributes other) getAttributeName(int index) getAttributeNameNoBoundsCheck(int index) Variant ofgetAttributeName(int index)without bounds check.getId()intintintgetIndex(AttributeName name) Only use with a static argumentintgetLocalName(int index) getLocalNameNoBoundsCheck(int index) Variant ofgetLocalName(int index)without bounds check.getPrefix(int index) getPrefixNoBoundsCheck(int index) Variant ofgetPrefix(int index)without bounds check.getQName(int index) getQNameNoBoundsCheck(int index) Variant ofgetQName(int index)without bounds check.getType(int index) getTypeNoBoundsCheck(int index) Variant ofgetType(int index)without bounds check.getURI(int index) getURINoBoundsCheck(int index) Variant ofgetURI(int index)without bounds check.getValue(int index) getValue(AttributeName name) Only use with static argument.getValueNoBoundsCheck(int index) Variant ofgetValue(int index)without bounds check.getXmlnsAttributeName(int index) intgetXmlnsIndex(AttributeName name) intgetXmlnsLocalName(int index) getXmlnsURI(int index) getXmlnsValue(int index) getXmlnsValue(AttributeName name) voidmerge(HtmlAttributes attributes)
-
Field Details
-
EMPTY_ATTRIBUTES
-
-
Constructor Details
-
HtmlAttributes
public HtmlAttributes(int mode)
-
-
Method Details
-
getIndex
Only use with a static argument- Parameters:
name-- Returns:
-
getValue
Only use with static argument.- See Also:
-
getLength
public int getLength()- Specified by:
getLengthin interfaceAttributes
-
getLocalNameNoBoundsCheck
Variant ofgetLocalName(int index)without bounds check.- Parameters:
index- a valid attribute index- Returns:
- the local name at index
-
getURINoBoundsCheck
Variant ofgetURI(int index)without bounds check.- Parameters:
index- a valid attribute index- Returns:
- the namespace URI at index
-
getPrefixNoBoundsCheck
Variant ofgetPrefix(int index)without bounds check.- Parameters:
index- a valid attribute index- Returns:
- the namespace prefix at index
-
getValueNoBoundsCheck
Variant ofgetValue(int index)without bounds check.- Parameters:
index- a valid attribute index- Returns:
- the attribute value at index
-
getAttributeNameNoBoundsCheck
Variant ofgetAttributeName(int index)without bounds check.- Parameters:
index- a valid attribute index- Returns:
- the attribute name at index
-
getQNameNoBoundsCheck
Variant ofgetQName(int index)without bounds check.- Parameters:
index- a valid attribute index- Returns:
- the QName at index
-
getTypeNoBoundsCheck
Variant ofgetType(int index)without bounds check.- Parameters:
index- a valid attribute index- Returns:
- the attribute type at index
-
getIndex
- Specified by:
getIndexin interfaceAttributes
-
getIndex
- Specified by:
getIndexin interfaceAttributes
-
getType
- Specified by:
getTypein interfaceAttributes
-
getType
- Specified by:
getTypein interfaceAttributes
-
getValue
- Specified by:
getValuein interfaceAttributes
-
getValue
- Specified by:
getValuein interfaceAttributes
-
getLocalName
- Specified by:
getLocalNamein interfaceAttributes
-
getQName
- Specified by:
getQNamein interfaceAttributes
-
getType
- Specified by:
getTypein interfaceAttributes
-
getAttributeName
-
getURI
- Specified by:
getURIin interfaceAttributes
-
getPrefix
-
getValue
- Specified by:
getValuein interfaceAttributes
-
getId
-
getXmlnsLength
public int getXmlnsLength() -
getXmlnsLocalName
-
getXmlnsURI
-
getXmlnsValue
-
getXmlnsIndex
-
getXmlnsValue
-
getXmlnsAttributeName
-
adjustForMath
public void adjustForMath() -
adjustForSvg
public void adjustForSvg() -
cloneAttributes
- Throws:
SAXException
-
equalsAnother
-
merge
- Throws:
SAXException
-