Class MAPCUG_Feature

  • All Implemented Interfaces:
    DataObject, Serializable

    public class MAPCUG_Feature
    extends AbstractFieldsObject
    API for MAP-MS-DataTypes.CUG-Feature. Generated from the following ASN.1 type definition.
     CUG-Feature ::=
         SEQUENCE {
             basicService              Ext-BasicServiceCode OPTIONAL,
             preferentialCUG-Indicator CUG-Index OPTIONAL,
             interCUG-Restrictions     InterCUG-Restrictions,
             extensionContainer        ExtensionContainer OPTIONAL,   -- Added in R96.
             ...
         }
     
    Added in ph2. Moved from MAP-SS-DataTypes between ph2 and R96.

    Used in array as field type by MAPCUG_Info.

    See Also:
    Serialized Form
    • Constructor Detail

      • MAPCUG_Feature

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

      • copyOf

        public static MAPCUG_Feature copyOf​(MAPCUG_Feature 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:
        MAPCUG_Feature
      • getBasicService

        public MAPExt_BasicServiceCode getBasicService()
        Gets the value of the field basicService.
        Returns:
        value of field basicService, or null if not present
      • 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
      • getInterCUG_Restrictions

        public byte[] getInterCUG_Restrictions()
        Gets the value of the field interCUG-Restrictions.
        Returns:
        value of field interCUG-Restrictions, or null if not present
      • getPreferentialCUG_Indicator

        public int getPreferentialCUG_Indicator()
        Gets the value of the field preferentialCUG-Indicator.
        Returns:
        value of field preferentialCUG-Indicator
      • hasBasicService

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

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

        public boolean hasInterCUG_Restrictions()
        Tests whether the field interCUG-Restrictions has a value.
        Returns:
        whether the field interCUG-Restrictions has a value
      • hasPreferentialCUG_Indicator

        public boolean hasPreferentialCUG_Indicator()
        Tests whether the field preferentialCUG-Indicator has a value.
        Returns:
        whether the field preferentialCUG-Indicator has a value
      • setInterCUG_Restrictions

        public MAPCUG_Feature setInterCUG_Restrictions​(byte[] value)
                                                throws IllegalStateException
        Sets the value of the field interCUG-Restrictions.
        Parameters:
        value - the new value for the field
        Returns:
        this
        Throws:
        IllegalStateException - if this instance has been marked as read-only
      • setPreferentialCUG_Indicator

        public MAPCUG_Feature setPreferentialCUG_Indicator​(int value)
                                                    throws IllegalStateException
        Sets the value of the field preferentialCUG-Indicator 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
      • setPreferentialCUG_IndicatorPresent

        public MAPCUG_Feature setPreferentialCUG_IndicatorPresent​(boolean flag)
                                                           throws IllegalStateException
        Sets the presence or absence of the optional field preferentialCUG-Indicator.
        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