public abstract class JingleContentDescription extends Object implements ExtensionElement
Modifier and Type | Class and Description |
---|---|
static class |
JingleContentDescription.Audio
Jingle audio description.
|
static class |
JingleContentDescription.JinglePayloadType
A payload type, contained in a descriptor.
|
Constructor and Description |
---|
JingleContentDescription()
Creates a content description..
|
Modifier and Type | Method and 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(String enclosingNamespace)
Convert a Jingle description to XML.
|
public static final String NODENAME
public JingleContentDescription()
public String getElementName()
getElementName
in interface NamedElement
public abstract String getNamespace()
getNamespace
in interface ExtensionElement
public void addJinglePayloadType(JingleContentDescription.JinglePayloadType pt)
pt
- the audio payload type to add.public void addAudioPayloadTypes(List<PayloadType.Audio> pts)
pts
- the payloads to add.public Iterator<JingleContentDescription.JinglePayloadType> getJinglePayloadTypes()
public ArrayList<JingleContentDescription.JinglePayloadType> getJinglePayloadTypesList()
public ArrayList<PayloadType.Audio> getAudioPayloadTypesList()
public int getJinglePayloadTypesCount()