gov.nasa.pds.validate
Class ValidateLauncher

java.lang.Object
  extended by gov.nasa.pds.validate.ValidateLauncher
All Implemented Interfaces:
ConfigKeys, Flags

public class ValidateLauncher
extends Object
implements Flags, ConfigKeys

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

Author:
mcayanan

Field Summary
 
Fields inherited from interface gov.nasa.pds.validate.commandline.options.Flags
ARGNAME, CONFIG, HELP, LOCAL, LONG, REGEXP, REPORT, SCHEMA, SHORT, TARGET, VERBOSE, VERSION, WHATIS_CONFIG, WHATIS_HELP, WHATIS_LOCAL, WHATIS_REGEXP, WHATIS_REPORT, WHATIS_SCHEMA, WHATIS_TARGET, WHATIS_VERBOSE, WHATIS_VERSION
 
Fields inherited from interface gov.nasa.pds.validate.commandline.options.ConfigKeys
CATALOGKEY, LOCALKEY, REGEXPKEY, REPORTKEY, SCHEMAKEY, TARGETKEY, VERBOSEKEY
 
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)
           
 org.apache.commons.cli.CommandLine parse(String[] args)
          Parse the command-line arguments
 void query(org.apache.commons.cli.CommandLine line)
           
 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,
                                                InvalidOptionException
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
InvalidOptionException

query

public void query(org.apache.commons.cli.CommandLine line)
           throws Exception
Throws:
Exception

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

displayHelp

public void displayHelp()
Displays tool usage.


displayVersion

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

Throws:
IOException

main

public static void main(String[] args)


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