public class MAPSubscriberId extends AbstractFieldsObject
SubscriberId ::= CHOICE { imsi IMSI, tmsi TMSI }Present in ph1. Unused since ph2, but its definition has not yet been removed.
Used as field type by MAPSendParametersArg
.
Modifier and Type | Class and Description |
---|---|
static class |
MAPSubscriberId.Choice
API for MAP-CommonDataTypes.SubscriberId.Choice.
|
FIELD_ABSENT, FIELD_UNINITIALISED
Constructor and Description |
---|
MAPSubscriberId() |
Modifier and Type | Method and Description |
---|---|
MAPSubscriberId |
clone()
Constructs a copy of this object and everything reachable from it.
|
static MAPSubscriberId |
copyOf(MAPSubscriberId 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.
|
MAPSubscriberId.Choice |
getChoice()
Gets the discriminant of the current 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.
|
IMSIAddress |
getImsi()
Gets the value of the imsi choice.
|
byte[] |
getTmsi()
Gets the value of the tmsi choice.
|
boolean |
isImsiChosen()
Tests whether the choice is imsi.
|
boolean |
isTmsiChosen()
Tests whether the choice is tmsi.
|
MAPSubscriberId |
setImsi(IMSIAddress value)
Sets the value of the imsi choice.
|
void |
setReadOnly()
Sets this and all its fields to be immutable.
|
MAPSubscriberId |
setTmsi(byte[] value)
Sets the value of the tmsi choice.
|
equals, hashCode, toString
checkModify, isReadOnly
public MAPSubscriberId clone()
clone
in interface DataObject
clone
in class AbstractDataObject
public static MAPSubscriberId copyOf(MAPSubscriberId from)
from
- the object from which to copypublic MAPSubscriberId.Choice getChoice()
public static FieldAccessor[] getFieldAccessors()
public Map<String,Object> getFieldsMap(boolean withAbsents)
getFieldsMap
in class AbstractFieldsObject
withAbsents
- ignored, as value cannot be optionalpublic IMSIAddress getImsi()
public byte[] getTmsi()
public boolean isImsiChosen()
public boolean isTmsiChosen()
public MAPSubscriberId setImsi(IMSIAddress value) throws IllegalStateException, NullPointerException
value
- the new value for the choiceIllegalStateException
- if this instance has been marked as read-onlyNullPointerException
- if the given value is nullpublic void setReadOnly()
setReadOnly
in interface DataObject
setReadOnly
in class AbstractDataObject
public MAPSubscriberId setTmsi(byte[] value) throws IllegalStateException, NullPointerException
value
- the new value for the choiceIllegalStateException
- if this instance has been marked as read-onlyNullPointerException
- if the given value is null