org.eclipse.ecf.presence.roster
Class RosterItem
java.lang.Object
org.eclipse.ecf.presence.roster.RosterItem
- All Implemented Interfaces:
- org.eclipse.core.runtime.IAdaptable, IRosterItem
- Direct Known Subclasses:
- Roster, RosterEntry, RosterGroup
public class RosterItem
- extends java.lang.Object
- implements IRosterItem
Base class implmentation of IRosterItem
super interface. This class
is a superclass for the RosterEntry
and RosterGroup
classes.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
protected java.lang.String name
parent
protected IRosterItem parent
RosterItem
protected RosterItem()
RosterItem
public RosterItem(IRosterItem parent,
java.lang.String name)
getName
public java.lang.String getName()
- Description copied from interface:
IRosterItem
- Return name of item.
- Specified by:
getName
in interface IRosterItem
- Returns:
- String name of item. May return
null
.
getParent
public IRosterItem getParent()
- Description copied from interface:
IRosterItem
- Return parent of item
- Specified by:
getParent
in interface IRosterItem
- Returns:
- IRosterItem parent of roster item. May be
null
.
getAdapter
public java.lang.Object getAdapter(java.lang.Class adapter)
- Specified by:
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
getRoster
public IRoster getRoster()
- Description copied from interface:
IRosterItem
- Get the roster associated with this item.
- Specified by:
getRoster
in interface IRosterItem
- Returns:
- IRoster instance associated with this item. Will return
null
if
this IRosterItem is not associated with any roster.