コード例 #1
0
        static void Main(string[] args)
        {
            Console.Write("\n This is TextQueries.cs");
            TextQueries textquery = new TextQueries();

            textquery.processQuery(args);
            textquery.searchText(path);
            files   = textquery.getTextFiles(filepatterns, path);
            fileset = textquery.getAllTextFiles(filepatterns, path);
            TextQueries textquery1 = textquery.objFactory();
        }
コード例 #2
0
 //Processes and gets the appropriate command line args using CommandLineProcessor package. Also initiates other tasks
 public void processQuery(string[] args)
 {
     cmdlineproc.processCmdLine(args);
     path = cmdlineproc.getPath();
     recursivefilesearch = cmdlineproc.getRecursiveFileSearch();
     metadataqueries     = cmdlineproc.getMetaDataQueries();
     filepatterns        = cmdlineproc.getInpuFilePatterns();
     textfiles           = textquery.getAllTextFiles(filepatterns, path);
     xmlFiles(path);
     allXmlFiles(path);
     metaDataSearch();
     checkErrorFiles();
 }//end of processQuery(-)