|
Project 1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcscie259.project1.mf.Attributes
A simplified version of org.xml.sax.helpers.AttributesImpl. An Attributes object stores zero or more attributes. You MAY modify this file to whatever extent you see fit, provided you do not change the declarations of addAttribute, getLength, getName, or getValue.
Constructor Summary | |
Attributes()
|
Method Summary | |
void |
addAttribute(java.lang.String name,
java.lang.String value)
Adds a new attribute (i.e., name/value pair) to the collection. |
int |
getLength()
Return the number of attributes in the list. |
java.lang.String |
getName(int index)
Return an attribute's name by index. |
java.lang.String |
getValue(int index)
Return an attribute's value by index. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Attributes()
Method Detail |
public void addAttribute(java.lang.String name, java.lang.String value)
name
- new attribute's namevalue
- new attribute's valuepublic int getLength()
public java.lang.String getName(int index)
index
- the attribute's index (zero-based).
public java.lang.String getValue(int index)
index
- the attribute's index (zero-based)
|
Project 1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |