Class CAP3TransferredVolumeRollOver

  • All Implemented Interfaces:
    DataObject, Serializable

    public class CAP3TransferredVolumeRollOver
    extends AbstractFieldsObject
    API for CAP-datatypes.TransferredVolumeRollOver. Generated from the following ASN.1 type definition.
     TransferredVolumeRollOver ::=
         CHOICE {
             rO-VolumeIfNoTariffSwitch INTEGER (0..255),
             rO-VolumeIfTariffSwitch   SEQUENCE {
                 rO-VolumeSinceLastTariffSwitch INTEGER (0..255) OPTIONAL,
                 rO-VolumeTariffSwitchInterval  INTEGER (0..255) OPTIONAL
             }
         }
     

    Used as field type by CAP3ChargingRollOver.

    See Also:
    Serialized Form
    • Constructor Detail

      • CAP3TransferredVolumeRollOver

        public CAP3TransferredVolumeRollOver()
    • Method Detail

      • copyOf

        public static CAP3TransferredVolumeRollOver copyOf​(CAP3TransferredVolumeRollOver 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:
        CAP3TransferredVolumeRollOver
      • 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
      • getRO_VolumeIfNoTariffSwitch

        public int getRO_VolumeIfNoTariffSwitch()
                                         throws IllegalStateException
        Gets the value of the rO-VolumeIfNoTariffSwitch choice.
        Returns:
        value of the choice, if choice is rO-VolumeIfNoTariffSwitch
        Throws:
        IllegalStateException - if choice is not rO-VolumeIfNoTariffSwitch
      • isRO_VolumeIfNoTariffSwitchChosen

        public boolean isRO_VolumeIfNoTariffSwitchChosen()
        Tests whether the choice is rO-VolumeIfNoTariffSwitch.
        Returns:
        true if chosen, false if not
      • isRO_VolumeIfTariffSwitchChosen

        public boolean isRO_VolumeIfTariffSwitchChosen()
        Tests whether the choice is rO-VolumeIfTariffSwitch.
        Returns:
        true if chosen, false if not