Class CITool


  • public class CITool
    extends Object
    Front end class for the Catalog Ingestion Tool.
    Author:
    mcayanan, hyunlee
    • 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)
      • setAlias

        public void setAlias​(boolean value)
      • setDictionaries

        public void setDictionaries​(List<String> dictionaries)
      • setReportFile

        public void setReportFile​(File file)
      • getToolMode

        public Mode getToolMode()
      • setToolMode

        public void setToolMode​(Mode mode)
      • 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)