Class MAPSS_Data

  • All Implemented Interfaces:
    DataObject, Serializable
    Direct Known Subclasses:
    MAPExt_SS_Data

    public class MAPSS_Data
    extends MAPSS_Data_v1
    API for MAP-SS-DataTypes.SS-Data. Generated from the following ASN.1 type definition and the adaptations below.
     SS-Data ::=
         SEQUENCE {
             ss-Code               SS-Code OPTIONAL,
             ss-Status             SS-Status OPTIONAL,
             ss-SubscriptionOption SS-SubscriptionOption OPTIONAL,
             basicServiceGroupList BasicServiceGroupList OPTIONAL, -- Added in ph2.
             ...
             defaultPriority       EMLPP-Priority OPTIONAL,        -- Added in R97.
             nbrUser               MC-Bearers OPTIONAL             -- Added in R99.
         }
     MAP-SS-DataTypes {
         SS-Data {
             @parentASN1Type MAP-SS-DataTypes-ph1.SS-Data-v1
         }
     }
     
    Added in ph2 as an extension of MAPSS_Data_v1. Note that the parent's field ss-SubscriptionOption-v1 is for use only in -v1 contexts.

    Used as field type by MAPSS_Info.

    See Also:
    Serialized Form
    • Constructor Detail

      • MAPSS_Data

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

      • copyOf

        public static MAPSS_Data copyOf​(MAPSS_Data_v1 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:
        MAPSS_Data
      • getBasicServiceGroupList

        public MAPBasicServiceCode[] getBasicServiceGroupList()
        Gets the value of the field basicServiceGroupList.
        Returns:
        value of field basicServiceGroupList, or null if not present
      • getDefaultPriority

        public int getDefaultPriority()
        Gets the value of the field defaultPriority.
        Returns:
        value of field defaultPriority
      • 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.
        Overrides:
        getFieldsMap in class MAPSS_Data_v1
        Parameters:
        withAbsents - whether to put absent optional fields into Map
        Returns:
        Map from field-name to field-value
      • getNbrUser

        public int getNbrUser()
        Gets the value of the field nbrUser.
        Returns:
        value of field nbrUser
      • getSs_SubscriptionOption

        public MAPSS_SubscriptionOption getSs_SubscriptionOption()
        Gets the value of the field ss-SubscriptionOption.
        Returns:
        value of field ss-SubscriptionOption, or null if not present
      • hasBasicServiceGroupList

        public boolean hasBasicServiceGroupList()
        Tests whether the field basicServiceGroupList has a value.
        Returns:
        whether the field basicServiceGroupList has a value
      • hasDefaultPriority

        public boolean hasDefaultPriority()
        Tests whether the field defaultPriority has a value.
        Returns:
        whether the field defaultPriority has a value
      • hasNbrUser

        public boolean hasNbrUser()
        Tests whether the field nbrUser has a value.
        Returns:
        whether the field nbrUser has a value
      • hasSs_SubscriptionOption

        public boolean hasSs_SubscriptionOption()
        Tests whether the field ss-SubscriptionOption has a value.
        Returns:
        whether the field ss-SubscriptionOption has a value
      • setBasicServiceGroupList

        public MAPSS_Data setBasicServiceGroupList​(MAPBasicServiceCode[] value)
                                            throws IllegalStateException
        Sets the value of the field basicServiceGroupList. If null, marks the field as absent.
        Parameters:
        value - the new value for the field
        Returns:
        this
        Throws:
        IllegalStateException - if this instance has been marked as read-only
      • setDefaultPriority

        public MAPSS_Data setDefaultPriority​(int value)
                                      throws IllegalStateException
        Sets the value of the field defaultPriority 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
      • setDefaultPriorityPresent

        public MAPSS_Data setDefaultPriorityPresent​(boolean flag)
                                             throws IllegalStateException
        Sets the presence or absence of the optional field defaultPriority.
        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
      • setNbrUser

        public MAPSS_Data setNbrUser​(int value)
                              throws IllegalStateException
        Sets the value of the field nbrUser 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
      • setNbrUserPresent

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