public class JingleContent
extends java.lang.Object
implements org.jivesoftware.smack.packet.ExtensionElement
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CREATOR |
static java.lang.String |
NAME |
static java.lang.String |
NODENAME |
| Constructor and Description |
|---|
JingleContent(java.lang.String creator,
java.lang.String name)
Creates a content description.
|
| Modifier and Type | Method and Description |
|---|---|
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(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
Convert a Jingle description to XML.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final java.lang.String NODENAME
public static final java.lang.String CREATOR
public static final java.lang.String NAME
public JingleContent(java.lang.String creator,
java.lang.String name)
creator - the creator.name - the name.public java.lang.String getCreator()
public java.lang.String getName()
public java.lang.String getElementName()
getElementName in interface org.jivesoftware.smack.packet.NamedElementpublic java.lang.String getNamespace()
getNamespace in interface org.jivesoftware.smack.packet.FullyQualifiedElementpublic void setDescription(JingleDescription description)
description - TODO javadoc me please
The descriptionpublic JingleDescription getDescription()
public void addJingleTransport(JingleTransport transport)
transport - TODO javadoc me please
the JingleTransport to add.public void addTransports(java.util.List<JingleTransport> transports)
transports - TODO javadoc me please
the transports to add.public java.util.Iterator<JingleTransport> getJingleTransports()
public java.util.List<JingleTransport> getJingleTransportsList()
public int getJingleTransportsCount()
public java.lang.String toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
toXML in interface org.jivesoftware.smack.packet.Element