Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.jabber.extensions.jingle
Class ParameterPacketExtension

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

public class ParameterPacketExtension
extends AbstractPacketExtension

Represents the parameter elements described in XEP-0167.

Author:
Emil Ivov

Field Summary
static String ELEMENT_NAME
          The name of the "parameter" element.
static String NAME_ATTR_NAME
          The name of the name parameter in the parameter element.
static String VALUE_ATTR_NAME
          The name of the value parameter in the parameter element.
 
Fields inherited from class net.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension
attributes
 
Constructor Summary
ParameterPacketExtension()
          Creates a new ParameterPacketExtension instance.
 
Method Summary
 String getName()
          Returns the name of the format parameter we are representing here.
 String getValue()
          Returns the value of the format parameter we are representing here.
 void setName(String name)
          Sets the name of the format parameter we are representing here.
 void setValue(String value)
          Sets that value of the format parameter we are representing here.
 
Methods inherited from class net.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension
addChildExtension, getAttribute, getAttributeAsInt, getAttributeAsInt, getAttributeAsString, getAttributeAsURI, getAttributeNames, getChildExtensions, getChildExtensionsOfType, getElementName, getFirstChildOfType, getNamespace, getText, removeAttribute, setAttribute, setNamespace, setText, toXML
 
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
The name of the "parameter" element.

See Also:
Constant Field Values

NAME_ATTR_NAME

public static final String NAME_ATTR_NAME
The name of the name parameter in the parameter element.

See Also:
Constant Field Values

VALUE_ATTR_NAME

public static final String VALUE_ATTR_NAME
The name of the value parameter in the parameter element.

See Also:
Constant Field Values
Constructor Detail

ParameterPacketExtension

public ParameterPacketExtension()
Creates a new ParameterPacketExtension instance.

Method Detail

setName

public void setName(String name)
Sets the name of the format parameter we are representing here.

Parameters:
name - the name of the format parameter we are representing here.

getName

public String getName()
Returns the name of the format parameter we are representing here.

Returns:
the name of the format parameter we are representing here.

setValue

public void setValue(String value)
Sets that value of the format parameter we are representing here.

Parameters:
value - the value of the format parameter we are representing here.

getValue

public String getValue()
Returns the value of the format parameter we are representing here.

Returns:
the value of the format parameter we are representing here.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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