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 getPassword()
           
 String getStorageUrl()
           
 Mode getToolMode()
           
 String getUsername()
           
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 setDictionaries(List<String> dictionaries)
           
 void setFunction(String functionValue)
           
 void setIncludePaths(List<String> paths)
           
 void setKeystorePass(String keypass)
           
 void setPassword(String passwd)
           
 void setReportFile(File file)
           
 void setSeverity(int value)
           
 void setStorageUrl(String storageUrl)
           
 void setTargets(List<Target> targets)
           
 void setToolMode(Mode mode)
           
 void setTransportUrl(String transportUrl)
           
 void setTraverse(boolean value)
           
 void setUsername(String user)
           
 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

setUsername

public void setUsername(String user)

getUsername

public String getUsername()

setPassword

public void setPassword(String passwd)

getPassword

public String getPassword()

setStorageUrl

public void setStorageUrl(String storageUrl)

getStorageUrl

public String getStorageUrl()

setTransportUrl

public void setTransportUrl(String transportUrl)

setKeystorePass

public void setKeystorePass(String keypass)

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 © 2010-2012 Planetary Data System. All Rights Reserved.