|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.validate.ValidateLauncher
public class ValidateLauncher
Wrapper class for the Validate Tool. Class handles command-line parsing and querying, in addition to reporting setup.
Constructor Summary | |
---|---|
ValidateLauncher()
Constructor. |
Method Summary | |
---|---|
void |
displayHelp()
Displays tool usage. |
void |
displayVersion()
Displays the current version and disclaimer notice. |
static void |
main(String[] args)
Main class that launches the Validate Tool. |
org.apache.commons.cli.CommandLine |
parse(String[] args)
Parse the command-line arguments |
void |
processMain(String[] args)
Wrapper method for the main class. |
void |
query(org.apache.commons.cli.CommandLine line)
Query the command-line and process the command-line option flags set. |
void |
query(File configuration)
Query the configuration file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidateLauncher()
Method Detail |
---|
public org.apache.commons.cli.CommandLine parse(String[] args) throws org.apache.commons.cli.ParseException
args
- The command-line arguments
org.apache.commons.cli.ParseException
- If an error occurred during parsing.public void query(org.apache.commons.cli.CommandLine line) throws Exception
line
- A CommandLine object containing the flags that were set.
Exception
- If an error occurred while processing the
command-line options.public void query(File configuration) throws org.apache.commons.configuration.ConfigurationException
configuration
- A configuration file.
org.apache.commons.configuration.ConfigurationException
- If an error occurred while querying
the configuration file.public void displayHelp()
public void displayVersion() throws IOException
IOException
- If there was an error that occurred while
getting the tool information.public void processMain(String[] args)
args
- list of command-line arguments.public static void main(String[] args)
args
- A list of command-line arguments.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |