com.levelonelabs.aim
Class AIMGroup

java.lang.Object
  extended bycom.levelonelabs.aim.AIMGroup
All Implemented Interfaces:
XMLizable

public class AIMGroup
extends java.lang.Object
implements XMLizable

Container for a group of AIMBuddies

Author:
Scott Oster

Constructor Summary
AIMGroup(java.lang.String name)
          Constructor for the AIMGroup object
 
Method Summary
 boolean add(java.lang.String buddy)
          Add a buddy to the list
 java.util.ArrayList getList()
          Gets the list attribute of the AIMGroup object
 java.lang.String getName()
          Gets the name attribute of the AIMGroup object
 void readState(org.w3c.dom.Element fullStateElement)
          Read info from the Element
 boolean remove(java.lang.String buddy)
          Remove a buddy from the list
 int size()
          Returns the number of unique buddies in the group
 java.lang.String toString()
          List the buddies in the group
 void writeState(org.w3c.dom.Element emptyStateElement)
          Write current into the Element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AIMGroup

public AIMGroup(java.lang.String name)
Constructor for the AIMGroup object

Parameters:
name -
Method Detail

getName

public java.lang.String getName()
Gets the name attribute of the AIMGroup object

Returns:
The name value

getList

public java.util.ArrayList getList()
Gets the list attribute of the AIMGroup object

Returns:
The list value

add

public boolean add(java.lang.String buddy)
Add a buddy to the list

Parameters:
buddy -
Returns:
true if the buddy wasnt already part of the list

remove

public boolean remove(java.lang.String buddy)
Remove a buddy from the list

Parameters:
buddy -
Returns:
true if the buddy was part of the list and removed

size

public int size()
Returns the number of unique buddies in the group

Returns:
the size

toString

public java.lang.String toString()
List the buddies in the group

Returns:
string of space separated buddy names

readState

public void readState(org.w3c.dom.Element fullStateElement)
Description copied from interface: XMLizable
Read info from the Element

Specified by:
readState in interface XMLizable
Parameters:
fullStateElement - DOM element to read from
See Also:
XMLizable.readState(Element)

writeState

public void writeState(org.w3c.dom.Element emptyStateElement)
Description copied from interface: XMLizable
Write current into the Element

Specified by:
writeState in interface XMLizable
Parameters:
emptyStateElement - DOM element to write to
See Also:
XMLizable.writeState(Element)


Copyright © 2001-2005 Java AIM Bot. All Rights Reserved.