Methods Summary |
---|
public java.lang.Object | clone()Copies the current instance.
ProtoVersionField retval = new ProtoVersionField();
retval.protoVersion = this.protoVersion;
return retval;
|
public java.lang.String | encode()Gets the string encoded version of this object.
return PROTO_VERSION_FIELD + protoVersion + Separators.NEWLINE;
|
public int | getProtoVersion()Gets the protocol version number.
return protoVersion;
|
public int | getVersion()Returns the version number.
return getProtoVersion();
|
public void | setProtoVersion(int pv)Sets the protocol version member.
protoVersion = pv;
|
public void | setVersion(int value)Sets the version number.
if (value < 0)
throw new SdpException("The value is < 0");
else setProtoVersion(value);
|