source: branches/2.2/jabberit_messenger/java_source/src/nu/fw/jeti/jabber/elements/DiscoIdentity.java @ 3102

Revision 3102, 950 bytes checked in by amuller, 14 years ago (diff)

Ticket #986 - Efetuado merge para o Branch 2.2( atualizacao do modulo)

  • Property svn:executable set to *
Line 
1// Created on 4-aug-2004
2package nu.fw.jeti.jabber.elements;
3
4import nu.fw.jeti.backend.XMLData;
5import 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 */
12public 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.