Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

com/ohrasys/app/gdsparser/GDSParserUtil.java

Go to the documentation of this file.
00001 /* Copyright (C) 2004 Thomas N. Valine
00002  * tvaline@users.sourceforge.net
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00017  * 02111-1307, USA. */
00018 
00019 package com.ohrasys.app.gdsparser;
00020 import com.ohrasys.app.*;
00021 
00029 public class GDSParserUtil {
00031   private static GDSParserI18NFactory i18n;
00032 
00034   public static final String NOGUI_FLAG = "-nogui" /*NOI18N*/;
00035 
00037   public static final String VERSION_FLAG = "-version" /*NOI18N*/;
00038 
00040   public static final String LOG_FLAG = "-log" /*NOI18N*/;
00041 
00043   public static final String HELP_FLAG = "-help" /*NOI18N*/;
00044 
00046   public static final String GDSIN_FLAG = "-gdsin" /*NOI18N*/;
00047 
00049   public static final String USAGE = i18n.getString(i18n.i18n_USAGE_START) +
00050     "java com.ohrasys.app.gdsparser.GDSParserApp [-version] [-help] " /*NOI18N*/ +
00051     "[-log logfile] [-nogui] [-gdsin <filename>]" /*NOI18N*/;
00052 
00054   private static final String VERSION = i18n.getString(
00055       i18n.i18n_APP_VERSION);
00056 
00058   private static final String COPYRIGHT = i18n.getString(i18n.i18n_APP_COPY);
00059 
00066   public static String getAbout() {
00067     return (getVersion() + "\n" /*NOI18N*/ + getCopyright());
00068   }
00069 
00075   public static String getCopyright(){return COPYRIGHT;}
00076 
00083   public static AppOption[] getTemplates(){return new AppOption[]{
00084       AppOption.getFlag(NOGUI_FLAG),
00085       AppOption.getFlag(VERSION_FLAG),
00086       AppOption.getFlag(HELP_FLAG),
00087       AppOption.getOption(LOG_FLAG),
00088       AppOption.getOption(GDSIN_FLAG)
00089     };}
00090 
00096   public static String getUsage(){return USAGE;}
00097 
00103   public static String getVersion(){return VERSION;}
00104 
00110   public String toString(){return super.toString();}
00111 } // end class GDSParserUtil
00112 
00113 
00114 /* This material is distributed under the GNU General Public License.
00115  * For more information please go to http://www.gnu.org/copyleft/gpl.html */

Generated on Mon May 23 13:48:55 2005 for Java GDS Parser (JGDSParser) by  doxygen 1.4.2