public class AttributeField extends SDPField implements Attribute
Modifier and Type | Field and Description |
---|---|
protected NameValue |
attribute |
CORE_PACKAGE, SDPFIELDS_PACKAGE
AND, 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, stringRepresentation
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 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, getTypeChar
dbgPrint, debugDump, getStringRepresentation, initSprint, match, sprint
dbgPrint, dbgPrint, debugDump, encode, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint
finalize, getClass, notify, notifyAll, wait, wait, wait
getTypeChar
protected NameValue attribute
public NameValue getAttribute()
public void setAttribute(NameValue a)
public String encode()
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 valueSdpException
- if the value is null.public void setValueAllowNull(String value)
value
- -- can be null.public Object clone()
GenericObject
clone
in interface Field
clone
in class GenericObject
public boolean equals(Object that)
SDPObject
Copyright © 2016. All Rights Reserved.