java.lang.Objectorg.xml.sax.helpers.AttributeListImpl
AttributeList;该接口已被 AttributesImpl 帮助器类中实现的 Attributes 取代。 
  
public class AttributeListImpl
     AttributeList 的默认实现。
此模块(包括源代码和文档)位于公共域中,对该模块不提供担保。有关更多信息,请参阅 http://www.saxproject.org。
AttributeList 实现不推荐使用的 SAX1 AttributeList 接口,它已被新的 SAX2 AttributesImpl 接口取代。
此类提供 SAX AttributeList 接口的有用实现。此实现对于 SAX 解析器编写者(使用该实现向应用程序提供属性)和 SAX 应用程序编写者(使用该实现创建元素属性规范的持久副本)都有用:
 private AttributeList myatts;
 public void startElement (String name, AttributeList atts)
 {
              // create a persistent copy of the attribute list
              // for use outside this method
   myatts = new AttributeListImpl(atts);
   [...]
 }
  
  请注意,不要求 SAX 解析器使用此类来提供 AttributeList 的实现;仅作为可选的便捷方法提供它。尤其是,鼓励解析器编写者发明更有效的实现。
AttributeList, 
    DocumentHandler.startElement(java.lang.String, org.xml.sax.AttributeList)
   | 构造方法摘要 | |
|---|---|
AttributeListImpl() 已过时。 创建空的属性列表。  |  
    |
AttributeListImpl(AttributeList atts) 已过时。 构造现有属性列表的持久副本。  |  
    |
| 方法摘要 | |
|---|---|
  void |  
     addAttribute(String name, String type, String value) 已过时。 向属性列表添加属性。  |  
    
  void |  
     clear() 已过时。 清除属性列表。  |  
    
  int |  
     getLength() 已过时。 返回列表中的属性个数。  |  
    
  String |  
     getName(int i) 已过时。 获取属性名称(按位置)。  |  
    
  String |  
     getType(int i) 已过时。 获取属性的类型(按位置)。  |  
    
  String |  
     getType(String name) 已过时。 获取属性的类型(按名称)。  |  
    
  String |  
     getValue(int i) 已过时。 获取属性的值(按位置)。  |  
    
  String |  
     getValue(String name) 已过时。 获取属性的值(按名称)。  |  
    
  void |  
     removeAttribute(String name) 已过时。 从列表移除属性。  |  
    
  void |  
     setAttributeList(AttributeList atts) 已过时。 设置属性列表,丢弃以前的内容。  |  
    
| 从类 java.lang.Object 继承的方法 | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |  
    
| 构造方法详细信息 | 
|---|
public AttributeListImpl()
此构造方法对解析器编写者非常有用,解析器编写者将使用它创建单个的、可重用的属性列表,使用元素之间的 clear 方法可以重设该列表。
public AttributeListImpl(AttributeList atts)
此构造方法对应用程序编写者非常有用,应用程序编写者将使用它创建现有属性列表的持久副本。
atts - 要复制的属性列表
     DocumentHandler.startElement(java.lang.String, org.xml.sax.AttributeList)
     | 方法详细信息 | 
|---|
public void setAttributeList(AttributeList atts)
此方法允许应用程序编写者容易地重用属性列表。
atts - 要复制的属性列表。
     public void addAttribute(String name, String type, String value)
为 SAX 解析器编写者提供此方法,以允许他们在将属性列表传递给应用程序之前以增量方式构建它。
name - 属性名称。
     type - 属性类型(对于枚举为 "NMTOKEN")。
     value - 属性值(不得为 null)。
     removeAttribute(java.lang.String), 
      DocumentHandler.startElement(java.lang.String, org.xml.sax.AttributeList)
     public void removeAttribute(String name)
SAX 应用程序编写者可以使用此方法从 AttributeList 中过滤属性。注意,调用此方法会更改属性列表的长度和一些属性的索引。
如果请求的属性不在列表中,则这是无操作。
name - 属性名称。
     addAttribute(java.lang.String, java.lang.String, java.lang.String)
     public void clear()
SAX 解析器编写者可以使用此方法重设 DocumentHandler.startElement 事件之间的属性列表。通常,重用同一 AttributeListImpl 对象,而不每次分配一个新对象是有意义的。
public int getLength()
AttributeList 中的 
      getLength
     AttributeList.getLength()
     public String getName(int i)
AttributeList 中的 
      getName
     i - 列表中属性的位置。 
     AttributeList.getName(int)
     public String getType(int i)
AttributeList 中的 
      getType
     i - 列表中属性的位置。 
     AttributeList.getType(int)
     public String getValue(int i)
AttributeList 中的 
      getValue
     i - 列表中属性的位置。 
     AttributeList.getValue(int)
     public String getType(String name)
AttributeList 中的 
      getType
     name - 属性名称。 
     AttributeList.getType(java.lang.String)
     public String getValue(String name)
AttributeList 中的 
      getValue
     name - 属性名称。 
     AttributeList.getValue(java.lang.String)