|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jivesoftware.smackx.jingle.media.PayloadType
public class PayloadType
Represents a payload type.
| Nested Class Summary | |
|---|---|
static class |
PayloadType.Audio
Audio payload type. |
| Field Summary | |
|---|---|
static int |
INVALID_PT
|
static int |
MAX_FIXED_PT
|
static java.lang.String |
NODENAME
|
| Constructor Summary | |
|---|---|
PayloadType()
Default constructor. |
|
PayloadType(int id,
java.lang.String name)
Constructor with Id and name |
|
PayloadType(int id,
java.lang.String name,
int channels)
Constructor with Id, name and number of channels |
|
PayloadType(PayloadType pt)
Copy constructor |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
int |
getChannels()
Get the number of channels used by this payload type. |
static java.lang.String |
getElementName()
Returns the XML element name of the element. |
int |
getId()
Get the ID. |
java.lang.String |
getName()
Get the printable name. |
int |
hashCode()
|
boolean |
isNull()
Return true if the Payload type is not valid |
void |
setChannels(int channels)
Set the numer of channels for a payload type. |
void |
setId(int id)
Set the ID. |
void |
setName(java.lang.String name)
Set the printable name. |
java.lang.String |
toXML()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NODENAME
public static int MAX_FIXED_PT
public static int INVALID_PT
| Constructor Detail |
|---|
public PayloadType(int id,
java.lang.String name,
int channels)
id - The identifiername - A namechannels - The number of channelspublic PayloadType()
public PayloadType(int id,
java.lang.String name)
id - The identificationname - A namepublic PayloadType(PayloadType pt)
pt - The other payload type.| Method Detail |
|---|
public int getId()
public void setId(int id)
id - IDpublic java.lang.String getName()
public void setName(java.lang.String name)
name - the printable namepublic int getChannels()
public void setChannels(int channels)
channels - The number of channelspublic boolean isNull()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic static java.lang.String getElementName()
public java.lang.String toXML()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||