Package org.apache.xalan.xsltc.runtime
Class AttributeList
- java.lang.Object
-
- org.apache.xalan.xsltc.runtime.AttributeList
-
- All Implemented Interfaces:
org.xml.sax.Attributes
public class AttributeList extends java.lang.Object implements org.xml.sax.Attributes- Author:
- Morten Jorgensen
-
-
Constructor Summary
Constructors Constructor Description AttributeList()AttributeList constructorAttributeList(org.xml.sax.Attributes attributes)Attributes clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(java.lang.String qname, java.lang.String value)Adds an attribute to the listvoidclear()Clears the attribute listintgetIndex(java.lang.String qname)SAX2: Look up the index of an attribute by XML 1.0 qualified name.intgetIndex(java.lang.String namespaceURI, java.lang.String localPart)SAX2: Look up the index of an attribute by Namespace name.intgetLength()SAX2: Return the number of attributes in the list.java.lang.StringgetLocalName(int index)SAX2: Look up an attribute's local name by index.java.lang.StringgetQName(int pos)Return the name of an attribute in this list (by position).java.lang.StringgetType(int index)SAX2: Look up an attribute's type by index.java.lang.StringgetType(java.lang.String qname)SAX2: Look up an attribute's type by qname.java.lang.StringgetType(java.lang.String uri, java.lang.String localName)SAX2: Look up an attribute's type by Namespace name.java.lang.StringgetURI(int index)SAX2: Look up an attribute's Namespace URI by index.java.lang.StringgetValue(int pos)SAX2: Look up an attribute's value by index.java.lang.StringgetValue(java.lang.String qname)SAX2: Look up an attribute's value by qname.java.lang.StringgetValue(java.lang.String uri, java.lang.String localName)SAX2: Look up an attribute's value by Namespace name - SLOW!
-
-
-
Method Detail
-
getLength
public int getLength()
SAX2: Return the number of attributes in the list.- Specified by:
getLengthin interfaceorg.xml.sax.Attributes
-
getURI
public java.lang.String getURI(int index)
SAX2: Look up an attribute's Namespace URI by index.- Specified by:
getURIin interfaceorg.xml.sax.Attributes
-
getLocalName
public java.lang.String getLocalName(int index)
SAX2: Look up an attribute's local name by index.- Specified by:
getLocalNamein interfaceorg.xml.sax.Attributes
-
getQName
public java.lang.String getQName(int pos)
Return the name of an attribute in this list (by position).- Specified by:
getQNamein interfaceorg.xml.sax.Attributes
-
getType
public java.lang.String getType(int index)
SAX2: Look up an attribute's type by index.- Specified by:
getTypein interfaceorg.xml.sax.Attributes
-
getIndex
public int getIndex(java.lang.String namespaceURI, java.lang.String localPart)SAX2: Look up the index of an attribute by Namespace name.- Specified by:
getIndexin interfaceorg.xml.sax.Attributes
-
getIndex
public int getIndex(java.lang.String qname)
SAX2: Look up the index of an attribute by XML 1.0 qualified name.- Specified by:
getIndexin interfaceorg.xml.sax.Attributes
-
getType
public java.lang.String getType(java.lang.String uri, java.lang.String localName)SAX2: Look up an attribute's type by Namespace name.- Specified by:
getTypein interfaceorg.xml.sax.Attributes
-
getType
public java.lang.String getType(java.lang.String qname)
SAX2: Look up an attribute's type by qname.- Specified by:
getTypein interfaceorg.xml.sax.Attributes
-
getValue
public java.lang.String getValue(int pos)
SAX2: Look up an attribute's value by index.- Specified by:
getValuein interfaceorg.xml.sax.Attributes
-
getValue
public java.lang.String getValue(java.lang.String qname)
SAX2: Look up an attribute's value by qname.- Specified by:
getValuein interfaceorg.xml.sax.Attributes
-
getValue
public java.lang.String getValue(java.lang.String uri, java.lang.String localName)SAX2: Look up an attribute's value by Namespace name - SLOW!- Specified by:
getValuein interfaceorg.xml.sax.Attributes
-
add
public void add(java.lang.String qname, java.lang.String value)Adds an attribute to the list
-
clear
public void clear()
Clears the attribute list
-
-