Class CAP3ElapsedTime.TimeGPRSIfTariffSwitch

  • All Implemented Interfaces:
    DataObject, Serializable
    Enclosing class:
    CAP3ElapsedTime

    public static class CAP3ElapsedTime.TimeGPRSIfTariffSwitch
    extends AbstractFieldsObject
    API for CAP-datatypes.ElapsedTime.timeGPRSIfTariffSwitch. Generated from the following ASN.1 type definition.
     timeGPRSIfTariffSwitch ::=
         SEQUENCE {
             timeGPRSSinceLastTariffSwitch INTEGER (0..86400),
             timeGPRSTariffSwitchInterval  INTEGER (0..86400) OPTIONAL
         }
     

    Used as field type by CAP3ElapsedTime.

    See Also:
    Serialized Form
    • Constructor Detail

      • TimeGPRSIfTariffSwitch

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

      • 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
      • getTimeGPRSSinceLastTariffSwitch

        public int getTimeGPRSSinceLastTariffSwitch()
        Gets the value of the field timeGPRSSinceLastTariffSwitch.
        Returns:
        value of field timeGPRSSinceLastTariffSwitch
      • getTimeGPRSTariffSwitchInterval

        public int getTimeGPRSTariffSwitchInterval()
        Gets the value of the field timeGPRSTariffSwitchInterval.
        Returns:
        value of field timeGPRSTariffSwitchInterval
      • hasTimeGPRSSinceLastTariffSwitch

        public boolean hasTimeGPRSSinceLastTariffSwitch()
        Tests whether the field timeGPRSSinceLastTariffSwitch has a value.
        Returns:
        whether the field timeGPRSSinceLastTariffSwitch has a value
      • hasTimeGPRSTariffSwitchInterval

        public boolean hasTimeGPRSTariffSwitchInterval()
        Tests whether the field timeGPRSTariffSwitchInterval has a value.
        Returns:
        whether the field timeGPRSTariffSwitchInterval has a value
      • setTimeGPRSTariffSwitchIntervalPresent

        public CAP3ElapsedTime.TimeGPRSIfTariffSwitch setTimeGPRSTariffSwitchIntervalPresent​(boolean flag)
                                                                                      throws IllegalStateException
        Sets the presence or absence of the optional field timeGPRSTariffSwitchInterval.
        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