Class MAPServiceType

  • All Implemented Interfaces:
    DataObject, Serializable

    public class MAPServiceType
    extends AbstractFieldsObject
    API for MAP-MS-DataTypes.ServiceType. Generated from the following ASN.1 type definition.
     ServiceType ::=
         SEQUENCE {
             serviceTypeIdentity  LCSServiceTypeID,
             gmlc-Restriction     GMLC-Restriction OPTIONAL,
             notificationToMSUser NotificationToMSUser OPTIONAL, -- If notificationToMSUser is not received, the default value according to 3GPP TS 23.271 shall be assumed.
             extensionContainer   ExtensionContainer OPTIONAL,
             ...
         }
     
    Added in release 5.

    Used in array as field type by MAPLCS_PrivacyClass.

    See Also:
    Serialized Form
    • Constructor Detail

      • MAPServiceType

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

      • copyOf

        public static MAPServiceType copyOf​(MAPServiceType 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:
        MAPServiceType
      • getExtensionContainer

        public MAPExtensionContainer getExtensionContainer()
        Gets the value of the field extensionContainer.
        Returns:
        value of field extensionContainer, or null if not present
      • 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
      • getGmlc_Restriction

        public MAPGMLC_Restriction getGmlc_Restriction()
        Gets the value of the field gmlc-Restriction.
        Returns:
        value of field gmlc-Restriction, or null if not present
      • getNotificationToMSUser

        public MAPNotificationToMSUser getNotificationToMSUser()
        Gets the value of the field notificationToMSUser.
        Returns:
        value of field notificationToMSUser, or null if not present
      • getServiceTypeIdentity

        public int getServiceTypeIdentity()
        Gets the value of the field serviceTypeIdentity.
        Returns:
        value of field serviceTypeIdentity
      • hasExtensionContainer

        public boolean hasExtensionContainer()
        Tests whether the field extensionContainer has a value.
        Returns:
        whether the field extensionContainer has a value
      • hasGmlc_Restriction

        public boolean hasGmlc_Restriction()
        Tests whether the field gmlc-Restriction has a value.
        Returns:
        whether the field gmlc-Restriction has a value
      • hasNotificationToMSUser

        public boolean hasNotificationToMSUser()
        Tests whether the field notificationToMSUser has a value.
        Returns:
        whether the field notificationToMSUser has a value
      • hasServiceTypeIdentity

        public boolean hasServiceTypeIdentity()
        Tests whether the field serviceTypeIdentity has a value.
        Returns:
        whether the field serviceTypeIdentity has a value
      • setServiceTypeIdentity

        public MAPServiceType setServiceTypeIdentity​(int value)
                                              throws IllegalStateException
        Sets the value of the field serviceTypeIdentity 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