|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xalan.xsltc.runtime.AttributeList
public class AttributeList
| Field Summary | |
|---|---|
private Hashtable |
_attributes
|
private int |
_length
|
private java.util.Vector |
_names
|
private java.util.Vector |
_qnames
|
private java.util.Vector |
_uris
|
private java.util.Vector |
_values
|
private static java.lang.String |
CDATASTRING
|
private static java.lang.String |
EMPTYSTRING
|
| Constructor Summary | |
|---|---|
AttributeList()
AttributeList constructor |
|
AttributeList(org.xml.sax.Attributes attributes)
Attributes clone constructor |
|
| Method Summary | |
|---|---|
void |
add(java.lang.String qname,
java.lang.String value)
Adds an attribute to the list |
private void |
alloc()
Allocate memory for the AttributeList %OPT% Use on-demand allocation for the internal vectors. |
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! |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String EMPTYSTRING
private static final java.lang.String CDATASTRING
private Hashtable _attributes
private java.util.Vector _names
private java.util.Vector _qnames
private java.util.Vector _values
private java.util.Vector _uris
private int _length
| Constructor Detail |
|---|
public AttributeList()
public AttributeList(org.xml.sax.Attributes attributes)
| Method Detail |
|---|
private void alloc()
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.Attributes
public 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.Attributes
public 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.Attributes
public java.lang.String getValue(java.lang.String uri,
java.lang.String localName)
getValue in interface org.xml.sax.Attributes
public void add(java.lang.String qname,
java.lang.String value)
public void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||