public static final class BearerCapability.ITU_T.Ericsson.Ericsson4b extends AbstractLazyEncodedNamedInteger<BearerCapability.ITU_T.Ericsson.Ericsson4b.EncodedValue>
The API offered by this class is as if the type were specified in ASN.1 as follows.
Ericsson ::= SEQUENCE {
symmetry Symmetry,
reverseTransferRate TransferRate
}
| Data Encoding - based on comment in Ericsson-INAP-CS1-Datatypes.asn | ||||||||
|---|---|---|---|---|---|---|---|---|
| 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | |
| Octet 4b | ext. 1 | Symmetry | Reverse information transfer rate | |||||
| Modifier and Type | Class and Description |
|---|---|
static class |
BearerCapability.ITU_T.Ericsson.Ericsson4b.EncodedValue
Representation of Ericsson4b values as NamedIntegers.
|
static class |
BearerCapability.ITU_T.Ericsson.Ericsson4b.Symmetry
Ericsson Symmetry constants.
|
isDecodedencodedFIELD_ABSENT, FIELD_UNINITIALISED| Constructor and Description |
|---|
BearerCapability.ITU_T.Ericsson.Ericsson4b()
Constructs a new Ericsson4b object with no fields set.
|
BearerCapability.ITU_T.Ericsson.Ericsson4b(BearerCapability.ITU_T.Ericsson.Ericsson4b.Symmetry symmetry,
BearerCapability.ITU_T.TransferRate reverseTransferRate)
Constructs a new Ericsson4b object from given values for all fields.
|
BearerCapability.ITU_T.Ericsson.Ericsson4b(byte[] data)
Constructs a new Ericsson4b object from network-encoded data.
|
BearerCapability.ITU_T.Ericsson.Ericsson4b(byte[] data,
int start,
int len)
Constructs a new Ericsson4b object from part of network-encoded data.
|
BearerCapability.ITU_T.Ericsson.Ericsson4b(DataInput in)
Constructs a new Ericsson4b object from data deserialized from a stream that was written by
toStream(DataOutput). |
BearerCapability.ITU_T.Ericsson.Ericsson4b(int arg)
Constructs a new Ericsson4b object from the given int,
making it be read-only (immutable).
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkFieldsSet()
Checks that all mandatory fields are present.
|
BearerCapability.ITU_T.Ericsson.Ericsson4b |
clone()
Constructs a copy of this object and everything reachable from it.
|
static BearerCapability.ITU_T.Ericsson.Ericsson4b |
copyOf(BearerCapability.ITU_T.Ericsson.Ericsson4b 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.
|
protected BearerCapability.ITU_T.Ericsson.Ericsson4b.EncodedValue |
fromValue(int value)
Converts an int to a NamedInteger.
|
byte[] |
getByteArrayForm()
Gets the byte array encoded form.
|
BearerCapability.ITU_T.Ericsson.Ericsson4b.EncodedValue |
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.
|
BearerCapability.ITU_T.TransferRate |
getReverseTransferRate()
Gets the value of the information transfer rate (dest -> orig).
|
BearerCapability.ITU_T.Ericsson.Ericsson4b.Symmetry |
getSymmetry()
Gets the value of the symmetry.
|
boolean |
hasReverseTransferRate()
Tests whether the field ReverseTransferRate has a value.
|
boolean |
hasSymmetry()
Tests whether the field Symmetry has a value.
|
BearerCapability.ITU_T.Ericsson.Ericsson4b |
setReverseTransferRate(BearerCapability.ITU_T.TransferRate value)
Sets the value of the information transfer rate (dest -> orig).
|
BearerCapability.ITU_T.Ericsson.Ericsson4b |
setSymmetry(BearerCapability.ITU_T.Ericsson.Ericsson4b.Symmetry value)
Sets the value of the symmetry.
|
void |
toStream(DataOutput out)
Serializes this object to a stream in a form suitable for reading by
BearerCapability.ITU_T.Ericsson.Ericsson4b(DataInput). |
checkDecode, checkModifyAndDecodeequals, hashCode, toStringcheckModify, isReadOnly, setReadOnlypublic BearerCapability.ITU_T.Ericsson.Ericsson4b()
public BearerCapability.ITU_T.Ericsson.Ericsson4b(byte[] data)
data - network-encoded dataNullPointerException - if data is nullpublic BearerCapability.ITU_T.Ericsson.Ericsson4b(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.Ericsson.Ericsson4b(BearerCapability.ITU_T.Ericsson.Ericsson4b.Symmetry symmetry, BearerCapability.ITU_T.TransferRate reverseTransferRate)
symmetry - the symmetryreverseTransferRate - the information transfer rate (dest -> orig)public BearerCapability.ITU_T.Ericsson.Ericsson4b(int arg)
arg - intpublic BearerCapability.ITU_T.Ericsson.Ericsson4b(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.Ericsson.Ericsson4b(DataInput).out - the stream to write toIOException - if an I/O error occurspublic boolean hasSymmetry()
throws DecodeException
DecodeException - if encoded state cannot be decodedpublic boolean hasReverseTransferRate()
throws DecodeException
DecodeException - if encoded state cannot be decodedpublic void checkFieldsSet()
throws EncodeException
checkFieldsSet in class AbstractLazyEncodedDataObject<BearerCapability.ITU_T.Ericsson.Ericsson4b.EncodedValue>EncodeException - if any mandatory field is not presentpublic BearerCapability.ITU_T.Ericsson.Ericsson4b.Symmetry getSymmetry() throws DecodeException
DecodeException - if encoded state cannot be decodedpublic BearerCapability.ITU_T.TransferRate getReverseTransferRate() throws DecodeException
DecodeException - if encoded state cannot be decodedpublic BearerCapability.ITU_T.Ericsson.Ericsson4b setSymmetry(BearerCapability.ITU_T.Ericsson.Ericsson4b.Symmetry value) throws IllegalStateException
value - Symmetry representation of the symmetryIllegalStateExceptionpublic BearerCapability.ITU_T.Ericsson.Ericsson4b setReverseTransferRate(BearerCapability.ITU_T.TransferRate value) throws IllegalStateException
value - TransferRate representation of the information transfer rate (dest -> orig)IllegalStateExceptionpublic static BearerCapability.ITU_T.Ericsson.Ericsson4b copyOf(BearerCapability.ITU_T.Ericsson.Ericsson4b from)
from - the object from which to copypublic BearerCapability.ITU_T.Ericsson.Ericsson4b 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.Ericsson.Ericsson4b.EncodedValue getEncodedForm() throws EncodeException
EncodeException - if encoding failspublic byte[] getByteArrayForm()
throws EncodeException
EncodeException - if encoding failsprotected BearerCapability.ITU_T.Ericsson.Ericsson4b.EncodedValue fromValue(int value)
fromValue in class AbstractLazyEncodedNamedInteger<BearerCapability.ITU_T.Ericsson.Ericsson4b.EncodedValue>value - intprotected void encode()
throws EncodeException
encode in class AbstractLazyEncodedDataObject<BearerCapability.ITU_T.Ericsson.Ericsson4b.EncodedValue>EncodeException - if field values cannot be encodedprotected void decode()
throws DecodeException
decode in class AbstractLazyEncodedDataObject<BearerCapability.ITU_T.Ericsson.Ericsson4b.EncodedValue>DecodeException - if decoding fails