public class AttributeList
extends java.lang.Object
implements org.xml.sax.Attributes
| Constructor and Description |
|---|
AttributeList()
AttributeList constructor
|
AttributeList(org.xml.sax.Attributes attributes)
Attributes clone constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String qname,
java.lang.String value)
Adds an attribute to the list
|
void |
clear()
Clears the attribute list
|
int |
getIndex(java.lang.String qname)
SAX2: Look up the index of an attribute by XML 1.0 qualified name.
|
int |
getIndex(java.lang.String namespaceURI,
java.lang.String localPart)
SAX2: Look up the index of an attribute by Namespace name.
|
int |
getLength()
SAX2: Return the number of attributes in the list.
|
java.lang.String |
getLocalName(int index)
SAX2: Look up an attribute's local name by index.
|
java.lang.String |
getQName(int pos)
Return the name of an attribute in this list (by position).
|
java.lang.String |
getType(int index)
SAX2: Look up an attribute's type by index.
|
java.lang.String |
getType(java.lang.String qname)
SAX2: Look up an attribute's type by qname.
|
java.lang.String |
getType(java.lang.String uri,
java.lang.String localName)
SAX2: Look up an attribute's type by Namespace name.
|
java.lang.String |
getURI(int index)
SAX2: Look up an attribute's Namespace URI by index.
|
java.lang.String |
getValue(int pos)
SAX2: Look up an attribute's value by index.
|
java.lang.String |
getValue(java.lang.String qname)
SAX2: Look up an attribute's value by qname.
|
java.lang.String |
getValue(java.lang.String uri,
java.lang.String localName)
SAX2: Look up an attribute's value by Namespace name - SLOW!
|
public AttributeList()
public AttributeList(org.xml.sax.Attributes attributes)
public int getLength()
getLength in interface org.xml.sax.Attributespublic java.lang.String getURI(int index)
getURI in interface org.xml.sax.Attributespublic java.lang.String getLocalName(int index)
getLocalName in interface org.xml.sax.Attributespublic java.lang.String getQName(int pos)
getQName in interface org.xml.sax.Attributespublic java.lang.String getType(int index)
getType in interface org.xml.sax.Attributespublic int getIndex(java.lang.String namespaceURI,
java.lang.String localPart)
getIndex in interface org.xml.sax.Attributespublic int getIndex(java.lang.String qname)
getIndex in interface org.xml.sax.Attributespublic java.lang.String getType(java.lang.String uri,
java.lang.String localName)
getType in interface org.xml.sax.Attributespublic java.lang.String getType(java.lang.String qname)
getType in interface org.xml.sax.Attributespublic java.lang.String getValue(int pos)
getValue in interface org.xml.sax.Attributespublic java.lang.String getValue(java.lang.String qname)
getValue in interface org.xml.sax.Attributespublic java.lang.String getValue(java.lang.String uri,
java.lang.String localName)
getValue in interface org.xml.sax.Attributespublic void add(java.lang.String qname,
java.lang.String value)
public void clear()
Copyright © 2023 Apache XML Project. All Rights Reserved.