예제 #1
0
 public MethodeService(string nom, DescriptionService descriptions, List <ParametreService> parametresMethode, TypeRetourService typeRetour, string algorithme)
 {
     this.Nom               = nom;
     this.Descriptions      = descriptions;
     this.ParametresMethode = parametresMethode;
     this.TypesRetour       = typeRetour;
     this.Algorithme        = algorithme;
 }
예제 #2
0
        /// <summary>
        /// Fonction qui renvoie la liste de toutes les méthodes des Service
        /// </summary>
        /// <param name="doc"></param>
        /// <param name="nsmgr"></param>
        /// <returns></returns>
        public static List <MethodeService> MethodesServices(XmlDocument doc, XmlNamespaceManager nsmgr, int i)
        {
            List <MethodeService> methodes     = new List <MethodeService>();
            List <string>         nomsMethodes = NomsMethodesServices(doc, nsmgr, i);

            if (NombreMethodesServices(doc, nsmgr, i) != 0)
            {
                for (int cmp = 0; cmp < NombreMethodesServices(doc, nsmgr, i); cmp++)
                {
                    string                  algorithmes        = AlgorithmesMethodesServices(doc, nsmgr, i, cmp);
                    DescriptionService      descriptions       = DescriptionService.DescriptionsMethodesServices(doc, nsmgr, i, cmp);
                    List <ParametreService> parametresMethodes = ParametreService.ParametresMethodesServices(doc, nsmgr, i, cmp);
                    TypeRetourService       typesRetour        = TypeRetourService.TypeRetourMethodesServices(doc, nsmgr, i, cmp);


                    methodes.Add(new MethodeService(nomsMethodes[cmp], descriptions, parametresMethodes, typesRetour, algorithmes));
                }
            }

            return(methodes);
        }