From d8c7f6164f7d09aa7a11553b34e9dafeadd92104 Mon Sep 17 00:00:00 2001 From: Matt Tucker Date: Thu, 23 Oct 2003 20:21:32 +0000 Subject: [PATCH] Element name and namespace available statically. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2158 b35dd754-fafc-0310-a699-88a17e54d16e --- .../jivesoftware/smackx/GroupChatInvitation.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/source/org/jivesoftware/smackx/GroupChatInvitation.java b/source/org/jivesoftware/smackx/GroupChatInvitation.java index dbc7b4b0b..e92ae9e6a 100644 --- a/source/org/jivesoftware/smackx/GroupChatInvitation.java +++ b/source/org/jivesoftware/smackx/GroupChatInvitation.java @@ -87,6 +87,16 @@ import org.xmlpull.v1.XmlPullParser; */ public class GroupChatInvitation implements PacketExtension { + /** + * Element name of the packet extension. + */ + public static final String ELEMENT_NAME = "x"; + + /** + * Namespace of the packet extension. + */ + public static final String NAMESPACE = "jabber:x:conference"; + private String roomAddress; /** @@ -113,11 +123,11 @@ public class GroupChatInvitation implements PacketExtension { } public String getElementName() { - return "x"; + return ELEMENT_NAME; } public String getNamespace() { - return "jabber:x:conference"; + return NAMESPACE; } public String toXML() {