org.apache.james.mime4j.dom.address
Class Group

java.lang.Object
  extended by org.apache.james.mime4j.dom.address.Address
      extended by org.apache.james.mime4j.dom.address.Group
All Implemented Interfaces:
java.io.Serializable

public class Group
extends Address

A named group of zero or more mailboxes.

See Also:
Serialized Form

Constructor Summary
Group(java.lang.String name, java.util.Collection<Mailbox> mailboxes)
           
Group(java.lang.String name, Mailbox... mailboxes)
           
Group(java.lang.String name, MailboxList mailboxes)
           
 
Method Summary
protected  void doAddMailboxesTo(java.util.List<Mailbox> results)
          Adds any mailboxes represented by this address into the given List.
 MailboxList getMailboxes()
          Returns the mailboxes in this group.
 java.lang.String getName()
          Returns the group name.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Group

public Group(java.lang.String name,
             MailboxList mailboxes)
Parameters:
name - The group name.
mailboxes - The mailboxes in this group.

Group

public Group(java.lang.String name,
             Mailbox... mailboxes)
Parameters:
name - The group name.
mailboxes - The mailboxes in this group.

Group

public Group(java.lang.String name,
             java.util.Collection<Mailbox> mailboxes)
Parameters:
name - The group name.
mailboxes - The mailboxes in this group.
Method Detail

getName

public java.lang.String getName()
Returns the group name.


getMailboxes

public MailboxList getMailboxes()
Returns the mailboxes in this group.


doAddMailboxesTo

protected void doAddMailboxesTo(java.util.List<Mailbox> results)
Description copied from class: Address
Adds any mailboxes represented by this address into the given List. Must be overridden by concrete subclasses.

Specified by:
doAddMailboxesTo in class Address

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.