net.sourceforge.mflow.api
Interface ContactGroup

All Known Implementing Classes:
ContactGroupImpl

public interface ContactGroup

A collection of Contacts, with an optional name

Version:
$Revision: 1.4 $
Author:
David Carr

Method Summary
 boolean add(Contact c)
          Adds the specified contact to the ContactGroup
 boolean add(ContactGroup cg)
          Adds the specified contact group to the ContactGroup
 boolean addAll(java.util.List list)
          Adds the contents of the specified List to the ContactGroup
 Contact[] getContacts()
           
 ContactGroup[] getGroups()
           
 java.lang.String getName()
          Accessor for the name
 void setName(java.lang.String name)
          Mutator for the name
 int size()
           
 

Method Detail

getName

java.lang.String getName()
Accessor for the name

Returns:
the name

setName

void setName(java.lang.String name)
Mutator for the name

Parameters:
name - the new name

add

boolean add(Contact c)
Adds the specified contact to the ContactGroup

Parameters:
c - The contact to add.
Returns:
true if the add resulted in a change, false if it did not

add

boolean add(ContactGroup cg)
Adds the specified contact group to the ContactGroup

Parameters:
cg - The contact group to add.
Returns:
true if the add resulted in a change, false if it did not

addAll

boolean addAll(java.util.List list)
Adds the contents of the specified List to the ContactGroup

Parameters:
list - the List to add the contents of
Returns:
true if the addAll resulted in a change, false if it did not

getContacts

Contact[] getContacts()
Returns:
all of the contacts in the group

getGroups

ContactGroup[] getGroups()
Returns:
all of the contact groups contained within the group

size

int size()
Returns:
the number of conntacts and/or contact groups contained


Copyright © 2002-2004 MFlow Group. All Rights Reserved.