Class MAPSentParameter
-
- All Implemented Interfaces:
DataObject,Serializable
public class MAPSentParameter extends AbstractFieldsObject
API for MAP-MS-DataTypes-ph1.SentParameter. Generated from the following ASN.1 type definition.SentParameter ::= CHOICE { imsi IMSI, authenticationSet AuthenticationSet, susbcriberData SubscriberData, cug-information CUG-Information, ki Ki }Present in ph1. Removed between ph1 and ph2.Used in array as result type by
MAPOperations.sendParameters_v1.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMAPSentParameter.ChoiceAPI for MAP-MS-DataTypes-ph1.SentParameter.Choice.
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description MAPSentParameter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MAPSentParameterclone()Constructs a copy of this object and everything reachable from it.static MAPSentParametercopyOf(MAPSentParameter 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.MAPAuthenticationSetgetAuthenticationSet()Gets the value of the authenticationSet choice.MAPSentParameter.ChoicegetChoice()Gets the discriminant of the current choice.MAPCUG_InformationgetCug_information()Gets the value of the cug-information choice.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 :discriminant-name to associated-value.IMSIAddressgetImsi()Gets the value of the imsi choice.byte[]getKi()Gets the value of the ki choice.MAPSubscriberDatagetSusbcriberData()Gets the value of the susbcriberData choice.booleanisAuthenticationSetChosen()Tests whether the choice is authenticationSet.booleanisCug_informationChosen()Tests whether the choice is cug-information.booleanisImsiChosen()Tests whether the choice is imsi.booleanisKiChosen()Tests whether the choice is ki.booleanisSusbcriberDataChosen()Tests whether the choice is susbcriberData.MAPSentParametersetAuthenticationSet(MAPAuthenticationSet value)Sets the value of the authenticationSet choice.MAPSentParametersetCug_information(MAPCUG_Information value)Sets the value of the cug-information choice.MAPSentParametersetImsi(IMSIAddress value)Sets the value of the imsi choice.MAPSentParametersetKi(byte[] value)Sets the value of the ki choice.voidsetReadOnly()Sets this and all its fields to be immutable.MAPSentParametersetSusbcriberData(MAPSubscriberData value)Sets the value of the susbcriberData choice.-
Methods inherited from class com.opencloud.util.AbstractFieldsObject
equals, hashCode, toString
-
Methods inherited from class com.opencloud.util.AbstractDataObject
checkModify, isReadOnly
-
-
-
-
Method Detail
-
clone
public MAPSentParameter clone()
Constructs a copy of this object and everything reachable from it.- Specified by:
clonein interfaceDataObject- Specified by:
clonein classAbstractDataObject- Returns:
- copy of object
-
copyOf
public static MAPSentParameter copyOf(MAPSentParameter 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:
- MAPSentParameter
-
getAuthenticationSet
public MAPAuthenticationSet getAuthenticationSet()
Gets the value of the authenticationSet choice.- Returns:
- value of the choice, if choice is authenticationSet, else null
-
getChoice
public MAPSentParameter.Choice getChoice()
Gets the discriminant of the current choice.- Returns:
- the current discriminant
-
getCug_information
public MAPCUG_Information getCug_information()
Gets the value of the cug-information choice.- Returns:
- value of the choice, if choice is cug-information, else null
-
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 :discriminant-name to associated-value. For a value of primitive type, the value is boxed. If choice is not set, returns a map from : to AbstractFieldsObject.FIELD_UNINITIALISED.- Specified by:
getFieldsMapin classAbstractFieldsObject- Parameters:
withAbsents- ignored, as value cannot be optional- Returns:
- Map from :discriminant-name to associated-value
-
getImsi
public IMSIAddress getImsi()
Gets the value of the imsi choice.- Returns:
- value of the choice, if choice is imsi, else null
-
getKi
public byte[] getKi()
Gets the value of the ki choice.- Returns:
- value of the choice, if choice is ki, else null
-
getSusbcriberData
public MAPSubscriberData getSusbcriberData()
Gets the value of the susbcriberData choice.- Returns:
- value of the choice, if choice is susbcriberData, else null
-
isAuthenticationSetChosen
public boolean isAuthenticationSetChosen()
Tests whether the choice is authenticationSet.- Returns:
- true if chosen, false if not
-
isCug_informationChosen
public boolean isCug_informationChosen()
Tests whether the choice is cug-information.- Returns:
- true if chosen, false if not
-
isImsiChosen
public boolean isImsiChosen()
Tests whether the choice is imsi.- Returns:
- true if chosen, false if not
-
isKiChosen
public boolean isKiChosen()
Tests whether the choice is ki.- Returns:
- true if chosen, false if not
-
isSusbcriberDataChosen
public boolean isSusbcriberDataChosen()
Tests whether the choice is susbcriberData.- Returns:
- true if chosen, false if not
-
setAuthenticationSet
public MAPSentParameter setAuthenticationSet(MAPAuthenticationSet value) throws IllegalStateException, NullPointerException
Sets the value of the authenticationSet choice.- Parameters:
value- the new value for the choice- Returns:
- this
- Throws:
IllegalStateException- if this instance has been marked as read-onlyNullPointerException- if the given value is null
-
setCug_information
public MAPSentParameter setCug_information(MAPCUG_Information value) throws IllegalStateException, NullPointerException
Sets the value of the cug-information choice.- Parameters:
value- the new value for the choice- Returns:
- this
- Throws:
IllegalStateException- if this instance has been marked as read-onlyNullPointerException- if the given value is null
-
setImsi
public MAPSentParameter setImsi(IMSIAddress value) throws IllegalStateException, NullPointerException
Sets the value of the imsi choice.- Parameters:
value- the new value for the choice- Returns:
- this
- Throws:
IllegalStateException- if this instance has been marked as read-onlyNullPointerException- if the given value is null
-
setKi
public MAPSentParameter setKi(byte[] value) throws IllegalStateException, NullPointerException
Sets the value of the ki choice.- Parameters:
value- the new value for the choice- Returns:
- this
- Throws:
IllegalStateException- if this instance has been marked as read-onlyNullPointerException- if the given value is null
-
setReadOnly
public void setReadOnly()
Sets this and all its fields to be immutable.- Specified by:
setReadOnlyin interfaceDataObject- Overrides:
setReadOnlyin classAbstractDataObject
-
setSusbcriberData
public MAPSentParameter setSusbcriberData(MAPSubscriberData value) throws IllegalStateException, NullPointerException
Sets the value of the susbcriberData choice.- Parameters:
value- the new value for the choice- Returns:
- this
- Throws:
IllegalStateException- if this instance has been marked as read-onlyNullPointerException- if the given value is null
-
-