Home » xml-commons-external-1.4.01-src » org.xml » sax » helpers » [javadoc | source]
org.xml.sax.helpers
final class: ParserAdapter.AttributeListAdapter [javadoc | source]
java.lang.Object
   org.xml.sax.helpers.ParserAdapter$AttributeListAdapter

All Implemented Interfaces:
    Attributes

Adapt a SAX1 AttributeList as a SAX2 Attributes object.

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.

Constructor:
 AttributeListAdapter() 
Method from org.xml.sax.helpers.ParserAdapter$AttributeListAdapter Summary:
getIndex,   getIndex,   getLength,   getLocalName,   getQName,   getType,   getType,   getType,   getURI,   getValue,   getValue,   getValue,   setAttributeList
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.xml.sax.helpers.ParserAdapter$AttributeListAdapter Detail:
 public int getIndex(String qName) 
    Look up an attribute index by qualified (prefixed) name.
 public int getIndex(String uri,
    String localName) 
    Look up an attribute index by Namespace name.
 public int getLength() 
    Return the length of the attribute list.
 public String getLocalName(int i) 
    Return the local name of the specified attribute.
 public String getQName(int i) 
    Return the qualified (prefixed) name of the specified attribute.
 public String getType(int i) 
    Return the type of the specified attribute.
 public String getType(String qName) 
    Look up the type of an attribute by qualified (prefixed) name.
 public String getType(String uri,
    String localName) 
    Look up the type of an attribute by Namespace name.
 public String getURI(int i) 
    Return the Namespace URI of the specified attribute.
 public String getValue(int i) 
    Return the value of the specified attribute.
 public String getValue(String qName) 
    Look up the value of an attribute by qualified (prefixed) name.
 public String getValue(String uri,
    String localName) 
    Look up the value of an attribute by Namespace name.
  void setAttributeList(AttributeList qAtts) 
    Set the embedded AttributeList.

    This method must be invoked before any of the others can be used.