public class KeyField extends SDPField implements Key
| Modifier and Type | Field and Description |
|---|---|
protected String |
keyData |
protected String |
type |
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 |
|---|
KeyField() |
| Modifier and Type | Method and Description |
|---|---|
String |
encode()
Get the string encoded version of this object
|
String |
getKey()
Returns the value of this attribute.
|
String |
getKeyData() |
String |
getMethod()
Returns the name of this attribute
|
String |
getType() |
boolean |
hasKey()
Determines if this attribute has an associated value.
|
void |
setKey(String key)
Sets the value of this attribute.
|
void |
setKeyData(String k)
Set the keyData member
|
void |
setMethod(String name)
Sets the id of this attribute.
|
void |
setType(String t)
Set the type member
|
getFieldName, getTypeChar, toStringdbgPrint, debugDump, equals, getStringRepresentation, initSprint, match, sprintclone, dbgPrint, dbgPrint, debugDump, encode, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprintfinalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclone, getTypeCharpublic String getType()
public String getKeyData()
public void setType(String t)
public void setKeyData(String k)
public String encode()
public String getMethod() throws SdpParseException
getMethod in interface KeySdpParseExceptionpublic void setMethod(String name) throws SdpException
setMethod in interface Keyname - to setSdpException - if the name is nullpublic boolean hasKey()
throws SdpParseException
hasKey in interface KeySdpParseExceptionpublic String getKey() throws SdpParseException
getKey in interface KeySdpParseExceptionpublic void setKey(String key) throws SdpException
setKey in interface Keykey - to setSdpException - if key is nullCopyright © 2014. All Rights Reserved.