jd.xml.xslt.result
Class AttributeList

java.lang.Object
  extended byjd.xml.xslt.result.AttributeList

public final class AttributeList
extends Object

AttributeList store a list of attribute name/value pairs


Constructor Summary
AttributeList()
           
 
Method Summary
 void add(String name, String value)
          Add an attribute name and value to the list If an attribute with same name already exists the value will be replaced, else the attribute is added to list.
 void clear()
          Clear the list.
 String getName(int i)
          Return the name of the i-th attribute.
 String getValue(int i)
          Return the value of the i-th attribute.
 int size()
          Return the list size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeList

public AttributeList()
Method Detail

size

public int size()
Return the list size.


clear

public void clear()
Clear the list.


add

public void add(String name,
                String value)
Add an attribute name and value to the list If an attribute with same name already exists the value will be replaced, else the attribute is added to list.


getName

public String getName(int i)
Return the name of the i-th attribute.


getValue

public String getValue(int i)
Return the value of the i-th attribute.