org.eclipse.ecf.presence.roster
Class RosterResource
java.lang.Object
org.eclipse.ecf.presence.roster.RosterResource
- All Implemented Interfaces:
- org.eclipse.core.runtime.IAdaptable, IRosterItem, IRosterResource
public class RosterResource
- extends java.lang.Object
- implements IRosterResource
- Since:
- 2.1
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RosterResource
public RosterResource(IRosterEntry parent,
java.lang.String name,
IPresence presence)
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
.
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.
getAdapter
public java.lang.Object getAdapter(java.lang.Class adapter)
- Specified by:
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
getPresence
public IPresence getPresence()
- Specified by:
getPresence
in interface IRosterResource
setPresence
public void setPresence(IPresence presence)