JML

net.sf.jml.impl
Class MsnGroupImpl

java.lang.Object
  extended by net.sf.jml.impl.MsnGroupImpl
All Implemented Interfaces:
MsnGroup

public class MsnGroupImpl
extends Object
implements MsnGroup

Author:
Roger Chen

Constructor Summary
MsnGroupImpl(MsnContactList contactList)
           
MsnGroupImpl(MsnContactList contactList, boolean defaultGroup)
           
 
Method Summary
 void addContact(String id)
           
 void clear()
           
 boolean containContact(MsnContact contact)
          Contain contact.
 boolean equals(Object obj)
           
 MsnContactList getContactList()
          Get the contact list the group belongs to.
 MsnContact[] getContacts()
          Get the contacts belong the group.
 String getGroupId()
          Get group id which can't be changed.
 String getGroupName()
          Get group name which can be changed.
 int hashCode()
           
 boolean isDefaultGroup()
          Is default group.
 void removeContact(String id)
           
 void setGroupId(String groupId)
           
 void setGroupName(String groupName)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MsnGroupImpl

public MsnGroupImpl(MsnContactList contactList)

MsnGroupImpl

public MsnGroupImpl(MsnContactList contactList,
                    boolean defaultGroup)
Method Detail

getContactList

public MsnContactList getContactList()
Description copied from interface: MsnGroup
Get the contact list the group belongs to.

Specified by:
getContactList in interface MsnGroup
Returns:
contact list

isDefaultGroup

public boolean isDefaultGroup()
Description copied from interface: MsnGroup
Is default group.

Specified by:
isDefaultGroup in interface MsnGroup
Returns:
is default group

getGroupId

public String getGroupId()
Description copied from interface: MsnGroup
Get group id which can't be changed.

Specified by:
getGroupId in interface MsnGroup
Returns:
group id

getGroupName

public String getGroupName()
Description copied from interface: MsnGroup
Get group name which can be changed.

Specified by:
getGroupName in interface MsnGroup
Returns:
group name

getContacts

public MsnContact[] getContacts()
Description copied from interface: MsnGroup
Get the contacts belong the group.

Specified by:
getContacts in interface MsnGroup
Returns:
the contacts belong the group

containContact

public boolean containContact(MsnContact contact)
Description copied from interface: MsnGroup
Contain contact.

Specified by:
containContact in interface MsnGroup
Parameters:
contact - MsnContact
Returns:
is contain contact

setGroupId

public void setGroupId(String groupId)

setGroupName

public void setGroupName(String groupName)

addContact

public void addContact(String id)

removeContact

public void removeContact(String id)

clear

public void clear()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

JML