Class CAP4ChangeOfLocation
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- com.opencloud.util.AbstractFieldsObject
-
- CAP4ChangeOfLocation
-
- All Implemented Interfaces:
DataObject
,Serializable
public class CAP4ChangeOfLocation extends AbstractFieldsObject
API for CAP-datatypes.ChangeOfLocation. Generated from the following ASN.1 type definition.ChangeOfLocation ::= CHOICE { cellGlobalId CellGlobalIdOrServiceAreaIdFixedLength, serviceAreaId CellGlobalIdOrServiceAreaIdFixedLength, locationAreaId LAIFixedLength, inter-SystemHandOver NULL, inter-PLMNHandOver NULL, inter-MSCHandOver NULL, changeOfLocationAlt ChangeOfLocationAlt }
Used in array as field type by
CAP4DpSpecificCriteriaAlt
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CAP4ChangeOfLocation.Choice
API for CAP-datatypes.ChangeOfLocation.Choice.
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description CAP4ChangeOfLocation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CAP4ChangeOfLocation
clone()
Constructs a copy of this object and everything reachable from it.static CAP4ChangeOfLocation
copyOf(CAP4ChangeOfLocation 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.CellGlobalId
getCellGlobalId()
Gets the value of the cellGlobalId choice.CAP4ChangeOfLocationAlt
getChangeOfLocationAlt()
Gets the value of the changeOfLocationAlt choice.CAP4ChangeOfLocation.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.LocationAreaId
getLocationAreaId()
Gets the value of the locationAreaId choice.CellGlobalId
getServiceAreaId()
Gets the value of the serviceAreaId choice.boolean
isCellGlobalIdChosen()
Tests whether the choice is cellGlobalId.boolean
isChangeOfLocationAltChosen()
Tests whether the choice is changeOfLocationAlt.boolean
isInter_MSCHandOverChosen()
Tests whether the choice is inter-MSCHandOver.boolean
isInter_PLMNHandOverChosen()
Tests whether the choice is inter-PLMNHandOver.boolean
isInter_SystemHandOverChosen()
Tests whether the choice is inter-SystemHandOver.boolean
isLocationAreaIdChosen()
Tests whether the choice is locationAreaId.boolean
isServiceAreaIdChosen()
Tests whether the choice is serviceAreaId.CAP4ChangeOfLocation
setCellGlobalId(CellGlobalId value)
Sets the value of the cellGlobalId choice.CAP4ChangeOfLocation
setChangeOfLocationAlt(CAP4ChangeOfLocationAlt value)
Sets the value of the changeOfLocationAlt choice.CAP4ChangeOfLocation
setInter_MSCHandOver()
Sets the inter-MSCHandOver choice.CAP4ChangeOfLocation
setInter_PLMNHandOver()
Sets the inter-PLMNHandOver choice.CAP4ChangeOfLocation
setInter_SystemHandOver()
Sets the inter-SystemHandOver choice.CAP4ChangeOfLocation
setLocationAreaId(LocationAreaId value)
Sets the value of the locationAreaId choice.void
setReadOnly()
Sets this and all its fields to be immutable.CAP4ChangeOfLocation
setServiceAreaId(CellGlobalId value)
Sets the value of the serviceAreaId choice.-
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 CAP4ChangeOfLocation 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 CAP4ChangeOfLocation copyOf(CAP4ChangeOfLocation 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:
- CAP4ChangeOfLocation
-
getCellGlobalId
public CellGlobalId getCellGlobalId()
Gets the value of the cellGlobalId choice.- Returns:
- value of the choice, if choice is cellGlobalId, else null
-
getChangeOfLocationAlt
public CAP4ChangeOfLocationAlt getChangeOfLocationAlt()
Gets the value of the changeOfLocationAlt choice.- Returns:
- value of the choice, if choice is changeOfLocationAlt, else null
-
getChoice
public CAP4ChangeOfLocation.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
-
getLocationAreaId
public LocationAreaId getLocationAreaId()
Gets the value of the locationAreaId choice.- Returns:
- value of the choice, if choice is locationAreaId, else null
-
getServiceAreaId
public CellGlobalId getServiceAreaId()
Gets the value of the serviceAreaId choice.- Returns:
- value of the choice, if choice is serviceAreaId, else null
-
isCellGlobalIdChosen
public boolean isCellGlobalIdChosen()
Tests whether the choice is cellGlobalId.- Returns:
- true if chosen, false if not
-
isChangeOfLocationAltChosen
public boolean isChangeOfLocationAltChosen()
Tests whether the choice is changeOfLocationAlt.- Returns:
- true if chosen, false if not
-
isInter_MSCHandOverChosen
public boolean isInter_MSCHandOverChosen()
Tests whether the choice is inter-MSCHandOver.- Returns:
- true if chosen, false if not
-
isInter_PLMNHandOverChosen
public boolean isInter_PLMNHandOverChosen()
Tests whether the choice is inter-PLMNHandOver.- Returns:
- true if chosen, false if not
-
isInter_SystemHandOverChosen
public boolean isInter_SystemHandOverChosen()
Tests whether the choice is inter-SystemHandOver.- Returns:
- true if chosen, false if not
-
isLocationAreaIdChosen
public boolean isLocationAreaIdChosen()
Tests whether the choice is locationAreaId.- Returns:
- true if chosen, false if not
-
isServiceAreaIdChosen
public boolean isServiceAreaIdChosen()
Tests whether the choice is serviceAreaId.- Returns:
- true if chosen, false if not
-
setCellGlobalId
public CAP4ChangeOfLocation setCellGlobalId(CellGlobalId value) throws IllegalStateException, NullPointerException
Sets the value of the cellGlobalId 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
-
setChangeOfLocationAlt
public CAP4ChangeOfLocation setChangeOfLocationAlt(CAP4ChangeOfLocationAlt value) throws IllegalStateException, NullPointerException
Sets the value of the changeOfLocationAlt 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
-
setInter_MSCHandOver
public CAP4ChangeOfLocation setInter_MSCHandOver() throws IllegalStateException
Sets the inter-MSCHandOver choice.- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setInter_PLMNHandOver
public CAP4ChangeOfLocation setInter_PLMNHandOver() throws IllegalStateException
Sets the inter-PLMNHandOver choice.- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setInter_SystemHandOver
public CAP4ChangeOfLocation setInter_SystemHandOver() throws IllegalStateException
Sets the inter-SystemHandOver choice.- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setLocationAreaId
public CAP4ChangeOfLocation setLocationAreaId(LocationAreaId value) throws IllegalStateException, NullPointerException
Sets the value of the locationAreaId 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
-
setServiceAreaId
public CAP4ChangeOfLocation setServiceAreaId(CellGlobalId value) throws IllegalStateException, NullPointerException
Sets the value of the serviceAreaId 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
-
-