public final class GSMSupplementaryServiceList extends AbstractLazyEncodedByteArray implements FastSerializable
The API offered by this class is as if the type were specified in ASN.1 as follows.
GSMSupplementaryServiceList ::= SEQUENCE { aoCC AoCC, aoCI AoCI, oDB ODB, bIC-Roam BIC_Roam, bAIC BAIC, bOIC-exHC BOIC_ExHC, bOIC BOIC, bAOC BAOC, cOLR COLR, cOLP COLP, cLIR CLIR, cLIP CLIP, cFNRc CFNRc, cFNRy CFNRy, cFB CFB, cFU CFU, cD CD, cUG CUG, mPTY MPTY, hOLD HOLD, cW CW }
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 Nokia INAP Issue 6-0 ASN.1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | ||
Octet 1 | AoCC | AoCI | ODB | BIC_Roam | BAIC | BOIC_ExHC | BOIC | BAOC | |
Octet 2 | COLR | COLP | CLIR | CLIP | CFNRc | CNFRy | FCFB | CFU | |
Octet 3 | Spare | Spare | Spare | CD | CUG | MPTY | HOLD | CW |
Modifier and Type | Class and Description |
---|---|
static class |
GSMSupplementaryServiceList.AoCC
GSMSupplementaryServiceList AoCC constants.
|
static class |
GSMSupplementaryServiceList.AoCI
GSMSupplementaryServiceList AoCI constants.
|
static class |
GSMSupplementaryServiceList.BAIC
GSMSupplementaryServiceList BAIC constants.
|
static class |
GSMSupplementaryServiceList.BAOC
GSMSupplementaryServiceList BAOC constants.
|
static class |
GSMSupplementaryServiceList.BIC_Roam
GSMSupplementaryServiceList BIC_Roam constants.
|
static class |
GSMSupplementaryServiceList.BOIC
GSMSupplementaryServiceList BOIC constants.
|
static class |
GSMSupplementaryServiceList.BOIC_ExHC
GSMSupplementaryServiceList BOIC_ExHC constants.
|
static class |
GSMSupplementaryServiceList.CD
GSMSupplementaryServiceList CD constants.
|
static class |
GSMSupplementaryServiceList.CFB
GSMSupplementaryServiceList CFB constants.
|
static class |
GSMSupplementaryServiceList.CFNRc
GSMSupplementaryServiceList CFNRc constants.
|
static class |
GSMSupplementaryServiceList.CFNRy
GSMSupplementaryServiceList CFNRy constants.
|
static class |
GSMSupplementaryServiceList.CFU
GSMSupplementaryServiceList CFU constants.
|
static class |
GSMSupplementaryServiceList.CLIP
GSMSupplementaryServiceList CLIP constants.
|
static class |
GSMSupplementaryServiceList.CLIR
GSMSupplementaryServiceList CLIR constants.
|
static class |
GSMSupplementaryServiceList.COLP
GSMSupplementaryServiceList COLP constants.
|
static class |
GSMSupplementaryServiceList.COLR
GSMSupplementaryServiceList COLR constants.
|
static class |
GSMSupplementaryServiceList.CUG
GSMSupplementaryServiceList CUG constants.
|
static class |
GSMSupplementaryServiceList.CW
GSMSupplementaryServiceList CW constants.
|
static class |
GSMSupplementaryServiceList.HOLD
GSMSupplementaryServiceList HOLD constants.
|
static class |
GSMSupplementaryServiceList.MPTY
GSMSupplementaryServiceList MPTY constants.
|
static class |
GSMSupplementaryServiceList.ODB
GSMSupplementaryServiceList ODB constants.
|
isDecoded
encoded
FIELD_ABSENT, FIELD_UNINITIALISED
Modifier and Type | Method and Description |
---|---|
void |
checkFieldsSet()
Checks that all mandatory fields are present.
|
GSMSupplementaryServiceList |
clone()
Constructs a copy of this object and everything reachable from it.
|
static GSMSupplementaryServiceList |
copyOf(GSMSupplementaryServiceList 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.
|
GSMSupplementaryServiceList.AoCC |
getAoCC()
Gets the value of the AoCC.
|
GSMSupplementaryServiceList.AoCI |
getAoCI()
Gets the value of the AoCI.
|
GSMSupplementaryServiceList.BAIC |
getBAIC()
Gets the value of the BAIC.
|
GSMSupplementaryServiceList.BAOC |
getBAOC()
Gets the value of the BAOC.
|
GSMSupplementaryServiceList.BIC_Roam |
getBIC_Roam()
Gets the value of the BIC-Roam.
|
GSMSupplementaryServiceList.BOIC_ExHC |
getBOIC_ExHC()
Gets the value of the BOIC_ExHC.
|
GSMSupplementaryServiceList.BOIC |
getBOIC()
Gets the value of the BOIC.
|
GSMSupplementaryServiceList.CD |
getCD()
Gets the value of the CD.
|
GSMSupplementaryServiceList.CFB |
getCFB()
Gets the value of the CFB.
|
GSMSupplementaryServiceList.CFNRc |
getCFNRc()
Gets the value of the CFNRc.
|
GSMSupplementaryServiceList.CFNRy |
getCFNRy()
Gets the value of the CFNRy.
|
GSMSupplementaryServiceList.CFU |
getCFU()
Gets the value of the CFU.
|
GSMSupplementaryServiceList.CLIP |
getCLIP()
Gets the value of the CLIP.
|
GSMSupplementaryServiceList.CLIR |
getCLIR()
Gets the value of the CLIR.
|
GSMSupplementaryServiceList.COLP |
getCOLP()
Gets the value of the COLP.
|
GSMSupplementaryServiceList.COLR |
getCOLR()
Gets the value of the COLR.
|
GSMSupplementaryServiceList.CUG |
getCUG()
Gets the value of the CUG.
|
GSMSupplementaryServiceList.CW |
getCW()
Gets the value of the CW.
|
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.
|
GSMSupplementaryServiceList.HOLD |
getHOLD()
Gets the value of the HOLD.
|
GSMSupplementaryServiceList.MPTY |
getMPTY()
Gets the value of the MPTY.
|
GSMSupplementaryServiceList.ODB |
getODB()
Gets the value of the ODB.
|
boolean |
hasAoCC()
Tests whether the field AoCC has a value.
|
boolean |
hasAoCI()
Tests whether the field AoCI has a value.
|
boolean |
hasBAIC()
Tests whether the field BAIC has a value.
|
boolean |
hasBAOC()
Tests whether the field BAOC has a value.
|
boolean |
hasBIC_Roam()
Tests whether the field BIC_Roam has a value.
|
boolean |
hasBOIC_ExHC()
Tests whether the field BOIC_ExHC has a value.
|
boolean |
hasBOIC()
Tests whether the field BOIC has a value.
|
boolean |
hasCD()
Tests whether the field CD has a value.
|
boolean |
hasCFB()
Tests whether the field CFB has a value.
|
boolean |
hasCFNRc()
Tests whether the field CFNRc has a value.
|
boolean |
hasCFNRy()
Tests whether the field CFNRy has a value.
|
boolean |
hasCFU()
Tests whether the field CFU has a value.
|
boolean |
hasCLIP()
Tests whether the field CLIP has a value.
|
boolean |
hasCLIR()
Tests whether the field CLIR has a value.
|
boolean |
hasCOLP()
Tests whether the field COLP has a value.
|
boolean |
hasCOLR()
Tests whether the field COLR has a value.
|
boolean |
hasCUG()
Tests whether the field CUG has a value.
|
boolean |
hasCW()
Tests whether the field CW has a value.
|
boolean |
hasHOLD()
Tests whether the field HOLD has a value.
|
boolean |
hasMPTY()
Tests whether the field MPTY has a value.
|
boolean |
hasODB()
Tests whether the field ODB has a value.
|
GSMSupplementaryServiceList |
setAoCC(GSMSupplementaryServiceList.AoCC value)
Sets the value of the AoCC.
|
GSMSupplementaryServiceList |
setAoCI(GSMSupplementaryServiceList.AoCI value)
Sets the value of the AoCI.
|
GSMSupplementaryServiceList |
setBAIC(GSMSupplementaryServiceList.BAIC value)
Sets the value of the BAIC.
|
GSMSupplementaryServiceList |
setBAOC(GSMSupplementaryServiceList.BAOC value)
Sets the value of the BAOC.
|
GSMSupplementaryServiceList |
setBIC_Roam(GSMSupplementaryServiceList.BIC_Roam value)
Sets the value of the BIC-Roam.
|
GSMSupplementaryServiceList |
setBOIC_ExHC(GSMSupplementaryServiceList.BOIC_ExHC value)
Sets the value of the BOIC_ExHC.
|
GSMSupplementaryServiceList |
setBOIC(GSMSupplementaryServiceList.BOIC value)
Sets the value of the BOIC.
|
GSMSupplementaryServiceList |
setCD(GSMSupplementaryServiceList.CD value)
Sets the value of the CD.
|
GSMSupplementaryServiceList |
setCFB(GSMSupplementaryServiceList.CFB value)
Sets the value of the CFB.
|
GSMSupplementaryServiceList |
setCFNRc(GSMSupplementaryServiceList.CFNRc value)
Sets the value of the CFNRc.
|
GSMSupplementaryServiceList |
setCFNRy(GSMSupplementaryServiceList.CFNRy value)
Sets the value of the CFNRy.
|
GSMSupplementaryServiceList |
setCFU(GSMSupplementaryServiceList.CFU value)
Sets the value of the CFU.
|
GSMSupplementaryServiceList |
setCLIP(GSMSupplementaryServiceList.CLIP value)
Sets the value of the CLIP.
|
GSMSupplementaryServiceList |
setCLIR(GSMSupplementaryServiceList.CLIR value)
Sets the value of the CLIR.
|
GSMSupplementaryServiceList |
setCOLP(GSMSupplementaryServiceList.COLP value)
Sets the value of the COLP.
|
GSMSupplementaryServiceList |
setCOLR(GSMSupplementaryServiceList.COLR value)
Sets the value of the COLR.
|
GSMSupplementaryServiceList |
setCUG(GSMSupplementaryServiceList.CUG value)
Sets the value of the CUG.
|
GSMSupplementaryServiceList |
setCW(GSMSupplementaryServiceList.CW value)
Sets the value of the CW.
|
GSMSupplementaryServiceList |
setHOLD(GSMSupplementaryServiceList.HOLD value)
Sets the value of the HOLD.
|
GSMSupplementaryServiceList |
setMPTY(GSMSupplementaryServiceList.MPTY value)
Sets the value of the MPTY.
|
GSMSupplementaryServiceList |
setODB(GSMSupplementaryServiceList.ODB value)
Sets the value of the ODB.
|
void |
toStream(DataOutput out)
Serializes this object to a stream in a form suitable for reading by
GSMSupplementaryServiceList(DataInput) . |
checkDecode, checkModifyAndDecode
equals, hashCode, toString
checkModify, isReadOnly, setReadOnly
public GSMSupplementaryServiceList()
public GSMSupplementaryServiceList(byte[] data)
data
- network-encoded dataNullPointerException
- if data is nullpublic GSMSupplementaryServiceList(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 GSMSupplementaryServiceList(GSMSupplementaryServiceList.AoCC aoCC, GSMSupplementaryServiceList.AoCI aoCI, GSMSupplementaryServiceList.ODB oDB, GSMSupplementaryServiceList.BIC_Roam bIC_Roam, GSMSupplementaryServiceList.BAIC bAIC, GSMSupplementaryServiceList.BOIC_ExHC bOIC_ExHC, GSMSupplementaryServiceList.BOIC bOIC, GSMSupplementaryServiceList.BAOC bAOC, GSMSupplementaryServiceList.COLR cOLR, GSMSupplementaryServiceList.COLP cOLP, GSMSupplementaryServiceList.CLIR cLIR, GSMSupplementaryServiceList.CLIP cLIP, GSMSupplementaryServiceList.CFNRc cFNRc, GSMSupplementaryServiceList.CFNRy cFNRy, GSMSupplementaryServiceList.CFB cFB, GSMSupplementaryServiceList.CFU cFU, GSMSupplementaryServiceList.CD cD, GSMSupplementaryServiceList.CUG cUG, GSMSupplementaryServiceList.MPTY mPTY, GSMSupplementaryServiceList.HOLD hOLD, GSMSupplementaryServiceList.CW cW)
aoCC
- the AoCCaoCI
- the AoCIoDB
- the ODBbIC_Roam
- the BIC-RoambAIC
- the BAICbOIC_ExHC
- the BOIC_ExHCbOIC
- the BOICbAOC
- the BAOCcOLR
- the COLRcOLP
- the COLPcLIR
- the CLIRcLIP
- the CLIPcFNRc
- the CFNRccFNRy
- the CFNRycFB
- the CFBcFU
- the CFUcD
- the CDcUG
- the CUGmPTY
- the MPTYhOLD
- the HOLDcW
- the CWpublic GSMSupplementaryServiceList(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
GSMSupplementaryServiceList(DataInput)
.toStream
in interface FastSerializable
out
- the stream to write toIOException
- if an I/O error occurspublic boolean hasAoCC() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic boolean hasAoCI() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic boolean hasODB() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic boolean hasBIC_Roam() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic boolean hasBAIC() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic boolean hasBOIC_ExHC() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic boolean hasBOIC() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic boolean hasBAOC() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic boolean hasCOLR() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic boolean hasCOLP() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic boolean hasCLIR() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic boolean hasCLIP() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic boolean hasCFNRc() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic boolean hasCFNRy() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic boolean hasCFB() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic boolean hasCFU() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic boolean hasCD() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic boolean hasCUG() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic boolean hasMPTY() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic boolean hasHOLD() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic boolean hasCW() 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 GSMSupplementaryServiceList.AoCC getAoCC() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic GSMSupplementaryServiceList.AoCI getAoCI() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic GSMSupplementaryServiceList.ODB getODB() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic GSMSupplementaryServiceList.BIC_Roam getBIC_Roam() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic GSMSupplementaryServiceList.BAIC getBAIC() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic GSMSupplementaryServiceList.BOIC_ExHC getBOIC_ExHC() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic GSMSupplementaryServiceList.BOIC getBOIC() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic GSMSupplementaryServiceList.BAOC getBAOC() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic GSMSupplementaryServiceList.COLR getCOLR() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic GSMSupplementaryServiceList.COLP getCOLP() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic GSMSupplementaryServiceList.CLIR getCLIR() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic GSMSupplementaryServiceList.CLIP getCLIP() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic GSMSupplementaryServiceList.CFNRc getCFNRc() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic GSMSupplementaryServiceList.CFNRy getCFNRy() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic GSMSupplementaryServiceList.CFB getCFB() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic GSMSupplementaryServiceList.CFU getCFU() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic GSMSupplementaryServiceList.CD getCD() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic GSMSupplementaryServiceList.CUG getCUG() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic GSMSupplementaryServiceList.MPTY getMPTY() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic GSMSupplementaryServiceList.HOLD getHOLD() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic GSMSupplementaryServiceList.CW getCW() throws DecodeException
DecodeException
- if encoded state cannot be decodedpublic GSMSupplementaryServiceList setAoCC(GSMSupplementaryServiceList.AoCC value) throws IllegalStateException
value
- AoCC representation of the AoCCIllegalStateException
public GSMSupplementaryServiceList setAoCI(GSMSupplementaryServiceList.AoCI value) throws IllegalStateException
value
- AoCI representation of the AoCIIllegalStateException
public GSMSupplementaryServiceList setODB(GSMSupplementaryServiceList.ODB value) throws IllegalStateException
value
- ODB representation of the ODBIllegalStateException
public GSMSupplementaryServiceList setBIC_Roam(GSMSupplementaryServiceList.BIC_Roam value) throws IllegalStateException
value
- BIC_Roam representation of the BIC-RoamIllegalStateException
public GSMSupplementaryServiceList setBAIC(GSMSupplementaryServiceList.BAIC value) throws IllegalStateException
value
- BAIC representation of the BAICIllegalStateException
public GSMSupplementaryServiceList setBOIC_ExHC(GSMSupplementaryServiceList.BOIC_ExHC value) throws IllegalStateException
value
- BOIC_ExHC representation of the BOIC_ExHCIllegalStateException
public GSMSupplementaryServiceList setBOIC(GSMSupplementaryServiceList.BOIC value) throws IllegalStateException
value
- BOIC representation of the BOICIllegalStateException
public GSMSupplementaryServiceList setBAOC(GSMSupplementaryServiceList.BAOC value) throws IllegalStateException
value
- BAOC representation of the BAOCIllegalStateException
public GSMSupplementaryServiceList setCOLR(GSMSupplementaryServiceList.COLR value) throws IllegalStateException
value
- COLR representation of the COLRIllegalStateException
public GSMSupplementaryServiceList setCOLP(GSMSupplementaryServiceList.COLP value) throws IllegalStateException
value
- COLP representation of the COLPIllegalStateException
public GSMSupplementaryServiceList setCLIR(GSMSupplementaryServiceList.CLIR value) throws IllegalStateException
value
- CLIR representation of the CLIRIllegalStateException
public GSMSupplementaryServiceList setCLIP(GSMSupplementaryServiceList.CLIP value) throws IllegalStateException
value
- CLIP representation of the CLIPIllegalStateException
public GSMSupplementaryServiceList setCFNRc(GSMSupplementaryServiceList.CFNRc value) throws IllegalStateException
value
- CFNRc representation of the CFNRcIllegalStateException
public GSMSupplementaryServiceList setCFNRy(GSMSupplementaryServiceList.CFNRy value) throws IllegalStateException
value
- CFNRy representation of the CFNRyIllegalStateException
public GSMSupplementaryServiceList setCFB(GSMSupplementaryServiceList.CFB value) throws IllegalStateException
value
- CFB representation of the CFBIllegalStateException
public GSMSupplementaryServiceList setCFU(GSMSupplementaryServiceList.CFU value) throws IllegalStateException
value
- CFU representation of the CFUIllegalStateException
public GSMSupplementaryServiceList setCD(GSMSupplementaryServiceList.CD value) throws IllegalStateException
value
- CD representation of the CDIllegalStateException
public GSMSupplementaryServiceList setCUG(GSMSupplementaryServiceList.CUG value) throws IllegalStateException
value
- CUG representation of the CUGIllegalStateException
public GSMSupplementaryServiceList setMPTY(GSMSupplementaryServiceList.MPTY value) throws IllegalStateException
value
- MPTY representation of the MPTYIllegalStateException
public GSMSupplementaryServiceList setHOLD(GSMSupplementaryServiceList.HOLD value) throws IllegalStateException
value
- HOLD representation of the HOLDIllegalStateException
public GSMSupplementaryServiceList setCW(GSMSupplementaryServiceList.CW value) throws IllegalStateException
value
- CW representation of the CWIllegalStateException
public static GSMSupplementaryServiceList copyOf(GSMSupplementaryServiceList from)
from
- the object from which to copypublic GSMSupplementaryServiceList clone()
clone
in interface DataObject
clone
in class AbstractDataObject
public static FieldAccessor[] getFieldAccessors()
public Map<String,Object> getFieldsMap(boolean withAbsents)
getFieldsMap
in class AbstractFieldsObject
withAbsents
- whether to put absent optional fields into Mapprotected boolean encodedIsInvalid()
public byte[] getEncodedForm() throws EncodeException
EncodeException
- if encoding failsprotected void encode() throws EncodeException
encode
in class AbstractLazyEncodedDataObject<byte[]>
EncodeException
- if any mandatory field is out of rangeprotected void decode() throws DecodeException
decode
in class AbstractLazyEncodedDataObject<byte[]>
DecodeException
- if too few or too many octets are be decoded