public class MAPSubscriberIdentity extends AbstractFieldsObject
SubscriberIdentity ::= CHOICE { imsi IMSI, msisdn ISDN-AddressString }Added in R96. Moved from MAP-MS-DataTypes between R97 and R98.
Used as field type by MAPAnyTimeInterrogationArg
.
Used as field type by MAPRoutingInfoForLCS_Arg
.
Used as field type by MAPRoutingInfoForLCS_Res
.
Used as field type by MAPAnyTimeSubscriptionInterrogationArg
.
Used as field type by MAPAnyTimeModificationArg
.
Modifier and Type | Class and Description |
---|---|
static class |
MAPSubscriberIdentity.Choice
API for MAP-CommonDataTypes.SubscriberIdentity.Choice.
|
FIELD_ABSENT, FIELD_UNINITIALISED
Constructor and Description |
---|
MAPSubscriberIdentity() |
Modifier and Type | Method and Description |
---|---|
MAPSubscriberIdentity |
clone()
Constructs a copy of this object and everything reachable from it.
|
static MAPSubscriberIdentity |
copyOf(MAPSubscriberIdentity 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.
|
MAPSubscriberIdentity.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.
|
AddressString |
getMsisdn()
Gets the value of the msisdn choice.
|
boolean |
isImsiChosen()
Tests whether the choice is imsi.
|
boolean |
isMsisdnChosen()
Tests whether the choice is msisdn.
|
MAPSubscriberIdentity |
setImsi(IMSIAddress value)
Sets the value of the imsi choice.
|
MAPSubscriberIdentity |
setMsisdn(AddressString value)
Sets the value of the msisdn choice.
|
void |
setReadOnly()
Sets this and all its fields to be immutable.
|
equals, hashCode, toString
checkModify, isReadOnly
public MAPSubscriberIdentity clone()
clone
in interface DataObject
clone
in class AbstractDataObject
public static MAPSubscriberIdentity copyOf(MAPSubscriberIdentity from)
from
- the object from which to copypublic MAPSubscriberIdentity.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 AddressString getMsisdn()
public boolean isImsiChosen()
public boolean isMsisdnChosen()
public MAPSubscriberIdentity 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 MAPSubscriberIdentity setMsisdn(AddressString 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