Class CAP3ChargingCharacteristics

  • All Implemented Interfaces:
    DataObject, Serializable

    public class CAP3ChargingCharacteristics
    extends AbstractFieldsObject
    API for CAP-datatypes.ChargingCharacteristics. Generated from the following ASN.1 type definition.
     ChargingCharacteristics ::=
         CHOICE {
             maxTransferredVolume INTEGER (1..4294967295),
             maxElapsedTime       INTEGER (1..86400)
         }
     

    Used as field type by CAP3ApplyChargingGPRSArg.

    See Also:
    Serialized Form
    • Constructor Detail

      • CAP3ChargingCharacteristics

        public CAP3ChargingCharacteristics()
    • Method Detail

      • copyOf

        public static CAP3ChargingCharacteristics copyOf​(CAP3ChargingCharacteristics 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:
        CAP3ChargingCharacteristics
      • 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 class AbstractFieldsObject
        Parameters:
        withAbsents - ignored, as value cannot be optional
        Returns:
        Map from :discriminant-name to associated-value
      • getMaxElapsedTime

        public int getMaxElapsedTime()
                              throws IllegalStateException
        Gets the value of the maxElapsedTime choice.
        Returns:
        value of the choice, if choice is maxElapsedTime
        Throws:
        IllegalStateException - if choice is not maxElapsedTime
      • getMaxTransferredVolume

        public long getMaxTransferredVolume()
                                     throws IllegalStateException
        Gets the value of the maxTransferredVolume choice.
        Returns:
        value of the choice, if choice is maxTransferredVolume
        Throws:
        IllegalStateException - if choice is not maxTransferredVolume
      • isMaxElapsedTimeChosen

        public boolean isMaxElapsedTimeChosen()
        Tests whether the choice is maxElapsedTime.
        Returns:
        true if chosen, false if not
      • isMaxTransferredVolumeChosen

        public boolean isMaxTransferredVolumeChosen()
        Tests whether the choice is maxTransferredVolume.
        Returns:
        true if chosen, false if not