org.apache.xalan.xsltc.runtime

Class AttributeList

public class AttributeList extends Object implements Attributes

Author: Morten Jorgensen

Constructor Summary
AttributeList()
AttributeList constructor
AttributeList(Attributes attributes)
Attributes clone constructor
Method Summary
voidadd(String qname, String value)
Adds an attribute to the list
voidclear()
Clears the attribute list
intgetIndex(String namespaceURI, String localPart)
SAX2: Look up the index of an attribute by Namespace name.
intgetIndex(String qname)
SAX2: Look up the index of an attribute by XML 1.0 qualified name.
intgetLength()
SAX2: Return the number of attributes in the list.
StringgetLocalName(int index)
SAX2: Look up an attribute's local name by index.
StringgetQName(int pos)
Return the name of an attribute in this list (by position).
StringgetType(int index)
SAX2: Look up an attribute's type by index.
StringgetType(String uri, String localName)
SAX2: Look up an attribute's type by Namespace name.
StringgetType(String qname)
SAX2: Look up an attribute's type by qname.
StringgetURI(int index)
SAX2: Look up an attribute's Namespace URI by index.
StringgetValue(int pos)
SAX2: Look up an attribute's value by index.
StringgetValue(String qname)
SAX2: Look up an attribute's value by qname.
StringgetValue(String uri, String localName)
SAX2: Look up an attribute's value by Namespace name - SLOW!

Constructor Detail

AttributeList

public AttributeList()
AttributeList constructor

AttributeList

public AttributeList(Attributes attributes)
Attributes clone constructor

Method Detail

add

public void add(String qname, String value)
Adds an attribute to the list

clear

public void clear()
Clears the attribute list

getIndex

public int getIndex(String namespaceURI, String localPart)
SAX2: Look up the index of an attribute by Namespace name.

getIndex

public int getIndex(String qname)
SAX2: Look up the index of an attribute by XML 1.0 qualified name.

getLength

public int getLength()
SAX2: Return the number of attributes in the list.

getLocalName

public String getLocalName(int index)
SAX2: Look up an attribute's local name by index.

getQName

public String getQName(int pos)
Return the name of an attribute in this list (by position).

getType

public String getType(int index)
SAX2: Look up an attribute's type by index.

getType

public String getType(String uri, String localName)
SAX2: Look up an attribute's type by Namespace name.

getType

public String getType(String qname)
SAX2: Look up an attribute's type by qname.

getURI

public String getURI(int index)
SAX2: Look up an attribute's Namespace URI by index.

getValue

public String getValue(int pos)
SAX2: Look up an attribute's value by index.

getValue

public String getValue(String qname)
SAX2: Look up an attribute's value by qname.

getValue

public String getValue(String uri, String localName)
SAX2: Look up an attribute's value by Namespace name - SLOW!
Copyright © 2005 Apache XML Project. All Rights Reserved.