Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.jabber.extensions.coin
Class CoinIQ

java.lang.Object
  extended by org.jivesoftware.smack.packet.Packet
      extended by org.jivesoftware.smack.packet.IQ
          extended by net.java.sip.communicator.impl.protocol.jabber.extensions.coin.CoinIQ

public class CoinIQ
extends org.jivesoftware.smack.packet.IQ

Coin (Conference Info) IQ. It is used to inform conference participants about useful information (users, ...).

Author:
Sebastien Vincent

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ
org.jivesoftware.smack.packet.IQ.Type
 
Field Summary
static String ELEMENT_NAME
          The name of the element that contains the coin data.
static String ENTITY_ATTR_NAME
          Entity attribute name.
static String NAMESPACE
          The namespace that coin belongs to.
static String SID_ATTR_NAME
          Jingle session ID attribute name.
static String STATE_ATTR_NAME
          Version attribute name.
static String VERSION_ATTR_NAME
          Version attribute name.
 
Fields inherited from class org.jivesoftware.smack.packet.Packet
DEFAULT_LANGUAGE, ID_NOT_AVAILABLE
 
Constructor Summary
CoinIQ()
           
 
Method Summary
 String getChildElementXML()
          Returns the XML string of this Jingle IQ's "section" sub-element.
 String getEntity()
          Get entity.
 String getSID()
          Get session ID.
 StateType getState()
          Get state.
 int getVersion()
          Get version.
 void setEntity(String entity)
          Set entity.
 void setSID(String sid)
          Set session ID.
 void setState(StateType state)
          Set state.
 void setVersion(int version)
          Set version.
 
Methods inherited from class org.jivesoftware.smack.packet.IQ
createErrorResponse, createResultIQ, getType, setType, toXML
 
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, equals, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, getXmlns, hashCode, nextID, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setProperty, setTo
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMESPACE

public static final String NAMESPACE
The namespace that coin belongs to.

See Also:
Constant Field Values

ELEMENT_NAME

public static final String ELEMENT_NAME
The name of the element that contains the coin data.

See Also:
Constant Field Values

ENTITY_ATTR_NAME

public static final String ENTITY_ATTR_NAME
Entity attribute name.

See Also:
Constant Field Values

VERSION_ATTR_NAME

public static final String VERSION_ATTR_NAME
Version attribute name.

See Also:
Constant Field Values

STATE_ATTR_NAME

public static final String STATE_ATTR_NAME
Version attribute name.

See Also:
Constant Field Values

SID_ATTR_NAME

public static final String SID_ATTR_NAME
Jingle session ID attribute name.

See Also:
Constant Field Values
Constructor Detail

CoinIQ

public CoinIQ()
Method Detail

getVersion

public int getVersion()
Get version.

Returns:
version

getState

public StateType getState()
Get state.

Returns:
state

getSID

public String getSID()
Get session ID.

Returns:
session ID

setVersion

public void setVersion(int version)
Set version.

Parameters:
version - version

setState

public void setState(StateType state)
Set state.

Parameters:
state - state to set

setSID

public void setSID(String sid)
Set session ID.

Parameters:
sid - session ID to set

getEntity

public String getEntity()
Get entity.

Returns:
entity

setEntity

public void setEntity(String entity)
Set entity.

Parameters:
entity - entity

getChildElementXML

public String getChildElementXML()
Returns the XML string of this Jingle IQ's "section" sub-element. Extensions of this class must override this method.

Specified by:
getChildElementXML in class org.jivesoftware.smack.packet.IQ
Returns:
the child element section of the IQ XML.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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