Class MAPSM_RP_OA
-
- All Implemented Interfaces:
DataObject
,Serializable
public class MAPSM_RP_OA extends AbstractFieldsObject
API for MAP-SM-DataTypes.SM-RP-OA. Generated from the following ASN.1 type definition.SM-RP-OA ::= CHOICE { msisdn ISDN-AddressString, -- Renamed from msIsdn between ph1 and ph2. serviceCentreAddressOA AddressString, -- Renamed from serviceCentreAddress between ph1 and ph2. noSM-RP-OA NULL }
Present in ph1.Used as field type by
MAPMO_ForwardSM_Arg
.Used as field type by
MAPMO_ForwardSM_Arg_v2
.Used as field type by
MAPMO_ForwardSM_Arg_v3
.Used as field type by
MAPMT_ForwardSM_Arg
.Used as field type by
MAPMT_ForwardSM_Arg_v2
.Used as field type by
MAPMT_ForwardSM_Arg_v3
.Used as field type by
MAPMT_ForwardSM_VGCS_Arg
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MAPSM_RP_OA.Choice
API for MAP-SM-DataTypes.SM-RP-OA.Choice.
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description MAPSM_RP_OA()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MAPSM_RP_OA
clone()
Constructs a copy of this object and everything reachable from it.static MAPSM_RP_OA
copyOf(MAPSM_RP_OA 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_OA.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.AddressString
getMsisdn()
Gets the value of the msisdn choice.AddressString
getServiceCentreAddressOA()
Gets the value of the serviceCentreAddressOA choice.boolean
isMsisdnChosen()
Tests whether the choice is msisdn.boolean
isNoSM_RP_OAChosen()
Tests whether the choice is noSM-RP-OA.boolean
isServiceCentreAddressOAChosen()
Tests whether the choice is serviceCentreAddressOA.MAPSM_RP_OA
setMsisdn(AddressString value)
Sets the value of the msisdn choice.MAPSM_RP_OA
setNoSM_RP_OA()
Sets the noSM-RP-OA choice.void
setReadOnly()
Sets this and all its fields to be immutable.MAPSM_RP_OA
setServiceCentreAddressOA(AddressString value)
Sets the value of the serviceCentreAddressOA 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_OA 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_OA copyOf(MAPSM_RP_OA 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_OA
-
getChoice
public MAPSM_RP_OA.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
-
getMsisdn
public AddressString getMsisdn()
Gets the value of the msisdn choice.- Returns:
- value of the choice, if choice is msisdn, else null
-
getServiceCentreAddressOA
public AddressString getServiceCentreAddressOA()
Gets the value of the serviceCentreAddressOA choice.- Returns:
- value of the choice, if choice is serviceCentreAddressOA, else null
-
isMsisdnChosen
public boolean isMsisdnChosen()
Tests whether the choice is msisdn.- Returns:
- true if chosen, false if not
-
isNoSM_RP_OAChosen
public boolean isNoSM_RP_OAChosen()
Tests whether the choice is noSM-RP-OA.- Returns:
- true if chosen, false if not
-
isServiceCentreAddressOAChosen
public boolean isServiceCentreAddressOAChosen()
Tests whether the choice is serviceCentreAddressOA.- Returns:
- true if chosen, false if not
-
setMsisdn
public MAPSM_RP_OA 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
-
setNoSM_RP_OA
public MAPSM_RP_OA setNoSM_RP_OA() throws IllegalStateException
Sets the noSM-RP-OA choice.- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setReadOnly
public void setReadOnly()
Sets this and all its fields to be immutable.- Specified by:
setReadOnly
in interfaceDataObject
- Overrides:
setReadOnly
in classAbstractDataObject
-
setServiceCentreAddressOA
public MAPSM_RP_OA setServiceCentreAddressOA(AddressString value) throws IllegalStateException, NullPointerException
Sets the value of the serviceCentreAddressOA 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
-
-