KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > modfact > jmi > service > cmdline > common > ModfactApplicationBase


1 /**
2  * copyright 2002 2004 Laboratoire d'Informatique Paris 6 (LIP6)
3  *
4  * This file is part of ModFact.
5  *
6  * ModFact is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * at your option) any later version.
10  *
11  * ModFact is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with ModFact; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  */

20 package org.objectweb.modfact.jmi.service.cmdline.common;
21
22 /**
23  * Class represnting a modfact base application, which can be an importer or an exporter.
24  */

25 public abstract class ModfactApplicationBase extends org.objectweb.util.cmdline.lib.ApplicationBase {
26     
27     /**
28      * Constructor of a ModfactApplicationBase (call to the super class constructor).
29      * @param commandLine The command line manager.
30      */

31     protected ModfactApplicationBase(org.objectweb.util.cmdline.lib.DefaultCommandLine commandLine) {
32         super(commandLine, true);
33         getCommandLine().addOption(new OptionQuiet(this));
34     }
35
36     /**
37      * Obtains the mailing list associated to this development.
38      * @return The mailing list associated to this development.
39      */

40     public String JavaDoc getMailingList() {
41         return "modfact@lip6.fr";
42     }
43
44     /**
45      * Obtains the associated version information.
46      *
47      * @return The associated version information.
48      */

49     public String JavaDoc[] getVersionInformation() {
50         return new String JavaDoc[] {
51             getIdentity(),
52             "",
53             "Copyright (C) 2000-2004 Laboratoire d'Informatique Paris 6 (LIP6)",
54             "Contact: " + getMailingList(),
55             "",
56             "ModFact is free software; you can redistribute it and/or",
57             "modify it under the terms of the GNU Lesser General Public",
58             "License as published by the Free Software Foundation; either",
59             "version 2 of the License, or any later version.",
60             "",
61             "ModFact is distributed in the hope that it will be useful,",
62             "but WITHOUT ANY WARRANTY; without even the implied warranty of",
63             "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU",
64             "Lesser General Public License for more details.",
65             "",
66             "You should have received a copy of the GNU Lesser General Public",
67             "License along with this library; if not, write to the Free Software",
68             "Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA" };
69     }
70
71 }
72
Popular Tags