|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectantsnest.datastructure.AntAttributeList
public class AntAttributeList
Holds a collection of attributes in their relevant positions
AntAttribute,
Serialized Form| Constructor Summary | |
|---|---|
AntAttributeList()
Constructs a new list |
|
| Method Summary | |
|---|---|
void |
addAttribute(AntAttribute attribute)
Adds an attribute to the end of the list |
void |
addAttribute(AntAttribute attribute,
int position)
Adds an attribute at a specified position |
void |
changeAttribute(AntAttribute attribute)
Changes an attribute in the list |
AntAttribute |
getAttribute(int position)
Gets the attribute at the required position |
AntAttribute |
getAttribute(String name)
Gets the attribute with the required name |
int |
getLength()
Gets the length of the list |
int |
indexOf(AntAttribute attribute)
Gets the index of a specified attribute |
void |
removeAttribute(AntAttribute attribute)
Removes an attribute from a specified position |
void |
removeAttribute(int position)
Removes an attribute from a specified position |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AntAttributeList()
| Method Detail |
|---|
public int getLength()
public AntAttribute getAttribute(int position)
position - the required position
public AntAttribute getAttribute(String name)
name - the required attribute's name
public void addAttribute(AntAttribute attribute,
int position)
attribute - the attribute to addposition - the position to add itpublic void addAttribute(AntAttribute attribute)
attribute - the attribute to addpublic void removeAttribute(AntAttribute attribute)
attribute - the attribute to removepublic void removeAttribute(int position)
position - the position of the attribute to removepublic void changeAttribute(AntAttribute attribute)
attribute - the new version of an attributepublic int indexOf(AntAttribute attribute)
attribute - the specified attribute
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||