KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > openccm > packaging > cmdline > OptionAAR


1 /*====================================================================
2
3 OpenCCM: The Open CORBA Component Model Platform
4 Copyright (C) 2000-2004 INRIA - USTL - LIFL - GOAL
5 Contact: openccm@objectweb.org
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20 USA
21
22 Initial developer(s): Christophe Contreras
23 Contributor(s): ___________________________________________________.
24
25 ====================================================================*/

26
27 package org.objectweb.openccm.packaging.cmdline;
28
29
30 /**
31  * This implements the AAR option treatment for OpenCCM Pack-Assembling Tool
32  *
33  * @author <a HREF="mailto:christophe.contreras@lifl.fr">Christophe Contreras</a>
34  *
35  */

36
37 public class OptionAAR
38      extends OptionBase
39 {
40     // ==================================================================
41
//
42
// Internal state.
43
//
44
// ==================================================================
45

46     // ==================================================================
47
//
48
// Constructor.
49
//
50
// ==================================================================
51

52     /**
53      * The constructor.
54      *
55      * @param application The associated PATApplication.
56      */

57     public
58     OptionAAR(PATApplication application)
59     {
60         setLabels(new String JavaDoc[] { "-AAR" });
61         setDescription(new String JavaDoc[] { "Builds Assembly ARchives from Component Assembly Descriptors"});
62         setApplication(application);
63     }
64
65     // ==================================================================
66
//
67
// Internal methods.
68
//
69
// ==================================================================
70

71     // ==================================================================
72
//
73
// Public methods for org.objectweb.openccm.packaging.cmdline.OptionBase
74
//
75
// ==================================================================
76

77     /**
78      * Gets the base option label.
79      *
80      * @return The base option label.
81      */

82     public String JavaDoc
83     getBaseOptionLabel()
84     {
85         return "-AAR";
86     }
87
88     /**
89      * Consumes the option value.
90      *
91      * @param current The option value.
92      */

93     public void
94     consumeOption(String JavaDoc current)
95     {
96         getApplication().displayGUI(false);
97         getApplication().setAARMaker(true);
98     }
99
100     // ==================================================================
101
//
102
// Other public methods.
103
//
104
// ==================================================================
105
}
106
Popular Tags