package nu.fw.jeti.jabber.elements; /** *

Title: im

*

Description:

*

Copyright: Copyright (c) 2001

*

Company:

* @author E.S. de Boer * @version 1.0 */ public class XMessageEvent extends Extension implements XExtension { /** id is the id from the message that this event is a reply to */ private String id; /** type holds a string describing the type of the event (composing/offline/deliverd/displayed) */ private String type; public XMessageEvent(String type,String id) { this.id=id; this.type=type; } public XMessageEvent(XMessageEventBuilder builder) { id=builder.getID(); type=builder.getType(); } public String getType() { return type; } public String getID() { return id; } public void appendToXML(StringBuffer xml) { xml.append(""); if(type!=null) xml.append("<"+type + "/>"); if(id!=null) xml.append(""+ id + ""); //retval.append('>'); xml.append(""); } } /* * Overrides for emacs * Local variables: * tab-width: 4 * End: */