|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lastbamboo.common.sdp.GenericObject
org.lastbamboo.common.sdp.fields.SDPObject
org.lastbamboo.common.sdp.fields.SDPField
org.lastbamboo.common.sdp.fields.AttributeField
public class AttributeField
Attribute Field.
| Field Summary | |
|---|---|
protected NameValue |
attribute
|
| Fields inherited from class org.lastbamboo.common.sdp.fields.SDPField |
|---|
fieldName |
| Fields inherited from class org.lastbamboo.common.sdp.GenericObject |
|---|
AND, AT, COLON, COMMA, DOT, DOUBLE_QUOTE, EQUALS, GREATER_THAN, HT, immutableClasses, immutableClassNames, indentation, LESS_THAN, LPAREN, matchExpression, NEWLINE, PERCENT, POUND, QUESTION, QUOTE, RETURN, RPAREN, SEMICOLON, SLASH, SP, STAR, stringRepresentation |
| Fields inherited from interface org.lastbamboo.common.sdp.fields.SDPFieldNames |
|---|
ATTRIBUTE_FIELD, BANDWIDTH_FIELD, CONNECTION_FIELD, EMAIL_FIELD, INFORMATION_FIELD, KEY_FIELD, MEDIA_FIELD, ORIGIN_FIELD, PHONE_FIELD, PROTO_VERSION_FIELD, REPEAT_FIELD, SESSION_NAME_FIELD, TIME_FIELD, URI_FIELD, ZONE_FIELD |
| Constructor Summary | |
|---|---|
AttributeField()
|
|
| Method Summary | |
|---|---|
Object |
clone()
Clones this object. |
String |
encode()
Get the string encoded version of this object |
NameValue |
getAttribute()
|
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 |
setAttribute(NameValue a)
Set the attribute member |
void |
setName(String name)
Sets the id of this attribute. |
void |
setValue(String value)
Sets the value of this attribute. |
String |
toString()
|
| Methods inherited from class org.lastbamboo.common.sdp.fields.SDPField |
|---|
getFieldName, getTypeChar |
| Methods inherited from class org.lastbamboo.common.sdp.fields.SDPObject |
|---|
dbgPrint, debugDump, equals, getStringRepresentation, initSprint, match, merge, replace, replace, replace, replace, sprint |
| Methods inherited from class org.lastbamboo.common.sdp.GenericObject |
|---|
Assert, dbgPrint, dbgPrint, debugDump, getIndentation, getMatcher, isMySubclass, makeClone, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.lastbamboo.common.sdp.api.Field |
|---|
getTypeChar |
| Field Detail |
|---|
protected NameValue attribute
| Constructor Detail |
|---|
public AttributeField()
| Method Detail |
|---|
public NameValue getAttribute()
public void setAttribute(NameValue a)
public String encode()
encode in class SDPFieldpublic String toString()
toString in class SDPField
public String getName()
throws SdpParseException
getName in interface AttributeSdpParseException - if the name is not well formatted.
public void setName(String name)
throws SdpException
setName in interface Attributename - the string name/id of the attribute.
SdpException - if the name is null
public boolean hasValue()
throws SdpParseException
hasValue in interface AttributeSdpParseException - if the value is not well formatted.
public String getValue()
throws SdpParseException
getValue in interface AttributeSdpParseException - if the value is not well formatted.
public void setValue(String value)
throws SdpException
setValue in interface Attributevalue - the - attribute value
SdpException - if the value is null.public Object clone()
GenericObject
clone in interface Fieldclone in class GenericObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||