//----------------< process analysis and display >----------------
        private static void analysisAndDisplay(string[] args, string[] files, string path, List<string> patterns, List<string> options)
        {
            bool R = false;
            bool X = false;
            if (options.Contains("/R") || options.Contains("/r"))
                R = true;
            if (options.Contains("/X") || options.Contains("/x"))
                X = true;

            Analyzer.doAnalysis(files);

            Display.displayArgument(args, files, path, patterns, options);
            Display.displayTypeDefined(files);

            if (R)
            {
                Analyzer.doRelationAnalysis(files);
                Display.displayRelation(files);
            }
            else
            {
                Display.displayOutput(files);
            }
          
            if (X)
            {
                XMLFileRedirection xml = new XMLFileRedirection();
                xml.displayxml(R, files);
            }
        }
Exemple #2
0
        //----------------< process analysis and display >----------------
        private static void analysisAndDisplay(string[] args, string[] files, string path, List <string> patterns, List <string> options)
        {
            bool R = false;
            bool X = false;

            if (options.Contains("/R") || options.Contains("/r"))
            {
                R = true;
            }
            if (options.Contains("/X") || options.Contains("/x"))
            {
                X = true;
            }

            Analyzer.doAnalysis(files);

            Display.displayArgument(args, files, path, patterns, options);
            Display.displayTypeDefined(files);

            if (R)
            {
                Analyzer.doRelationAnalysis(files);
                Display.displayRelation(files);
            }
            else
            {
                Display.displayOutput(files);
            }

            if (X)
            {
                XMLFileRedirection xml = new XMLFileRedirection();
                xml.displayxml(R, files);
            }
        }
        static void Main(string[] args)
        {
            Console.Write("\n Testing XML File Output");
            Console.Write("\n ========================\n");
            bool R = true;

            string[] files = null;
            repositoryForTestUP();
            XMLFileRedirection xml = new XMLFileRedirection();

            xml.displayxml(R, files);
        }
 static void Main(string[] args)
 {
     Console.Write("\n Testing XML File Output");
     Console.Write("\n ========================\n");
     bool R = true;
     string[] files = null;
     repositoryForTestUP();
     XMLFileRedirection xml = new XMLFileRedirection();
     xml.displayxml(R, files);
 }