gov.nasa.pds.citool.options
Class OptionsProcessor

java.lang.Object
  extended by gov.nasa.pds.citool.options.OptionsProcessor
All Implemented Interfaces:
CIToolFlags, ConfigKeys, gov.nasa.pds.tools.flags.ToolsFlags

public class OptionsProcessor
extends java.lang.Object
implements CIToolFlags, ConfigKeys

Class to process the CITool options.

Author:
mcayanan

Field Summary
 
Fields inherited from interface gov.nasa.pds.citool.options.CIToolFlags
ALIAS, ALLREFS, DBNAME, DBPASS, DBSERVER, DBUSER, INCLUDES, LOCAL, MODE, TARGET, VERBOSE, WHATIS_ALIAS, WHATIS_ALLREFS, WHATIS_DBNAME, WHATIS_DBPASS, WHATIS_DBSERVER, WHATIS_DBUSER, WHATIS_INCLUDES, WHATIS_LOCAL, WHATIS_MODE, WHATIS_TARGET, WHATIS_VERBOSE
 
Fields inherited from interface gov.nasa.pds.tools.flags.ToolsFlags
ARGNAME, CONFIG, DICT, HELP, LONG, REPORT, SHORT, VERSION, WHATIS_CONFIG, WHATIS_DICT, WHATIS_HELP, WHATIS_REPORT, WHATIS_VERSION
 
Fields inherited from interface gov.nasa.pds.citool.options.ConfigKeys
ALIASKEY, ALLREFSKEY, DBNAMEKEY, DBPASSKEY, DBSERVERKEY, DBUSERKEY, DICTIONARIESKEY, INCLUDESKEY, MODEKEY, RECURSEKEY, REGEXPKEY, REPORTKEY, TARGETSKEY, VERBOSEKEY
 
Constructor Summary
OptionsProcessor()
           
 
Method Summary
static CommandLineOptions query(java.net.URL file)
           
static CommandLineOptions queryCommandLine(org.apache.commons.cli.CommandLine line)
          Process the options that are set in the CommandLine object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptionsProcessor

public OptionsProcessor()
Method Detail

queryCommandLine

public static CommandLineOptions queryCommandLine(org.apache.commons.cli.CommandLine line)
                                           throws InvalidOptionException
Process the options that are set in the CommandLine object.

Parameters:
line - The CommandLine object that holds the options that were selected.
Throws:
ApplicationException - If there was an error processing the options.
InvalidOptionException

query

public static CommandLineOptions query(java.net.URL file)
                                throws org.apache.commons.configuration.ConfigurationException
Throws:
org.apache.commons.configuration.ConfigurationException


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