Class HtmlAttributes

  • All Implemented Interfaces:
    org.xml.sax.Attributes

    public final class HtmlAttributes
    extends java.lang.Object
    implements org.xml.sax.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 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​(java.lang.String qName)
        Specified by:
        getIndex in interface org.xml.sax.Attributes
      • getIndex

        public int getIndex​(java.lang.String uri,
                            java.lang.String localName)
        Specified by:
        getIndex in interface org.xml.sax.Attributes
      • getType

        public java.lang.String getType​(java.lang.String qName)
        Specified by:
        getType in interface org.xml.sax.Attributes
      • getType

        public java.lang.String getType​(java.lang.String uri,
                                        java.lang.String localName)
        Specified by:
        getType in interface org.xml.sax.Attributes
      • getValue

        public java.lang.String getValue​(java.lang.String qName)
        Specified by:
        getValue in interface org.xml.sax.Attributes
      • getValue

        public java.lang.String getValue​(java.lang.String uri,
                                         java.lang.String localName)
        Specified by:
        getValue in interface org.xml.sax.Attributes
      • getLength

        public int getLength()
        Specified by:
        getLength in interface org.xml.sax.Attributes
      • getLocalName

        public java.lang.String getLocalName​(int index)
        Specified by:
        getLocalName in interface org.xml.sax.Attributes
      • getQName

        public java.lang.String getQName​(int index)
        Specified by:
        getQName in interface org.xml.sax.Attributes
      • getType

        public java.lang.String getType​(int index)
        Specified by:
        getType in interface org.xml.sax.Attributes
      • getAttributeName

        public AttributeName getAttributeName​(int index)
      • getURI

        public java.lang.String getURI​(int index)
        Specified by:
        getURI in interface org.xml.sax.Attributes
      • getPrefix

        public java.lang.String getPrefix​(int index)
      • getValue

        public java.lang.String getValue​(int index)
        Specified by:
        getValue in interface org.xml.sax.Attributes
      • getValue

        public java.lang.String getValue​(AttributeName name)
        Only use with static argument.
        See Also:
        Attributes.getValue(java.lang.String)
      • getId

        public java.lang.String getId()
      • getXmlnsLength

        public int getXmlnsLength()
      • getXmlnsLocalName

        public java.lang.String getXmlnsLocalName​(int index)
      • getXmlnsURI

        public java.lang.String getXmlnsURI​(int index)
      • getXmlnsValue

        public java.lang.String getXmlnsValue​(int index)
      • getXmlnsIndex

        public int getXmlnsIndex​(AttributeName name)
      • getXmlnsValue

        public java.lang.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 org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • equalsAnother

        public boolean equalsAnother​(HtmlAttributes other)
      • merge

        public void merge​(HtmlAttributes attributes)
                   throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException