Class AttributeList

java.lang.Object
org.apache.xalan.xsltc.runtime.AttributeList
All Implemented Interfaces:
Attributes

public class AttributeList extends Object implements Attributes
Author:
Morten Jorgensen
  • Constructor Details

    • AttributeList

      public AttributeList()
      AttributeList constructor
    • AttributeList

      public AttributeList(Attributes attributes)
      Attributes clone constructor
  • Method Details

    • getLength

      public int getLength()
      SAX2: Return the number of attributes in the list.
      Specified by:
      getLength in interface Attributes
    • getURI

      public String getURI(int index)
      SAX2: Look up an attribute's Namespace URI by index.
      Specified by:
      getURI in interface Attributes
    • getLocalName

      public String getLocalName(int index)
      SAX2: Look up an attribute's local name by index.
      Specified by:
      getLocalName in interface Attributes
    • getQName

      public String getQName(int pos)
      Return the name of an attribute in this list (by position).
      Specified by:
      getQName in interface Attributes
    • getType

      public String getType(int index)
      SAX2: Look up an attribute's type by index.
      Specified by:
      getType in interface Attributes
    • getIndex

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

      public int getIndex(String qname)
      SAX2: Look up the index of an attribute by XML 1.0 qualified name.
      Specified by:
      getIndex in interface Attributes
    • getType

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

      public String getType(String qname)
      SAX2: Look up an attribute's type by qname.
      Specified by:
      getType in interface Attributes
    • getValue

      public String getValue(int pos)
      SAX2: Look up an attribute's value by index.
      Specified by:
      getValue in interface Attributes
    • getValue

      public String getValue(String qname)
      SAX2: Look up an attribute's value by qname.
      Specified by:
      getValue in interface Attributes
    • getValue

      public String getValue(String uri, String localName)
      SAX2: Look up an attribute's value by Namespace name - SLOW!
      Specified by:
      getValue in interface Attributes
    • add

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

      public void clear()
      Clears the attribute list