Class CAP2CAI_GSM0224

  • All Implemented Interfaces:
    DataObject, Serializable

    public class CAP2CAI_GSM0224
    extends AbstractFieldsObject
    API for CAP-DataTypes.CAI-GSM0224. Generated from the following ASN.1 type definition.
     CAI-GSM0224 ::=
         SEQUENCE {
             e1 INTEGER (0..8191) OPTIONAL,
             e2 INTEGER (0..8191) OPTIONAL,
             e3 INTEGER (0..8191) OPTIONAL,
             e4 INTEGER (0..8191) OPTIONAL,
             e5 INTEGER (0..8191) OPTIONAL,
             e6 INTEGER (0..8191) OPTIONAL,
             e7 INTEGER (0..8191) OPTIONAL
         }
     

    Used as field type by CAP2AOCBeforeAnswer.

    Used as field type by CAP2AOCSubsequent.

    See Also:
    Serialized Form
    • Constructor Detail

      • CAP2CAI_GSM0224

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

      • copyOf

        public static CAP2CAI_GSM0224 copyOf​(CAP2CAI_GSM0224 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:
        CAP2CAI_GSM0224
      • getE1

        public int getE1()
        Gets the value of the field e1.
        Returns:
        value of field e1
      • getE2

        public int getE2()
        Gets the value of the field e2.
        Returns:
        value of field e2
      • getE3

        public int getE3()
        Gets the value of the field e3.
        Returns:
        value of field e3
      • getE4

        public int getE4()
        Gets the value of the field e4.
        Returns:
        value of field e4
      • getE5

        public int getE5()
        Gets the value of the field e5.
        Returns:
        value of field e5
      • getE6

        public int getE6()
        Gets the value of the field e6.
        Returns:
        value of field e6
      • getE7

        public int getE7()
        Gets the value of the field e7.
        Returns:
        value of field e7
      • 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
      • hasE1

        public boolean hasE1()
        Tests whether the field e1 has a value.
        Returns:
        whether the field e1 has a value
      • hasE2

        public boolean hasE2()
        Tests whether the field e2 has a value.
        Returns:
        whether the field e2 has a value
      • hasE3

        public boolean hasE3()
        Tests whether the field e3 has a value.
        Returns:
        whether the field e3 has a value
      • hasE4

        public boolean hasE4()
        Tests whether the field e4 has a value.
        Returns:
        whether the field e4 has a value
      • hasE5

        public boolean hasE5()
        Tests whether the field e5 has a value.
        Returns:
        whether the field e5 has a value
      • hasE6

        public boolean hasE6()
        Tests whether the field e6 has a value.
        Returns:
        whether the field e6 has a value
      • hasE7

        public boolean hasE7()
        Tests whether the field e7 has a value.
        Returns:
        whether the field e7 has a value
      • setE1

        public CAP2CAI_GSM0224 setE1​(int value)
                              throws IllegalStateException
        Sets the value of the field e1 and marks the field as present.
        Parameters:
        value - the new value for the field
        Returns:
        this
        Throws:
        IllegalStateException - if this instance has been marked as read-only
      • setE1Present

        public CAP2CAI_GSM0224 setE1Present​(boolean flag)
                                     throws IllegalStateException
        Sets the presence or absence of the optional field e1.
        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
      • setE2

        public CAP2CAI_GSM0224 setE2​(int value)
                              throws IllegalStateException
        Sets the value of the field e2 and marks the field as present.
        Parameters:
        value - the new value for the field
        Returns:
        this
        Throws:
        IllegalStateException - if this instance has been marked as read-only
      • setE2Present

        public CAP2CAI_GSM0224 setE2Present​(boolean flag)
                                     throws IllegalStateException
        Sets the presence or absence of the optional field e2.
        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
      • setE3

        public CAP2CAI_GSM0224 setE3​(int value)
                              throws IllegalStateException
        Sets the value of the field e3 and marks the field as present.
        Parameters:
        value - the new value for the field
        Returns:
        this
        Throws:
        IllegalStateException - if this instance has been marked as read-only
      • setE3Present

        public CAP2CAI_GSM0224 setE3Present​(boolean flag)
                                     throws IllegalStateException
        Sets the presence or absence of the optional field e3.
        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
      • setE4

        public CAP2CAI_GSM0224 setE4​(int value)
                              throws IllegalStateException
        Sets the value of the field e4 and marks the field as present.
        Parameters:
        value - the new value for the field
        Returns:
        this
        Throws:
        IllegalStateException - if this instance has been marked as read-only
      • setE4Present

        public CAP2CAI_GSM0224 setE4Present​(boolean flag)
                                     throws IllegalStateException
        Sets the presence or absence of the optional field e4.
        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
      • setE5

        public CAP2CAI_GSM0224 setE5​(int value)
                              throws IllegalStateException
        Sets the value of the field e5 and marks the field as present.
        Parameters:
        value - the new value for the field
        Returns:
        this
        Throws:
        IllegalStateException - if this instance has been marked as read-only
      • setE5Present

        public CAP2CAI_GSM0224 setE5Present​(boolean flag)
                                     throws IllegalStateException
        Sets the presence or absence of the optional field e5.
        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
      • setE6

        public CAP2CAI_GSM0224 setE6​(int value)
                              throws IllegalStateException
        Sets the value of the field e6 and marks the field as present.
        Parameters:
        value - the new value for the field
        Returns:
        this
        Throws:
        IllegalStateException - if this instance has been marked as read-only
      • setE6Present

        public CAP2CAI_GSM0224 setE6Present​(boolean flag)
                                     throws IllegalStateException
        Sets the presence or absence of the optional field e6.
        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
      • setE7

        public CAP2CAI_GSM0224 setE7​(int value)
                              throws IllegalStateException
        Sets the value of the field e7 and marks the field as present.
        Parameters:
        value - the new value for the field
        Returns:
        this
        Throws:
        IllegalStateException - if this instance has been marked as read-only
      • setE7Present

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