Ejemplo n.º 1
0
 public Methode(string nom, string description, List <ParametreInterfaceService> parametreEntrant, TypeRetourInterfaceService parametreSortant)
 {
     this.Nom         = nom;
     this.Description = description;
     this.Parametres  = parametreEntrant;
     this.TypeRetour  = parametreSortant;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Fonction qui renvoie la liste de toutes les méthodes des interfaces de service
        /// </summary>
        /// <param name="doc"></param>
        /// <param name="nsmgr"></param>
        /// <returns></returns>
        public static List <Methode> Methodes(XmlDocument doc, XmlNamespaceManager nsmgr, int i)
        {
            List <Methode> methodesInterfacesServices = new List <Methode>();


            TypeRetourInterfaceService typeRetour       = TypeRetourInterfaceService.TypesRetourInterfacesServices(doc, nsmgr, i);
            List <string> nomsMethodes                  = NomsMethodesInterfacesServices(doc, nsmgr, i - 1);
            List <ParametreInterfaceService> parametres = ParametreInterfaceService.ParametresInterfacesServices(doc, nsmgr, i);

            if (NombreMethodesInterfacesServices(doc, nsmgr, i - 1) != 0)
            {
                for (int cmp = 0; cmp < NombreMethodesInterfacesServices(doc, nsmgr, i - 1); cmp++)
                {
                    string descriptionsMethodes = DescriptionsMethodesinterfacesService(doc, nsmgr, i, cmp);

                    methodesInterfacesServices.Add(new Methode(nomsMethodes[cmp], descriptionsMethodes, parametres, typeRetour));
                }
            }

            return(methodesInterfacesServices);
        }