|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.adaptx.xml.AttributeListImpl
public class AttributeListImpl
my own implementation of the SAX AttributeList
Constructor Summary | |
---|---|
AttributeListImpl()
|
|
AttributeListImpl(int size)
|
Method Summary | |
---|---|
void |
addAttribute(java.lang.String name,
java.lang.String value)
|
void |
clear()
Removes all attribute mappings from this AttributeList |
int |
getLength()
Returns the number of attributes in the list. |
java.lang.String |
getName(int i)
Returns the name of the attribute at the given index. |
java.lang.String |
getType(int i)
Returns the type of the attribute at the specified index. |
java.lang.String |
getType(java.lang.String name)
Return the type of the attribute with the given name. |
java.lang.String |
getValue(int i)
Return the value of the attribute at the specified index |
java.lang.String |
getValue(java.lang.String name)
Get the value of an attribute (by name). |
void |
remove(int index)
Removes the name-value pair at the given index |
void |
remove(java.lang.String name)
Removes the name and it's associated value from this AttributeList |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttributeListImpl()
public AttributeListImpl(int size)
Method Detail |
---|
public void addAttribute(java.lang.String name, java.lang.String value)
public void clear()
public void remove(int index)
index
- the index to remove the name value pair frompublic void remove(java.lang.String name)
the
- name of the attribute mapping to removepublic int getLength()
getLength
in interface org.xml.sax.AttributeList
public java.lang.String getName(int i)
getName
in interface org.xml.sax.AttributeList
i
- The position of the attribute in the list.
public java.lang.String getType(int i)
getType
in interface org.xml.sax.AttributeList
i
- The position of the attribute in the list.
public java.lang.String getValue(int i)
getValue
in interface org.xml.sax.AttributeList
i
- The position of the attribute in the list.
public java.lang.String getType(java.lang.String name)
getType
in interface org.xml.sax.AttributeList
name
- The attribute name.
public java.lang.String getValue(java.lang.String name)
getValue
in interface org.xml.sax.AttributeList
name
- The attribute name.AttributeList.getValue(java.lang.String)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |