public static final class BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110 extends AbstractLazyEncodedNamedInteger<BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110.EncodedValue>
The API offered by this class is as if the type were specified in ASN.1 as follows.
V110 ::= SEQUENCE {
intermediateRate IntermediateRate,
networkIndependentClockOnTransmit NetworkIndependentClockOnTransmit,
networkIndependentClockOnReceive NetworkIndependentClockOnReceive,
flowControlOnTransmit FlowControlOnTransmit,
flowControlOnReceive FlowControlOnReceive
}
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 ITU-T Q.931 (05/98) §4.5.5 p58 | ||||||||
|---|---|---|---|---|---|---|---|---|
| 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | |
| Octet 5b | 0 | Intermediate rate | NIC on Tx | NIC on Rx | Flow control on Tx | Flow control on Rx | Spare (0) | |
isDecodedencodedFIELD_ABSENT, FIELD_UNINITIALISEDcheckDecode, checkModifyAndDecodeequals, hashCode, toStringcheckModify, isReadOnly, setReadOnlypublic BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110()
public BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110(byte[] data)
data - network-encoded dataNullPointerException - if data is nullpublic BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110(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 BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110(BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110.IntermediateRate intermediateRate, BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110.NetworkIndependentClockOnTransmit networkIndependentClockOnTransmit, BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110.NetworkIndependentClockOnReceive networkIndependentClockOnReceive, BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110.FlowControlOnTransmit flowControlOnTransmit, BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110.FlowControlOnReceive flowControlOnReceive)
intermediateRate - the intermediate ratenetworkIndependentClockOnTransmit - whether required to send data with network independent clocknetworkIndependentClockOnReceive - whether can accept data with network independent clockflowControlOnTransmit - whether required to send data with flow control mechanismflowControlOnReceive - whether can accept data with flow control mechanismpublic BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110(int arg)
arg - intpublic BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110(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
BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110(DataInput).out - the stream to write toIOException - if an I/O error occurspublic boolean hasIntermediateRate()
throws DecodeException
DecodeException - if encoded state cannot be decodedpublic boolean hasNetworkIndependentClockOnTransmit()
throws DecodeException
DecodeException - if encoded state cannot be decodedpublic boolean hasNetworkIndependentClockOnReceive()
throws DecodeException
DecodeException - if encoded state cannot be decodedpublic boolean hasFlowControlOnTransmit()
throws DecodeException
DecodeException - if encoded state cannot be decodedpublic boolean hasFlowControlOnReceive()
throws DecodeException
DecodeException - if encoded state cannot be decodedpublic void checkFieldsSet()
throws EncodeException
checkFieldsSet in class AbstractLazyEncodedDataObject<BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110.EncodedValue>EncodeException - if any mandatory field is not presentpublic BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110.IntermediateRate getIntermediateRate() throws DecodeException
DecodeException - if encoded state cannot be decodedpublic BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110.NetworkIndependentClockOnTransmit getNetworkIndependentClockOnTransmit() throws DecodeException
DecodeException - if encoded state cannot be decodedpublic BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110.NetworkIndependentClockOnReceive getNetworkIndependentClockOnReceive() throws DecodeException
DecodeException - if encoded state cannot be decodedpublic BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110.FlowControlOnTransmit getFlowControlOnTransmit() throws DecodeException
DecodeException - if encoded state cannot be decodedpublic BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110.FlowControlOnReceive getFlowControlOnReceive() throws DecodeException
DecodeException - if encoded state cannot be decodedpublic BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110 setIntermediateRate(BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110.IntermediateRate value) throws IllegalStateException
value - IntermediateRate representation of the intermediate rateIllegalStateExceptionpublic BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110 setNetworkIndependentClockOnTransmit(BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110.NetworkIndependentClockOnTransmit value) throws IllegalStateException
value - NetworkIndependentClockOnTransmit representation of whether required to send data with network independent clockIllegalStateExceptionpublic BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110 setNetworkIndependentClockOnReceive(BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110.NetworkIndependentClockOnReceive value) throws IllegalStateException
value - NetworkIndependentClockOnReceive representation of whether can accept data with network independent clockIllegalStateExceptionpublic BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110 setFlowControlOnTransmit(BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110.FlowControlOnTransmit value) throws IllegalStateException
value - FlowControlOnTransmit representation of whether required to send data with flow control mechanismIllegalStateExceptionpublic BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110 setFlowControlOnReceive(BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110.FlowControlOnReceive value) throws IllegalStateException
value - FlowControlOnReceive representation of whether can accept data with flow control mechanismIllegalStateExceptionpublic static BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110 copyOf(BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110 from)
from - the object from which to copypublic BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110 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 BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110.EncodedValue getEncodedForm() throws EncodeException
EncodeException - if encoding failspublic byte[] getByteArrayForm()
throws EncodeException
EncodeException - if encoding failsprotected BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110.EncodedValue fromValue(int value)
fromValue in class AbstractLazyEncodedNamedInteger<BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110.EncodedValue>value - intprotected void encode()
throws EncodeException
encode in class AbstractLazyEncodedDataObject<BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110.EncodedValue>EncodeException - if IntermediateRate is not in range [1,3]protected void decode()
throws DecodeException
decode in class AbstractLazyEncodedDataObject<BearerCapability.ITU_T.Layer1Capability.Details.UnrestrictedDigital.V110.EncodedValue>DecodeException - if decoding fails