Exemplo n.º 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);
            }
        }
Exemplo n.º 2
0
        // 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);
        }
Exemplo n.º 3
0
        // 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);

        }
Exemplo n.º 4
0
 public List<string> getProjectList(string project)
 {
     XMLDecoder xd=new XMLDecoder();
     return xd.projectListResult(project);
 }
Exemplo n.º 5
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);
        }
Exemplo n.º 6
0
        public List <string> getProjectList(string project)
        {
            XMLDecoder xd = new XMLDecoder();

            return(xd.projectListResult(project));
        }