|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgov.nist.core.GenericObject
gov.nist.javax.sdp.fields.SDPObject
gov.nist.javax.sdp.fields.SDPField
gov.nist.javax.sdp.fields.AttributeField
Attribute Field.
| Field Summary |
| Fields inherited from interface gov.nist.javax.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()
Returns a clone of this field. |
String |
encode()
Get the string encoded version of this object |
gov.nist.core.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(gov.nist.core.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. |
void |
setValueAllowNull(String value)
Allow for null value when setting the value. |
String |
toString()
|
| Methods inherited from class gov.nist.javax.sdp.fields.SDPField |
getFieldName, getTypeChar |
| Methods inherited from class gov.nist.javax.sdp.fields.SDPObject |
dbgPrint, debugDump, equals, match |
| Methods inherited from class gov.nist.core.GenericObject |
debugDump, getClassFromName, getMatcher, isMySubclass, makeClone, merge, setMatcher |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.sdp.Field |
getTypeChar |
| Constructor Detail |
public AttributeField()
| Method Detail |
public gov.nist.core.NameValue getAttribute()
public void setAttribute(gov.nist.core.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 void setValueAllowNull(String value)
value - -- can be null.public Object clone()
Field
clone in interface Field
|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||