Class MAPSM_RP_DA_v1
-
- All Implemented Interfaces:
DataObject
,Serializable
- Direct Known Subclasses:
MAPSM_RP_DA
public class MAPSM_RP_DA_v1 extends AbstractFieldsObject
API for MAP-SM-DataTypes-ph1.SM-RP-DA-v1. Generated from the following ASN.1 type definition and the adaptations below.SM-RP-DA-v1 ::= CHOICE { imsi IMSI, lMsId LMSI, -- Renamed to lmsi between ph1 and ph2. roamingNumber ISDN-AddressString, -- Removed between ph1 and ph2. serviceCentreAddress AddressString -- Renamed to serviceCentreAddressDA between ph1 and ph2. } MAP-SM-DataTypes-ph1 { SM-RP-DA-v1 { @extendible lMsId { @rename lmsi } serviceCentreAddress { @rename serviceCentreAddressDA } } }
Present in ph1. Evolved toMAPSM_RP_DA
in ph2.Used as field type by
MAPMO_ForwardSM_Arg
.Used as field type by
MAPMT_ForwardSM_Arg
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MAPSM_RP_DA_v1.Choice
API for MAP-SM-DataTypes-ph1.SM-RP-DA-v1.Choice.
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description MAPSM_RP_DA_v1()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MAPSM_RP_DA_v1
clone()
Constructs a copy of this object and everything reachable from it.static MAPSM_RP_DA_v1
copyOf(MAPSM_RP_DA_v1 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.MAPSM_RP_DA_v1.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.LMSIAddress
getLmsi()
Gets the value of the lMsId choice.AddressString
getRoamingNumber()
Gets the value of the roamingNumber choice.AddressString
getServiceCentreAddressDA()
Gets the value of the serviceCentreAddress choice.boolean
isImsiChosen()
Tests whether the choice is imsi.boolean
isLmsiChosen()
Tests whether the choice is lMsId.boolean
isRoamingNumberChosen()
Tests whether the choice is roamingNumber.boolean
isServiceCentreAddressDAChosen()
Tests whether the choice is serviceCentreAddress.protected void
setChoice(MAPSM_RP_DA_v1.Choice arg)
Sets the discriminant of the current choice.MAPSM_RP_DA_v1
setImsi(IMSIAddress value)
Sets the value of the imsi choice.MAPSM_RP_DA_v1
setLmsi(LMSIAddress value)
Sets the value of the lMsId choice.void
setReadOnly()
Sets this and all its fields to be immutable.MAPSM_RP_DA_v1
setRoamingNumber(AddressString value)
Sets the value of the roamingNumber choice.MAPSM_RP_DA_v1
setServiceCentreAddressDA(AddressString value)
Sets the value of the serviceCentreAddress 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 MAPSM_RP_DA_v1 clone()
Constructs a copy of this object and everything reachable from it.- Specified by:
clone
in interfaceDataObject
- Specified by:
clone
in classAbstractDataObject
- Returns:
- copy of object
-
copyOf
public static MAPSM_RP_DA_v1 copyOf(MAPSM_RP_DA_v1 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:
- MAPSM_RP_DA_v1
-
getChoice
public MAPSM_RP_DA_v1.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:
getFieldsMap
in 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
-
getLmsi
public LMSIAddress getLmsi()
Gets the value of the lMsId choice.- Returns:
- value of the choice, if choice is lMsId, else null
-
getRoamingNumber
public AddressString getRoamingNumber()
Gets the value of the roamingNumber choice.- Returns:
- value of the choice, if choice is roamingNumber, else null
-
getServiceCentreAddressDA
public AddressString getServiceCentreAddressDA()
Gets the value of the serviceCentreAddress choice.- Returns:
- value of the choice, if choice is serviceCentreAddress, else null
-
isImsiChosen
public boolean isImsiChosen()
Tests whether the choice is imsi.- Returns:
- true if chosen, false if not
-
isLmsiChosen
public boolean isLmsiChosen()
Tests whether the choice is lMsId.- Returns:
- true if chosen, false if not
-
isRoamingNumberChosen
public boolean isRoamingNumberChosen()
Tests whether the choice is roamingNumber.- Returns:
- true if chosen, false if not
-
isServiceCentreAddressDAChosen
public boolean isServiceCentreAddressDAChosen()
Tests whether the choice is serviceCentreAddress.- Returns:
- true if chosen, false if not
-
setChoice
protected void setChoice(MAPSM_RP_DA_v1.Choice arg)
Sets the discriminant of the current choice.- Parameters:
arg
- the new discriminant
-
setImsi
public MAPSM_RP_DA_v1 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
-
setLmsi
public MAPSM_RP_DA_v1 setLmsi(LMSIAddress value) throws IllegalStateException, NullPointerException
Sets the value of the lMsId 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:
setReadOnly
in interfaceDataObject
- Overrides:
setReadOnly
in classAbstractDataObject
-
setRoamingNumber
public MAPSM_RP_DA_v1 setRoamingNumber(AddressString value) throws IllegalStateException, NullPointerException
Sets the value of the roamingNumber 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
-
setServiceCentreAddressDA
public MAPSM_RP_DA_v1 setServiceCentreAddressDA(AddressString value) throws IllegalStateException, NullPointerException
Sets the value of the serviceCentreAddress 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
-
-