public class MAPLocationInfo extends AbstractFieldsObject
LocationInfo ::= CHOICE { roamingNumber ISDN-AddressString, mscNumber ISDN-AddressString }Present in ph1. Removed between ph1 and ph2.
Used as field type by MAPSendRoutingInfoForSMRes.LocationOrForwarding.LocationInfoWithLMSI
.
Modifier and Type | Class and Description |
---|---|
static class |
MAPLocationInfo.Choice
API for MAP-SM-DataTypes-ph1.LocationInfo.Choice.
|
FIELD_ABSENT, FIELD_UNINITIALISED
Constructor and Description |
---|
MAPLocationInfo() |
Modifier and Type | Method and Description |
---|---|
MAPLocationInfo |
clone()
Constructs a copy of this object and everything reachable from it.
|
static MAPLocationInfo |
copyOf(MAPLocationInfo 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.
|
MAPLocationInfo.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 |
getMscNumber()
Gets the value of the mscNumber choice.
|
AddressString |
getRoamingNumber()
Gets the value of the roamingNumber choice.
|
boolean |
isMscNumberChosen()
Tests whether the choice is mscNumber.
|
boolean |
isRoamingNumberChosen()
Tests whether the choice is roamingNumber.
|
MAPLocationInfo |
setMscNumber(AddressString value)
Sets the value of the mscNumber choice.
|
void |
setReadOnly()
Sets this and all its fields to be immutable.
|
MAPLocationInfo |
setRoamingNumber(AddressString value)
Sets the value of the roamingNumber choice.
|
equals, hashCode, toString
checkModify, isReadOnly
public MAPLocationInfo clone()
clone
in interface DataObject
clone
in class AbstractDataObject
public static MAPLocationInfo copyOf(MAPLocationInfo from)
from
- the object from which to copypublic MAPLocationInfo.Choice getChoice()
public static FieldAccessor[] getFieldAccessors()
public Map<String,Object> getFieldsMap(boolean withAbsents)
getFieldsMap
in class AbstractFieldsObject
withAbsents
- ignored, as value cannot be optionalpublic AddressString getMscNumber()
public AddressString getRoamingNumber()
public boolean isMscNumberChosen()
public boolean isRoamingNumberChosen()
public MAPLocationInfo setMscNumber(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
public MAPLocationInfo setRoamingNumber(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 null