|
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
public class 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()
Clones this object. |
String |
encode()
Get the string encoded version of this object |
boolean |
equals(Object that)
An introspection based equality predicate for SDPObjects. |
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, match |
Methods inherited from class gov.nist.core.GenericObject |
---|
debugDump, encode, 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 SDPField
public String toString()
toString
in class SDPField
public String getName() throws SdpParseException
getName
in interface Attribute
SdpParseException
- if the name is not well formatted.public void setName(String name) throws SdpException
setName
in interface Attribute
name
- the string name/id of the attribute.
SdpException
- if the name is nullpublic boolean hasValue() throws SdpParseException
hasValue
in interface Attribute
SdpParseException
- if the value is not well formatted.public String getValue() throws SdpParseException
getValue
in interface Attribute
SdpParseException
- if the value is not well formatted.public void setValue(String value) throws SdpException
setValue
in interface Attribute
value
- the - attribute value
SdpException
- if the value is null.public void setValueAllowNull(String value)
value
- -- can be null.public Object clone()
gov.nist.core.GenericObject
clone
in interface Field
clone
in class gov.nist.core.GenericObject
public boolean equals(Object that)
SDPObject
equals
in class SDPObject
that
- is the other object to test against.
|
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 |