DBVIEW
src/org/dbview/runtime/cli/CliActionSelector.java
00001 /*
00002         DbView - Graph Visualization
00003     Copyright (C) 2012  Denis BEURIVE
00004 
00005     This program is free software: you can redistribute it and/or modify
00006     it under the terms of the GNU General Public License as published by
00007     the Free Software Foundation, either version 3 of the License, or
00008     (at your option) any later version.
00009 
00010     This program is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013     GNU General Public License for more details.
00014 
00015     You should have received a copy of the GNU General Public License
00016     along with this program.  If not, see <http://www.gnu.org/licenses/>.
00017 */
00018 
00019 /**
00020  * @author Denis Beurive
00021  */
00022 
00023 package org.dbview.runtime.cli;
00024 
00025 /**
00026  * This class contains constants that describe actions' selectors.
00027  *
00028  * @author Denis Beurive
00029  */
00030 public class CliActionSelector
00031 {
00032     /**
00033      * Unknown action selector.
00034      */
00035     public static int CLI_UNKNOWN             = -1;
00036 
00037     /**
00038      * The user requests the print of the general help message.
00039      */
00040     public static int CLI_HELP                = 0;
00041 
00042     /**
00043      * The user requests the print of the help message for a specific input add-on.
00044      */
00045     public static int CLI_INPUT_HELP          = 1;
00046 
00047     /**
00048      * The user requests the print of the help message for a specific output add-on.
00049      */
00050     public static int CLI_OUTPUT_HELP         = 2;
00051 
00052     /**
00053      * The user requests the print of the list of all available input add-ons.
00054      */
00055     public static int CLI_LIST_INPUT_ADDONS  = 3;
00056 
00057     /**
00058      * The user requests the print of the list of all available output add-ons.
00059      */
00060     public static int CLI_LIST_OUTPUT_TABLE_ADDONS = 4;
00061 
00062     /**
00063      * The user wants to add a new profile to the profiles' repository.
00064      */
00065     public static int CLI_PROFILE_ADD         = 5;
00066 
00067     /**
00068      * The user wants to remove a profile from the profiles' repository.
00069      */
00070     public static int CLI_PROFILE_REMOVE      = 6;
00071 
00072     /**
00073      * The user wants to print a given profile.
00074      */
00075     public static int CLI_PROFILE_SHOW        = 7;
00076 
00077     /**
00078      * The user wants to update a given profile.
00079      */
00080     public static int CLI_PROFILE_UPDATE      = 8;
00081 
00082     /**
00083      * The user wants to print all profiles in the profiles' repository.
00084      */
00085     public static int CLI_PROFILE_LIST        = 9;
00086 
00087     /**
00088      * The user wants to export a database.
00089      */
00090     public static int CLI_EXPORT              = 10;
00091 
00092     /**
00093      * The user wants to print the list of all available soft foreign key detectors.
00094      */
00095     public static int CLI_LIST_SFK_DETECTOR   = 11;
00096 
00097     /**
00098      * The user wants to calculate the path(s) between two tables.
00099      */
00100     public static int CLI_PATH                = 12;
00101 }