gov.nist.javax.sdp.fields
Class ProtoVersionField
java.lang.Object
gov.nist.core.GenericObject
gov.nist.javax.sdp.fields.SDPObject
gov.nist.javax.sdp.fields.SDPField
gov.nist.javax.sdp.fields.ProtoVersionField
- All Implemented Interfaces:
- SDPFieldNames, Serializable, Cloneable, Field, Version
public class ProtoVersionField
- extends SDPField
- implements Version
Proto version field of SDP announce.
- Version:
- JSR141-PUBLIC-REVIEW (subject to change).
- Author:
- Olivier Deruelle , M. Ranganathan
- See Also:
- Serialized Form
Fields inherited from interface gov.nist.javax.sdp.fields.SDPFieldNames |
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 |
Methods inherited from class gov.nist.core.GenericObject |
clone, debugDump, encode, getClassFromName, getMatcher, isMySubclass, makeClone, merge, setMatcher |
ProtoVersionField
public ProtoVersionField()
getProtoVersion
public int getProtoVersion()
setProtoVersion
public void setProtoVersion(int pv)
- Set the protoVersion member
getVersion
public int getVersion()
throws SdpParseException
- Returns the version number.
- Specified by:
getVersion
in interface Version
- Returns:
- int
- Throws:
SdpParseException
setVersion
public void setVersion(int value)
throws SdpException
- Sets the version.
- Specified by:
setVersion
in interface Version
- Parameters:
value
- the - new version value.
- Throws:
SdpException
- if the value is <=0
encode
public String encode()
- Get the string encoded version of this object
- Specified by:
encode
in class SDPField
- Since:
- v1.0
A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Submit a bug report or feature request.