Class MSClassmark.MSClassmark2
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- com.opencloud.util.AbstractFieldsObject
-
- AbstractEncodedDataObject<T>
-
- AbstractLazyEncodedDataObject<byte[]>
-
- AbstractLazyEncodedByteArray
-
- com.opencloud.slee.resources.in.datatypes.cc.MSClassmark.MSClassmark2
-
- All Implemented Interfaces:
DataObject
,FastSerializable
,Serializable
- Enclosing class:
- MSClassmark
public static final class MSClassmark.MSClassmark2 extends AbstractLazyEncodedByteArray implements FastSerializable
Class MSClassmark2 provides the network with information concerning aspects of high priority of the mobile station equipment, coded in MSClassmark2 format.The API offered by this class is as if the type were specified in ASN.1 as follows.
MSClassmark2 ::= SEQUENCE { iEI INTEGER, revisionLevel RevisionLevel, esIndicator ESIndicator, a51Algorithm A51Algorithm, rfPowerCapability RFPowerCapability, psCapability PSCapability, ssScreeningIndicator SSScreeningIndicator, smCapability SMCapability, vbs VBS, vgcs VGCS, frequencyCapability FrequencyCapability, cm3 CM3, ucs2Treatment UCS2Treatment OPTIONAL, lcsVACapability LCSVACapability, soLSA SoLSA, cmServicePrompt CMServicePrompt, a53Algorithm A53Algorithm, a52Algorithm A52Algorithm }
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 GSM 24.008 v9.3.0 8 7 6 5 4 3 2 1 Octet 1 0 IEI Octet 2 Length Octet 3 0 Revision Level ES A5/1 RF Octet 4 0 PS SS Screening SM VBS VGCS Frequency Cap. Octet 5 CM3 0 LCSVA UCS2 SoLSA CMSP A5/3 A5/2 - See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MSClassmark.MSClassmark2.A51Algorithm
MSClassmark2 A5/1 Algorithm constants.static class
MSClassmark.MSClassmark2.A52Algorithm
MSClassmark2 A5/2 Algorithm constants.static class
MSClassmark.MSClassmark2.A53Algorithm
MSClassmark2 A5/3 Algorithm constants.static class
MSClassmark.MSClassmark2.CM3
MSClassmark2 CM3 constants.static class
MSClassmark.MSClassmark2.CMServicePrompt
MSClassmask2 CM Service Prompt constants.static class
MSClassmark.MSClassmark2.ESIndicator
MSClassmark2 Controlled Early Classmark Sending Indicator constants.static class
MSClassmark.MSClassmark2.FrequencyCapability
MSClassmark2 Frequency Capability constants.static class
MSClassmark.MSClassmark2.LCSVACapability
MSClassmask2 LCS value added location request notification capability constants.static class
MSClassmark.MSClassmark2.PSCapability
MSClassmark2 pseudo-synchronization capabilty constants.static class
MSClassmark.MSClassmark2.RevisionLevel
MSClassmark2 Revision Level constants.static class
MSClassmark.MSClassmark2.RFPowerCapability
MSClassmark2 RF Power Capability constants.static class
MSClassmark.MSClassmark2.SMCapability
MSClassmark2 SM Capability constants.static class
MSClassmark.MSClassmark2.SoLSA
MSClassmask2 SoLSA constants.static class
MSClassmark.MSClassmark2.SSScreeningIndicator
MSClassmark2 supplementary service screening indicator constants.static class
MSClassmark.MSClassmark2.UCS2Treatment
MSClassmark2 UCS2Treatment constants.static class
MSClassmark.MSClassmark2.VBS
MSClassmark2 VBS notification reception constants.static class
MSClassmark.MSClassmark2.VGCS
MSClassmark2 VGCS notification reception constants.
-
Field Summary
-
Fields inherited from class com.opencloud.slee.resources.cgin.AbstractLazyEncodedDataObject
isDecoded
-
Fields inherited from class com.opencloud.slee.resources.cgin.AbstractEncodedDataObject
encoded
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description MSClassmark2()
Constructs a new MSClassmark2 object with no fields set.MSClassmark2(byte[] data)
Constructs a new MSClassmark2 object from network-encoded data.MSClassmark2(byte[] data, int start, int len)
Constructs a new MSClassmark2 object from part of network-encoded data.MSClassmark2(DataInput in)
Constructs a new MSClassmark2 object from data deserialized from a stream that was written bytoStream(DataOutput)
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkFieldsSet()
Checks that all mandatory fields are present.MSClassmark.MSClassmark2
clone()
Constructs a copy of this object and everything reachable from it.static MSClassmark.MSClassmark2
copyOf(MSClassmark.MSClassmark2 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.MSClassmark.MSClassmark2.A51Algorithm
getA51Algorithm()
Gets the value of the A5/1 algorithm supported indicator.MSClassmark.MSClassmark2.A52Algorithm
getA52Algorithm()
Gets the value of the A5/2 algorithm supported indicator.MSClassmark.MSClassmark2.A53Algorithm
getA53Algorithm()
Gets the value of the A5/3 algorithm supported indicator.MSClassmark.MSClassmark2.CM3
getCM3()
Gets the value of the CM3 indicator.MSClassmark.MSClassmark2.CMServicePrompt
getCMServicePrompt()
Gets the value of the CM service prompt indicator.byte[]
getEncodedForm()
Gets the encoded form.MSClassmark.MSClassmark2.ESIndicator
getESIndicator()
Gets the value of the controlled early classmark sending indicator.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.MSClassmark.MSClassmark2.FrequencyCapability
getFrequencyCapability()
Gets the value of the frequency capability.int
getIEI()
Gets the value of the Information Element Identifier.MSClassmark.MSClassmark2.LCSVACapability
getLCSVACapability()
Gets the value of the LCS value added location request notification capability.MSClassmark.MSClassmark2.PSCapability
getPSCapability()
Gets the value of the PS capability.MSClassmark.MSClassmark2.RevisionLevel
getRevisionLevel()
Gets the value of the revision level.MSClassmark.MSClassmark2.RFPowerCapability
getRFPowerCapability()
Gets the value of the RF power capability.MSClassmark.MSClassmark2.SMCapability
getSMCapability()
Gets the value of the SM capability.MSClassmark.MSClassmark2.SoLSA
getSoLSA()
Gets the value of the SoLSA indicator.MSClassmark.MSClassmark2.SSScreeningIndicator
getSSScreeningIndicator()
Gets the value of the SS Screening indicator.MSClassmark.MSClassmark2.UCS2Treatment
getUCS2Treatment()
Gets the value of the UCS2 indicator; mandatory for R_99 and later RevisionLevel.MSClassmark.MSClassmark2.VBS
getVBS()
Gets the value of the VBS notification reception indicator.MSClassmark.MSClassmark2.VGCS
getVGCS()
Gets the value of the VGCS notification reception indicator.boolean
hasA51Algorithm()
Tests whether the field A51Algorithm has a value.boolean
hasA52Algorithm()
Tests whether the field A52Algorithm has a value.boolean
hasA53Algorithm()
Tests whether the field A53Algorithm has a value.boolean
hasCM3()
Tests whether the field CM3 has a value.boolean
hasCMServicePrompt()
Tests whether the field CMServicePrompt has a value.boolean
hasESIndicator()
Tests whether the field ESIndicator has a value.boolean
hasFrequencyCapability()
Tests whether the field FrequencyCapability has a value.boolean
hasIEI()
Tests whether the field IEI has a value.boolean
hasLCSVACapability()
Tests whether the field LCSVACapability has a value.boolean
hasPSCapability()
Tests whether the field PSCapability has a value.boolean
hasRevisionLevel()
Tests whether the field RevisionLevel has a value.boolean
hasRFPowerCapability()
Tests whether the field RFPowerCapability has a value.boolean
hasSMCapability()
Tests whether the field SMCapability has a value.boolean
hasSoLSA()
Tests whether the field SoLSA has a value.boolean
hasSSScreeningIndicator()
Tests whether the field SSScreeningIndicator has a value.boolean
hasUCS2Treatment()
Tests whether the field UCS2Treatment has a value.boolean
hasVBS()
Tests whether the field VBS has a value.boolean
hasVGCS()
Tests whether the field VGCS has a value.MSClassmark.MSClassmark2
setA51Algorithm(MSClassmark.MSClassmark2.A51Algorithm value)
Sets the value of the A5/1 algorithm supported indicator.MSClassmark.MSClassmark2
setA52Algorithm(MSClassmark.MSClassmark2.A52Algorithm value)
Sets the value of the A5/2 algorithm supported indicator.MSClassmark.MSClassmark2
setA53Algorithm(MSClassmark.MSClassmark2.A53Algorithm value)
Sets the value of the A5/3 algorithm supported indicator.MSClassmark.MSClassmark2
setCM3(MSClassmark.MSClassmark2.CM3 value)
Sets the value of the CM3 indicator.MSClassmark.MSClassmark2
setCMServicePrompt(MSClassmark.MSClassmark2.CMServicePrompt value)
Sets the value of the CM service prompt indicator.MSClassmark.MSClassmark2
setESIndicator(MSClassmark.MSClassmark2.ESIndicator value)
Sets the value of the controlled early classmark sending indicator.MSClassmark.MSClassmark2
setFrequencyCapability(MSClassmark.MSClassmark2.FrequencyCapability value)
Sets the value of the frequency capability.MSClassmark.MSClassmark2
setIEI(int value)
Sets the value of the Information Element Identifier.MSClassmark.MSClassmark2
setIEIPresent(boolean flag)
Sets the presence or absence of the field IEI.MSClassmark.MSClassmark2
setLCSVACapability(MSClassmark.MSClassmark2.LCSVACapability value)
Sets the value of the LCS value added location request notification capability.MSClassmark.MSClassmark2
setPSCapability(MSClassmark.MSClassmark2.PSCapability value)
Sets the value of the PS capability.MSClassmark.MSClassmark2
setRevisionLevel(MSClassmark.MSClassmark2.RevisionLevel value)
Sets the value of the revision level.MSClassmark.MSClassmark2
setRFPowerCapability(MSClassmark.MSClassmark2.RFPowerCapability value)
Sets the value of the RF power capability.MSClassmark.MSClassmark2
setSMCapability(MSClassmark.MSClassmark2.SMCapability value)
Sets the value of the SM capability.MSClassmark.MSClassmark2
setSoLSA(MSClassmark.MSClassmark2.SoLSA value)
Sets the value of the SoLSA indicator.MSClassmark.MSClassmark2
setSSScreeningIndicator(MSClassmark.MSClassmark2.SSScreeningIndicator value)
Sets the value of the SS Screening indicator.MSClassmark.MSClassmark2
setUCS2Treatment(MSClassmark.MSClassmark2.UCS2Treatment value)
Sets the value of the UCS2 indicator; mandatory for R_99 and later RevisionLevel.MSClassmark.MSClassmark2
setVBS(MSClassmark.MSClassmark2.VBS value)
Sets the value of the VBS notification reception indicator.MSClassmark.MSClassmark2
setVGCS(MSClassmark.MSClassmark2.VGCS value)
Sets the value of the VGCS notification reception indicator.void
toStream(DataOutput out)
Serializes this object to a stream in a form suitable for reading by {@link #MSClassmark.MSClassmark2(DataInput)}.-
Methods inherited from class com.opencloud.slee.resources.cgin.AbstractLazyEncodedDataObject
checkDecode, checkModifyAndDecode
-
Methods inherited from class com.opencloud.util.AbstractFieldsObject
equals, hashCode, toString
-
Methods inherited from class com.opencloud.util.AbstractDataObject
checkModify, isReadOnly, setReadOnly
-
-
-
-
Constructor Detail
-
MSClassmark2
public MSClassmark2()
Constructs a new MSClassmark2 object with no fields set.
-
MSClassmark2
public MSClassmark2(byte[] data)
Constructs a new MSClassmark2 object from network-encoded data. The data is not decoded and might not be decodable.- Parameters:
data
- network-encoded data- Throws:
NullPointerException
- if data is null
-
MSClassmark2
public MSClassmark2(byte[] data, int start, int len)
Constructs a new MSClassmark2 object from part of network-encoded data. The part starts at indexstart
and islen
bytes long. The data is not decoded and might not be decodable.- Parameters:
data
- network-encoded datastart
- starting offset of network-encoded data in byte arraylen
- default length if not predictable- Throws:
NullPointerException
- if data is nullIllegalArgumentException
- if len is negative
-
MSClassmark2
public MSClassmark2(DataInput in) throws IOException
Constructs a new MSClassmark2 object from data deserialized from a stream that was written bytoStream(DataOutput)
.- Parameters:
in
- the stream to read from- Throws:
EOFException
- if reading is pre-empted by end-of-fileIOException
- if the data cannot be read
-
-
Method Detail
-
toStream
public void toStream(DataOutput out) throws IOException
Serializes this object to a stream in a form suitable for reading by {@link #MSClassmark.MSClassmark2(DataInput)}.- Specified by:
toStream
in interfaceFastSerializable
- Parameters:
out
- the stream to write to- Throws:
IOException
- if an I/O error occurs
-
hasIEI
public boolean hasIEI() throws DecodeException
Tests whether the field IEI has a value.- Returns:
- whether the field has a value
- Throws:
DecodeException
- if encoded state cannot be decoded
-
setIEIPresent
public MSClassmark.MSClassmark2 setIEIPresent(boolean flag) throws IllegalStateException
Sets the presence or absence of the field IEI.- Parameters:
flag
- whether the field should be marked as present- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
hasRevisionLevel
public boolean hasRevisionLevel() throws DecodeException
Tests whether the field RevisionLevel has a value.- Returns:
- whether the field has a value
- Throws:
DecodeException
- if encoded state cannot be decoded
-
hasESIndicator
public boolean hasESIndicator() throws DecodeException
Tests whether the field ESIndicator has a value.- Returns:
- whether the field has a value
- Throws:
DecodeException
- if encoded state cannot be decoded
-
hasA51Algorithm
public boolean hasA51Algorithm() throws DecodeException
Tests whether the field A51Algorithm has a value.- Returns:
- whether the field has a value
- Throws:
DecodeException
- if encoded state cannot be decoded
-
hasRFPowerCapability
public boolean hasRFPowerCapability() throws DecodeException
Tests whether the field RFPowerCapability has a value.- Returns:
- whether the field has a value
- Throws:
DecodeException
- if encoded state cannot be decoded
-
hasPSCapability
public boolean hasPSCapability() throws DecodeException
Tests whether the field PSCapability has a value.- Returns:
- whether the field has a value
- Throws:
DecodeException
- if encoded state cannot be decoded
-
hasSSScreeningIndicator
public boolean hasSSScreeningIndicator() throws DecodeException
Tests whether the field SSScreeningIndicator has a value.- Returns:
- whether the field has a value
- Throws:
DecodeException
- if encoded state cannot be decoded
-
hasSMCapability
public boolean hasSMCapability() throws DecodeException
Tests whether the field SMCapability has a value.- Returns:
- whether the field has a value
- Throws:
DecodeException
- if encoded state cannot be decoded
-
hasVBS
public boolean hasVBS() throws DecodeException
Tests whether the field VBS has a value.- Returns:
- whether the field has a value
- Throws:
DecodeException
- if encoded state cannot be decoded
-
hasVGCS
public boolean hasVGCS() throws DecodeException
Tests whether the field VGCS has a value.- Returns:
- whether the field has a value
- Throws:
DecodeException
- if encoded state cannot be decoded
-
hasFrequencyCapability
public boolean hasFrequencyCapability() throws DecodeException
Tests whether the field FrequencyCapability has a value.- Returns:
- whether the field has a value
- Throws:
DecodeException
- if encoded state cannot be decoded
-
hasCM3
public boolean hasCM3() throws DecodeException
Tests whether the field CM3 has a value.- Returns:
- whether the field has a value
- Throws:
DecodeException
- if encoded state cannot be decoded
-
hasLCSVACapability
public boolean hasLCSVACapability() throws DecodeException
Tests whether the field LCSVACapability has a value.- Returns:
- whether the field has a value
- Throws:
DecodeException
- if encoded state cannot be decoded
-
hasUCS2Treatment
public boolean hasUCS2Treatment() throws DecodeException
Tests whether the field UCS2Treatment has a value.- Returns:
- whether the field has a value
- Throws:
DecodeException
- if encoded state cannot be decoded
-
hasSoLSA
public boolean hasSoLSA() throws DecodeException
Tests whether the field SoLSA has a value.- Returns:
- whether the field has a value
- Throws:
DecodeException
- if encoded state cannot be decoded
-
hasCMServicePrompt
public boolean hasCMServicePrompt() throws DecodeException
Tests whether the field CMServicePrompt has a value.- Returns:
- whether the field has a value
- Throws:
DecodeException
- if encoded state cannot be decoded
-
hasA53Algorithm
public boolean hasA53Algorithm() throws DecodeException
Tests whether the field A53Algorithm has a value.- Returns:
- whether the field has a value
- Throws:
DecodeException
- if encoded state cannot be decoded
-
hasA52Algorithm
public boolean hasA52Algorithm() throws DecodeException
Tests whether the field A52Algorithm has a value.- Returns:
- whether the field has a value
- Throws:
DecodeException
- if encoded state cannot be decoded
-
checkFieldsSet
public void checkFieldsSet() throws EncodeException
Checks that all mandatory fields are present. Should be called immediately before all calls to encode().- Specified by:
checkFieldsSet
in classAbstractLazyEncodedDataObject<byte[]>
- Throws:
EncodeException
- if any mandatory field is not present
-
getIEI
public int getIEI() throws DecodeException
Gets the value of the Information Element Identifier.- Returns:
- int representation of the Information Element Identifier
- Throws:
DecodeException
- if encoded state cannot be decoded
-
getRevisionLevel
public MSClassmark.MSClassmark2.RevisionLevel getRevisionLevel() throws DecodeException
Gets the value of the revision level.- Returns:
- RevisionLevel representation of the revision level
- Throws:
DecodeException
- if encoded state cannot be decoded
-
getESIndicator
public MSClassmark.MSClassmark2.ESIndicator getESIndicator() throws DecodeException
Gets the value of the controlled early classmark sending indicator.- Returns:
- ESIndicator representation of the controlled early classmark sending indicator
- Throws:
DecodeException
- if encoded state cannot be decoded
-
getA51Algorithm
public MSClassmark.MSClassmark2.A51Algorithm getA51Algorithm() throws DecodeException
Gets the value of the A5/1 algorithm supported indicator.- Returns:
- A51Algorithm representation of the A5/1 algorithm supported indicator
- Throws:
DecodeException
- if encoded state cannot be decoded
-
getRFPowerCapability
public MSClassmark.MSClassmark2.RFPowerCapability getRFPowerCapability() throws DecodeException
Gets the value of the RF power capability.- Returns:
- RFPowerCapability representation of the RF power capability
- Throws:
DecodeException
- if encoded state cannot be decoded
-
getPSCapability
public MSClassmark.MSClassmark2.PSCapability getPSCapability() throws DecodeException
Gets the value of the PS capability.- Returns:
- PSCapability representation of the PS capability
- Throws:
DecodeException
- if encoded state cannot be decoded
-
getSSScreeningIndicator
public MSClassmark.MSClassmark2.SSScreeningIndicator getSSScreeningIndicator() throws DecodeException
Gets the value of the SS Screening indicator.- Returns:
- SSScreeningIndicator representation of the SS Screening indicator
- Throws:
DecodeException
- if encoded state cannot be decoded
-
getSMCapability
public MSClassmark.MSClassmark2.SMCapability getSMCapability() throws DecodeException
Gets the value of the SM capability.- Returns:
- SMCapability representation of the SM capability
- Throws:
DecodeException
- if encoded state cannot be decoded
-
getVBS
public MSClassmark.MSClassmark2.VBS getVBS() throws DecodeException
Gets the value of the VBS notification reception indicator.- Returns:
- VBS representation of the VBS notification reception indicator
- Throws:
DecodeException
- if encoded state cannot be decoded
-
getVGCS
public MSClassmark.MSClassmark2.VGCS getVGCS() throws DecodeException
Gets the value of the VGCS notification reception indicator.- Returns:
- VGCS representation of the VGCS notification reception indicator
- Throws:
DecodeException
- if encoded state cannot be decoded
-
getFrequencyCapability
public MSClassmark.MSClassmark2.FrequencyCapability getFrequencyCapability() throws DecodeException
Gets the value of the frequency capability.- Returns:
- FrequencyCapability representation of the frequency capability
- Throws:
DecodeException
- if encoded state cannot be decoded
-
getCM3
public MSClassmark.MSClassmark2.CM3 getCM3() throws DecodeException
Gets the value of the CM3 indicator.- Returns:
- CM3 representation of the CM3 indicator
- Throws:
DecodeException
- if encoded state cannot be decoded
-
getLCSVACapability
public MSClassmark.MSClassmark2.LCSVACapability getLCSVACapability() throws DecodeException
Gets the value of the LCS value added location request notification capability.- Returns:
- LCSVACapability representation of the LCS value added location request notification capability
- Throws:
DecodeException
- if encoded state cannot be decoded
-
getUCS2Treatment
public MSClassmark.MSClassmark2.UCS2Treatment getUCS2Treatment() throws DecodeException
Gets the value of the UCS2 indicator; mandatory for R_99 and later RevisionLevel.- Returns:
- UCS2Treatment representation of the UCS2 indicator; mandatory for R_99 and later RevisionLevel
- Throws:
DecodeException
- if encoded state cannot be decoded
-
getSoLSA
public MSClassmark.MSClassmark2.SoLSA getSoLSA() throws DecodeException
Gets the value of the SoLSA indicator.- Returns:
- SoLSA representation of the SoLSA indicator
- Throws:
DecodeException
- if encoded state cannot be decoded
-
getCMServicePrompt
public MSClassmark.MSClassmark2.CMServicePrompt getCMServicePrompt() throws DecodeException
Gets the value of the CM service prompt indicator.- Returns:
- CMServicePrompt representation of the CM service prompt indicator
- Throws:
DecodeException
- if encoded state cannot be decoded
-
getA53Algorithm
public MSClassmark.MSClassmark2.A53Algorithm getA53Algorithm() throws DecodeException
Gets the value of the A5/3 algorithm supported indicator.- Returns:
- A53Algorithm representation of the A5/3 algorithm supported indicator
- Throws:
DecodeException
- if encoded state cannot be decoded
-
getA52Algorithm
public MSClassmark.MSClassmark2.A52Algorithm getA52Algorithm() throws DecodeException
Gets the value of the A5/2 algorithm supported indicator.- Returns:
- A52Algorithm representation of the A5/2 algorithm supported indicator
- Throws:
DecodeException
- if encoded state cannot be decoded
-
setIEI
public MSClassmark.MSClassmark2 setIEI(int value) throws IllegalStateException
Sets the value of the Information Element Identifier.- Parameters:
value
- int representation of the Information Element Identifier- Returns:
- this
- Throws:
IllegalStateException
-
setRevisionLevel
public MSClassmark.MSClassmark2 setRevisionLevel(MSClassmark.MSClassmark2.RevisionLevel value) throws IllegalStateException
Sets the value of the revision level.- Parameters:
value
- RevisionLevel representation of the revision level- Returns:
- this
- Throws:
IllegalStateException
-
setESIndicator
public MSClassmark.MSClassmark2 setESIndicator(MSClassmark.MSClassmark2.ESIndicator value) throws IllegalStateException
Sets the value of the controlled early classmark sending indicator.- Parameters:
value
- ESIndicator representation of the controlled early classmark sending indicator- Returns:
- this
- Throws:
IllegalStateException
-
setA51Algorithm
public MSClassmark.MSClassmark2 setA51Algorithm(MSClassmark.MSClassmark2.A51Algorithm value) throws IllegalStateException
Sets the value of the A5/1 algorithm supported indicator.- Parameters:
value
- A51Algorithm representation of the A5/1 algorithm supported indicator- Returns:
- this
- Throws:
IllegalStateException
-
setRFPowerCapability
public MSClassmark.MSClassmark2 setRFPowerCapability(MSClassmark.MSClassmark2.RFPowerCapability value) throws IllegalStateException
Sets the value of the RF power capability.- Parameters:
value
- RFPowerCapability representation of the RF power capability- Returns:
- this
- Throws:
IllegalStateException
-
setPSCapability
public MSClassmark.MSClassmark2 setPSCapability(MSClassmark.MSClassmark2.PSCapability value) throws IllegalStateException
Sets the value of the PS capability.- Parameters:
value
- PSCapability representation of the PS capability- Returns:
- this
- Throws:
IllegalStateException
-
setSSScreeningIndicator
public MSClassmark.MSClassmark2 setSSScreeningIndicator(MSClassmark.MSClassmark2.SSScreeningIndicator value) throws IllegalStateException
Sets the value of the SS Screening indicator.- Parameters:
value
- SSScreeningIndicator representation of the SS Screening indicator- Returns:
- this
- Throws:
IllegalStateException
-
setSMCapability
public MSClassmark.MSClassmark2 setSMCapability(MSClassmark.MSClassmark2.SMCapability value) throws IllegalStateException
Sets the value of the SM capability.- Parameters:
value
- SMCapability representation of the SM capability- Returns:
- this
- Throws:
IllegalStateException
-
setVBS
public MSClassmark.MSClassmark2 setVBS(MSClassmark.MSClassmark2.VBS value) throws IllegalStateException
Sets the value of the VBS notification reception indicator.- Parameters:
value
- VBS representation of the VBS notification reception indicator- Returns:
- this
- Throws:
IllegalStateException
-
setVGCS
public MSClassmark.MSClassmark2 setVGCS(MSClassmark.MSClassmark2.VGCS value) throws IllegalStateException
Sets the value of the VGCS notification reception indicator.- Parameters:
value
- VGCS representation of the VGCS notification reception indicator- Returns:
- this
- Throws:
IllegalStateException
-
setFrequencyCapability
public MSClassmark.MSClassmark2 setFrequencyCapability(MSClassmark.MSClassmark2.FrequencyCapability value) throws IllegalStateException
Sets the value of the frequency capability.- Parameters:
value
- FrequencyCapability representation of the frequency capability- Returns:
- this
- Throws:
IllegalStateException
-
setCM3
public MSClassmark.MSClassmark2 setCM3(MSClassmark.MSClassmark2.CM3 value) throws IllegalStateException
Sets the value of the CM3 indicator.- Parameters:
value
- CM3 representation of the CM3 indicator- Returns:
- this
- Throws:
IllegalStateException
-
setLCSVACapability
public MSClassmark.MSClassmark2 setLCSVACapability(MSClassmark.MSClassmark2.LCSVACapability value) throws IllegalStateException
Sets the value of the LCS value added location request notification capability.- Parameters:
value
- LCSVACapability representation of the LCS value added location request notification capability- Returns:
- this
- Throws:
IllegalStateException
-
setUCS2Treatment
public MSClassmark.MSClassmark2 setUCS2Treatment(MSClassmark.MSClassmark2.UCS2Treatment value) throws IllegalStateException
Sets the value of the UCS2 indicator; mandatory for R_99 and later RevisionLevel.- Parameters:
value
- UCS2Treatment representation of the UCS2 indicator; mandatory for R_99 and later RevisionLevel- Returns:
- this
- Throws:
IllegalStateException
-
setSoLSA
public MSClassmark.MSClassmark2 setSoLSA(MSClassmark.MSClassmark2.SoLSA value) throws IllegalStateException
Sets the value of the SoLSA indicator.- Parameters:
value
- SoLSA representation of the SoLSA indicator- Returns:
- this
- Throws:
IllegalStateException
-
setCMServicePrompt
public MSClassmark.MSClassmark2 setCMServicePrompt(MSClassmark.MSClassmark2.CMServicePrompt value) throws IllegalStateException
Sets the value of the CM service prompt indicator.- Parameters:
value
- CMServicePrompt representation of the CM service prompt indicator- Returns:
- this
- Throws:
IllegalStateException
-
setA53Algorithm
public MSClassmark.MSClassmark2 setA53Algorithm(MSClassmark.MSClassmark2.A53Algorithm value) throws IllegalStateException
Sets the value of the A5/3 algorithm supported indicator.- Parameters:
value
- A53Algorithm representation of the A5/3 algorithm supported indicator- Returns:
- this
- Throws:
IllegalStateException
-
setA52Algorithm
public MSClassmark.MSClassmark2 setA52Algorithm(MSClassmark.MSClassmark2.A52Algorithm value) throws IllegalStateException
Sets the value of the A5/2 algorithm supported indicator.- Parameters:
value
- A52Algorithm representation of the A5/2 algorithm supported indicator- Returns:
- this
- Throws:
IllegalStateException
-
copyOf
public static MSClassmark.MSClassmark2 copyOf(MSClassmark.MSClassmark2 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.- Parameters:
from
- the object from which to copy- Returns:
- MSClassmark2
-
clone
public MSClassmark.MSClassmark2 clone()
Constructs a copy of this object and everything reachable from it.- Specified by:
clone
in interfaceDataObject
- Specified by:
clone
in classAbstractDataObject
- Returns:
- copy of object
-
getFieldAccessors
public static FieldAccessor[] getFieldAccessors()
Gets a new array of the accessors for fields of this type.- Returns:
- FieldAccessor[]
-
getFieldsMap
public Map<String,Object> getFieldsMap(boolean withAbsents)
Gets a Map from field-name to field-value for the fields of a sequence. For a field of primitive type, the field-value is boxed. For an absent optional field, the field-value is AbstractFieldsObject.FIELD_ABSENT. For an uninitialised mandatory field, the field-value is AbstractFieldsObject.FIELD_UNINITIALISED. For a field of String type, the encoded form is used if the String cannot be decoded. For a type that represents an OCTET STRING that cannot be decoded, a map from "encodedValue" to the byte array value is returned.- Specified by:
getFieldsMap
in classAbstractFieldsObject
- Parameters:
withAbsents
- whether to put absent optional fields into Map- Returns:
- Map from field-name to field-value
-
encodedIsInvalid
protected boolean encodedIsInvalid()
Determines whether the encoded form is invalid.- Returns:
- boolean
-
getEncodedForm
public byte[] getEncodedForm() throws EncodeException
Gets the encoded form.- Returns:
- encoded form
- Throws:
EncodeException
- if encoding fails
-
encode
protected void encode() throws EncodeException
Computes the encoded form from the decoded form.- Specified by:
encode
in classAbstractLazyEncodedDataObject<byte[]>
- Throws:
EncodeException
- if any mandatory field is out of range
-
decode
protected void decode() throws DecodeException
Computes the decoded form from the encoded form.- Specified by:
decode
in classAbstractLazyEncodedDataObject<byte[]>
- Throws:
DecodeException
- if too few or too many octets to be decoded
-
-