Class MAPMAP_UserAbortChoice

  • All Implemented Interfaces:
    DataObject, Serializable

    public class MAPMAP_UserAbortChoice
    extends AbstractFieldsObject
    API for MAP-DialogueInformation.MAP-UserAbortChoice. Generated from the following ASN.1 type definition.
     MAP-UserAbortChoice ::=
         CHOICE {
             userSpecificReason               NULL,
             userResourceLimitation           NULL,
             resourceUnavailable              ResourceUnavailableReason,
             applicationProcedureCancellation ProcedureCancellationReason
         }
     
    Added in ph2. Spelt MAPMAP_UserAbortChoice because it's generated from something in the MAP spec that's called MAP-UserAbortChoice.

    Used as field type by MAPMAP_UserAbortInfo.

    See Also:
    Serialized Form
    • Constructor Detail

      • MAPMAP_UserAbortChoice

        public MAPMAP_UserAbortChoice()
    • Method Detail

      • copyOf

        public static MAPMAP_UserAbortChoice copyOf​(MAPMAP_UserAbortChoice 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:
        MAPMAP_UserAbortChoice
      • getApplicationProcedureCancellation

        public MAPProcedureCancellationReason getApplicationProcedureCancellation()
        Gets the value of the applicationProcedureCancellation choice.
        Returns:
        value of the choice, if choice is applicationProcedureCancellation, else null
      • 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 :discriminant-name to associated-value. For a value of primitive type, the value is boxed. If choice is not set, returns a map from : to AbstractFieldsObject.FIELD_UNINITIALISED.
        Specified by:
        getFieldsMap in class AbstractFieldsObject
        Parameters:
        withAbsents - ignored, as value cannot be optional
        Returns:
        Map from :discriminant-name to associated-value
      • getResourceUnavailable

        public MAPResourceUnavailableReason getResourceUnavailable()
        Gets the value of the resourceUnavailable choice.
        Returns:
        value of the choice, if choice is resourceUnavailable, else null
      • isApplicationProcedureCancellationChosen

        public boolean isApplicationProcedureCancellationChosen()
        Tests whether the choice is applicationProcedureCancellation.
        Returns:
        true if chosen, false if not
      • isResourceUnavailableChosen

        public boolean isResourceUnavailableChosen()
        Tests whether the choice is resourceUnavailable.
        Returns:
        true if chosen, false if not
      • isUserResourceLimitationChosen

        public boolean isUserResourceLimitationChosen()
        Tests whether the choice is userResourceLimitation.
        Returns:
        true if chosen, false if not
      • isUserSpecificReasonChosen

        public boolean isUserSpecificReasonChosen()
        Tests whether the choice is userSpecificReason.
        Returns:
        true if chosen, false if not