Class MAPSubscriberIdentity
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- com.opencloud.util.AbstractFieldsObject
-
- MAPSubscriberIdentity
-
- All Implemented Interfaces:
DataObject,Serializable
public class MAPSubscriberIdentity extends AbstractFieldsObject
API for MAP-CommonDataTypes.SubscriberIdentity. Generated from the following ASN.1 type definition.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
MAPAnyTimeModificationArg.Used as field type by
MAPAnyTimeSubscriptionInterrogationArg.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMAPSubscriberIdentity.ChoiceAPI for MAP-CommonDataTypes.SubscriberIdentity.Choice.
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description MAPSubscriberIdentity()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MAPSubscriberIdentityclone()Constructs a copy of this object and everything reachable from it.static MAPSubscriberIdentitycopyOf(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.ChoicegetChoice()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.IMSIAddressgetImsi()Gets the value of the imsi choice.AddressStringgetMsisdn()Gets the value of the msisdn choice.booleanisImsiChosen()Tests whether the choice is imsi.booleanisMsisdnChosen()Tests whether the choice is msisdn.MAPSubscriberIdentitysetImsi(IMSIAddress value)Sets the value of the imsi choice.MAPSubscriberIdentitysetMsisdn(AddressString value)Sets the value of the msisdn choice.voidsetReadOnly()Sets this and all its fields to be immutable.-
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 MAPSubscriberIdentity 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 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.- Parameters:
from- the object from which to copy- Returns:
- MAPSubscriberIdentity
-
getChoice
public MAPSubscriberIdentity.Choice getChoice()
Gets the discriminant of the current choice.- Returns:
- the current discriminant
-
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
-
getMsisdn
public AddressString getMsisdn()
Gets the value of the msisdn choice.- Returns:
- value of the choice, if choice is msisdn, else null
-
isImsiChosen
public boolean isImsiChosen()
Tests whether the choice is imsi.- Returns:
- true if chosen, false if not
-
isMsisdnChosen
public boolean isMsisdnChosen()
Tests whether the choice is msisdn.- Returns:
- true if chosen, false if not
-
setImsi
public MAPSubscriberIdentity 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
-
setMsisdn
public MAPSubscriberIdentity setMsisdn(AddressString value) throws IllegalStateException, NullPointerException
Sets the value of the msisdn 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
-
-