gov.nasa.pds.citool
Class CITool

java.lang.Object
  extended by gov.nasa.pds.citool.CITool

public class CITool
extends Object

Front end class for the Catalog Ingestion Tool.

Author:
mcayanan, hyunlee

Constructor Summary
CITool()
           
 
Method Summary
 String getDBName()
           
 String getDBPass()
           
 String getDBServer()
           
 String getDBUser()
           
 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(org.apache.commons.cli.CommandLine commandLine)
          Query the CommandLine object to process the options that were selected.
 void query(File configuration)
          Query the configuration file.
 void setAlias(boolean value)
           
 void setAllrefs(String allrefs)
           
 void setDBName(String dbname)
           
 void setDBPass(String passwd)
           
 void setDBServer(String server)
           
 void setDBUser(String user)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CITool

public CITool()
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)

setTargets

public void setTargets(List<Target> targets)

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

setDictionaries

public void setDictionaries(List<String> dictionaries)

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

getDBUser

public String getDBUser()

setDBUser

public void setDBUser(String user)

getDBPass

public String getDBPass()

setDBPass

public void setDBPass(String passwd)

getDBName

public String getDBName()

setDBName

public void setDBName(String dbname)

getDBServer

public String getDBServer()

setDBServer

public void setDBServer(String server)

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)


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