Class JingleContent
java.lang.Object
org.jivesoftware.smackx.jingleold.packet.JingleContent
- All Implemented Interfaces:
Element
,ExtensionElement
,NamedElement
,XmlElement
,XmlLangElement
Jingle content.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addJingleTransport
(JingleTransport transport) Adds a JingleTransport type to the packet.void
addTransports
(List<JingleTransport> transports) Adds a list of transports to add to the packet.Gets the description for this Jingle content.Returns the XML element name of the element.Returns an Iterator for the JingleTransports in the packet.int
Returns a count of the JingleTransports in the Jingle packet.Returns a list for the JingleTransports in the packet.getName()
Return the namespace.void
setDescription
(JingleDescription description) Sets the description for this Jingle content.toXML
(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.XmlElement
getLanguage, getQName
-
Field Details
-
NODENAME
- See Also:
-
CREATOR
- See Also:
-
NAME
- See Also:
-
-
Constructor Details
-
JingleContent
Creates a content description.- Parameters:
creator
- the creator.name
- the name.
-
-
Method Details
-
getCreator
-
getName
-
getElementName
Returns the XML element name of the element.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the XML element name of the element.
-
getNamespace
Return the namespace.- Specified by:
getNamespace
in interfaceXmlElement
- Returns:
- The namespace
-
setDescription
Sets the description for this Jingle content.- Parameters:
description
- TODO javadoc me please The description
-
getDescription
Gets the description for this Jingle content.- Returns:
- The description.
-
addJingleTransport
Adds a JingleTransport type to the packet.- Parameters:
transport
- TODO javadoc me please the JingleTransport to add.
-
addTransports
Adds a list of transports to add to the packet.- Parameters:
transports
- TODO javadoc me please the transports to add.
-
getJingleTransports
Returns an Iterator for the JingleTransports in the packet.- Returns:
- an Iterator for the JingleTransports in the packet.
-
getJingleTransportsList
Returns a list for the JingleTransports in the packet.- Returns:
- a list for the JingleTransports in the packet.
-
getJingleTransportsCount
Returns a count of the JingleTransports in the Jingle packet.- Returns:
- the number of the JingleTransports in the Jingle packet.
-
toXML
Convert a Jingle description to XML.
-