java.lang.Object | +--org.xml.sax.helpers.AttributesImplAll Implemented Interfaces:
Construct a new, empty AttributesImpl object. |
AttributesImpl(Attributes atts) Copy an existing Attributes object. |
void | addAttribute(java.lang.String uri, java.lang.String localName, java.lang.String qName, java.lang.String type, java.lang.String value) Add an attribute to the end of the list. |
void | clear() Clear the attribute list for reuse. |
int | getIndex(java.lang.String uri, java.lang.String localName) Look up an attribute's index by Namespace name. |
int | getIndex(java.lang.String qName) Look up an attribute's index by qualified (prefixed) name. |
int | Return the number of attributes in the list. |
java.lang.String | getLocalName(int index) Return an attribute's local name. |
java.lang.String | getQName(int index) Return an attribute's qualified (prefixed) name. |
java.lang.String | getType(int index) Return an attribute's type by index. |
java.lang.String | getType(java.lang.String uri, java.lang.String localName) Look up an attribute's type by Namespace-qualified name. |
java.lang.String | getType(java.lang.String qName) Look up an attribute's type by qualified (prefixed) name. |
java.lang.String | getURI(int index) Return an attribute's Namespace URI. |
java.lang.String | getValue(int index) Return an attribute's value by index. |
java.lang.String | getValue(java.lang.String uri, java.lang.String localName) Look up an attribute's value by Namespace-qualified name. |
java.lang.String | getValue(java.lang.String qName) Look up an attribute's value by qualified (prefixed) name. |
void | removeAttribute(int index) Remove an attribute from the list. |
void | setAttribute(int index, java.lang.String uri, java.lang.String localName, java.lang.String qName, java.lang.String type, java.lang.String value) Set an attribute in the list. |
void | setAttributes(Attributes atts) Copy an entire Attributes object. |
void | setLocalName(int index, java.lang.String localName) Set the local name of a specific attribute. |
void | setQName(int index, java.lang.String qName) Set the qualified name of a specific attribute. |
void | setType(int index, java.lang.String type) Set the type of a specific attribute. |
void | setURI(int index, java.lang.String uri) Set the Namespace URI of a specific attribute. |
void | setValue(int index, java.lang.String value) Set the value of a specific attribute. |
public AttributesImpl()
public AttributesImpl(Attributes atts)
public void addAttribute(java.lang.String uri, java.lang.String localName, java.lang.String qName, java.lang.String type, java.lang.String value)
public void clear()
public int getIndex(java.lang.String uri, java.lang.String localName)
org.xml.sax.Attributes.getIndex(java.lang.String,java.lang.String)
public int getIndex(java.lang.String qName)
org.xml.sax.Attributes.getIndex(java.lang.String)
public int getLength()
org.xml.sax.Attributes.getLength
public String getLocalName(int index)
org.xml.sax.Attributes.getLocalName
public String getQName(int index)
org.xml.sax.Attributes.getQName
public String getType(int index)
org.xml.sax.Attributes.getType(int)
public String getType(java.lang.String uri, java.lang.String localName)
org.xml.sax.Attributes.getType(java.lang.String,java.lang.String)
public String getType(java.lang.String qName)
org.xml.sax.Attributes.getType(java.lang.String)
public String getURI(int index)
org.xml.sax.Attributes.getURI
public String getValue(int index)
org.xml.sax.Attributes.getValue(int)
public String getValue(java.lang.String uri, java.lang.String localName)
org.xml.sax.Attributes.getValue(java.lang.String,java.lang.String)
public String getValue(java.lang.String qName)
org.xml.sax.Attributes.getValue(java.lang.String)
public void removeAttribute(int index)
java.lang.ArrayIndexOutOfBoundsException
- When the
supplied index does not point to an attribute
in the list.public void setAttribute(int index, java.lang.String uri, java.lang.String localName, java.lang.String qName, java.lang.String type, java.lang.String value)
java.lang.ArrayIndexOutOfBoundsException
- When the
supplied index does not point to an attribute
in the list.public void setAttributes(Attributes atts)
public void setLocalName(int index, java.lang.String localName)
java.lang.ArrayIndexOutOfBoundsException
- When the
supplied index does not point to an attribute
in the list.public void setQName(int index, java.lang.String qName)
java.lang.ArrayIndexOutOfBoundsException
- When the
supplied index does not point to an attribute
in the list.public void setType(int index, java.lang.String type)
java.lang.ArrayIndexOutOfBoundsException
- When the
supplied index does not point to an attribute
in the list.public void setURI(int index, java.lang.String uri)
java.lang.ArrayIndexOutOfBoundsException
- When the
supplied index does not point to an attribute
in the list.public void setValue(int index, java.lang.String value)
java.lang.ArrayIndexOutOfBoundsException
- When the
supplied index does not point to an attribute
in the list.
- to take a persistent snapshot of an Attributes object
in a
org.xml.sax.ContentHandler.startElement startElement event; or