Class JingleContent
- java.lang.Object
-
- org.jivesoftware.smackx.jingleold.packet.JingleContent
-
- All Implemented Interfaces:
Element,ExtensionElement,FullyQualifiedElement,NamedElement,XmlLangElement
public class JingleContent extends java.lang.Object implements ExtensionElement
Jingle content.
-
-
Constructor Summary
Constructors Constructor Description JingleContent(java.lang.String creator, java.lang.String name)Creates a content description.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddJingleTransport(JingleTransport transport)Adds a JingleTransport type to the packet.voidaddTransports(java.util.List<JingleTransport> transports)Adds a list of transports to add to the packet.java.lang.StringgetCreator()JingleDescriptiongetDescription()Gets the description for this Jingle content.java.lang.StringgetElementName()Returns the XML element name of the element.java.util.Iterator<JingleTransport>getJingleTransports()Returns an Iterator for the JingleTransports in the packet.intgetJingleTransportsCount()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.StringgetName()java.lang.StringgetNamespace()Return the namespace.voidsetDescription(JingleDescription description)Sets the description for this Jingle content.java.lang.StringtoXML(XmlEnvironment enclosingNamespace)Convert a Jingle description to XML.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
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.- Parameters:
creator- the creator.name- the name.
-
-
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.- Specified by:
getElementNamein interfaceNamedElement- Returns:
- the XML element name of the element.
-
getNamespace
public java.lang.String getNamespace()
Return the namespace.- Specified by:
getNamespacein interfaceFullyQualifiedElement- Returns:
- The namespace
-
setDescription
public void setDescription(JingleDescription description)
Sets the description for this Jingle content.- Parameters:
description- TODO javadoc me please 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- TODO javadoc me please the JingleTransport to add.
-
addTransports
public void addTransports(java.util.List<JingleTransport> transports)
Adds a list of transports to add to the packet.- Parameters:
transports- TODO javadoc me please 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(XmlEnvironment enclosingNamespace)
Convert a Jingle description to XML.
-
-