public class Group extends Address
| Constructor and Description |
|---|
Group(java.lang.String name,
java.util.Collection<Mailbox> mailboxes) |
Group(java.lang.String name,
Mailbox... mailboxes) |
Group(java.lang.String name,
MailboxList mailboxes) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doAddMailboxesTo(java.util.List<Mailbox> results)
Adds any mailboxes represented by this address into the given List.
|
java.lang.String |
getDisplayString(boolean includeRoute)
Formats the address as a human readable string, not including the route.
|
java.lang.String |
getEncodedString()
Returns a string representation of this address that can be used for
transport purposes.
|
MailboxList |
getMailboxes()
Returns the mailboxes in this group.
|
java.lang.String |
getName()
Returns the group name.
|
static Group |
parse(java.lang.String rawGroupString)
Parses the specified raw string into a group address.
|
getDisplayString, toStringpublic Group(java.lang.String name,
Mailbox... mailboxes)
name - The group name.mailboxes - The mailboxes in this group.public Group(java.lang.String name,
java.util.Collection<Mailbox> mailboxes)
name - The group name.mailboxes - The mailboxes in this group.public Group(java.lang.String name,
MailboxList mailboxes)
name - The group name.mailboxes - The mailboxes in this group.public static Group parse(java.lang.String rawGroupString)
rawGroupString - string to parse.Group object for the specified string.java.lang.IllegalArgumentException - if the raw string does not represent a single group address.public java.lang.String getName()
public MailboxList getMailboxes()
public java.lang.String getDisplayString(boolean includeRoute)
AddressgetDisplayString in class AddressincludeRoute - true if the route should be included if it
exists, false otherwise.public java.lang.String getEncodedString()
AddressgetEncodedString in class Addressprotected void doAddMailboxesTo(java.util.List<Mailbox> results)
AddressdoAddMailboxesTo in class AddressCopyright © 2004-2012. All Rights Reserved.