public static final class MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b extends AbstractLazyEncodedByteArray
The API offered by this class is as if the type were specified in ASN.1 as follows.
O5b ::= SEQUENCE {
inbandNegotiation InbandNegotiation,
assigning Assigning,
lli LLI,
mode Mode,
multiframe Multiframe,
rateAdaptHeader RateAdaptHeader
}
The class takes care of encoding the field values into a byte-array
and decoding field values from a byte-array,
the encoded representation being as tabulated below.
| Data Encoding based on 3GPP TS 24.008 v4.17.0 (2007-09) §10.5.4.5 pp343-361 | ||||||||
|---|---|---|---|---|---|---|---|---|
| 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | |
| Octet 5b* | Spare | Hdr/No Hdr | Multiframe | Mode | Logical link identifier | Assignor/ee | Inband negotiation | Spare (0) |
| Modifier and Type | Class and Description |
|---|---|
static class |
MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.Assigning
Enumeration of Assigning constants.
|
static class |
MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.InbandNegotiation
Enumeration of InbandNegotiation constants.
|
static class |
MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.LLI
Enumeration of Logical link identifier constants.
|
static class |
MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.Mode
Enumeration of Mode constants.
|
static class |
MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.Multiframe
Enumeration of Multiframe constants.
|
static class |
MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.RateAdaptHeader
Enumeration of RateAdaptHeader constants.
|
isDecodedencodedFIELD_ABSENT, FIELD_UNINITIALISED| Modifier and Type | Method and Description |
|---|---|
void |
checkFieldsSet()
Checks that all mandatory fields are present.
|
MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b |
clone()
Constructs a copy of this object and everything reachable from it.
|
static MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b |
copyOf(MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b from)
Creates a new object of this type, cloning the values of common fields from the given object of any subclass of the same base type.
|
protected void |
decode()
Computes the decoded form from the encoded form.
|
protected void |
encode()
Computes the encoded form from the decoded form.
|
protected boolean |
encodedIsInvalid()
Determines whether the encoded form is invalid.
|
MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.Assigning |
getAssigning()
Gets the value of the assignor/assignee.
|
static int |
getContainedLength(byte[] data,
int start,
int len)
Determines the length of the encoded value that commences at offset
start in the given data. |
byte[] |
getEncodedForm()
Gets the encoded form.
|
static FieldAccessor[] |
getFieldAccessors()
Gets a new array of the accessors for fields of this type.
|
Map<String,Object> |
getFieldsMap(boolean withAbsents)
Gets a Map from field-name to field-value for the fields of a sequence.
|
MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.InbandNegotiation |
getInbandNegotiation()
Gets the value of the in band/out of band negotiation.
|
MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.LLI |
getLLI()
Gets the value of the logical link identifier negotiation.
|
MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.Mode |
getMode()
Gets the value of the mode of operation.
|
MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.Multiframe |
getMultiframe()
Gets the value of the multiple frame establishment support in data link.
|
MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.RateAdaptHeader |
getRateAdaptHeader()
Gets the value of the rate adaption header/no header.
|
boolean |
hasAssigning()
Tests whether the field Assigning has a value.
|
boolean |
hasInbandNegotiation()
Tests whether the field InbandNegotiation has a value.
|
boolean |
hasLLI()
Tests whether the field LLI has a value.
|
boolean |
hasMode()
Tests whether the field Mode has a value.
|
boolean |
hasMultiframe()
Tests whether the field Multiframe has a value.
|
boolean |
hasRateAdaptHeader()
Tests whether the field RateAdaptHeader has a value.
|
MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b |
setAssigning(MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.Assigning value)
Sets the value of the assignor/assignee.
|
MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b |
setInbandNegotiation(MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.InbandNegotiation value)
Sets the value of the in band/out of band negotiation.
|
MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b |
setLLI(MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.LLI value)
Sets the value of the logical link identifier negotiation.
|
MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b |
setMode(MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.Mode value)
Sets the value of the mode of operation.
|
MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b |
setMultiframe(MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.Multiframe value)
Sets the value of the multiple frame establishment support in data link.
|
MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b |
setRateAdaptHeader(MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.RateAdaptHeader value)
Sets the value of the rate adaption header/no header.
|
void |
toStream(DataOutput out)
Serializes this object to a stream in a form suitable for reading by
MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b(DataInput). |
checkDecode, checkModifyAndDecodeequals, hashCode, toStringcheckModify, isReadOnly, setReadOnlypublic MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b()
public MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b(byte[] data)
data - network-encoded dataNullPointerException - if data is nullpublic MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b(byte[] data,
int start,
int len)
start and is len bytes long.
The data is not decoded and might not be decodable.data - network-encoded datastart - starting offset of network-encoded data in byte arraylen - default length if not predictableNullPointerException - if data is nullIllegalArgumentException - if len is negativepublic MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b(MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.InbandNegotiation inbandNegotiation, MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.Assigning assigning, MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.LLI lLI, MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.Mode mode, MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.Multiframe multiframe, MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.RateAdaptHeader rateAdaptHeader)
inbandNegotiation - the in band/out of band negotiationassigning - the assignor/assigneelLI - the logical link identifier negotiationmode - the mode of operationmultiframe - the multiple frame establishment support in data linkrateAdaptHeader - the rate adaption header/no headerpublic MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b(DataInput in) throws IOException
toStream(DataOutput).in - the stream to read fromEOFException - if reading is pre-empted by end-of-fileIOException - if the data cannot be readpublic void toStream(DataOutput out) throws IOException
MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b(DataInput).out - the stream to write toIOException - if an I/O error occurspublic boolean hasInbandNegotiation()
throws DecodeException
DecodeException - if encoded state cannot be decodedpublic boolean hasAssigning()
throws DecodeException
DecodeException - if encoded state cannot be decodedpublic boolean hasLLI()
throws DecodeException
DecodeException - if encoded state cannot be decodedpublic boolean hasMode()
throws DecodeException
DecodeException - if encoded state cannot be decodedpublic boolean hasMultiframe()
throws DecodeException
DecodeException - if encoded state cannot be decodedpublic boolean hasRateAdaptHeader()
throws DecodeException
DecodeException - if encoded state cannot be decodedpublic void checkFieldsSet()
throws EncodeException
checkFieldsSet in class AbstractLazyEncodedDataObject<byte[]>EncodeException - if any mandatory field is not presentpublic MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.InbandNegotiation getInbandNegotiation() throws DecodeException
DecodeException - if encoded state cannot be decodedpublic MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.Assigning getAssigning() throws DecodeException
DecodeException - if encoded state cannot be decodedpublic MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.LLI getLLI() throws DecodeException
DecodeException - if encoded state cannot be decodedpublic MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.Mode getMode() throws DecodeException
DecodeException - if encoded state cannot be decodedpublic MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.Multiframe getMultiframe() throws DecodeException
DecodeException - if encoded state cannot be decodedpublic MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.RateAdaptHeader getRateAdaptHeader() throws DecodeException
DecodeException - if encoded state cannot be decodedpublic MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b setInbandNegotiation(MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.InbandNegotiation value) throws IllegalStateException
value - InbandNegotiation representation of the in band/out of band negotiationIllegalStateExceptionpublic MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b setAssigning(MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.Assigning value) throws IllegalStateException
value - Assigning representation of the assignor/assigneeIllegalStateExceptionpublic MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b setLLI(MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.LLI value) throws IllegalStateException
value - LLI representation of the logical link identifier negotiationIllegalStateExceptionpublic MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b setMode(MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.Mode value) throws IllegalStateException
value - Mode representation of the mode of operationIllegalStateExceptionpublic MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b setMultiframe(MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.Multiframe value) throws IllegalStateException
value - Multiframe representation of the multiple frame establishment support in data linkIllegalStateExceptionpublic MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b setRateAdaptHeader(MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b.RateAdaptHeader value) throws IllegalStateException
value - RateAdaptHeader representation of the rate adaption header/no headerIllegalStateExceptionpublic static MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b copyOf(MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b from)
from - the object from which to copypublic MSBearerCapability.GSM.Content.NonSpeech.Access.O5a.O5b clone()
clone in interface DataObjectclone in class AbstractDataObjectpublic static FieldAccessor[] getFieldAccessors()
public Map<String,Object> getFieldsMap(boolean withAbsents)
getFieldsMap in class AbstractFieldsObjectwithAbsents - whether to put absent optional fields into Mapprotected boolean encodedIsInvalid()
public byte[] getEncodedForm()
throws EncodeException
EncodeException - if encoding failspublic static int getContainedLength(byte[] data,
int start,
int len)
start in the given data.
The value is not fully decoded and might not be decodable.
Values of this type are of a fixed length, so that length
is returned if the data is long enough, otherwise 0 is returned.data - network-encoded datastart - index into data where value commenceslen - length in data to be consideredprotected void encode()
encode in class AbstractLazyEncodedDataObject<byte[]>protected void decode()
throws DecodeException
decode in class AbstractLazyEncodedDataObject<byte[]>DecodeException - if too few or too many octets to be decoded