FileDocCategorySizeDatePackage
Group.javaAPI DocAndroid 1.5 API2349Wed May 06 22:42:46 BST 2009org.apache.james.mime4j.field.address

Group

public class Group extends Address
A named group of zero or more mailboxes.

Fields Summary
private String
name
private MailboxList
mailboxList
Constructors Summary
public Group(String name, MailboxList mailboxes)

param
name The group name.
param
mailboxes The mailboxes in this group.

		this.name = name;
		this.mailboxList = mailboxes;
	
Methods Summary
protected voiddoAddMailboxesTo(java.util.ArrayList results)

		for (int i = 0; i < mailboxList.size(); i++)
			results.add(mailboxList.get(i));
	
public MailboxListgetMailboxes()
Returns the mailboxes in this group.

		return mailboxList;
	
public java.lang.StringgetName()
Returns the group name.

		return name;
	
public java.lang.StringtoString()

		StringBuffer buf = new StringBuffer();
		buf.append(name);
		buf.append(":");
		for (int i = 0; i < mailboxList.size(); i++) {
			buf.append(mailboxList.get(i).toString());
			if (i + 1 < mailboxList.size())
				buf.append(",");
		}
		buf.append(";");
		return buf.toString();