This class is in the Public Domain, and comes with NO
WARRANTY of any kind.
This wrapper class is used only when Namespace support
is disabled -- it provides pretty much a direct mapping
from SAX1 to SAX2, except that names and types are
interned whenever requested.
Method from org.xml.sax.helpers.ParserAdapter$AttributeListAdapter Detail: |
public int getIndex(String qName) {
int max = atts.getLength();
for (int i = 0; i < max; i++) {
if (qAtts.getName(i).equals(qName)) {
return i;
}
}
return -1;
}
Look up an attribute index by qualified (prefixed) name. |
public int getIndex(String uri,
String localName) {
return -1;
}
Look up an attribute index by Namespace name. |
public int getLength() {
return qAtts.getLength();
}
Return the length of the attribute list. |
public String getLocalName(int i) {
return "";
}
Return the local name of the specified attribute. |
public String getQName(int i) {
return qAtts.getName(i).intern();
}
Return the qualified (prefixed) name of the specified attribute. |
public String getType(int i) {
return qAtts.getType(i).intern();
}
Return the type of the specified attribute. |
public String getType(String qName) {
return qAtts.getType(qName).intern();
}
Look up the type of an attribute by qualified (prefixed) name. |
public String getType(String uri,
String localName) {
return null;
}
Look up the type of an attribute by Namespace name. |
public String getURI(int i) {
return "";
}
Return the Namespace URI of the specified attribute. |
public String getValue(int i) {
return qAtts.getValue(i);
}
Return the value of the specified attribute. |
public String getValue(String qName) {
return qAtts.getValue(qName);
}
Look up the value of an attribute by qualified (prefixed) name. |
public String getValue(String uri,
String localName) {
return null;
}
Look up the value of an attribute by Namespace name. |
void setAttributeList(AttributeList qAtts) {
this.qAtts = qAtts;
}
|