Class CAP3ApplyChargingReportGPRSArg

  • All Implemented Interfaces:
    DataObject, Serializable

    public class CAP3ApplyChargingReportGPRSArg
    extends AbstractFieldsObject
    API for CAP-gprsSSF-gsmSCF-ops-args.ApplyChargingReportGPRSArg. Generated from the following ASN.1 type definition.
     ApplyChargingReportGPRSArg ::=
         SEQUENCE {
             chargingResult   ChargingResult,
             qualityOfService QualityOfService OPTIONAL,
             active           BOOLEAN DEFAULT TRUE,
             pDPID            PDPID OPTIONAL,
             ...
             chargingRollOver ChargingRollOver OPTIONAL
         }
     

    Used as argument type by CAP3Operations.applyChargingReportGPRS.

    See Also:
    Serialized Form
    • Constructor Detail

      • CAP3ApplyChargingReportGPRSArg

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

      • copyOf

        public static CAP3ApplyChargingReportGPRSArg copyOf​(CAP3ApplyChargingReportGPRSArg 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:
        CAP3ApplyChargingReportGPRSArg
      • getActive

        public boolean getActive()
        Gets the value of the field active.
        Returns:
        value of field active
      • getChargingResult

        public CAP3ChargingResult getChargingResult()
        Gets the value of the field chargingResult.
        Returns:
        value of field chargingResult, or null if not present
      • getChargingRollOver

        public CAP3ChargingRollOver getChargingRollOver()
        Gets the value of the field chargingRollOver.
        Returns:
        value of field chargingRollOver, 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
      • getPDPID

        public byte[] getPDPID()
        Gets the value of the field pDPID.
        Returns:
        value of field pDPID, or null if not present
      • getQualityOfService

        public CAP3QualityOfService getQualityOfService()
        Gets the value of the field qualityOfService.
        Returns:
        value of field qualityOfService, or null if not present
      • hasActive

        public boolean hasActive()
        Tests whether the field active has a value.
        Returns:
        whether the field active has a value
      • hasChargingResult

        public boolean hasChargingResult()
        Tests whether the field chargingResult has a value.
        Returns:
        whether the field chargingResult has a value
      • hasChargingRollOver

        public boolean hasChargingRollOver()
        Tests whether the field chargingRollOver has a value.
        Returns:
        whether the field chargingRollOver has a value
      • hasPDPID

        public boolean hasPDPID()
        Tests whether the field pDPID has a value.
        Returns:
        whether the field pDPID has a value
      • hasQualityOfService

        public boolean hasQualityOfService()
        Tests whether the field qualityOfService has a value.
        Returns:
        whether the field qualityOfService has a value
      • setActivePresent

        public CAP3ApplyChargingReportGPRSArg setActivePresent​(boolean flag)
                                                        throws IllegalStateException
        Sets the presence or absence of the optional field active.
        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