nu.validator.htmlparser.impl
Class HtmlAttributes

java.lang.Object
  extended by nu.validator.htmlparser.impl.HtmlAttributes
All Implemented Interfaces:
Attributes

public final class HtmlAttributes
extends Object
implements 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
static HtmlAttributes EMPTY_ATTRIBUTES
           
 
Constructor Summary
HtmlAttributes(int mode)
           
 
Method Summary
 void adjustForMath()
           
 void adjustForSvg()
           
 HtmlAttributes cloneAttributes(Interner interner)
           
 boolean equalsAnother(HtmlAttributes other)
           
 AttributeName getAttributeName(int index)
           
 String getId()
           
 int getIndex(AttributeName name)
          Only use with a static argument
 int getIndex(String qName)
           
 int getIndex(String uri, String localName)
           
 int getLength()
           
 String getLocalName(int index)
           
 String getPrefix(int index)
           
 String getQName(int index)
           
 String getType(int index)
           
 String getType(String qName)
           
 String getType(String uri, String localName)
           
 String getURI(int index)
           
 String getValue(AttributeName name)
          Only use with static argument.
 String getValue(int index)
           
 String getValue(String qName)
           
 String getValue(String uri, String localName)
           
 AttributeName getXmlnsAttributeName(int index)
           
 int getXmlnsIndex(AttributeName name)
           
 int getXmlnsLength()
           
 String getXmlnsLocalName(int index)
           
 String getXmlnsURI(int index)
           
 String getXmlnsValue(AttributeName name)
           
 String getXmlnsValue(int index)
           
 void merge(HtmlAttributes attributes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_ATTRIBUTES

public static final HtmlAttributes EMPTY_ATTRIBUTES
Constructor Detail

HtmlAttributes

public HtmlAttributes(int mode)
Method Detail

getIndex

public int getIndex(AttributeName name)
Only use with a static argument

Parameters:
name -
Returns:

getIndex

public int getIndex(String qName)
Specified by:
getIndex in interface Attributes

getIndex

public int getIndex(String uri,
                    String localName)
Specified by:
getIndex in interface Attributes

getType

public String getType(String qName)
Specified by:
getType in interface Attributes

getType

public String getType(String uri,
                      String localName)
Specified by:
getType in interface Attributes

getValue

public String getValue(String qName)
Specified by:
getValue in interface Attributes

getValue

public String getValue(String uri,
                       String localName)
Specified by:
getValue in interface Attributes

getLength

public int getLength()
Specified by:
getLength in interface Attributes

getLocalName

public String getLocalName(int index)
Specified by:
getLocalName in interface Attributes

getQName

public String getQName(int index)
Specified by:
getQName in interface Attributes

getType

public String getType(int index)
Specified by:
getType in interface Attributes

getAttributeName

public AttributeName getAttributeName(int index)

getURI

public String getURI(int index)
Specified by:
getURI in interface Attributes

getPrefix

public String getPrefix(int index)

getValue

public String getValue(int index)
Specified by:
getValue in interface Attributes

getValue

public String getValue(AttributeName name)
Only use with static argument.

See Also:
Attributes.getValue(java.lang.String)

getId

public String getId()

getXmlnsLength

public int getXmlnsLength()

getXmlnsLocalName

public String getXmlnsLocalName(int index)

getXmlnsURI

public String getXmlnsURI(int index)

getXmlnsValue

public String getXmlnsValue(int index)

getXmlnsIndex

public int getXmlnsIndex(AttributeName name)

getXmlnsValue

public String getXmlnsValue(AttributeName name)

getXmlnsAttributeName

public AttributeName getXmlnsAttributeName(int index)

adjustForMath

public void adjustForMath()

adjustForSvg

public void adjustForSvg()

cloneAttributes

public HtmlAttributes cloneAttributes(Interner interner)
                               throws SAXException
Throws:
SAXException

equalsAnother

public boolean equalsAnother(HtmlAttributes other)

merge

public void merge(HtmlAttributes attributes)
           throws SAXException
Throws:
SAXException


Copyright © 2012. All Rights Reserved.