Class CAP3ElapsedTimeRollOver

  • All Implemented Interfaces:
    DataObject, Serializable

    public class CAP3ElapsedTimeRollOver
    extends AbstractFieldsObject
    API for CAP-datatypes.ElapsedTimeRollOver. Generated from the following ASN.1 type definition.
     ElapsedTimeRollOver ::=
         CHOICE {
             rO-TimeGPRSIfNoTariffSwitch INTEGER (0..255),
             rO-TimeGPRSIfTariffSwitch   SEQUENCE {
                 rO-TimeGPRSSinceLastTariffSwitch INTEGER (0..255) OPTIONAL,
                 rO-TimeGPRSTariffSwitchInterval  INTEGER (0..255) OPTIONAL
             }
         }
     

    Used as field type by CAP3ChargingRollOver.

    See Also:
    Serialized Form
    • Constructor Detail

      • CAP3ElapsedTimeRollOver

        public CAP3ElapsedTimeRollOver()
    • Method Detail

      • copyOf

        public static CAP3ElapsedTimeRollOver copyOf​(CAP3ElapsedTimeRollOver 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:
        CAP3ElapsedTimeRollOver
      • 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_TimeGPRSIfNoTariffSwitch

        public int getRO_TimeGPRSIfNoTariffSwitch()
                                           throws IllegalStateException
        Gets the value of the rO-TimeGPRSIfNoTariffSwitch choice.
        Returns:
        value of the choice, if choice is rO-TimeGPRSIfNoTariffSwitch
        Throws:
        IllegalStateException - if choice is not rO-TimeGPRSIfNoTariffSwitch
      • getRO_TimeGPRSIfTariffSwitch

        public CAP3ElapsedTimeRollOver.RO_TimeGPRSIfTariffSwitch getRO_TimeGPRSIfTariffSwitch()
        Gets the value of the rO-TimeGPRSIfTariffSwitch choice.
        Returns:
        value of the choice, if choice is rO-TimeGPRSIfTariffSwitch, else null
      • isRO_TimeGPRSIfNoTariffSwitchChosen

        public boolean isRO_TimeGPRSIfNoTariffSwitchChosen()
        Tests whether the choice is rO-TimeGPRSIfNoTariffSwitch.
        Returns:
        true if chosen, false if not
      • isRO_TimeGPRSIfTariffSwitchChosen

        public boolean isRO_TimeGPRSIfTariffSwitchChosen()
        Tests whether the choice is rO-TimeGPRSIfTariffSwitch.
        Returns:
        true if chosen, false if not
      • setRO_TimeGPRSIfNoTariffSwitch

        public CAP3ElapsedTimeRollOver setRO_TimeGPRSIfNoTariffSwitch​(int value)
                                                               throws IllegalStateException
        Sets the value of the rO-TimeGPRSIfNoTariffSwitch choice.
        Parameters:
        value - the new value for the choice
        Returns:
        this
        Throws:
        IllegalStateException - if this instance has been marked as read-only