Class MAPLocationInfoWithLMSI
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- com.opencloud.util.AbstractFieldsObject
-
- MAPLocationInfoWithLMSI
-
- All Implemented Interfaces:
DataObject
,Serializable
- Direct Known Subclasses:
MAPLocationInfoWithLMSI_v3
public class MAPLocationInfoWithLMSI extends AbstractFieldsObject
API for MAP-SM-DataTypes-ph1.LocationInfoWithLMSI. Generated from the following ASN.1 type definition.LocationInfoWithLMSI ::= SEQUENCE { locationInfo LocationInfo, lMsId LMSI OPTIONAL }
Extracted from SendRoutingInfoForSMRes.locationOrForwarding.locationInfoWithLMSI SEQUENCE In ph1. Present in ph2.Used as field type by
MAPLocationOrForwarding
.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description MAPLocationInfoWithLMSI()
Constructs an object with uninitialised state.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MAPLocationInfoWithLMSI
clone()
Constructs a copy of this object and everything reachable from it.static MAPLocationInfoWithLMSI
copyOf(MAPLocationInfoWithLMSI 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.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 field-name to field-value.LMSIAddress
getLMsId()
Gets the value of the field lMsId.MAPLocationInfo
getLocationInfo()
Gets the value of the field locationInfo.boolean
hasLMsId()
Tests whether the field lMsId has a value.boolean
hasLocationInfo()
Tests whether the field locationInfo has a value.MAPLocationInfoWithLMSI
setLMsId(LMSIAddress value)
Sets the value of the field lMsId.MAPLocationInfoWithLMSI
setLocationInfo(MAPLocationInfo value)
Sets the value of the field locationInfo.void
setReadOnly()
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 MAPLocationInfoWithLMSI 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 MAPLocationInfoWithLMSI copyOf(MAPLocationInfoWithLMSI 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:
- MAPLocationInfoWithLMSI
-
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 field-name to field-value. For a field of primitive type, the field-value is boxed. For an absent optional field, the field-value is AbstractFieldsObject.FIELD_ABSENT. For an unitialised mandatory field, the field-value is AbstractFieldsObject.FIELD_UNINITIALISED.- Specified by:
getFieldsMap
in classAbstractFieldsObject
- Parameters:
withAbsents
- whether to put absent optional fields into Map- Returns:
- Map from field-name to field-value
-
getLMsId
public LMSIAddress getLMsId()
Gets the value of the field lMsId.- Returns:
- value of field lMsId, or null if not present
-
getLocationInfo
public MAPLocationInfo getLocationInfo()
Gets the value of the field locationInfo.- Returns:
- value of field locationInfo, or null if not present
-
hasLMsId
public boolean hasLMsId()
Tests whether the field lMsId has a value.- Returns:
- whether the field lMsId has a value
-
hasLocationInfo
public boolean hasLocationInfo()
Tests whether the field locationInfo has a value.- Returns:
- whether the field locationInfo has a value
-
setLMsId
public MAPLocationInfoWithLMSI setLMsId(LMSIAddress value) throws IllegalStateException
Sets the value of the field lMsId. If null, marks the field as absent.- Parameters:
value
- the new value for the field- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setLocationInfo
public MAPLocationInfoWithLMSI setLocationInfo(MAPLocationInfo value) throws IllegalStateException
Sets the value of the field locationInfo.- Parameters:
value
- the new value for the field- 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
-
-