Ejemplo n.º 1
0
 //uses CommandLineProcessor package to process command line and store corresponding arguments in        instance variables. Then initiates the text serach by calling serachText(string).
 public void processQuery(string[] args)
 {
     cmdlineproc.processCmdLine(args);
     path                = cmdlineproc.getPath();
     filepatterns        = cmdlineproc.getInpuFilePatterns();
     textqueries         = cmdlineproc.getTextQueries();
     recursivefilesearch = cmdlineproc.getRecursiveFileSearch();
     matchalltextqueries = cmdlineproc.getMatchAllQueries();
     searchText(path);
 }
Ejemplo n.º 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(-)