Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Ctors](https://developer.android.com/reference/org/xml/sax/helpers/AttributesImpl#pubctors) \| [Methods](https://developer.android.com/reference/org/xml/sax/helpers/AttributesImpl#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/org/xml/sax/helpers/AttributesImpl#inhmethods)

# AttributesImpl


`
public


class
AttributesImpl
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


implements

https://developer.android.com/reference/org/xml/sax/Attributes


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | org.xml.sax.helpers.AttributesImpl |

Known direct subclasses [Attributes2Impl](https://developer.android.com/reference/org/xml/sax/ext/Attributes2Impl) [Attributes2Impl](https://developer.android.com/reference/org/xml/sax/ext/Attributes2Impl) SAX2 extension helper for additional Attributes information, implementing the `https://developer.android.com/reference/org/xml/sax/ext/Attributes2` interface.   

*** ** * ** ***

Default implementation of the Attributes interface.

> *This module, both source code and documentation, is in the
> Public Domain, and comes with **NO WARRANTY**.* See <http://www.saxproject.org> for further information.

This class provides a default implementation of the SAX2
`https://developer.android.com/reference/org/xml/sax/Attributes` interface, with the
addition of manipulators so that the list can be modified or
reused.

There are two typical uses of this class:

1. to take a persistent snapshot of an Attributes object in a `https://developer.android.com/reference/org/xml/sax/ContentHandler#startElement(java.lang.String,%20java.lang.String,%20java.lang.String,%20org.xml.sax.Attributes)` event; or
2. to construct or modify an Attributes object in a SAX2 driver or filter.

This class replaces the now-deprecated SAX1 `https://developer.android.com/reference/org/xml/sax/helpers/AttributeListImpl`
class; in addition to supporting the updated Attributes
interface rather than the deprecated `https://developer.android.com/reference/org/xml/sax/AttributeList` interface, it also includes a much more efficient
implementation using a single array rather than a set of Vectors.

<br />

## Summary

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/org/xml/sax/helpers/AttributesImpl#AttributesImpl()() ` Construct a new, empty AttributesImpl object. |
| ` https://developer.android.com/reference/org/xml/sax/helpers/AttributesImpl#AttributesImpl(org.xml.sax.Attributes)(https://developer.android.com/reference/org/xml/sax/Attributes atts) ` Copy an existing Attributes object. |

| ### Public methods ||
|---|---|
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/AttributesImpl#addAttribute(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String)(https://developer.android.com/reference/java/lang/String uri, https://developer.android.com/reference/java/lang/String localName, https://developer.android.com/reference/java/lang/String qName, https://developer.android.com/reference/java/lang/String type, https://developer.android.com/reference/java/lang/String value) ` Add an attribute to the end of the list. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/AttributesImpl#clear()() ` Clear the attribute list for reuse. |
| ` int` | ` https://developer.android.com/reference/org/xml/sax/helpers/AttributesImpl#getIndex(java.lang.String)(https://developer.android.com/reference/java/lang/String qName) ` Look up an attribute's index by qualified (prefixed) name. |
| ` int` | ` https://developer.android.com/reference/org/xml/sax/helpers/AttributesImpl#getIndex(java.lang.String,%20java.lang.String)(https://developer.android.com/reference/java/lang/String uri, https://developer.android.com/reference/java/lang/String localName) ` Look up an attribute's index by Namespace name. |
| ` int` | ` https://developer.android.com/reference/org/xml/sax/helpers/AttributesImpl#getLength()() ` Return the number of attributes in the list. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/org/xml/sax/helpers/AttributesImpl#getLocalName(int)(int index) ` Return an attribute's local name. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/org/xml/sax/helpers/AttributesImpl#getQName(int)(int index) ` Return an attribute's qualified (prefixed) name. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/org/xml/sax/helpers/AttributesImpl#getType(java.lang.String)(https://developer.android.com/reference/java/lang/String qName) ` Look up an attribute's type by qualified (prefixed) name. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/org/xml/sax/helpers/AttributesImpl#getType(int)(int index) ` Return an attribute's type by index. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/org/xml/sax/helpers/AttributesImpl#getType(java.lang.String,%20java.lang.String)(https://developer.android.com/reference/java/lang/String uri, https://developer.android.com/reference/java/lang/String localName) ` Look up an attribute's type by Namespace-qualified name. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/org/xml/sax/helpers/AttributesImpl#getURI(int)(int index) ` Return an attribute's Namespace URI. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/org/xml/sax/helpers/AttributesImpl#getValue(java.lang.String)(https://developer.android.com/reference/java/lang/String qName) ` Look up an attribute's value by qualified (prefixed) name. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/org/xml/sax/helpers/AttributesImpl#getValue(java.lang.String,%20java.lang.String)(https://developer.android.com/reference/java/lang/String uri, https://developer.android.com/reference/java/lang/String localName) ` Look up an attribute's value by Namespace-qualified name. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/org/xml/sax/helpers/AttributesImpl#getValue(int)(int index) ` Return an attribute's value by index. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/AttributesImpl#removeAttribute(int)(int index) ` Remove an attribute from the list. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/AttributesImpl#setAttribute(int,%20java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String)(int index, https://developer.android.com/reference/java/lang/String uri, https://developer.android.com/reference/java/lang/String localName, https://developer.android.com/reference/java/lang/String qName, https://developer.android.com/reference/java/lang/String type, https://developer.android.com/reference/java/lang/String value) ` Set an attribute in the list. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/AttributesImpl#setAttributes(org.xml.sax.Attributes)(https://developer.android.com/reference/org/xml/sax/Attributes atts) ` Copy an entire Attributes object. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/AttributesImpl#setLocalName(int,%20java.lang.String)(int index, https://developer.android.com/reference/java/lang/String localName) ` Set the local name of a specific attribute. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/AttributesImpl#setQName(int,%20java.lang.String)(int index, https://developer.android.com/reference/java/lang/String qName) ` Set the qualified name of a specific attribute. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/AttributesImpl#setType(int,%20java.lang.String)(int index, https://developer.android.com/reference/java/lang/String type) ` Set the type of a specific attribute. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/AttributesImpl#setURI(int,%20java.lang.String)(int index, https://developer.android.com/reference/java/lang/String uri) ` Set the Namespace URI of a specific attribute. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/AttributesImpl#setValue(int,%20java.lang.String)(int index, https://developer.android.com/reference/java/lang/String value) ` Set the value of a specific attribute. |

### Inherited methods

From class `

https://developer.android.com/reference/java/lang/Object

` `


https://developer.android.com/reference/java/lang/Object` `
https://developer.android.com/reference/java/lang/Object#clone()()
`

Creates and returns a copy of this object.


`


boolean` `
https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj)
`

Indicates whether some other object is "equal to" this one.


`


void` `
https://developer.android.com/reference/java/lang/Object#finalize()()
`

Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.


`


final

https://developer.android.com/reference/java/lang/Class<?>` `
https://developer.android.com/reference/java/lang/Object#getClass()()
`

Returns the runtime class of this `Object`.


`


int` `
https://developer.android.com/reference/java/lang/Object#hashCode()()
`

Returns a hash code value for the object.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#notify()()
`

Wakes up a single thread that is waiting on this object's
monitor.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#notifyAll()()
`

Wakes up all threads that are waiting on this object's monitor.


`


https://developer.android.com/reference/java/lang/String` `
https://developer.android.com/reference/java/lang/Object#toString()()
`

Returns a string representation of the object.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos)
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*, or until a
certain amount of real time has elapsed.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis)
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*, or until a
certain amount of real time has elapsed.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait()()
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*.


From interface `

https://developer.android.com/reference/org/xml/sax/Attributes

` `
abstract


int` `
https://developer.android.com/reference/org/xml/sax/Attributes#getIndex(java.lang.String)(https://developer.android.com/reference/java/lang/String qName)
`

Look up the index of an attribute by XML qualified (prefixed) name.


`
abstract


int` `
https://developer.android.com/reference/org/xml/sax/Attributes#getIndex(java.lang.String,%20java.lang.String)(https://developer.android.com/reference/java/lang/String uri, https://developer.android.com/reference/java/lang/String localName)
`

Look up the index of an attribute by Namespace name.


`
abstract


int` `
https://developer.android.com/reference/org/xml/sax/Attributes#getLength()()
`

Return the number of attributes in the list.


`
abstract


https://developer.android.com/reference/java/lang/String` `
https://developer.android.com/reference/org/xml/sax/Attributes#getLocalName(int)(int index)
`

Look up an attribute's local name by index.


`
abstract


https://developer.android.com/reference/java/lang/String` `
https://developer.android.com/reference/org/xml/sax/Attributes#getQName(int)(int index)
`

Look up an attribute's XML qualified (prefixed) name by index.


`
abstract


https://developer.android.com/reference/java/lang/String` `
https://developer.android.com/reference/org/xml/sax/Attributes#getType(java.lang.String)(https://developer.android.com/reference/java/lang/String qName)
`

Look up an attribute's type by XML qualified (prefixed) name.


`
abstract


https://developer.android.com/reference/java/lang/String` `
https://developer.android.com/reference/org/xml/sax/Attributes#getType(int)(int index)
`

Look up an attribute's type by index.


`
abstract


https://developer.android.com/reference/java/lang/String` `
https://developer.android.com/reference/org/xml/sax/Attributes#getType(java.lang.String,%20java.lang.String)(https://developer.android.com/reference/java/lang/String uri, https://developer.android.com/reference/java/lang/String localName)
`

Look up an attribute's type by Namespace name.


`
abstract


https://developer.android.com/reference/java/lang/String` `
https://developer.android.com/reference/org/xml/sax/Attributes#getURI(int)(int index)
`

Look up an attribute's Namespace URI by index.


`
abstract


https://developer.android.com/reference/java/lang/String` `
https://developer.android.com/reference/org/xml/sax/Attributes#getValue(java.lang.String)(https://developer.android.com/reference/java/lang/String qName)
`

Look up an attribute's value by XML qualified (prefixed) name.


`
abstract


https://developer.android.com/reference/java/lang/String` `
https://developer.android.com/reference/org/xml/sax/Attributes#getValue(int)(int index)
`

Look up an attribute's value by index.


`
abstract


https://developer.android.com/reference/java/lang/String` `
https://developer.android.com/reference/org/xml/sax/Attributes#getValue(java.lang.String,%20java.lang.String)(https://developer.android.com/reference/java/lang/String uri, https://developer.android.com/reference/java/lang/String localName)
`

Look up an attribute's value by Namespace name.


## Public constructors

### AttributesImpl

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public AttributesImpl ()
```

Construct a new, empty AttributesImpl object.

<br />

### AttributesImpl

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public AttributesImpl (Attributes atts)
```

Copy an existing Attributes object.

This constructor is especially useful inside a
`https://developer.android.com/reference/org/xml/sax/ContentHandler#startElement(java.lang.String,%20java.lang.String,%20java.lang.String,%20org.xml.sax.Attributes)` event.

<br />

<br />

| Parameters ||
|---|---|
| `atts` | `Attributes`: The existing Attributes object. <br /> |

## Public methods

### addAttribute

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void addAttribute (String uri, 
                String localName, 
                String qName, 
                String type, 
                String value)
```

Add an attribute to the end of the list.

For the sake of speed, this method does no checking
to see if the attribute is already in the list: that is
the responsibility of the application.

<br />

<br />

| Parameters ||
|---|---|
| `uri` | `String`: The Namespace URI, or the empty string if none is available or Namespace processing is not being performed. <br /> |
| `localName` | `String`: The local name, or the empty string if Namespace processing is not being performed. <br /> |
| `qName` | `String`: The qualified (prefixed) name, or the empty string if qualified names are not available. <br /> |
| `type` | `String`: The attribute type as a string. <br /> |
| `value` | `String`: The attribute value. <br /> |

### clear

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void clear ()
```

Clear the attribute list for reuse.

Note that little memory is freed by this call:
the current array is kept so it can be
reused.

<br />

<br />

### getIndex

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getIndex (String qName)
```

Look up an attribute's index by qualified (prefixed) name.

<br />

| Parameters ||
|---|---|
| `qName` | `String`: The qualified name. <br /> |

| Returns ||
|---|---|
| `int` | The attribute's index, or -1 if none matches. <br /> |

**See also:**

- `https://developer.android.com/reference/org/xml/sax/Attributes#getIndex(java.lang.String)`

### getIndex

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getIndex (String uri, 
                String localName)
```

Look up an attribute's index by Namespace name.

In many cases, it will be more efficient to look up the name once and
use the index query methods rather than using the name query methods
repeatedly.

<br />

<br />

| Parameters ||
|---|---|
| `uri` | `String`: The attribute's Namespace URI, or the empty string if none is available. <br /> |
| `localName` | `String`: The attribute's local name. <br /> |

| Returns ||
|---|---|
| `int` | The attribute's index, or -1 if none matches. <br /> |

**See also:**

- `https://developer.android.com/reference/org/xml/sax/Attributes#getIndex(java.lang.String,%20java.lang.String)`

### getLength

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getLength ()
```

Return the number of attributes in the list.

<br />

| Returns ||
|---|---|
| `int` | The number of attributes in the list. <br /> |

**See also:**

- `https://developer.android.com/reference/org/xml/sax/Attributes#getLength()`

### getLocalName

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getLocalName (int index)
```

Return an attribute's local name.

<br />

| Parameters ||
|---|---|
| `index` | `int`: The attribute's index (zero-based). <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | The attribute's local name, the empty string if none is available, or null if the index if out of range. <br /> |

**See also:**

- `https://developer.android.com/reference/org/xml/sax/Attributes#getLocalName(int)`

### getQName

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getQName (int index)
```

Return an attribute's qualified (prefixed) name.

<br />

| Parameters ||
|---|---|
| `index` | `int`: The attribute's index (zero-based). <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | The attribute's qualified name, the empty string if none is available, or null if the index is out of bounds. <br /> |

**See also:**

- `https://developer.android.com/reference/org/xml/sax/Attributes#getQName(int)`

### getType

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getType (String qName)
```

Look up an attribute's type by qualified (prefixed) name.

<br />

| Parameters ||
|---|---|
| `qName` | `String`: The qualified name. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | The attribute's type, or null if there is no matching attribute. <br /> |

**See also:**

- `https://developer.android.com/reference/org/xml/sax/Attributes#getType(java.lang.String)`

### getType

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getType (int index)
```

Return an attribute's type by index.

<br />

| Parameters ||
|---|---|
| `index` | `int`: The attribute's index (zero-based). <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | The attribute's type, "CDATA" if the type is unknown, or null if the index is out of bounds. <br /> |

**See also:**

- `https://developer.android.com/reference/org/xml/sax/Attributes#getType(int)`

### getType

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getType (String uri, 
                String localName)
```

Look up an attribute's type by Namespace-qualified name.

<br />

| Parameters ||
|---|---|
| `uri` | `String`: The Namespace URI, or the empty string for a name with no explicit Namespace URI. <br /> |
| `localName` | `String`: The local name. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | The attribute's type, or null if there is no matching attribute. <br /> |

**See also:**

- `https://developer.android.com/reference/org/xml/sax/Attributes#getType(java.lang.String,%20java.lang.String)`

### getURI

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getURI (int index)
```

Return an attribute's Namespace URI.

<br />

| Parameters ||
|---|---|
| `index` | `int`: The attribute's index (zero-based). <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | The Namespace URI, the empty string if none is available, or null if the index is out of range. <br /> |

**See also:**

- `https://developer.android.com/reference/org/xml/sax/Attributes#getURI(int)`

### getValue

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getValue (String qName)
```

Look up an attribute's value by qualified (prefixed) name.

<br />

| Parameters ||
|---|---|
| `qName` | `String`: The qualified name. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | The attribute's value, or null if there is no matching attribute. <br /> |

**See also:**

- `https://developer.android.com/reference/org/xml/sax/Attributes#getValue(java.lang.String)`

### getValue

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getValue (String uri, 
                String localName)
```

Look up an attribute's value by Namespace-qualified name.

<br />

| Parameters ||
|---|---|
| `uri` | `String`: The Namespace URI, or the empty string for a name with no explicit Namespace URI. <br /> |
| `localName` | `String`: The local name. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | The attribute's value, or null if there is no matching attribute. <br /> |

**See also:**

- `https://developer.android.com/reference/org/xml/sax/Attributes#getValue(java.lang.String,%20java.lang.String)`

### getValue

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getValue (int index)
```

Return an attribute's value by index.

<br />

| Parameters ||
|---|---|
| `index` | `int`: The attribute's index (zero-based). <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | The attribute's value or null if the index is out of bounds. <br /> |

**See also:**

- `https://developer.android.com/reference/org/xml/sax/Attributes#getValue(int)`

### removeAttribute

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void removeAttribute (int index)
```

Remove an attribute from the list.

<br />

| Parameters ||
|---|---|
| `index` | `int`: The index of the attribute (zero-based). <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/ArrayIndexOutOfBoundsException` | When the supplied index does not point to an attribute in the list. |

### setAttribute

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setAttribute (int index, 
                String uri, 
                String localName, 
                String qName, 
                String type, 
                String value)
```

Set an attribute in the list.

For the sake of speed, this method does no checking
for name conflicts or well-formedness: such checks are the
responsibility of the application.

<br />

<br />

| Parameters ||
|---|---|
| `index` | `int`: The index of the attribute (zero-based). <br /> |
| `uri` | `String`: The Namespace URI, or the empty string if none is available or Namespace processing is not being performed. <br /> |
| `localName` | `String`: The local name, or the empty string if Namespace processing is not being performed. <br /> |
| `qName` | `String`: The qualified name, or the empty string if qualified names are not available. <br /> |
| `type` | `String`: The attribute type as a string. <br /> |
| `value` | `String`: The attribute value. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/ArrayIndexOutOfBoundsException` | When the supplied index does not point to an attribute in the list. |

### setAttributes

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setAttributes (Attributes atts)
```

Copy an entire Attributes object.

It may be more efficient to reuse an existing object
rather than constantly allocating new ones.

<br />

<br />

| Parameters ||
|---|---|
| `atts` | `Attributes`: The attributes to copy. <br /> |

### setLocalName

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setLocalName (int index, 
                String localName)
```

Set the local name of a specific attribute.

<br />

| Parameters ||
|---|---|
| `index` | `int`: The index of the attribute (zero-based). <br /> |
| `localName` | `String`: The attribute's local name, or the empty string for none. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/ArrayIndexOutOfBoundsException` | When the supplied index does not point to an attribute in the list. |

### setQName

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setQName (int index, 
                String qName)
```

Set the qualified name of a specific attribute.

<br />

| Parameters ||
|---|---|
| `index` | `int`: The index of the attribute (zero-based). <br /> |
| `qName` | `String`: The attribute's qualified name, or the empty string for none. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/ArrayIndexOutOfBoundsException` | When the supplied index does not point to an attribute in the list. |

### setType

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setType (int index, 
                String type)
```

Set the type of a specific attribute.

<br />

| Parameters ||
|---|---|
| `index` | `int`: The index of the attribute (zero-based). <br /> |
| `type` | `String`: The attribute's type. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/ArrayIndexOutOfBoundsException` | When the supplied index does not point to an attribute in the list. |

### setURI

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setURI (int index, 
                String uri)
```

Set the Namespace URI of a specific attribute.

<br />

| Parameters ||
|---|---|
| `index` | `int`: The index of the attribute (zero-based). <br /> |
| `uri` | `String`: The attribute's Namespace URI, or the empty string for none. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/ArrayIndexOutOfBoundsException` | When the supplied index does not point to an attribute in the list. |

### setValue

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setValue (int index, 
                String value)
```

Set the value of a specific attribute.

<br />

| Parameters ||
|---|---|
| `index` | `int`: The index of the attribute (zero-based). <br /> |
| `value` | `String`: The attribute's value. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/ArrayIndexOutOfBoundsException` | When the supplied index does not point to an attribute in the list. |