gov.nasa.pds.validate
Class ValidateLauncher

java.lang.Object
  extended by gov.nasa.pds.validate.ValidateLauncher

public class ValidateLauncher
extends Object

Wrapper class for the Validate Tool. Class handles command-line parsing and querying, in addition to reporting setup.

Author:
mcayanan

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

ValidateLauncher

public ValidateLauncher()
Constructor.

Method Detail

parse

public org.apache.commons.cli.CommandLine parse(String[] args)
                                         throws org.apache.commons.cli.ParseException
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 an error occurred during parsing.

query

public void query(org.apache.commons.cli.CommandLine line)
           throws Exception
Query the command-line and process the command-line option flags set.

Parameters:
line - A CommandLine object containing the flags that were set.
Throws:
Exception - If an error occurred while processing the command-line options.

query

public void query(File configuration)
           throws org.apache.commons.configuration.ConfigurationException
Query the configuration file.

Parameters:
configuration - A configuration file.
Throws:
org.apache.commons.configuration.ConfigurationException - If an error occurred while querying the configuration file.

displayHelp

public void displayHelp()
Displays tool usage.


displayVersion

public void displayVersion()
                    throws IOException
Displays the current version and disclaimer notice.

Throws:
IOException - If there was an error that occurred while getting the tool information.

processMain

public void processMain(String[] args)
Wrapper method for the main class.

Parameters:
args - list of command-line arguments.

main

public static void main(String[] args)
Main class that launches the Validate Tool.

Parameters:
args - A list of command-line arguments.


Copyright © 2010-2013 Planetary Data System. All Rights Reserved.