|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAbstractItemObj
GroupItem
An SSI item object representing a "buddy group," or a group of buddies. These
are just your normal buddy list groups.
Note that this class is only used to store data and that changes to this
object are not reflected on the server without sending the changes to the
server with a ModifyItemsCmd
.
Constructor Summary | |
GroupItem(GroupItem other)
Creates a new buddy group item object with the same properties as the given object. |
|
GroupItem(SsiItem item)
Creates a new buddy group item object from the data in the given SSI item. |
|
GroupItem(java.lang.String name,
int id)
Creates a new buddy group item object with the given group name and the given group ID. |
|
GroupItem(java.lang.String name,
int id,
int[] buddies)
Creates a new buddy group item object with the given group name, group ID, and list of "child" buddy ID's. |
|
GroupItem(java.lang.String name,
int id,
int[] buddies,
TlvChain extraTlvs)
Creates a new buddy group item object with the given group name, group ID, and list of "child" buddy ID's. |
Method Summary | |
int[] |
getBuddies()
Returns a list of the ID's of the buddies in this group. |
java.lang.String |
getGroupName()
Returns the name of this group, like "Family." |
int |
getId()
Returns the group ID of this group. |
void |
setBuddies(int[] buddies)
Sets the buddies in this group. |
SsiItem |
toSsiItem()
Returns an SsiItem that represents this item object. |
java.lang.String |
toString()
|
Methods inherited from class AbstractItemObj |
addExtraTlvs, copyExtraTlvs, generateItem, generateSsiItems, getExtraTlvs |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GroupItem(SsiItem item)
item
- the buddy group SSI itempublic GroupItem(GroupItem other)
other
- a buddy group item object to copypublic GroupItem(java.lang.String name, int id)
name
- the name of this group, like "Family"id
- a unique group ID for this grouppublic GroupItem(java.lang.String name, int id, int[] buddies)
name
- the name of this group, like "Family"id
- a unique group ID for this groupbuddies
- a list of the ID's of buddies in this grouppublic GroupItem(java.lang.String name, int id, int[] buddies, TlvChain extraTlvs)
name
- the name of this group, like "Family"id
- a unique group ID for this groupbuddies
- a list of the ID's of buddies in this groupextraTlvs
- a list of extra TLV's to store in this itemMethod Detail |
public final java.lang.String getGroupName()
public final int getId()
public final int[] getBuddies()
null
if this item has no child buddy field.
null
if this group item does not contain a child
buddy fieldpublic final void setBuddies(int[] buddies)
null
to not store a child buddy list in this
item at all.
buddies
- a list of the ID's of the buddies in this group, or
null
to erase this group's child buddy listpublic SsiItem toSsiItem()
SsiItemObj
SsiItem
that represents this item object.
SsiItem
that represents this item objectpublic java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |