Class JingleContentDescription
- java.lang.Object
-
- org.jivesoftware.smackx.jingleold.packet.JingleContentDescription
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
- Direct Known Subclasses:
JingleContentDescription.Audio
public abstract class JingleContentDescription extends Object implements ExtensionElement
Jingle content description.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JingleContentDescription.Audio
Jingle audio description.static class
JingleContentDescription.JinglePayloadType
A payload type, contained in a descriptor.
-
Constructor Summary
Constructors Constructor Description JingleContentDescription()
Creates a content description..
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addAudioPayloadTypes(List<PayloadType.Audio> pts)
Adds a list of payloads to the packet.void
addJinglePayloadType(JingleContentDescription.JinglePayloadType pt)
Adds a audio payload type to the packet.ArrayList<PayloadType.Audio>
getAudioPayloadTypesList()
Return the list of Payload types contained in the description.String
getElementName()
Returns the XML element name of the element.Iterator<JingleContentDescription.JinglePayloadType>
getJinglePayloadTypes()
Returns an Iterator for the audio payloads in the packet.int
getJinglePayloadTypesCount()
Returns a count of the audio payloads in the Jingle packet.ArrayList<JingleContentDescription.JinglePayloadType>
getJinglePayloadTypesList()
Returns a list for the audio payloads in the packet.abstract String
getNamespace()
Return the namespace.String
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.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Field Detail
-
NODENAME
public static final String NODENAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JingleContentDescription
public JingleContentDescription()
Creates a content description..
-
-
Method Detail
-
getElementName
public String getElementName()
Returns the XML element name of the element.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the XML element name of the element.
-
getNamespace
public abstract String getNamespace()
Return the namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- The namespace
-
addJinglePayloadType
public void addJinglePayloadType(JingleContentDescription.JinglePayloadType pt)
Adds a audio payload type to the packet.- Parameters:
pt
- the audio payload type to add.
-
addAudioPayloadTypes
public void addAudioPayloadTypes(List<PayloadType.Audio> pts)
Adds a list of payloads to the packet.- Parameters:
pts
- the payloads to add.
-
getJinglePayloadTypes
public Iterator<JingleContentDescription.JinglePayloadType> getJinglePayloadTypes()
Returns an Iterator for the audio payloads in the packet.- Returns:
- an Iterator for the audio payloads in the packet.
-
getJinglePayloadTypesList
public ArrayList<JingleContentDescription.JinglePayloadType> getJinglePayloadTypesList()
Returns a list for the audio payloads in the packet.- Returns:
- a list for the audio payloads in the packet.
-
getAudioPayloadTypesList
public ArrayList<PayloadType.Audio> getAudioPayloadTypesList()
Return the list of Payload types contained in the description.- Returns:
- a list of PayloadType.Audio
-
getJinglePayloadTypesCount
public int getJinglePayloadTypesCount()
Returns a count of the audio payloads in the Jingle packet.- Returns:
- the number of audio payloads in the Jingle packet.
-
toXML
public String toXML(XmlEnvironment enclosingNamespace)
Convert a Jingle description to XML.
-
-