Package gov.nasa.pds.citool
Class CITool
- java.lang.Object
-
- gov.nasa.pds.citool.CITool
-
public class CITool extends Object
Front end class for the Catalog Ingestion Tool.- Author:
- mcayanan, hyunlee
-
-
Constructor Summary
Constructors Constructor Description CITool()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Mode
getToolMode()
static void
main(String[] argv)
org.apache.commons.cli.CommandLine
parseLine(String[] argv)
Parses the CITool command-line.void
processMain(String[] args)
void
query(File configuration)
Query the configuration file.void
query(org.apache.commons.cli.CommandLine commandLine)
Query the CommandLine object to process the options that were selected.void
setAlias(boolean value)
void
setAllrefs(String allrefs)
void
setDictionaries(List<String> dictionaries)
void
setFunction(String functionValue)
void
setIncludePaths(List<String> paths)
void
setReportFile(File file)
void
setSeverity(int value)
void
setTargets(List<Target> targets)
void
setToolMode(Mode mode)
void
setTraverse(boolean value)
void
showHelp()
Show the CITool usage.void
showVersion()
Show the version and disclaimer notice.
-
-
-
Method Detail
-
parseLine
public org.apache.commons.cli.CommandLine parseLine(String[] argv) throws Exception
Parses the CITool command-line.- Parameters:
argv
- arguments given on the command-line- Throws:
ApplicationException
Exception
-
query
public void query(org.apache.commons.cli.CommandLine commandLine) throws Exception
Query the CommandLine object to process the options that were selected.- Parameters:
commandLine
- The CommandLine object- 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
-
setTraverse
public void setTraverse(boolean value)
-
setIncludePaths
public void setIncludePaths(List<String> paths) throws MalformedURLException
- Throws:
MalformedURLException
-
setAlias
public void setAlias(boolean value)
-
setAllrefs
public void setAllrefs(String allrefs) throws MalformedURLException
- Throws:
MalformedURLException
-
setReportFile
public void setReportFile(File file)
-
setSeverity
public void setSeverity(int value) throws InvalidOptionException
- Throws:
InvalidOptionException
-
getToolMode
public Mode getToolMode()
-
setToolMode
public void setToolMode(Mode mode)
-
setFunction
public void setFunction(String functionValue) throws InvalidOptionException
- Throws:
InvalidOptionException
-
showVersion
public void showVersion()
Show the version and disclaimer notice.
-
showHelp
public void showHelp()
Show the CITool usage.
-
processMain
public void processMain(String[] args)
-
main
public static void main(String[] argv)
-
-