KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > openccm > corba > trader > SpecifiedPropsWrapper


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

26
27 package org.objectweb.openccm.corba.trader;
28
29 import org.omg.CosTrading.LookupPackage.SpecifiedProps;
30
31 /**
32  * Wrapper class in order to manipulate the
33  * CosTrading::Lookup::SpecifiedProps union independently of the used
34  * ORB product.
35  *
36  * @author <a HREF="mailto:Sylvain.Leblanc@lifl.fr">Sylvain.Leblanc</a>
37  *
38  * @version 0.1
39  */

40 public class SpecifiedPropsWrapper {
41
42     // ==================================================================
43
//
44
// Internal state.
45
//
46
// ==================================================================
47

48     // ==================================================================
49
//
50
// Constructor.
51
//
52
// ==================================================================
53

54     /**
55      * The default constructor.
56      */

57     public SpecifiedPropsWrapper() {}
58
59     // ==================================================================
60
//
61
// Internal methods.
62
//
63
// ==================================================================
64

65     // ==================================================================
66
//
67
// Public methods.
68
//
69
// ==================================================================
70

71     // ==================================================================
72
//
73
// Public static methods.
74
//
75
// ==================================================================
76

77     /**
78      * Creates a CosTrading::Lookup::SpecifiedProps union with
79      * discriminator initialized with the HowManyProps.none value.
80      *
81      * @return An CosTrading::Lookup::SpecifiedProps union
82      * object.
83      */

84     public static org.omg.CosTrading.LookupPackage.SpecifiedProps
85     create_none() {
86         SpecifiedProps sp = new SpecifiedProps();
87         sp.__default();
88         return sp;
89     }
90
91     /**
92      * Creates a CosTrading::Lookup::SpecifiedProps union with
93      * discriminator initialized with the HowManyProps.all value.
94      *
95      * @return An CosTrading::Lookup::SpecifiedProps union
96      * object.
97      */

98     public static org.omg.CosTrading.LookupPackage.SpecifiedProps
99     create_all() {
100         SpecifiedProps sp = new SpecifiedProps();
101         sp.__default(org.omg.CosTrading.LookupPackage.HowManyProps.all);
102         return sp;
103         
104     }
105
106     /**
107      * Creates a CosTrading::Lookup::SpecifiedProps union with
108      * discriminator initialized with the HowManyProps.some value.
109      *
110      * @param property_names The names of the required properties to
111      * specify in the SpecifiedProps union.
112      *
113      * @return An CosTrading::Lookup::SpecifiedProps union
114      * object.
115      */

116     public static org.omg.CosTrading.LookupPackage.SpecifiedProps
117     create_some(String JavaDoc[] property_names) {
118         SpecifiedProps sp = new SpecifiedProps();
119         sp.prop_names(property_names);
120         return sp;
121     }
122 }
123
Popular Tags