UniqueAttributesImpl (Apache Tomcat 9.0.118 API Documentation)
Description: declaration: package: org.apache.jasper.util, class: UniqueAttributesImpl

# Class UniqueAttributesImpl

java.lang.Object
org.xml.sax.helpers.AttributesImpl
org.apache.jasper.util.UniqueAttributesImpl

All Implemented Interfaces:
  `Attributes`

public class UniqueAttributesImpl extends AttributesImpl
Wraps the default attributes implementation and ensures that each attribute has a unique qname as required by the JSP specification.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `UniqueAttributesImpl()`
  `UniqueAttributesImpl(boolean pageDirective)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `addAttribute(String uri, String localName, String qName, String type, String value)`
  `void`
  `clear()`
  `void`
  `removeAttribute(int index)`
  `void`
  `setAttribute(int index, String uri, String localName, String qName, String type, String value)`
  `void`
  `setAttributes(Attributes atts)`
  `void`
  `setQName(int index, String qName)`

  ### Methods inherited from class AttributesImpl

  `getIndex, getIndex, getLength, getLocalName, getQName, getType, getType, getType, getURI, getValue, getValue, getValue, setLocalName, setType, setURI, setValue`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### UniqueAttributesImpl

    public UniqueAttributesImpl()

  - ### UniqueAttributesImpl

    public UniqueAttributesImpl(boolean pageDirective)

- ## Method Details

  - ### clear

    public void clear()
    Overrides:
      `clear` in class `AttributesImpl`

  - ### setAttributes

    public void setAttributes(Attributes atts)
    Overrides:
      `setAttributes` in class `AttributesImpl`

  - ### addAttribute

    public void addAttribute(String uri, String localName, String qName, String type, String value)
    Overrides:
      `addAttribute` in class `AttributesImpl`

  - ### setAttribute

    public void setAttribute(int index, String uri, String localName, String qName, String type, String value)
    Overrides:
      `setAttribute` in class `AttributesImpl`

  - ### removeAttribute

    public void removeAttribute(int index)
    Overrides:
      `removeAttribute` in class `AttributesImpl`

  - ### setQName

    public void setQName(int index, String qName)
    Overrides:
      `setQName` in class `AttributesImpl`