KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > openccm > task > PackageMapping


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 Demarey.
23 Contributor(s): ______________________________________.
24
25 ====================================================================*/

26
27 package org.objectweb.openccm.task;
28
29 // Package dependencies.
30

31 /**
32  * This is a representation of a package mapping declaration.
33  *
34  * @author <a HREF="mailto:Christophe.Demarey@lifl.fr">Christophe Demarey</a>
35  *
36  * @version 0.1
37  */

38 public class PackageMapping
39 {
40     // ==================================================================
41
//
42
// Internal states.
43
//
44
// ==================================================================
45

46     /** The IDL package name. */
47     String JavaDoc idl_pkg_;
48
49     /** The java package name. */
50     String JavaDoc java_pkg_;
51
52     // ==================================================================
53
//
54
// Constructors.
55
//
56
// ==================================================================
57

58     /**
59      * The default constructor.
60      */

61     public
62     PackageMapping()
63     {
64         // Init internal states
65
idl_pkg_ = null;
66         java_pkg_ = null;
67     }
68
69     // ==================================================================
70
//
71
// Internal methods.
72
//
73
// ==================================================================
74

75     protected String JavaDoc
76     asArgument()
77     {
78         return idl_pkg_ + ":" + java_pkg_;
79     }
80     
81     // ==================================================================
82
//
83
// Public methods.
84
//
85
// ==================================================================
86

87     /**
88      * Set the IDL package name to map.
89      *
90      * @param name - The package name.
91      */

92     public void
93     setIdlpkg(String JavaDoc name)
94     {
95         idl_pkg_ = name;
96     }
97
98     /**
99      * Set the Java package name to map.
100      *
101      * @param name - The package name.
102      */

103     public void
104     setJavapkg(String JavaDoc name)
105     {
106         java_pkg_ = name;
107     }
108 }
109
Popular Tags