KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > openccm > Containers > MetaInformation > ComponentTypeImpl


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

28
29 package org.objectweb.openccm.Containers.MetaInformation;
30
31 /**
32  * @author hameau
33  */

34 public class ComponentTypeImpl
35 extends InterfaceTypeImpl
36 implements ComponentType
37 {
38     // internal propereties
39

40     protected HomeType _home_type;
41     protected String JavaDoc _component_instance_factory_entrypt;
42
43     // list of ports
44

45     protected FacetPortTypeList _facets_type;
46     protected ReceptaclePortTypeList _receptacles_type;
47     protected ConsumerPortTypeList _consumers_type;
48     protected EmitterPortTypeList _emitters_type;
49     protected PublisherPortTypeList _publishers_ports;
50  
51     // related interfaces
52

53     protected InterfaceTypeList _supported_interface;
54     protected InterfaceType _equivalent_interface;
55
56     // constructor
57

58     public ComponentTypeImpl()
59     {
60         _home_type = null;
61         _facets_type = new FacetPortTypeListImpl();
62         _receptacles_type = new ReceptaclePortTypeListImpl();
63         _consumers_type = new ConsumerPortTypeListImpl();
64         _emitters_type = new EmitterPortTypeListImpl();
65         _publishers_ports = new PublisherPortTypeListImpl();
66         _supported_interface = new InterfaceTypeListImpl();
67         _equivalent_interface = null;
68     }
69
70     /* (non-Javadoc)
71      * @see org.objectweb.openccm.Containers.ComponentTypeOperations#home_type()
72      */

73     public HomeType home_type() {
74         return _home_type;
75     }
76
77     public String JavaDoc component_instance_factory_entrypt() {
78         
79         return _component_instance_factory_entrypt;
80     }
81
82     
83     
84  
85
86
87     /* (non-Javadoc)
88      * @see org.objectweb.openccm.Containers.MetaInformation.ComponentTypeOperations#receptacles_type()
89      */

90     public ReceptaclePortTypeList receptacles_type() {
91         return _receptacles_type;
92     }
93
94
95
96     /* (non-Javadoc)
97      * @see org.objectweb.openccm.Containers.MetaInformation.ComponentTypeOperations#consumers_type()
98      */

99     public ConsumerPortTypeList consumers_type() {
100         return _consumers_type;
101     }
102
103     
104
105    /* (non-Javadoc)
106     * @see org.objectweb.openccm.Containers.MetaInformation.ComponentTypeOperations#facets_type()
107     */

108    public FacetPortTypeList facets_type() {
109      return _facets_type;
110    }
111
112
113     /* (non-Javadoc)
114      * @see org.objectweb.openccm.Containers.MetaInformation.ComponentTypeOperations#emitters_type()
115      */

116     public EmitterPortTypeList emitters_type() {
117         return _emitters_type;
118     }
119
120     /* (non-Javadoc)
121      * @see org.objectweb.openccm.Containers.MetaInformation.ComponentTypeOperations#emitters_type(org.objectweb.openccm.Containers.MetaInformation.EmitterPortTypeList)
122      */

123     public void emitters_type(EmitterPortTypeList value) {
124         _emitters_type = value;
125     }
126
127     /* (non-Javadoc)
128      * @see org.objectweb.openccm.Containers.MetaInformation.ComponentTypeOperations#publishers_ports()
129      */

130     public PublisherPortTypeList publishers_ports() {
131         return _publishers_ports;
132     }
133
134     
135   /* (non-Javadoc)
136    * @see org.objectweb.openccm.Containers.MetaInformation.ComponentTypeOperations#facet_port_type_list()
137    */

138   public FacetPortTypeList facet_port_type_list()
139   {
140     return _facets_type;
141   }
142
143   /* (non-Javadoc)
144    * @see org.objectweb.openccm.Containers.MetaInformation.ComponentTypeOperations#receptacle_port_type_list()
145    */

146   public ReceptaclePortTypeList receptacle_port_type_list()
147   {
148     return _receptacles_type;
149   }
150
151   /* (non-Javadoc)
152    * @see org.objectweb.openccm.Containers.MetaInformation.ComponentTypeOperations#receptacle_port_type_list(org.objectweb.openccm.Containers.MetaInformation.ReceptaclePortTypeList)
153    */

154
155
156   /* (non-Javadoc)
157    * @see org.objectweb.openccm.Containers.MetaInformation.ComponentTypeOperations#consumer_port_type_list()
158    */

159   public ConsumerPortTypeList consumer_port_type_list()
160   {
161     return _consumers_type;
162   }
163
164   /* (non-Javadoc)
165    * @see org.objectweb.openccm.Containers.MetaInformation.ComponentTypeOperations#emitter_port_type_list()
166    */

167   public EmitterPortTypeList emitter_port_type_list()
168   {
169      return _emitters_type;
170   }
171
172   /* (non-Javadoc)
173    * @see org.objectweb.openccm.Containers.MetaInformation.ComponentTypeOperations#publisher_port_type_list()
174    */

175   public PublisherPortTypeList publisher_port_type_list()
176   {
177     return _publishers_ports;
178   }
179
180  
181   /* (non-Javadoc)
182    * @see org.objectweb.openccm.Containers.MetaInformation.ComponentTypeOperations#supported_interfaces()
183    */

184   public InterfaceTypeList supported_interfaces()
185   {
186     return _supported_interface;
187   }
188
189
190
191   /* (non-Javadoc)
192    * @see org.objectweb.openccm.Containers.MetaInformation.ComponentTypeOperations#equivalent_interface()
193    */

194   public InterfaceType equivalent_interface()
195   {
196     return _equivalent_interface;
197   }
198
199   /* (non-Javadoc)
200    * @see org.objectweb.openccm.Containers.MetaInformation.ComponentTypeOperations#equivalent_interface(org.objectweb.openccm.Containers.MetaInformation.InterfaceType)
201    */

202  
203
204 }
205 /*
206   public void facet_port_type_list(FacetPortTypeList value)
207   {
208     _facets_type = value;
209   }
210
211   public void publishers_ports(PublisherPortTypeList value) {
212     _publishers_ports = value;
213   }
214     
215   public void receptacle_port_type_list(ReceptaclePortTypeList value)
216   {
217     _receptacles_type = value;
218   }
219   
220   public void consumer_port_type_list(ConsumerPortTypeList value)
221   {
222     _consumers_type = value;
223   }
224   
225   public void emitter_port_type_list(EmitterPortTypeList value)
226   {
227     _emitters_type = value;
228   }
229  
230    public void publisher_port_type_list(PublisherPortTypeList value)
231   {
232     _publishers_ports = value;
233   }
234
235    public void equivalent_interface(InterfaceType value)
236   {
237     _equivalent_interface = value;
238   }
239
240   public void consumers_type(ConsumerPortTypeList value) {
241     _consumers_type = value;
242   }
243   
244   public void receptacles_type(ReceptaclePortTypeList value) {
245     _receptacles_type = value;
246   }
247  
248   public void facets_type(FacetPortTypeList value) {
249     _facets_type = value;
250   }
251   
252   public void home_type(HomeType value) {
253   
254        _home_type = value;
255      }
256      
257      public void component_instance_factory_entrypt(String value) {
258     
259     _component_instance_factory_entrypt = value;
260   }
261   
262 */
Popular Tags