Exemple #1
0
        static void Main(string[] args)
        {
            XMLDecoder xd  = new XMLDecoder();
            XDocument  xml = XDocument.Load("ProjectList");

            Console.Write("ProjectList:\n");
            List <string> project = xd.projectListResult(xml.ToString());

            foreach (string s in project)
            {
                Console.Write("{0}\n", s);
            }

            XDocument           xml1     = XDocument.Load("DependencyResult");
            List <ElemRelation> relation = xd.typeDependencyResult(xml1.ToString());

            Console.Write("\n\n Type Dependency Result:\n");
            foreach (ElemRelation s in relation)
            {
                Console.Write("{0} = {1} > {2}\n", s.fromName, s.relationType, s.toName);
            }

            List <ElemPackage> package = xd.packageDependencyResult(xml1.ToString());

            Console.Write("\n\nPackage Dependency Result:\n");

            foreach (ElemPackage s in package)
            {
                Console.Write("{0} ==>{1}\n", s.filenamefrom, s.filenameto);
            }
        }
        // perform various task to retrive the result of Out Going
        // Dependency in appropiate Data structure
        public void outGoingResultAnalysis(string result)
        {
            outGoingXML = result;
            XMLDecoder          xd      = new XMLDecoder();
            List <ElemRelation> tResult = xd.typeDependencyResult(result);
            List <ElemPackage>  dResult = xd.packageDependencyResult(result);

            outDictinaryToString(dResult);
            outListToString(tResult);
        }
        // perform various task to retrive the result of In coming 
        // Dependency in appropiate Data structure
        public void inComingResultAnalysis(string result)
        {
            inComingXML = result;
            XMLDecoder xd = new XMLDecoder();
            List<ElemRelation> tResult = xd.typeDependencyResult(result);

            List<ElemPackage> dResult = xd.packageDependencyResult(result);

            inDictinaryToString(dResult);
            inListToString(tResult);

        }
        static void Main(string[] args)
        {
            XMLDecoder xd=new XMLDecoder();
            XDocument xml = XDocument.Load("ProjectList");

            Console.Write("ProjectList:\n");
            List<string> project = xd.projectListResult(xml.ToString());
            foreach (string s in project)
                Console.Write("{0}\n",s);

            XDocument xml1 = XDocument.Load("DependencyResult");
            List<ElemRelation> relation = xd.typeDependencyResult(xml1.ToString());
            Console.Write("\n\n Type Dependency Result:\n");
            foreach (ElemRelation s in relation)
                Console.Write("{0} = {1} > {2}\n", s.fromName, s.relationType, s.toName);

            List<ElemPackage> package = xd.packageDependencyResult(xml1.ToString());
            Console.Write("\n\nPackage Dependency Result:\n");

            foreach (ElemPackage s in package)
                Console.Write("{0} ==>{1}\n", s.filenamefrom, s.filenameto);
        }