public static final class BearerCapability.ITU_T.Ericsson extends AbstractLazyEncodedByteArray
The API offered by this class is as if the type were specified in ASN.1 as follows.
Ericsson ::= SEQUENCE {
structure Structure,
configuration Configuration,
establishment Establishment,
ericsson4b Ericsson4b OPTIONAL
}
| Data Encoding - based on comment in Ericsson-INAP-CS1-Datatypes.asn | ||||||||
|---|---|---|---|---|---|---|---|---|
| 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | |
| Octet 4a | ext. 0/1 | Structure | Configuration | Establishment | ||||
| Octet 4b* | ext. 1 | Symmetry | Reverse information transfer rate | |||||
| Modifier and Type | Class and Description |
|---|---|
static class |
BearerCapability.ITU_T.Ericsson.Configuration
Ericsson Configuration constants.
|
static class |
BearerCapability.ITU_T.Ericsson.Ericsson4b
Class Ericsson4b represents the data within octet 4b of the Ericsson-specific data.
|
static class |
BearerCapability.ITU_T.Ericsson.Establishment
Ericsson Establishment constants.
|
static class |
BearerCapability.ITU_T.Ericsson.Structure
Ericsson Structure constants.
|
isDecodedencodedFIELD_ABSENT, FIELD_UNINITIALISED| Constructor and Description |
|---|
BearerCapability.ITU_T.Ericsson()
Constructs a new Ericsson object with no fields set.
|
BearerCapability.ITU_T.Ericsson(byte[] data)
Constructs a new Ericsson object from network-encoded data.
|
BearerCapability.ITU_T.Ericsson(byte[] data,
int start,
int len)
Constructs a new Ericsson object from part of network-encoded data.
|
BearerCapability.ITU_T.Ericsson(DataInput in)
Constructs a new Ericsson object from data deserialized from a stream that was written by
toStream(DataOutput). |
| Modifier and Type | Method and Description |
|---|---|
void |
checkFieldsSet()
Checks that all mandatory fields are present.
|
BearerCapability.ITU_T.Ericsson |
clone()
Constructs a copy of this object and everything reachable from it.
|
static BearerCapability.ITU_T.Ericsson |
copyOf(BearerCapability.ITU_T.Ericsson 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.
|
BearerCapability.ITU_T.Ericsson.Configuration |
getConfiguration()
Gets the value of the configuration.
|
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.
|
BearerCapability.ITU_T.Ericsson.Ericsson4b |
getEricsson4b()
Gets the value of the Ericsson-specific octet 4b data.
|
BearerCapability.ITU_T.Ericsson.Establishment |
getEstablishment()
Gets the value of the establishment.
|
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.Ericsson.Structure |
getStructure()
Gets the value of the structure.
|
boolean |
hasConfiguration()
Tests whether the field Configuration has a value.
|
boolean |
hasEricsson4b()
Tests whether the field Ericsson4b has a value.
|
boolean |
hasEstablishment()
Tests whether the field Establishment has a value.
|
boolean |
hasStructure()
Tests whether the field Structure has a value.
|
BearerCapability.ITU_T.Ericsson |
setConfiguration(BearerCapability.ITU_T.Ericsson.Configuration value)
Sets the value of the configuration.
|
BearerCapability.ITU_T.Ericsson |
setEricsson4b(BearerCapability.ITU_T.Ericsson.Ericsson4b value)
Sets the value of the Ericsson-specific octet 4b data.
|
BearerCapability.ITU_T.Ericsson |
setEstablishment(BearerCapability.ITU_T.Ericsson.Establishment value)
Sets the value of the establishment.
|
BearerCapability.ITU_T.Ericsson |
setStructure(BearerCapability.ITU_T.Ericsson.Structure value)
Sets the value of the structure.
|
void |
toStream(DataOutput out)
Serializes this object to a stream in a form suitable for reading by
BearerCapability.ITU_T.Ericsson(DataInput). |
checkDecode, checkModifyAndDecodeequals, hashCode, toStringcheckModify, isReadOnly, setReadOnlypublic BearerCapability.ITU_T.Ericsson()
public BearerCapability.ITU_T.Ericsson(byte[] data)
data - network-encoded dataNullPointerException - if data is nullpublic BearerCapability.ITU_T.Ericsson(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(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(DataInput).out - the stream to write toIOException - if an I/O error occurspublic boolean hasStructure()
throws DecodeException
DecodeException - if encoded state cannot be decodedpublic boolean hasConfiguration()
throws DecodeException
DecodeException - if encoded state cannot be decodedpublic boolean hasEstablishment()
throws DecodeException
DecodeException - if encoded state cannot be decodedpublic boolean hasEricsson4b()
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 BearerCapability.ITU_T.Ericsson.Structure getStructure() throws DecodeException
DecodeException - if encoded state cannot be decodedpublic BearerCapability.ITU_T.Ericsson.Configuration getConfiguration() throws DecodeException
DecodeException - if encoded state cannot be decodedpublic BearerCapability.ITU_T.Ericsson.Establishment getEstablishment() throws DecodeException
DecodeException - if encoded state cannot be decodedpublic BearerCapability.ITU_T.Ericsson.Ericsson4b getEricsson4b() throws DecodeException
DecodeException - if encoded state cannot be decodedpublic BearerCapability.ITU_T.Ericsson setStructure(BearerCapability.ITU_T.Ericsson.Structure value) throws IllegalStateException
value - Structure representation of the structureIllegalStateExceptionpublic BearerCapability.ITU_T.Ericsson setConfiguration(BearerCapability.ITU_T.Ericsson.Configuration value) throws IllegalStateException
value - Configuration representation of the configurationIllegalStateExceptionpublic BearerCapability.ITU_T.Ericsson setEstablishment(BearerCapability.ITU_T.Ericsson.Establishment value) throws IllegalStateException
value - Establishment representation of the establishmentIllegalStateExceptionpublic BearerCapability.ITU_T.Ericsson setEricsson4b(BearerCapability.ITU_T.Ericsson.Ericsson4b value) throws IllegalStateException
value - Ericsson4b representation of the Ericsson-specific octet 4b dataIllegalStateExceptionpublic static BearerCapability.ITU_T.Ericsson copyOf(BearerCapability.ITU_T.Ericsson from)
from - the object from which to copypublic BearerCapability.ITU_T.Ericsson 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.
If the encoded value ends with a filling field,
then the given len is returned.
If the encoded value is so currupt that its length cannot be determined,
then 0 is returned.data - network-encoded datastart - index into data where value commenceslen - length in data to be consideredNullPointerException - if data is nullprotected void encode()
throws EncodeException
encode in class AbstractLazyEncodedDataObject<byte[]>EncodeException - if any mandatory field is out of rangeprotected void decode()
decode in class AbstractLazyEncodedDataObject<byte[]>