Smack

org.jivesoftware.smackx.workgroup.settings
Class ChatSettings

java.lang.Object
  extended by org.jivesoftware.smack.packet.Packet
      extended by org.jivesoftware.smack.packet.IQ
          extended by org.jivesoftware.smackx.workgroup.settings.ChatSettings

public class ChatSettings
extends IQ


Nested Class Summary
static class ChatSettings.InternalProvider
          Packet extension provider for AgentStatusRequest packets.
 
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ
IQ.Type
 
Field Summary
static int BOT_SETTINGS
          Defined as Bot settings type.
static java.lang.String ELEMENT_NAME
          Element name of the packet extension.
static int IMAGE_SETTINGS
          Defined as image type.
static java.lang.String NAMESPACE
          Namespace of the packet extension.
static int TEXT_SETTINGS
          Defined as Text settings type.
 
Fields inherited from class org.jivesoftware.smack.packet.Packet
DEFAULT_LANGUAGE, ID_NOT_AVAILABLE
 
Constructor Summary
ChatSettings()
           
ChatSettings(java.lang.String key)
           
 
Method Summary
 void addSetting(ChatSetting setting)
           
 ChatSetting getChatSetting(java.lang.String key)
           
 java.lang.String getChildElementXML()
          Returns the sub-element XML section of the IQ packet, or null if there isn't one.
 ChatSetting getFirstEntry()
           
 java.util.Collection<ChatSetting> getSettings()
           
 void setKey(java.lang.String key)
           
 void setType(int type)
           
 
Methods inherited from class org.jivesoftware.smack.packet.IQ
createErrorResponse, createResultIQ, getType, setType, toXML
 
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, addExtensions, 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

IMAGE_SETTINGS

public static final int IMAGE_SETTINGS
Defined as image type.

See Also:
Constant Field Values

TEXT_SETTINGS

public static final int TEXT_SETTINGS
Defined as Text settings type.

See Also:
Constant Field Values

BOT_SETTINGS

public static final int BOT_SETTINGS
Defined as Bot settings type.

See Also:
Constant Field Values

ELEMENT_NAME

public static final java.lang.String ELEMENT_NAME
Element name of the packet extension.

See Also:
Constant Field Values

NAMESPACE

public static final java.lang.String NAMESPACE
Namespace of the packet extension.

See Also:
Constant Field Values
Constructor Detail

ChatSettings

public ChatSettings()

ChatSettings

public ChatSettings(java.lang.String key)
Method Detail

setKey

public void setKey(java.lang.String key)

setType

public void setType(int type)

addSetting

public void addSetting(ChatSetting setting)

getSettings

public java.util.Collection<ChatSetting> getSettings()

getChatSetting

public ChatSetting getChatSetting(java.lang.String key)

getFirstEntry

public ChatSetting getFirstEntry()

getChildElementXML

public java.lang.String getChildElementXML()
Description copied from class: IQ
Returns the sub-element XML section of the IQ packet, or null if there isn't one. Packet extensions must be included, if any are defined.

Extensions of this class must override this method.

Specified by:
getChildElementXML in class IQ
Returns:
the child element section of the IQ XML.

Smack

Copyright © 2003-2007 Jive Software.