org.jivesoftware.smackx.packet
Class JingleContent

java.lang.Object
  extended by org.jivesoftware.smackx.packet.JingleContent

public class JingleContent
extends java.lang.Object

Jingle content.

Author:
Jeff Williams

Field Summary
static java.lang.String CREATOR
           
static java.lang.String NAME
           
static java.lang.String NODENAME
           
 
Constructor Summary
JingleContent(java.lang.String creator, java.lang.String name)
          Creates a content description..
 
Method Summary
 void addJingleTransport(JingleTransport transport)
          Adds a JingleTransport type to the packet.
 void addTransports(java.util.List<JingleTransport> transports)
          Adds a list of transports to add to the packet.
 java.lang.String getCreator()
           
 JingleDescription getDescription()
          Gets the description for this Jingle content.
 java.lang.String getElementName()
          Returns the XML element name of the element.
 java.util.Iterator<JingleTransport> getJingleTransports()
          Returns an Iterator for the JingleTransports in the packet.
 int getJingleTransportsCount()
          Returns a count of the JingleTransports in the Jingle packet.
 java.util.List<JingleTransport> getJingleTransportsList()
          Returns a list for the JingleTransports in the packet.
 java.lang.String getName()
           
 java.lang.String getNamespace()
          Return the namespace.
 void setDescription(JingleDescription description)
          Sets the description for this Jingle content.
 java.lang.String toXML()
          Convert a Jingle description to XML.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NODENAME

public static final java.lang.String NODENAME
See Also:
Constant Field Values

CREATOR

public static final java.lang.String CREATOR
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Constructor Detail

JingleContent

public JingleContent(java.lang.String creator,
                     java.lang.String name)
Creates a content description..

Method Detail

getCreator

public java.lang.String getCreator()

getName

public java.lang.String getName()

getElementName

public java.lang.String getElementName()
Returns the XML element name of the element.

Returns:
the XML element name of the element.

getNamespace

public java.lang.String getNamespace()
Return the namespace.

Returns:
The namespace

setDescription

public void setDescription(JingleDescription description)
Sets the description for this Jingle content.

Parameters:
description - The description

getDescription

public JingleDescription getDescription()
Gets the description for this Jingle content.

Returns:
The description.

addJingleTransport

public void addJingleTransport(JingleTransport transport)
Adds a JingleTransport type to the packet.

Parameters:
transport - the JignleTransport to add.

addTransports

public void addTransports(java.util.List<JingleTransport> transports)
Adds a list of transports to add to the packet.

Parameters:
transports - the transports to add.

getJingleTransports

public java.util.Iterator<JingleTransport> getJingleTransports()
Returns an Iterator for the JingleTransports in the packet.

Returns:
an Iterator for the JingleTransports in the packet.

getJingleTransportsList

public java.util.List<JingleTransport> getJingleTransportsList()
Returns a list for the JingleTransports in the packet.

Returns:
a list for the JingleTransports in the packet.

getJingleTransportsCount

public int getJingleTransportsCount()
Returns a count of the JingleTransports in the Jingle packet.

Returns:
the number of the JingleTransports in the Jingle packet.

toXML

public java.lang.String toXML()
Convert a Jingle description to XML.

Returns:
a string with the XML representation