|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbackend.domainObjects.MessageList
public class MessageList
This class contains multiple Message-type objects. It uses an array and two ints to keep track of the size and capacity of the array. The class corresponds to the <messages> tag in XML code.
| Constructor Summary | |
|---|---|
MessageList()
This constructor sets the size to 0, the capacity to 5, and allocates memory for an array for 5 Message-type objects. |
|
| Method Summary | |
|---|---|
void |
add(Message m)
This method adds a Message-type object to the MessageList. |
Message |
at(int index)
This accessor method returns the Message-type object in the array at the given index. |
void |
fromXML(org.kxml2.io.KXmlParser theParser)
The parsing method for this class, like most other classes in domainObjects, assumes that the KXmlParser you give it has just found a <messages> tag. |
int |
size()
returns the size---i.e. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessageList()
| Method Detail |
|---|
public void add(Message m)
public Message at(int index)
public int size()
public void fromXML(org.kxml2.io.KXmlParser theParser)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||