/// <summary> /// Fonction qui renvoie la liste de toutes les méthodes des mappers /// </summary> /// <param name="doc"></param> /// <param name="nsmgr"></param> /// <returns></returns> public static List <MethodeMapper> MethodesMappers(XmlDocument doc, XmlNamespaceManager nsmgr, int i) { List <MethodeMapper> methodes = new List <MethodeMapper>(); if (NombreMethodesMappers(doc, nsmgr, i) != 0) { List <string> nomsMethodes = NomsMethodesMappers(doc, nsmgr, i); for (int cmp = 0; cmp < NombreMethodesMappers(doc, nsmgr, i); cmp++) { string descriptions = DescriptionsMethodesMappers(doc, nsmgr, i, cmp); List <AlgorithmeMapper> algorithmes = AlgorithmeMapper.AlgorithmesMethodesMappers(doc, nsmgr, i, cmp); ParametreEntrantMapper parametresMethodes = ParametreEntrantMapper.ParametresMethodesMappers(doc, nsmgr, i, cmp); TypeRetourMapper typesRetour = TypeRetourMapper.TypeRetourMethodesMappers(doc, nsmgr, i, cmp); methodes.Add(new MethodeMapper(nomsMethodes[cmp], descriptions, parametresMethodes, typesRetour, algorithmes)); } } return(methodes); }
public MethodeMapper(string nom, string descriptions, ParametreEntrantMapper parametresMethode, TypeRetourMapper typeRetour, List <AlgorithmeMapper> algorithme) { this.Nom = nom; this.Descriptions = descriptions; this.ParametresMethode = parametresMethode; this.TypesRetour = typeRetour; this.Algorithme = algorithme; }