Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.jabber.extensions.version
Class Version

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.jabber.extensions.version.Version
All Implemented Interfaces:
org.jivesoftware.smack.packet.PacketExtension

public class Version
extends Object
implements org.jivesoftware.smack.packet.PacketExtension

EXtension providing application version

Author:
Damian Minkov

Field Summary
static String ELEMENT_NAME
          Element name.
static String NAMESPACE
          Namespace.
 
Constructor Summary
Version()
           
 
Method Summary
 String getElementName()
          Returns the root element name.
 String getNamespace()
          Returns the root element XML namespace.
 String toXML()
          Returns the XML reppresentation of the PacketExtension.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ELEMENT_NAME

public static final String ELEMENT_NAME
Element name.

See Also:
Constant Field Values

NAMESPACE

public static final String NAMESPACE
Namespace.

See Also:
Constant Field Values
Constructor Detail

Version

public Version()
Method Detail

getElementName

public String getElementName()
Returns the root element name.

Specified by:
getElementName in interface org.jivesoftware.smack.packet.PacketExtension
Returns:
the element name.

getNamespace

public String getNamespace()
Returns the root element XML namespace.

Specified by:
getNamespace in interface org.jivesoftware.smack.packet.PacketExtension
Returns:
the namespace.

toXML

public String toXML()
Returns the XML reppresentation of the PacketExtension.

Specified by:
toXML in interface org.jivesoftware.smack.packet.PacketExtension
Returns:
the packet extension as XML.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.