|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Attribute
An Attribute represents an a= fields contained within either a MediaDescription or a SessionDescription. An Attribute can be just an identity/name or a name-value pair. Here are some examples: a=recvonly identifies a rcvonly attribute with just a name a=rtpmap:0 PCMU/8000 identifies the media format 0 has having the value PCMU/8000. If a value is present, it must be preceeded by the : character.
| Method Summary | |
|---|---|
String |
getName()
Returns the name of this attribute |
String |
getValue()
Returns the value of this attribute. |
boolean |
hasValue()
Determines if this attribute has an associated value. |
void |
setName(String name)
Sets the id of this attribute. |
void |
setValue(String value)
Sets the value of this attribute. |
| Methods inherited from interface org.lastbamboo.common.sdp.api.Field |
|---|
clone, getTypeChar |
| Method Detail |
|---|
String getName()
throws SdpParseException
SdpParseException - if the name is not well formatted.
void setName(String name)
throws SdpException
name - the string name/id of the attribute.
SdpException - if the name is null
boolean hasValue()
throws SdpParseException
SdpParseException - if the value is not well formatted.
String getValue()
throws SdpParseException
SdpParseException - if the value is not well formatted.
void setValue(String value)
throws SdpException
value - the - attribute value
SdpException - if the value is null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||