public class MAPIdentity extends AbstractFieldsObject
Identity ::= CHOICE { imsi IMSI, imsi-WithLMSI IMSI-WithLMSI }Added in R97. Moved from MAP-MS-DataTypes between R97 and R98. OpenCloud made use of this type in earlier releases to ease inheritance of APIs, while not affecting on-the-wire representations.
Used as field type by MAPCancelLocation_v1ArgSeq
.
Used as field type by MAPCancelLocationArg
.
Modifier and Type | Class and Description |
---|---|
static class |
MAPIdentity.Choice
API for MAP-CommonDataTypes.Identity.Choice.
|
FIELD_ABSENT, FIELD_UNINITIALISED
Constructor and Description |
---|
MAPIdentity() |
Modifier and Type | Method and Description |
---|---|
MAPIdentity |
clone()
Constructs a copy of this object and everything reachable from it.
|
static MAPIdentity |
copyOf(MAPIdentity 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.
|
MAPIdentity.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.
|
MAPIMSI_WithLMSI |
getImsi_WithLMSI()
Gets the value of the imsi-WithLMSI choice.
|
IMSIAddress |
getImsi()
Gets the value of the imsi choice.
|
boolean |
isImsi_WithLMSIChosen()
Tests whether the choice is imsi-WithLMSI.
|
boolean |
isImsiChosen()
Tests whether the choice is imsi.
|
MAPIdentity |
setImsi_WithLMSI(MAPIMSI_WithLMSI value)
Sets the value of the imsi-WithLMSI choice.
|
MAPIdentity |
setImsi(IMSIAddress value)
Sets the value of the imsi choice.
|
void |
setReadOnly()
Sets this and all its fields to be immutable.
|
equals, hashCode, toString
checkModify, isReadOnly
public MAPIdentity clone()
clone
in interface DataObject
clone
in class AbstractDataObject
public static MAPIdentity copyOf(MAPIdentity from)
from
- the object from which to copypublic MAPIdentity.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 MAPIMSI_WithLMSI getImsi_WithLMSI()
public boolean isImsiChosen()
public boolean isImsi_WithLMSIChosen()
public MAPIdentity 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 MAPIdentity setImsi_WithLMSI(MAPIMSI_WithLMSI 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