pragma Style_Checks ("NM32766");

---------------------------------------------------
--  This file has been generated automatically from
--  /work/a/ports/net/polyorb/work/polyorb-2.9.0/idls/cos/notification/CosNotifyFilter.idl
--  by IAC (IDL to Ada Compiler) 2.9.0 (rev. unknown).
---------------------------------------------------
--  NOTE: If you modify this file by hand, your
--  changes will be lost when you re-run the
--  IDL to Ada compiler.
---------------------------------------------------

with CosNotifyFilter.Filter.Impl;
with CORBA;
pragma Elaborate_All (CORBA);
with PolyORB.Any;
with CORBA.ServerRequest;
with CORBA.NVList;
with CosNotifyFilter.Helper;
with CosNotification;
with CosNotification.Helper;
with CosNotifyComm.NotifySubscribe;
with CORBA.Object.Helper;
with CORBA.Object;
with CosNotifyComm.NotifySubscribe.Helper;
with PolyORB.CORBA_P.IR_Hooks;
with PolyORB.CORBA_P.Domain_Management;
with CosNotifyFilter_Filter_Hash;
with PolyORB.Std;
with PortableServer;
with CORBA.ORB;
with PolyORB.CORBA_P.Exceptions;
with PolyORB.Qos.Exception_Informations;
with PolyORB.Utils.Strings;
with PolyORB.Utils.Strings.Lists;
with PolyORB.Initialization;

package body CosNotifyFilter.Filter.Skel is

   add_constraints_Arg_Name_constraint_list_Ü : constant CORBA.Identifier :=
     CORBA.To_CORBA_String
        ("constraint_list");

   modify_constraints_Arg_Name_del_list_Ü : constant CORBA.Identifier :=
     CORBA.To_CORBA_String
        ("del_list");

   modify_constraints_Arg_Name_modify_list_Ü : constant CORBA.Identifier :=
     CORBA.To_CORBA_String
        ("modify_list");

   get_constraints_Arg_Name_id_list_Ü : constant CORBA.Identifier :=
     CORBA.To_CORBA_String
        ("id_list");

   match_Arg_Name_filterable_data_Ü : constant CORBA.Identifier :=
     CORBA.To_CORBA_String
        ("filterable_data");

   match_structured_Arg_Name_filterable_data_Ü : constant CORBA.Identifier :=
     CORBA.To_CORBA_String
        ("filterable_data");

   match_typed_Arg_Name_filterable_data_Ü : constant CORBA.Identifier :=
     CORBA.To_CORBA_String
        ("filterable_data");

   attach_callback_Arg_Name_callback_Ü : constant CORBA.Identifier :=
     CORBA.To_CORBA_String
        ("callback");

   detach_callback_Arg_Name_callback_Ü : constant CORBA.Identifier :=
     CORBA.To_CORBA_String
        ("callback");

   N_Operations : constant PolyORB.Std.Natural :=
     18;

   type String_Ptr is
     access PolyORB.Std.String;

   Invoke_Db : array (0 .. (N_Operations
      - 1)) of String_Ptr :=
     (others => null);

   procedure Register_Procedure
     (Operation_Name : PolyORB.Std.String);

   ------------------------
   -- Register_Procedure --
   ------------------------

   procedure Register_Procedure
     (Operation_Name : PolyORB.Std.String)
   is
      Index_Ü : PolyORB.Std.Natural;
      Invoke_Name_Access : String_Ptr;
   begin
      Index_Ü :=
        CosNotifyFilter_Filter_Hash.Hash
           (Operation_Name);
      if (Invoke_Db
        (Index_Ü)
         /= null)
      then
         raise Program_Error;
      end if;
      Invoke_Name_Access :=
        new PolyORB.Std.String'
           (Operation_Name);
      Invoke_Db
        (Index_Ü) :=
        Invoke_Name_Access;
   end Register_Procedure;

   procedure Invoke
     (Self : PortableServer.Servant;
      Request : CORBA.ServerRequest.Object_Ptr);

   ------------
   -- Invoke --
   ------------

   procedure Invoke
     (Self : PortableServer.Servant;
      Request : CORBA.ServerRequest.Object_Ptr)
   is
      Operation_Ü : constant PolyORB.Std.String :=
        CORBA.To_Standard_String
           (CORBA.ServerRequest.Operation
              (Request.all));
      Argument_List_Ü : CORBA.NVList.Ref;
      Index_Ü : PolyORB.Std.Natural;
      Invoke_Name_Access : String_Ptr;

      procedure Invoke_Uget_constraint_grammar;

      ------------------------------------
      -- Invoke_Uget_constraint_grammar --
      ------------------------------------

      procedure Invoke_Uget_constraint_grammar is
         Result_Ü : CORBA.String;
         pragma Warnings (Off, Result_Ü);
         pragma Suppress (Validity_Check, Result_Ü);
         Arg_CC_Result_Ü_Ü : aliased PolyORB.Any.Content'Class :=
           CORBA.Wrap
              (Result_Ü'Unrestricted_Access);
         Arg_Any_Result_Ü_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CORBA.TC_String,
               Arg_CC_Result_Ü_Ü'Unchecked_Access);
      begin
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         --  Call Implementation
         Result_Ü :=
           CosNotifyFilter.Filter.Impl.get_constraint_grammar
              (CosNotifyFilter.Filter.Impl.Object'Class
                 (Self.all)'Access);
         --  Setting the result
         CORBA.ServerRequest.Set_Result
           (Request,
            Arg_Any_Result_Ü_Ü);
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_Uget_constraint_grammar;

      procedure Invoke_add_constraints;

      ----------------------------
      -- Invoke_add_constraints --
      ----------------------------

      procedure Invoke_add_constraints is
         Argument_constraint_list_Ü : CosNotifyFilter.ConstraintExpSeq;
         pragma Warnings (Off, Argument_constraint_list_Ü);
         pragma Suppress (Validity_Check, Argument_constraint_list_Ü);
         Arg_CC_constraint_list_Ü : aliased PolyORB.Any.Content'Class :=
           CosNotifyFilter.Helper.Internals.Wrap
              (CosNotifyFilter.IDL_SEQUENCE_CosNotifyFilter_ConstraintExp.Sequence
                 (Argument_constraint_list_Ü)'Unrestricted_Access);
         Arg_Any_constraint_list_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotifyFilter.Helper.TC_ConstraintExpSeq,
               Arg_CC_constraint_list_Ü'Unchecked_Access);
         Result_Ü : CosNotifyFilter.ConstraintInfoSeq;
         pragma Warnings (Off, Result_Ü);
         pragma Suppress (Validity_Check, Result_Ü);
         Arg_CC_Result_Ü_Ü : aliased PolyORB.Any.Content'Class :=
           CosNotifyFilter.Helper.Internals.Wrap
              (CosNotifyFilter.IDL_SEQUENCE_CosNotifyFilter_ConstraintInfo.Sequence
                 (Result_Ü)'Unrestricted_Access);
         Arg_Any_Result_Ü_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotifyFilter.Helper.TC_ConstraintInfoSeq,
               Arg_CC_Result_Ü_Ü'Unchecked_Access);
      begin
         CORBA.NVList.Add_Item
           (Argument_List_Ü,
            add_constraints_Arg_Name_constraint_list_Ü,
            Arg_Any_constraint_list_Ü,
            CORBA.ARG_IN);
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         begin
            --  Call Implementation
            Result_Ü :=
              CosNotifyFilter.Filter.Impl.add_constraints
                 (CosNotifyFilter.Filter.Impl.Object'Class
                    (Self.all)'Access,
                  Argument_constraint_list_Ü);
         exception
            when E : CosNotifyFilter.InvalidConstraint =>
               declare
                  Members : CosNotifyFilter.InvalidConstraint_Members;
               begin
                  CosNotifyFilter.Get_Members
                    (E,
                     Members);
                  CORBA.ServerRequest.Set_Exception
                    (Request,
                     CosNotifyFilter.Helper.To_Any
                       (Members));
                  return;
               end;
         end;
         --  Setting the result
         CORBA.ServerRequest.Set_Result
           (Request,
            Arg_Any_Result_Ü_Ü);
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_add_constraints;

      procedure Invoke_modify_constraints;

      -------------------------------
      -- Invoke_modify_constraints --
      -------------------------------

      procedure Invoke_modify_constraints is
         Argument_del_list_Ü : CosNotifyFilter.ConstraintIDSeq;
         pragma Warnings (Off, Argument_del_list_Ü);
         pragma Suppress (Validity_Check, Argument_del_list_Ü);
         Arg_CC_del_list_Ü : aliased PolyORB.Any.Content'Class :=
           CosNotifyFilter.Helper.Internals.Wrap
              (CosNotifyFilter.IDL_SEQUENCE_CosNotifyFilter_ConstraintID.Sequence
                 (Argument_del_list_Ü)'Unrestricted_Access);
         Arg_Any_del_list_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotifyFilter.Helper.TC_ConstraintIDSeq,
               Arg_CC_del_list_Ü'Unchecked_Access);
         Argument_modify_list_Ü : CosNotifyFilter.ConstraintInfoSeq;
         pragma Warnings (Off, Argument_modify_list_Ü);
         pragma Suppress (Validity_Check, Argument_modify_list_Ü);
         Arg_CC_modify_list_Ü : aliased PolyORB.Any.Content'Class :=
           CosNotifyFilter.Helper.Internals.Wrap
              (CosNotifyFilter.IDL_SEQUENCE_CosNotifyFilter_ConstraintInfo.Sequence
                 (Argument_modify_list_Ü)'Unrestricted_Access);
         Arg_Any_modify_list_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotifyFilter.Helper.TC_ConstraintInfoSeq,
               Arg_CC_modify_list_Ü'Unchecked_Access);
      begin
         CORBA.NVList.Add_Item
           (Argument_List_Ü,
            modify_constraints_Arg_Name_del_list_Ü,
            Arg_Any_del_list_Ü,
            CORBA.ARG_IN);
         CORBA.NVList.Add_Item
           (Argument_List_Ü,
            modify_constraints_Arg_Name_modify_list_Ü,
            Arg_Any_modify_list_Ü,
            CORBA.ARG_IN);
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         begin
            --  Call Implementation
            CosNotifyFilter.Filter.Impl.modify_constraints
              (CosNotifyFilter.Filter.Impl.Object'Class
                 (Self.all)'Access,
               Argument_del_list_Ü,
               Argument_modify_list_Ü);
         exception
            when E : CosNotifyFilter.InvalidConstraint =>
               declare
                  Members : CosNotifyFilter.InvalidConstraint_Members;
               begin
                  CosNotifyFilter.Get_Members
                    (E,
                     Members);
                  CORBA.ServerRequest.Set_Exception
                    (Request,
                     CosNotifyFilter.Helper.To_Any
                       (Members));
                  return;
               end;
            when E : CosNotifyFilter.ConstraintNotFound =>
               declare
                  Members : CosNotifyFilter.ConstraintNotFound_Members;
               begin
                  CosNotifyFilter.Get_Members
                    (E,
                     Members);
                  CORBA.ServerRequest.Set_Exception
                    (Request,
                     CosNotifyFilter.Helper.To_Any
                       (Members));
                  return;
               end;
         end;
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_modify_constraints;

      procedure Invoke_get_constraints;

      ----------------------------
      -- Invoke_get_constraints --
      ----------------------------

      procedure Invoke_get_constraints is
         Argument_id_list_Ü : CosNotifyFilter.ConstraintIDSeq;
         pragma Warnings (Off, Argument_id_list_Ü);
         pragma Suppress (Validity_Check, Argument_id_list_Ü);
         Arg_CC_id_list_Ü : aliased PolyORB.Any.Content'Class :=
           CosNotifyFilter.Helper.Internals.Wrap
              (CosNotifyFilter.IDL_SEQUENCE_CosNotifyFilter_ConstraintID.Sequence
                 (Argument_id_list_Ü)'Unrestricted_Access);
         Arg_Any_id_list_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotifyFilter.Helper.TC_ConstraintIDSeq,
               Arg_CC_id_list_Ü'Unchecked_Access);
         Result_Ü : CosNotifyFilter.ConstraintInfoSeq;
         pragma Warnings (Off, Result_Ü);
         pragma Suppress (Validity_Check, Result_Ü);
         Arg_CC_Result_Ü_Ü : aliased PolyORB.Any.Content'Class :=
           CosNotifyFilter.Helper.Internals.Wrap
              (CosNotifyFilter.IDL_SEQUENCE_CosNotifyFilter_ConstraintInfo.Sequence
                 (Result_Ü)'Unrestricted_Access);
         Arg_Any_Result_Ü_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotifyFilter.Helper.TC_ConstraintInfoSeq,
               Arg_CC_Result_Ü_Ü'Unchecked_Access);
      begin
         CORBA.NVList.Add_Item
           (Argument_List_Ü,
            get_constraints_Arg_Name_id_list_Ü,
            Arg_Any_id_list_Ü,
            CORBA.ARG_IN);
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         begin
            --  Call Implementation
            Result_Ü :=
              CosNotifyFilter.Filter.Impl.get_constraints
                 (CosNotifyFilter.Filter.Impl.Object'Class
                    (Self.all)'Access,
                  Argument_id_list_Ü);
         exception
            when E : CosNotifyFilter.ConstraintNotFound =>
               declare
                  Members : CosNotifyFilter.ConstraintNotFound_Members;
               begin
                  CosNotifyFilter.Get_Members
                    (E,
                     Members);
                  CORBA.ServerRequest.Set_Exception
                    (Request,
                     CosNotifyFilter.Helper.To_Any
                       (Members));
                  return;
               end;
         end;
         --  Setting the result
         CORBA.ServerRequest.Set_Result
           (Request,
            Arg_Any_Result_Ü_Ü);
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_get_constraints;

      procedure Invoke_get_all_constraints;

      --------------------------------
      -- Invoke_get_all_constraints --
      --------------------------------

      procedure Invoke_get_all_constraints is
         Result_Ü : CosNotifyFilter.ConstraintInfoSeq;
         pragma Warnings (Off, Result_Ü);
         pragma Suppress (Validity_Check, Result_Ü);
         Arg_CC_Result_Ü_Ü : aliased PolyORB.Any.Content'Class :=
           CosNotifyFilter.Helper.Internals.Wrap
              (CosNotifyFilter.IDL_SEQUENCE_CosNotifyFilter_ConstraintInfo.Sequence
                 (Result_Ü)'Unrestricted_Access);
         Arg_Any_Result_Ü_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotifyFilter.Helper.TC_ConstraintInfoSeq,
               Arg_CC_Result_Ü_Ü'Unchecked_Access);
      begin
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         --  Call Implementation
         Result_Ü :=
           CosNotifyFilter.Filter.Impl.get_all_constraints
              (CosNotifyFilter.Filter.Impl.Object'Class
                 (Self.all)'Access);
         --  Setting the result
         CORBA.ServerRequest.Set_Result
           (Request,
            Arg_Any_Result_Ü_Ü);
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_get_all_constraints;

      procedure Invoke_remove_all_constraints;

      -----------------------------------
      -- Invoke_remove_all_constraints --
      -----------------------------------

      procedure Invoke_remove_all_constraints is
      begin
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         --  Call Implementation
         CosNotifyFilter.Filter.Impl.remove_all_constraints
           (CosNotifyFilter.Filter.Impl.Object'Class
              (Self.all)'Access);
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_remove_all_constraints;

      procedure Invoke_destroy;

      --------------------
      -- Invoke_destroy --
      --------------------

      procedure Invoke_destroy is
      begin
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         --  Call Implementation
         CosNotifyFilter.Filter.Impl.destroy
           (CosNotifyFilter.Filter.Impl.Object'Class
              (Self.all)'Access);
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_destroy;

      procedure Invoke_match;

      ------------------
      -- Invoke_match --
      ------------------

      procedure Invoke_match is
         Argument_filterable_data_Ü : CORBA.Any;
         pragma Warnings (Off, Argument_filterable_data_Ü);
         pragma Suppress (Validity_Check, Argument_filterable_data_Ü);
         Arg_CC_filterable_data_Ü : aliased PolyORB.Any.Content'Class :=
           CORBA.Wrap
              (Argument_filterable_data_Ü'Unrestricted_Access);
         Arg_Any_filterable_data_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CORBA.TC_Any,
               Arg_CC_filterable_data_Ü'Unchecked_Access);
         Result_Ü : CORBA.Boolean;
         pragma Warnings (Off, Result_Ü);
         pragma Suppress (Validity_Check, Result_Ü);
         Arg_CC_Result_Ü_Ü : aliased PolyORB.Any.Content'Class :=
           CORBA.Wrap
              (Result_Ü'Unrestricted_Access);
         Arg_Any_Result_Ü_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CORBA.TC_Boolean,
               Arg_CC_Result_Ü_Ü'Unchecked_Access);
      begin
         CORBA.NVList.Add_Item
           (Argument_List_Ü,
            match_Arg_Name_filterable_data_Ü,
            Arg_Any_filterable_data_Ü,
            CORBA.ARG_IN);
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         begin
            --  Call Implementation
            Result_Ü :=
              CosNotifyFilter.Filter.Impl.match
                 (CosNotifyFilter.Filter.Impl.Object'Class
                    (Self.all)'Access,
                  Argument_filterable_data_Ü);
         exception
            when E : CosNotifyFilter.UnsupportedFilterableData =>
               declare
                  Members : CosNotifyFilter.UnsupportedFilterableData_Members;
               begin
                  CosNotifyFilter.Get_Members
                    (E,
                     Members);
                  CORBA.ServerRequest.Set_Exception
                    (Request,
                     CosNotifyFilter.Helper.To_Any
                       (Members));
                  return;
               end;
         end;
         --  Setting the result
         CORBA.ServerRequest.Set_Result
           (Request,
            Arg_Any_Result_Ü_Ü);
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_match;

      procedure Invoke_match_structured;

      -----------------------------
      -- Invoke_match_structured --
      -----------------------------

      procedure Invoke_match_structured is
         Argument_filterable_data_Ü : CosNotification.StructuredEvent;
         pragma Warnings (Off, Argument_filterable_data_Ü);
         pragma Suppress (Validity_Check, Argument_filterable_data_Ü);
         Arg_CC_filterable_data_Ü : aliased PolyORB.Any.Content'Class :=
           CosNotification.Helper.Internals.Wrap
              (Argument_filterable_data_Ü'Unrestricted_Access);
         Arg_Any_filterable_data_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotification.Helper.TC_StructuredEvent,
               Arg_CC_filterable_data_Ü'Unchecked_Access);
         Result_Ü : CORBA.Boolean;
         pragma Warnings (Off, Result_Ü);
         pragma Suppress (Validity_Check, Result_Ü);
         Arg_CC_Result_Ü_Ü : aliased PolyORB.Any.Content'Class :=
           CORBA.Wrap
              (Result_Ü'Unrestricted_Access);
         Arg_Any_Result_Ü_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CORBA.TC_Boolean,
               Arg_CC_Result_Ü_Ü'Unchecked_Access);
      begin
         CORBA.NVList.Add_Item
           (Argument_List_Ü,
            match_structured_Arg_Name_filterable_data_Ü,
            Arg_Any_filterable_data_Ü,
            CORBA.ARG_IN);
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         begin
            --  Call Implementation
            Result_Ü :=
              CosNotifyFilter.Filter.Impl.match_structured
                 (CosNotifyFilter.Filter.Impl.Object'Class
                    (Self.all)'Access,
                  Argument_filterable_data_Ü);
         exception
            when E : CosNotifyFilter.UnsupportedFilterableData =>
               declare
                  Members : CosNotifyFilter.UnsupportedFilterableData_Members;
               begin
                  CosNotifyFilter.Get_Members
                    (E,
                     Members);
                  CORBA.ServerRequest.Set_Exception
                    (Request,
                     CosNotifyFilter.Helper.To_Any
                       (Members));
                  return;
               end;
         end;
         --  Setting the result
         CORBA.ServerRequest.Set_Result
           (Request,
            Arg_Any_Result_Ü_Ü);
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_match_structured;

      procedure Invoke_match_typed;

      ------------------------
      -- Invoke_match_typed --
      ------------------------

      procedure Invoke_match_typed is
         Argument_filterable_data_Ü : CosNotification.PropertySeq;
         pragma Warnings (Off, Argument_filterable_data_Ü);
         pragma Suppress (Validity_Check, Argument_filterable_data_Ü);
         Arg_CC_filterable_data_Ü : aliased PolyORB.Any.Content'Class :=
           CosNotification.Helper.Internals.Wrap
              (CosNotification.IDL_SEQUENCE_CosNotification_Property.Sequence
                 (Argument_filterable_data_Ü)'Unrestricted_Access);
         Arg_Any_filterable_data_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotification.Helper.TC_PropertySeq,
               Arg_CC_filterable_data_Ü'Unchecked_Access);
         Result_Ü : CORBA.Boolean;
         pragma Warnings (Off, Result_Ü);
         pragma Suppress (Validity_Check, Result_Ü);
         Arg_CC_Result_Ü_Ü : aliased PolyORB.Any.Content'Class :=
           CORBA.Wrap
              (Result_Ü'Unrestricted_Access);
         Arg_Any_Result_Ü_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CORBA.TC_Boolean,
               Arg_CC_Result_Ü_Ü'Unchecked_Access);
      begin
         CORBA.NVList.Add_Item
           (Argument_List_Ü,
            match_typed_Arg_Name_filterable_data_Ü,
            Arg_Any_filterable_data_Ü,
            CORBA.ARG_IN);
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         begin
            --  Call Implementation
            Result_Ü :=
              CosNotifyFilter.Filter.Impl.match_typed
                 (CosNotifyFilter.Filter.Impl.Object'Class
                    (Self.all)'Access,
                  Argument_filterable_data_Ü);
         exception
            when E : CosNotifyFilter.UnsupportedFilterableData =>
               declare
                  Members : CosNotifyFilter.UnsupportedFilterableData_Members;
               begin
                  CosNotifyFilter.Get_Members
                    (E,
                     Members);
                  CORBA.ServerRequest.Set_Exception
                    (Request,
                     CosNotifyFilter.Helper.To_Any
                       (Members));
                  return;
               end;
         end;
         --  Setting the result
         CORBA.ServerRequest.Set_Result
           (Request,
            Arg_Any_Result_Ü_Ü);
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_match_typed;

      procedure Invoke_attach_callback;

      ----------------------------
      -- Invoke_attach_callback --
      ----------------------------

      procedure Invoke_attach_callback is
         Argument_callback_Ü : CosNotifyComm.NotifySubscribe.Ref;
         pragma Warnings (Off, Argument_callback_Ü);
         pragma Suppress (Validity_Check, Argument_callback_Ü);
         Arg_CC_callback_Ü : aliased PolyORB.Any.Content'Class :=
           CORBA.Object.Helper.Wrap
              (CORBA.Object.Ref
                 (Argument_callback_Ü)'Unrestricted_Access);
         Arg_Any_callback_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotifyComm.NotifySubscribe.Helper.TC_NotifySubscribe,
               Arg_CC_callback_Ü'Unchecked_Access);
         Result_Ü : CosNotifyFilter.CallbackID;
         pragma Warnings (Off, Result_Ü);
         pragma Suppress (Validity_Check, Result_Ü);
         Arg_CC_Result_Ü_Ü : aliased PolyORB.Any.Content'Class :=
           CORBA.Wrap
              (CORBA.Long
                 (Result_Ü)'Unrestricted_Access);
         Arg_Any_Result_Ü_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotifyFilter.Helper.TC_CallbackID,
               Arg_CC_Result_Ü_Ü'Unchecked_Access);
      begin
         CORBA.NVList.Add_Item
           (Argument_List_Ü,
            attach_callback_Arg_Name_callback_Ü,
            Arg_Any_callback_Ü,
            CORBA.ARG_IN);
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         --  Call Implementation
         Result_Ü :=
           CosNotifyFilter.Filter.Impl.attach_callback
              (CosNotifyFilter.Filter.Impl.Object'Class
                 (Self.all)'Access,
               Argument_callback_Ü);
         --  Setting the result
         CORBA.ServerRequest.Set_Result
           (Request,
            Arg_Any_Result_Ü_Ü);
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_attach_callback;

      procedure Invoke_detach_callback;

      ----------------------------
      -- Invoke_detach_callback --
      ----------------------------

      procedure Invoke_detach_callback is
         Argument_callback_Ü : CosNotifyFilter.CallbackID;
         pragma Warnings (Off, Argument_callback_Ü);
         pragma Suppress (Validity_Check, Argument_callback_Ü);
         Arg_CC_callback_Ü : aliased PolyORB.Any.Content'Class :=
           CORBA.Wrap
              (CORBA.Long
                 (Argument_callback_Ü)'Unrestricted_Access);
         Arg_Any_callback_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotifyFilter.Helper.TC_CallbackID,
               Arg_CC_callback_Ü'Unchecked_Access);
      begin
         CORBA.NVList.Add_Item
           (Argument_List_Ü,
            detach_callback_Arg_Name_callback_Ü,
            Arg_Any_callback_Ü,
            CORBA.ARG_IN);
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         begin
            --  Call Implementation
            CosNotifyFilter.Filter.Impl.detach_callback
              (CosNotifyFilter.Filter.Impl.Object'Class
                 (Self.all)'Access,
               Argument_callback_Ü);
         exception
            when E : CosNotifyFilter.CallbackNotFound =>
               declare
                  Members : CosNotifyFilter.CallbackNotFound_Members;
               begin
                  CosNotifyFilter.Get_Members
                    (E,
                     Members);
                  CORBA.ServerRequest.Set_Exception
                    (Request,
                     CosNotifyFilter.Helper.To_Any
                       (Members));
                  return;
               end;
         end;
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_detach_callback;

      procedure Invoke_get_callbacks;

      --------------------------
      -- Invoke_get_callbacks --
      --------------------------

      procedure Invoke_get_callbacks is
         Result_Ü : CosNotifyFilter.CallbackIDSeq;
         pragma Warnings (Off, Result_Ü);
         pragma Suppress (Validity_Check, Result_Ü);
         Arg_CC_Result_Ü_Ü : aliased PolyORB.Any.Content'Class :=
           CosNotifyFilter.Helper.Internals.Wrap
              (CosNotifyFilter.IDL_SEQUENCE_CosNotifyFilter_CallbackID.Sequence
                 (Result_Ü)'Unrestricted_Access);
         Arg_Any_Result_Ü_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotifyFilter.Helper.TC_CallbackIDSeq,
               Arg_CC_Result_Ü_Ü'Unchecked_Access);
      begin
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         --  Call Implementation
         Result_Ü :=
           CosNotifyFilter.Filter.Impl.get_callbacks
              (CosNotifyFilter.Filter.Impl.Object'Class
                 (Self.all)'Access);
         --  Setting the result
         CORBA.ServerRequest.Set_Result
           (Request,
            Arg_Any_Result_Ü_Ü);
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_get_callbacks;

      procedure Invoke_Uis_a;

      ------------------
      -- Invoke_Uis_a --
      ------------------

      procedure Invoke_Uis_a is
         Type_Id_Ü : CORBA.String;
         Arg_Name_Type_Id_Ü : constant CORBA.Identifier :=
           CORBA.To_CORBA_String
              ("Type_Id_Ü");
         Argument_Type_Id_Ü : constant CORBA.Any :=
           CORBA.To_Any
              (Type_Id_Ü);
         Result_Ü : CORBA.Boolean;
      begin
         CORBA.NVList.Add_Item
           (Argument_List_Ü,
            Arg_Name_Type_Id_Ü,
            Argument_Type_Id_Ü,
            CORBA.ARG_IN);
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         Type_Id_Ü :=
           CORBA.From_Any
              (Argument_Type_Id_Ü);
         Result_Ü :=
           Is_A
              (CORBA.To_Standard_String
                 (Type_Id_Ü));
         CORBA.ServerRequest.Set_Result
           (Request,
            CORBA.To_Any
              (Result_Ü));
      end Invoke_Uis_a;

      procedure Invoke_Uinterface;

      -----------------------
      -- Invoke_Uinterface --
      -----------------------

      procedure Invoke_Uinterface is
      begin
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         CORBA.ServerRequest.Set_Result
           (Request,
            CORBA.Object.Helper.To_Any
              (CORBA.Object.Ref
                 (PolyORB.CORBA_P.IR_Hooks.Get_Interface_Definition
                    (CORBA.To_CORBA_String
                       (Repository_Id)))));
      end Invoke_Uinterface;

      procedure Invoke_Udomain_managers;

      -----------------------------
      -- Invoke_Udomain_managers --
      -----------------------------

      procedure Invoke_Udomain_managers is
      begin
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         CORBA.ServerRequest.Set_Result
           (Request,
            PolyORB.CORBA_P.Domain_Management.Get_Domain_Managers
              (Self));
      end Invoke_Udomain_managers;

      procedure Invoke_Unon_existent;

      --------------------------
      -- Invoke_Unon_existent --
      --------------------------

      procedure Invoke_Unon_existent is
      begin
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         CORBA.ServerRequest.Set_Result
           (Request,
            CORBA.To_Any
              (CORBA.Boolean'
                 (False)));
      end Invoke_Unon_existent;

      procedure Dispatch;

      --------------
      -- Dispatch --
      --------------

      procedure Dispatch is
      begin
         case Index_Ü is
            when 0 =>
               Invoke_Uget_constraint_grammar;
            when 1 =>
               Invoke_add_constraints;
            when 2 =>
               Invoke_modify_constraints;
            when 3 =>
               Invoke_get_constraints;
            when 4 =>
               Invoke_get_all_constraints;
            when 5 =>
               Invoke_remove_all_constraints;
            when 6 =>
               Invoke_destroy;
            when 7 =>
               Invoke_match;
            when 8 =>
               Invoke_match_structured;
            when 9 =>
               Invoke_match_typed;
            when 10 =>
               Invoke_attach_callback;
            when 11 =>
               Invoke_detach_callback;
            when 12 =>
               Invoke_get_callbacks;
            when 14 =>
               Invoke_Uinterface;
            when 15 =>
               Invoke_Udomain_managers;
            when 16
               | 17 =>
               Invoke_Unon_existent;
            when 13 =>
               Invoke_Uis_a;
            pragma Warnings (Off);
            when others =>
               raise Program_Error;
            pragma Warnings (On);

         end case;
      end Dispatch;

   begin
      CORBA.ORB.Create_List
        (0,
         Argument_List_Ü);
      Index_Ü :=
        CosNotifyFilter_Filter_Hash.Hash
           (Operation_Ü);
      Invoke_Name_Access :=
        Invoke_Db
           (Index_Ü);
      begin
         if (Operation_Ü
            = Invoke_Name_Access.all)
         then
            Dispatch;
         else
            CORBA.Raise_Bad_Operation
              (CORBA.Default_Sys_Member);
         end if;
      exception
         when E : others =>
            CORBA.ServerRequest.Set_Exception
              (Request,
               PolyORB.CORBA_P.Exceptions.System_Exception_To_Any
                 (E));
            PolyORB.Qos.Exception_Informations.Set_Exception_Information
              (Request.all,
               E);
      end;
   end Invoke;

   function Servant_Is_A
     (Obj : PortableServer.Servant)
     return Boolean;

   ------------------
   -- Servant_Is_A --
   ------------------

   function Servant_Is_A
     (Obj : PortableServer.Servant)
     return Boolean
   is
   begin
      return (Obj.all
         in CosNotifyFilter.Filter.Impl.Object'Class);
   end Servant_Is_A;

   -----------------------------
   -- Deferred_Initialization --
   -----------------------------

   procedure Deferred_Initialization is
   begin
      PortableServer.Internals.Register_Skeleton
        (CosNotifyFilter.Filter.Repository_Id,
         Servant_Is_A'Access,
         Is_A'Access,
         Invoke'Access);
      Register_Procedure
        ("_get_constraint_grammar");
      Register_Procedure
        ("add_constraints");
      Register_Procedure
        ("modify_constraints");
      Register_Procedure
        ("get_constraints");
      Register_Procedure
        ("get_all_constraints");
      Register_Procedure
        ("remove_all_constraints");
      Register_Procedure
        ("destroy");
      Register_Procedure
        ("match");
      Register_Procedure
        ("match_structured");
      Register_Procedure
        ("match_typed");
      Register_Procedure
        ("attach_callback");
      Register_Procedure
        ("detach_callback");
      Register_Procedure
        ("get_callbacks");
      Register_Procedure
        ("_is_a");
      Register_Procedure
        ("_interface");
      Register_Procedure
        ("_domain_managers");
      Register_Procedure
        ("_non_existent");
      Register_Procedure
        ("_not_existent");
   end Deferred_Initialization;

begin
   declare
      use PolyORB.Utils.Strings;
      use PolyORB.Utils.Strings.Lists;
   begin
      PolyORB.Initialization.Register_Module
        (PolyORB.Initialization.Module_Info'
           (Name => +"CosNotifyFilter.Filter.Skel",
            Conflicts => PolyORB.Utils.Strings.Lists.Empty,
            Depends => PolyORB.Utils.Strings.Lists.Empty,
            Provides => PolyORB.Utils.Strings.Lists.Empty,
            Implicit => False,
            Init => Deferred_Initialization'Access,
            Shutdown => null));
   end;
end CosNotifyFilter.Filter.Skel;
