public class MAPLocationOrForwarding extends AbstractFieldsObject
LocationOrForwarding ::= CHOICE { locationInfoWithLMSI LocationInfoWithLMSI, forwardingData ForwardingData -- Used only in ph1. }Extracted from SendRoutingInfoForSMRes.locationOrForwarding CHOICE in ph1. Synthetic type from ph2 onwards to maintain API compatibility.
Used as field type by MAPSendRoutingInfoForSMRes
.
Used as field type by MAPRoutingInfoForSM_Res
.
Modifier and Type | Class and Description |
---|---|
static class |
MAPLocationOrForwarding.Choice
API for MAP-SM-DataTypes-ph1.LocationOrForwarding.Choice.
|
FIELD_ABSENT, FIELD_UNINITIALISED
Constructor and Description |
---|
MAPLocationOrForwarding() |
Modifier and Type | Method and Description |
---|---|
MAPLocationOrForwarding |
clone()
Constructs a copy of this object and everything reachable from it.
|
static MAPLocationOrForwarding |
copyOf(MAPLocationOrForwarding 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.
|
MAPLocationOrForwarding.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.
|
MAPForwardingData |
getForwardingData()
Gets the value of the forwardingData choice.
|
MAPLocationInfoWithLMSI |
getLocationInfoWithLMSI()
Gets the value of the locationInfoWithLMSI choice.
|
boolean |
isForwardingDataChosen()
Tests whether the choice is forwardingData.
|
boolean |
isLocationInfoWithLMSIChosen()
Tests whether the choice is locationInfoWithLMSI.
|
MAPLocationOrForwarding |
setForwardingData(MAPForwardingData value)
Sets the value of the forwardingData choice.
|
MAPLocationOrForwarding |
setLocationInfoWithLMSI(MAPLocationInfoWithLMSI value)
Sets the value of the locationInfoWithLMSI choice.
|
void |
setReadOnly()
Sets this and all its fields to be immutable.
|
equals, hashCode, toString
checkModify, isReadOnly
public MAPLocationOrForwarding clone()
clone
in interface DataObject
clone
in class AbstractDataObject
public static MAPLocationOrForwarding copyOf(MAPLocationOrForwarding from)
from
- the object from which to copypublic MAPLocationOrForwarding.Choice getChoice()
public static FieldAccessor[] getFieldAccessors()
public Map<String,Object> getFieldsMap(boolean withAbsents)
getFieldsMap
in class AbstractFieldsObject
withAbsents
- ignored, as value cannot be optionalpublic MAPForwardingData getForwardingData()
public MAPLocationInfoWithLMSI getLocationInfoWithLMSI()
public boolean isForwardingDataChosen()
public boolean isLocationInfoWithLMSIChosen()
public MAPLocationOrForwarding setForwardingData(MAPForwardingData 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 MAPLocationOrForwarding setLocationInfoWithLMSI(MAPLocationInfoWithLMSI 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