package nu.fw.jeti.jabber.elements; import java.util.List; import nu.fw.jeti.backend.XMLData; import nu.fw.jeti.jabber.JID; /** *
Title: im
*Description:
*Copyright: Copyright (c) 2001
*Company:
* @author E.S. de Boer * @version 1.0 */ public class RosterItem extends XMLData { private List groups; private String name; private String subscription; private String ask; private JID jid; public RosterItem(JID jid, String name,String subscription, String ask, List groups) { this.name = name; this.subscription = subscription; this.ask = ask; this.jid = jid; this.groups = groups; } public RosterItem(RosterItemBuilder ib) { name = ib.name; subscription = ib.subscription; ask = ib.ask; jid = ib.jid; groups = ib.getGroups(); } public String getName(){return name;} public String getSubscription(){return subscription;} public String getAsk(){return ask;} public JID getJID(){return jid;} public List getGroups() { return groups; } public void appendToXML(StringBuffer xml) { xml.append("