Revision 3952,
950 bytes
checked in by alexandrecorreia, 14 years ago
(diff) |
Ticket #1710 - Adicao do codigo fonte java do componente jmessenger(jabberit_messenger)
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[3952] | 1 | // Created on 4-aug-2004 |
---|
| 2 | package nu.fw.jeti.jabber.elements; |
---|
| 3 | |
---|
| 4 | import nu.fw.jeti.backend.XMLData; |
---|
| 5 | import nu.fw.jeti.jabber.JID; |
---|
| 6 | |
---|
| 7 | /** |
---|
| 8 | * @author E.S. de Boer |
---|
| 9 | * The identities used in the disco spec |
---|
| 10 | * @see nu.fw.jeti.jabber.elements.IQDiscoInfo |
---|
| 11 | */ |
---|
| 12 | public class DiscoIdentity extends XMLData |
---|
| 13 | { |
---|
| 14 | private String name; |
---|
| 15 | private String category; |
---|
| 16 | private String type; |
---|
| 17 | |
---|
| 18 | public DiscoIdentity(String category,String type,String name) |
---|
| 19 | { |
---|
| 20 | this.name = name; |
---|
| 21 | this.category = category; |
---|
| 22 | this.type = type; |
---|
| 23 | } |
---|
| 24 | |
---|
| 25 | public String getName() |
---|
| 26 | { |
---|
| 27 | return name; |
---|
| 28 | } |
---|
| 29 | |
---|
| 30 | public String getCategory() |
---|
| 31 | { |
---|
| 32 | return category; |
---|
| 33 | } |
---|
| 34 | |
---|
| 35 | public String getType() |
---|
| 36 | { |
---|
| 37 | return type; |
---|
| 38 | } |
---|
| 39 | |
---|
| 40 | public void appendToXML(StringBuffer xml) |
---|
| 41 | { |
---|
| 42 | xml.append("<identity"); |
---|
| 43 | appendAttribute(xml, "category", category); |
---|
| 44 | appendAttribute(xml, "type", type); |
---|
| 45 | appendAttribute(xml, "name", name); |
---|
| 46 | xml.append("/>"); |
---|
| 47 | } |
---|
| 48 | } |
---|
| 49 | |
---|
| 50 | /* |
---|
| 51 | * Overrides for emacs |
---|
| 52 | * Local variables: |
---|
| 53 | * tab-width: 4 |
---|
| 54 | * End: |
---|
| 55 | */ |
---|
Note: See
TracBrowser
for help on using the repository browser.