Class MAPLocationArea
-
- All Implemented Interfaces:
DataObject
,Serializable
public class MAPLocationArea extends AbstractFieldsObject
API for MAP-MS-DataTypes.LocationArea. Generated from the following ASN.1 type definition.LocationArea ::= CHOICE { laiFixedLength LAIFixedLength, lac LAC }
Added in release 8.Used in array as field type by
MAPUpdateLocationArg
.Used in array as field type by
MAPProvideRoamingNumberArg_v3
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MAPLocationArea.Choice
API for MAP-MS-DataTypes.LocationArea.Choice.
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description MAPLocationArea()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MAPLocationArea
clone()
Constructs a copy of this object and everything reachable from it.static MAPLocationArea
copyOf(MAPLocationArea 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.MAPLocationArea.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.byte[]
getLac()
Gets the value of the lac choice.LocationAreaId
getLaiFixedLength()
Gets the value of the laiFixedLength choice.boolean
isLacChosen()
Tests whether the choice is lac.boolean
isLaiFixedLengthChosen()
Tests whether the choice is laiFixedLength.MAPLocationArea
setLac(byte[] value)
Sets the value of the lac choice.MAPLocationArea
setLaiFixedLength(LocationAreaId value)
Sets the value of the laiFixedLength choice.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 MAPLocationArea 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 MAPLocationArea copyOf(MAPLocationArea 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:
- MAPLocationArea
-
getChoice
public MAPLocationArea.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
-
getLac
public byte[] getLac()
Gets the value of the lac choice.- Returns:
- value of the choice, if choice is lac, else null
-
getLaiFixedLength
public LocationAreaId getLaiFixedLength()
Gets the value of the laiFixedLength choice.- Returns:
- value of the choice, if choice is laiFixedLength, else null
-
isLacChosen
public boolean isLacChosen()
Tests whether the choice is lac.- Returns:
- true if chosen, false if not
-
isLaiFixedLengthChosen
public boolean isLaiFixedLengthChosen()
Tests whether the choice is laiFixedLength.- Returns:
- true if chosen, false if not
-
setLac
public MAPLocationArea setLac(byte[] value) throws IllegalStateException, NullPointerException
Sets the value of the lac 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
-
setLaiFixedLength
public MAPLocationArea setLaiFixedLength(LocationAreaId value) throws IllegalStateException, NullPointerException
Sets the value of the laiFixedLength 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
-
-