/** Class Folder * * Specifies a "folder", used to store mail messages. * * @author Chris Kern * @author Erin Nichols * @author Joe Simonson * @version 0.20 of Oct 1999 */ public class Folder { /*+--------------+ *| Fields | *+--------------+ */ /** The name of the folder. */ String name; /** The number of messagess contained in the folder. */ int numberOfMessages; /** The actual messages. */ MessageInfoList messages; /*+--------------+ *| Constructors | *+--------------+ */ /** Null constructor */ public Folder() { } /** A constructor if only the name is known */ public Folder(String title) { } /** Full constructor */ public Folder(String title, int number, MessageInfoList mails) { } /*+-----------+ *| Methods | *+-----------+ */ /** Extract the folder name */ public String getName() { } /** Extract the number of messages. */ public int getNumberOfMessages() { } /** Extract the messages. */ public MessageInfoList getMailMessages() { } /** Set the folder name */ public setName(String newName) { } /** Set the number of messages */ public setNumberOfMessages(int num) { } /** Set the messages */ public setMailMessages(MessageInfoList newMessages) { } /** Return a string containing all the information. */ public String toString() { } /** Add a new message to a position in the folder. */ public addMessage(MailMessage messageToAdd, int position) { } } // Class Folder