public class ProtoVersionField extends SDPField implements Version
Modifier and Type | Field and Description |
---|---|
protected int |
protoVersion |
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 |
---|
ProtoVersionField() |
Modifier and Type | Method and Description |
---|---|
String |
encode()
Get the string encoded version of this object
|
int |
getProtoVersion() |
int |
getVersion()
Returns the version number.
|
void |
setProtoVersion(int pv)
Set the protoVersion member
|
void |
setVersion(int value)
Sets the version.
|
getFieldName, getTypeChar, toString
dbgPrint, debugDump, equals, getStringRepresentation, initSprint, match, sprint
clone, dbgPrint, dbgPrint, debugDump, encode, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clone, getTypeChar
public int getProtoVersion()
public void setProtoVersion(int pv)
public int getVersion() throws SdpParseException
getVersion
in interface Version
SdpParseException
public void setVersion(int value) throws SdpException
setVersion
in interface Version
value
- the - new version value.SdpException
- if the value is <=0Copyright © 2016. All Rights Reserved.