DBVIEW
src/org/dbview/adapter/CliParameter.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.adapter;
00024 
00025 /**
00026  * @class CliParameter
00027  * This class represents a command line parameter.
00028  * @remark This class is only used when the user requires to print the help.
00029  * @author Denis BEURIVE
00030  */
00031 public class CliParameter
00032 {
00033     /** Name of the CLI parameter. */
00034     public String parameter = null;
00035 
00036     /** Is the CLI parameter mandatory. */
00037     public Boolean mandatory = Boolean.FALSE;
00038 
00039     /** Description of the CLI parameter. */
00040     public String description = null;
00041 
00042     /** Type of parameter. Value is a constant defined in the class CliParameterTypes. */
00043     public int type = CliParameterTypes.UNDEFINED;
00044 
00045     /**
00046      * Name of the resource that implements the feature behind the parameter.
00047      * <ul>
00048      *      <li>Resources are packaged into JAR files.</li>
00049      *      <li>The list of available resources is defined in the application's configuration file "resources.properties".</li>
00050      *      <li>Each resource is bound to a JAR file.</li>
00051      * </ul>
00052      * 
00053      * @remark Please not that this attribute does <b>NOT</b> represents a file name. It represents the entry, in the configuration file "resources.properties", that is bound to the JAR file.
00054      */
00055     public String resource_name = null;
00056 }