Package gov.nasa.pds.harvest.search
Class HarvestSearchLauncher
- java.lang.Object
- 
- gov.nasa.pds.harvest.search.HarvestSearchLauncher
 
- 
 public class HarvestSearchLauncher extends Object Wrapper class of the Harvest tool that handles the command-line processing.- Author:
- mcayanan
 
- 
- 
Constructor SummaryConstructors Constructor Description HarvestSearchLauncher()Default constructor.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisplayHelp()Displays tool usage.voiddisplayVersion()Displays the current version and disclaimer notice.static voidmain(String[] args)Main class.org.apache.commons.cli.CommandLineparse(String[] args)A method to parse the command-line arguments.voidquery(org.apache.commons.cli.CommandLine line)Examines the command-line arguments passed into the Harvest Tool and takes the appropriate action based on what flags were set.
 
- 
- 
- 
Method Detail- 
parsepublic final org.apache.commons.cli.CommandLine parse(String[] args) throws org.apache.commons.cli.ParseException A method to parse the command-line arguments.- Parameters:
- args- The command-line arguments
- Returns:
- A class representation of the command-line arguments
- Throws:
- org.apache.commons.cli.ParseException- If there was an error during parsing.
 
 - 
querypublic final void query(org.apache.commons.cli.CommandLine line) throws ExceptionExamines the command-line arguments passed into the Harvest Tool and takes the appropriate action based on what flags were set.- Parameters:
- line- A class representation of the command-line arguments.
- Throws:
- Exception- If there was an error while querying the options that were set on the command-line.
 
 - 
displayVersionpublic final void displayVersion() Displays the current version and disclaimer notice.
 - 
displayHelppublic final void displayHelp() Displays tool usage.
 - 
mainpublic static void main(String[] args) Main class.- Parameters:
- args- The command-line arguments.
 
 
- 
 
-