public class AttributeField extends SDPField implements Attribute
| Modifier and Type | Field and Description |
|---|---|
protected NameValue |
attribute |
CORE_PACKAGE, SDPFIELDS_PACKAGEAND, AT, COLON, COMMA, DOT, DOUBLE_QUOTE, EQUALS, GREATER_THAN, HT, immutableClasses, indentation, LESS_THAN, LPAREN, matchExpression, NEWLINE, PERCENT, POUND, QUESTION, QUOTE, RETURN, RPAREN, SEMICOLON, SLASH, SP, STAR, stringRepresentationATTRIBUTE_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 and Description |
|---|
AttributeField() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
NameValue |
getAttribute() |
String |
getName()
Returns the name of this attribute
|
String |
getValue()
Returns the value of this attribute.
|
int |
hashCode() |
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.
|
void |
setValueAllowNull(String value)
Allow for null value when setting the value.
|
String |
toString() |
getFieldName, getTypeChardbgPrint, debugDump, getStringRepresentation, initSprint, match, sprintdbgPrint, dbgPrint, debugDump, encode, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprintfinalize, getClass, notify, notifyAll, wait, wait, waitgetTypeCharprotected NameValue attribute
public NameValue getAttribute()
public void setAttribute(NameValue a)
public String encode()
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 nullpublic 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 valueSdpException - if the value is null.public void setValueAllowNull(String value)
value - -- can be null.public Object clone()
GenericObjectclone in interface Fieldclone in class GenericObjectpublic boolean equals(Object that)
SDPObjectCopyright © 2018. All Rights Reserved.