Class MAPPDP_Context
-
- All Implemented Interfaces:
DataObject,Serializable
public class MAPPDP_Context extends AbstractFieldsObject
API for MAP-MS-DataTypes.PDP-Context. Generated from the following ASN.1 type definition.PDP-Context ::= SEQUENCE { pdp-ContextId ContextId, pdp-Type PDP-Type, pdp-Address PDP-Address OPTIONAL, qos-Subscribed QoS-Subscribed, -- qos-Subscribed shall be discarded if ext-QoS-Subscribed is received and supported. vplmnAddressAllowed NULL OPTIONAL, apn APN, extensionContainer ExtensionContainer OPTIONAL, ... ext-QoS-Subscribed Ext-QoS-Subscribed OPTIONAL, -- Added in R99. pdp-ChargingCharacteristics ChargingCharacteristics OPTIONAL, -- Added in R99. ext2-QoS-Subscribed Ext2-QoS-Subscribed OPTIONAL, -- Added in release 5. ext2-QoS-Subscribed may be present only if ext-QoS-Subscribed is present. ext3-QoS-Subscribed Ext3-QoS-Subscribed OPTIONAL, -- Added in release 7. ext3-QoS-Subscribed may be present only if ext2-QoS-Subscribed is present. ext4-QoS-Subscribed Ext4-QoS-Subscribed OPTIONAL, -- Added in release 9. ext4-QoS-Subscribed may be present only if ext3-QoS-Subscribed is present. apn-oi-Replacement APN-OI-Replacement OPTIONAL, -- Added in release 9. This apn-oi-Replacement refers to the APN level apn-oi-Replacement and has higher priority than UE level apn-oi-Replacement. ext-pdp-Type Ext-PDP-Type OPTIONAL, -- Added in release 9. Contains the value IPv4v6 defined in 3GPP TS 29.060, if the PDP can be accessed by dual-stack UEs. ext-pdp-Address PDP-Address OPTIONAL, -- Added in release 9. Contains an additional IP address in case of dual-stack static IP address assignment for the UE. It may contain an IPv4 or an IPv6 address/prefix, and it may be present only if pdp-Address is present; if both are present, each parameter shall contain a different type of address (IPv4 or IPv6). sipto-Permission SIPTO-Permission OPTIONAL -- Added in release 10. }Added in R97.Used in array as field type by
MAPGPRSSubscriptionData.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description MAPPDP_Context()Constructs an object with uninitialised state.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MAPPDP_Contextclone()Constructs a copy of this object and everything reachable from it.static MAPPDP_ContextcopyOf(MAPPDP_Context 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.AccessPointNamegetApn()Gets the value of the field apn.AccessPointNameOperatorIdgetApn_oi_Replacement()Gets the value of the field apn-oi-Replacement.byte[]getExt_pdp_Address()Gets the value of the field ext-pdp-Address.byte[]getExt_pdp_Type()Gets the value of the field ext-pdp-Type.byte[]getExt_QoS_Subscribed()Gets the value of the field ext-QoS-Subscribed.byte[]getExt2_QoS_Subscribed()Gets the value of the field ext2-QoS-Subscribed.byte[]getExt3_QoS_Subscribed()Gets the value of the field ext3-QoS-Subscribed.byte[]getExt4_QoS_Subscribed()Gets the value of the field ext4-QoS-Subscribed.MAPExtensionContainergetExtensionContainer()Gets the value of the field extensionContainer.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.byte[]getPdp_Address()Gets the value of the field pdp-Address.byte[]getPdp_ChargingCharacteristics()Gets the value of the field pdp-ChargingCharacteristics.intgetPdp_ContextId()Gets the value of the field pdp-ContextId.byte[]getPdp_Type()Gets the value of the field pdp-Type.byte[]getQos_Subscribed()Gets the value of the field qos-Subscribed.MAPSIPTO_PermissiongetSipto_Permission()Gets the value of the field sipto-Permission.booleanhasApn()Tests whether the field apn has a value.booleanhasApn_oi_Replacement()Tests whether the field apn-oi-Replacement has a value.booleanhasExt_pdp_Address()Tests whether the field ext-pdp-Address has a value.booleanhasExt_pdp_Type()Tests whether the field ext-pdp-Type has a value.booleanhasExt_QoS_Subscribed()Tests whether the field ext-QoS-Subscribed has a value.booleanhasExt2_QoS_Subscribed()Tests whether the field ext2-QoS-Subscribed has a value.booleanhasExt3_QoS_Subscribed()Tests whether the field ext3-QoS-Subscribed has a value.booleanhasExt4_QoS_Subscribed()Tests whether the field ext4-QoS-Subscribed has a value.booleanhasExtensionContainer()Tests whether the field extensionContainer has a value.booleanhasPdp_Address()Tests whether the field pdp-Address has a value.booleanhasPdp_ChargingCharacteristics()Tests whether the field pdp-ChargingCharacteristics has a value.booleanhasPdp_ContextId()Tests whether the field pdp-ContextId has a value.booleanhasPdp_Type()Tests whether the field pdp-Type has a value.booleanhasQos_Subscribed()Tests whether the field qos-Subscribed has a value.booleanhasSipto_Permission()Tests whether the field sipto-Permission has a value.booleanhasVplmnAddressAllowed()Tests whether the field vplmnAddressAllowed is present.MAPPDP_ContextsetApn(AccessPointName value)Sets the value of the field apn.MAPPDP_ContextsetApn_oi_Replacement(AccessPointNameOperatorId value)Sets the value of the field apn-oi-Replacement.MAPPDP_ContextsetExt_pdp_Address(byte[] value)Sets the value of the field ext-pdp-Address.MAPPDP_ContextsetExt_pdp_Type(byte[] value)Sets the value of the field ext-pdp-Type.MAPPDP_ContextsetExt_QoS_Subscribed(byte[] value)Sets the value of the field ext-QoS-Subscribed.MAPPDP_ContextsetExt2_QoS_Subscribed(byte[] value)Sets the value of the field ext2-QoS-Subscribed.MAPPDP_ContextsetExt3_QoS_Subscribed(byte[] value)Sets the value of the field ext3-QoS-Subscribed.MAPPDP_ContextsetExt4_QoS_Subscribed(byte[] value)Sets the value of the field ext4-QoS-Subscribed.MAPPDP_ContextsetExtensionContainer(MAPExtensionContainer value)Sets the value of the field extensionContainer.MAPPDP_ContextsetPdp_Address(byte[] value)Sets the value of the field pdp-Address.MAPPDP_ContextsetPdp_ChargingCharacteristics(byte[] value)Sets the value of the field pdp-ChargingCharacteristics.MAPPDP_ContextsetPdp_ContextId(int value)Sets the value of the field pdp-ContextId and marks the field as present.MAPPDP_ContextsetPdp_Type(byte[] value)Sets the value of the field pdp-Type.MAPPDP_ContextsetQos_Subscribed(byte[] value)Sets the value of the field qos-Subscribed.voidsetReadOnly()Sets this and all its fields to be immutable.MAPPDP_ContextsetSipto_Permission(MAPSIPTO_Permission value)Sets the value of the field sipto-Permission.MAPPDP_ContextsetVplmnAddressAllowedPresent(boolean flag)Sets the presence or absence of the optional field vplmnAddressAllowed.-
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 MAPPDP_Context 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 MAPPDP_Context copyOf(MAPPDP_Context 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:
- MAPPDP_Context
-
getApn
public AccessPointName getApn()
Gets the value of the field apn.- Returns:
- value of field apn, or null if not present
-
getApn_oi_Replacement
public AccessPointNameOperatorId getApn_oi_Replacement()
Gets the value of the field apn-oi-Replacement.- Returns:
- value of field apn-oi-Replacement, or null if not present
-
getExt2_QoS_Subscribed
public byte[] getExt2_QoS_Subscribed()
Gets the value of the field ext2-QoS-Subscribed.- Returns:
- value of field ext2-QoS-Subscribed, or null if not present
-
getExt3_QoS_Subscribed
public byte[] getExt3_QoS_Subscribed()
Gets the value of the field ext3-QoS-Subscribed.- Returns:
- value of field ext3-QoS-Subscribed, or null if not present
-
getExt4_QoS_Subscribed
public byte[] getExt4_QoS_Subscribed()
Gets the value of the field ext4-QoS-Subscribed.- Returns:
- value of field ext4-QoS-Subscribed, or null if not present
-
getExt_QoS_Subscribed
public byte[] getExt_QoS_Subscribed()
Gets the value of the field ext-QoS-Subscribed.- Returns:
- value of field ext-QoS-Subscribed, or null if not present
-
getExt_pdp_Address
public byte[] getExt_pdp_Address()
Gets the value of the field ext-pdp-Address.- Returns:
- value of field ext-pdp-Address, or null if not present
-
getExt_pdp_Type
public byte[] getExt_pdp_Type()
Gets the value of the field ext-pdp-Type.- Returns:
- value of field ext-pdp-Type, or null if not present
-
getExtensionContainer
public MAPExtensionContainer getExtensionContainer()
Gets the value of the field extensionContainer.- Returns:
- value of field extensionContainer, or null if not present
-
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:
getFieldsMapin classAbstractFieldsObject- Parameters:
withAbsents- whether to put absent optional fields into Map- Returns:
- Map from field-name to field-value
-
getPdp_Address
public byte[] getPdp_Address()
Gets the value of the field pdp-Address.- Returns:
- value of field pdp-Address, or null if not present
-
getPdp_ChargingCharacteristics
public byte[] getPdp_ChargingCharacteristics()
Gets the value of the field pdp-ChargingCharacteristics.- Returns:
- value of field pdp-ChargingCharacteristics, or null if not present
-
getPdp_ContextId
public int getPdp_ContextId()
Gets the value of the field pdp-ContextId.- Returns:
- value of field pdp-ContextId
-
getPdp_Type
public byte[] getPdp_Type()
Gets the value of the field pdp-Type.- Returns:
- value of field pdp-Type, or null if not present
-
getQos_Subscribed
public byte[] getQos_Subscribed()
Gets the value of the field qos-Subscribed.- Returns:
- value of field qos-Subscribed, or null if not present
-
getSipto_Permission
public MAPSIPTO_Permission getSipto_Permission()
Gets the value of the field sipto-Permission.- Returns:
- value of field sipto-Permission, or null if not present
-
hasApn
public boolean hasApn()
Tests whether the field apn has a value.- Returns:
- whether the field apn has a value
-
hasApn_oi_Replacement
public boolean hasApn_oi_Replacement()
Tests whether the field apn-oi-Replacement has a value.- Returns:
- whether the field apn-oi-Replacement has a value
-
hasExt2_QoS_Subscribed
public boolean hasExt2_QoS_Subscribed()
Tests whether the field ext2-QoS-Subscribed has a value.- Returns:
- whether the field ext2-QoS-Subscribed has a value
-
hasExt3_QoS_Subscribed
public boolean hasExt3_QoS_Subscribed()
Tests whether the field ext3-QoS-Subscribed has a value.- Returns:
- whether the field ext3-QoS-Subscribed has a value
-
hasExt4_QoS_Subscribed
public boolean hasExt4_QoS_Subscribed()
Tests whether the field ext4-QoS-Subscribed has a value.- Returns:
- whether the field ext4-QoS-Subscribed has a value
-
hasExt_QoS_Subscribed
public boolean hasExt_QoS_Subscribed()
Tests whether the field ext-QoS-Subscribed has a value.- Returns:
- whether the field ext-QoS-Subscribed has a value
-
hasExt_pdp_Address
public boolean hasExt_pdp_Address()
Tests whether the field ext-pdp-Address has a value.- Returns:
- whether the field ext-pdp-Address has a value
-
hasExt_pdp_Type
public boolean hasExt_pdp_Type()
Tests whether the field ext-pdp-Type has a value.- Returns:
- whether the field ext-pdp-Type has a value
-
hasExtensionContainer
public boolean hasExtensionContainer()
Tests whether the field extensionContainer has a value.- Returns:
- whether the field extensionContainer has a value
-
hasPdp_Address
public boolean hasPdp_Address()
Tests whether the field pdp-Address has a value.- Returns:
- whether the field pdp-Address has a value
-
hasPdp_ChargingCharacteristics
public boolean hasPdp_ChargingCharacteristics()
Tests whether the field pdp-ChargingCharacteristics has a value.- Returns:
- whether the field pdp-ChargingCharacteristics has a value
-
hasPdp_ContextId
public boolean hasPdp_ContextId()
Tests whether the field pdp-ContextId has a value.- Returns:
- whether the field pdp-ContextId has a value
-
hasPdp_Type
public boolean hasPdp_Type()
Tests whether the field pdp-Type has a value.- Returns:
- whether the field pdp-Type has a value
-
hasQos_Subscribed
public boolean hasQos_Subscribed()
Tests whether the field qos-Subscribed has a value.- Returns:
- whether the field qos-Subscribed has a value
-
hasSipto_Permission
public boolean hasSipto_Permission()
Tests whether the field sipto-Permission has a value.- Returns:
- whether the field sipto-Permission has a value
-
hasVplmnAddressAllowed
public boolean hasVplmnAddressAllowed()
Tests whether the field vplmnAddressAllowed is present.- Returns:
- whether the field vplmnAddressAllowed is present
-
setApn
public MAPPDP_Context setApn(AccessPointName value) throws IllegalStateException
Sets the value of the field apn.- Parameters:
value- the new value for the field- Returns:
- this
- Throws:
IllegalStateException- if this instance has been marked as read-only
-
setApn_oi_Replacement
public MAPPDP_Context setApn_oi_Replacement(AccessPointNameOperatorId value) throws IllegalStateException
Sets the value of the field apn-oi-Replacement. 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
-
setExt2_QoS_Subscribed
public MAPPDP_Context setExt2_QoS_Subscribed(byte[] value) throws IllegalStateException
Sets the value of the field ext2-QoS-Subscribed. 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
-
setExt3_QoS_Subscribed
public MAPPDP_Context setExt3_QoS_Subscribed(byte[] value) throws IllegalStateException
Sets the value of the field ext3-QoS-Subscribed. 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
-
setExt4_QoS_Subscribed
public MAPPDP_Context setExt4_QoS_Subscribed(byte[] value) throws IllegalStateException
Sets the value of the field ext4-QoS-Subscribed. 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
-
setExt_QoS_Subscribed
public MAPPDP_Context setExt_QoS_Subscribed(byte[] value) throws IllegalStateException
Sets the value of the field ext-QoS-Subscribed. 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
-
setExt_pdp_Address
public MAPPDP_Context setExt_pdp_Address(byte[] value) throws IllegalStateException
Sets the value of the field ext-pdp-Address. 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
-
setExt_pdp_Type
public MAPPDP_Context setExt_pdp_Type(byte[] value) throws IllegalStateException
Sets the value of the field ext-pdp-Type. 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
-
setExtensionContainer
public MAPPDP_Context setExtensionContainer(MAPExtensionContainer value) throws IllegalStateException
Sets the value of the field extensionContainer. 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
-
setPdp_Address
public MAPPDP_Context setPdp_Address(byte[] value) throws IllegalStateException
Sets the value of the field pdp-Address. 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
-
setPdp_ChargingCharacteristics
public MAPPDP_Context setPdp_ChargingCharacteristics(byte[] value) throws IllegalStateException
Sets the value of the field pdp-ChargingCharacteristics. 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
-
setPdp_ContextId
public MAPPDP_Context setPdp_ContextId(int value) throws IllegalStateException
Sets the value of the field pdp-ContextId and marks the field as present.- Parameters:
value- the new value for the field- Returns:
- this
- Throws:
IllegalStateException- if this instance has been marked as read-only
-
setPdp_Type
public MAPPDP_Context setPdp_Type(byte[] value) throws IllegalStateException
Sets the value of the field pdp-Type.- Parameters:
value- the new value for the field- Returns:
- this
- Throws:
IllegalStateException- if this instance has been marked as read-only
-
setQos_Subscribed
public MAPPDP_Context setQos_Subscribed(byte[] value) throws IllegalStateException
Sets the value of the field qos-Subscribed.- 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:
setReadOnlyin interfaceDataObject- Overrides:
setReadOnlyin classAbstractDataObject
-
setSipto_Permission
public MAPPDP_Context setSipto_Permission(MAPSIPTO_Permission value) throws IllegalStateException
Sets the value of the field sipto-Permission. 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
-
setVplmnAddressAllowedPresent
public MAPPDP_Context setVplmnAddressAllowedPresent(boolean flag) throws IllegalStateException
Sets the presence or absence of the optional field vplmnAddressAllowed.- Parameters:
flag- either true if the field should be marked as present or false if the field should be marked as absent- Returns:
- this
- Throws:
IllegalStateException- if this instance has been marked as read-only
-
-