org.eclipse.ecf.presence.roster
Class RosterItem

java.lang.Object
  extended by 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.


Field Summary
protected  java.lang.String name
           
protected  IRosterItem parent
           
 
Constructor Summary
protected RosterItem()
           
  RosterItem(IRosterItem parent, java.lang.String name)
           
 
Method Summary
 java.lang.Object getAdapter(java.lang.Class adapter)
           
 java.lang.String getName()
          Return name of item.
 IRosterItem getParent()
          Return parent of item
 IRoster getRoster()
          Get the roster associated with this item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

parent

protected IRosterItem parent
Constructor Detail

RosterItem

protected RosterItem()

RosterItem

public RosterItem(IRosterItem parent,
                  java.lang.String name)
Method Detail

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.