Class MAPSubscriberState
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- com.opencloud.util.AbstractFieldsObject
-
- MAPSubscriberState
-
- All Implemented Interfaces:
DataObject
,Serializable
public class MAPSubscriberState extends AbstractFieldsObject
API for MAP-MS-DataTypes.SubscriberState. Generated from the following ASN.1 type definition.SubscriberState ::= CHOICE { assumedIdle NULL, camelBusy NULL, netDetNotReachable NotReachableReason, notProvidedFromVLR NULL }
Added in R96.Used as field type by
MAPSubscriberInfo
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MAPSubscriberState.Choice
API for MAP-MS-DataTypes.SubscriberState.Choice.
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description MAPSubscriberState()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MAPSubscriberState
clone()
Constructs a copy of this object and everything reachable from it.static MAPSubscriberState
copyOf(MAPSubscriberState 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.MAPSubscriberState.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.MAPNotReachableReason
getNetDetNotReachable()
Gets the value of the netDetNotReachable choice.boolean
isAssumedIdleChosen()
Tests whether the choice is assumedIdle.boolean
isCamelBusyChosen()
Tests whether the choice is camelBusy.boolean
isNetDetNotReachableChosen()
Tests whether the choice is netDetNotReachable.boolean
isNotProvidedFromVLRChosen()
Tests whether the choice is notProvidedFromVLR.MAPSubscriberState
setAssumedIdle()
Sets the assumedIdle choice.MAPSubscriberState
setCamelBusy()
Sets the camelBusy choice.MAPSubscriberState
setNetDetNotReachable(MAPNotReachableReason value)
Sets the value of the netDetNotReachable choice.MAPSubscriberState
setNotProvidedFromVLR()
Sets the notProvidedFromVLR choice.-
Methods inherited from class com.opencloud.util.AbstractFieldsObject
equals, hashCode, toString
-
Methods inherited from class com.opencloud.util.AbstractDataObject
checkModify, isReadOnly, setReadOnly
-
-
-
-
Method Detail
-
clone
public MAPSubscriberState 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 MAPSubscriberState copyOf(MAPSubscriberState 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:
- MAPSubscriberState
-
getChoice
public MAPSubscriberState.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
-
getNetDetNotReachable
public MAPNotReachableReason getNetDetNotReachable()
Gets the value of the netDetNotReachable choice.- Returns:
- value of the choice, if choice is netDetNotReachable, else null
-
isAssumedIdleChosen
public boolean isAssumedIdleChosen()
Tests whether the choice is assumedIdle.- Returns:
- true if chosen, false if not
-
isCamelBusyChosen
public boolean isCamelBusyChosen()
Tests whether the choice is camelBusy.- Returns:
- true if chosen, false if not
-
isNetDetNotReachableChosen
public boolean isNetDetNotReachableChosen()
Tests whether the choice is netDetNotReachable.- Returns:
- true if chosen, false if not
-
isNotProvidedFromVLRChosen
public boolean isNotProvidedFromVLRChosen()
Tests whether the choice is notProvidedFromVLR.- Returns:
- true if chosen, false if not
-
setAssumedIdle
public MAPSubscriberState setAssumedIdle() throws IllegalStateException
Sets the assumedIdle choice.- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setCamelBusy
public MAPSubscriberState setCamelBusy() throws IllegalStateException
Sets the camelBusy choice.- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setNetDetNotReachable
public MAPSubscriberState setNetDetNotReachable(MAPNotReachableReason value) throws IllegalStateException, NullPointerException
Sets the value of the netDetNotReachable 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
-
setNotProvidedFromVLR
public MAPSubscriberState setNotProvidedFromVLR() throws IllegalStateException
Sets the notProvidedFromVLR choice.- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
-