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 classMAPLocationArea.ChoiceAPI 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 MAPLocationAreaclone()Constructs a copy of this object and everything reachable from it.static MAPLocationAreacopyOf(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.ChoicegetChoice()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.LocationAreaIdgetLaiFixedLength()Gets the value of the laiFixedLength choice.booleanisLacChosen()Tests whether the choice is lac.booleanisLaiFixedLengthChosen()Tests whether the choice is laiFixedLength.MAPLocationAreasetLac(byte[] value)Sets the value of the lac choice.MAPLocationAreasetLaiFixedLength(LocationAreaId value)Sets the value of the laiFixedLength choice.voidsetReadOnly()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:
clonein interfaceDataObject- Specified by:
clonein 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:
getFieldsMapin 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:
setReadOnlyin interfaceDataObject- Overrides:
setReadOnlyin classAbstractDataObject
-
-