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
    • Constructor Detail

      • MAPPDP_Context

        public MAPPDP_Context()
        Constructs an object with uninitialised state.
    • Method Detail

      • 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:
        getFieldsMap in class AbstractFieldsObject
        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
      • 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
      • 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
      • 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
      • 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