1
2
3
4
5
6
7
8
9
10
11
12
13 package it.imolinfo.jbi4corba.jbi.component.runtime;
14
15 import javax.jbi.messaging.MessageExchange.Role;
16 import javax.xml.namespace.QName;
17
18
19
20
21
22
23
24
25 public class ServiceDescriptor {
26
27
28
29
30 public ServiceDescriptor() {
31 }
32
33
34
35
36 private String mEndpointName;
37
38
39
40
41
42
43 public String getEndpointName() {
44 return this.mEndpointName;
45 }
46
47
48
49
50
51
52 public void setEndpointName(String endpointName) {
53 this.mEndpointName = endpointName;
54 }
55
56
57
58
59 private QName mServiceName;
60
61
62
63
64
65
66 public QName getServiceName() {
67 return this.mServiceName;
68 }
69
70
71
72
73
74
75 public void setServiceName(QName serviceName) {
76 this.mServiceName = serviceName;
77 }
78
79
80
81
82 private Role mRole;
83
84
85
86
87
88
89 public Role getRole() {
90 return this.mRole;
91 }
92
93
94
95
96
97
98 public void setRole(Role role) {
99 this.mRole = role;
100 }
101
102
103
104
105 private QName[] mServiceTypes;
106
107
108
109
110
111
112
113 public QName getServiceTypes(int index) {
114 return this.mServiceTypes[index];
115 }
116
117
118
119
120
121
122 public QName[] getServiceTypes() {
123 return this.mServiceTypes;
124 }
125
126
127
128
129
130
131
132 public void setServiceTypes(int index, QName serviceTypes) {
133 this.mServiceTypes[index] = serviceTypes;
134 }
135
136
137
138
139
140
141 public void setServiceTypes(QName[] serviceTypes) {
142 this.mServiceTypes = serviceTypes;
143 }
144
145
146
147
148 public QName getServiceType() {
149 QName[] types = this.getServiceTypes();
150 QName serviceType = null;
151 if ( types != null && types.length > 0 ) {
152 serviceType = types[0];
153 }
154 return serviceType;
155 }
156
157
158
159 private OperationDescriptor[] mOperations;
160
161
162
163
164
165
166
167 public OperationDescriptor getOperations(int index) {
168 return this.mOperations[index];
169 }
170
171
172
173
174
175
176 public OperationDescriptor[] getOperations() {
177 return this.mOperations;
178 }
179
180
181
182
183
184
185
186 public void setOperations(int index, OperationDescriptor operations) {
187 this.mOperations[index] = operations;
188 }
189
190
191
192
193
194
195 public void setOperations(OperationDescriptor[] operations) {
196 this.mOperations = operations;
197 }
198
199
200 public static final class OperationDescriptor {
201
202
203 public static final String IN_ONLY_MEP = "http://www.w3.org/2004/08/wsdl/in-only";
204
205 public static final String ROBUST_IN_ONLY_MEP = "http://www.w3.org/2004/08/wsdl/robust-in-only";
206
207
208 public static final String IN_OUT_MEP = "http://www.w3.org/2004/08/wsdl/in-out";
209
210 public static final String IN_OPTIONAL_OUT_MEP = "http://www.w3.org/2004/08/wsdl/in-opt-out";
211
212
213
214
215 private QName mServiceType;
216
217
218
219
220
221
222 public QName getServiceType() {
223 return this.mServiceType;
224 }
225
226
227
228
229
230
231 public void setServiceType(QName serviceType) {
232 this.mServiceType = serviceType;
233 }
234
235
236
237
238 private String mName;
239
240
241
242
243
244
245 public String getName() {
246 return this.mName;
247 }
248
249
250
251
252
253
254 public void setName(String name) {
255 this.mName = name;
256 }
257
258
259
260
261 private String mInput;
262
263
264
265
266
267
268 public String getInput() {
269 return this.mInput;
270 }
271
272
273
274
275
276
277 public void setInput(String input) {
278 this.mInput = input;
279 }
280
281
282
283
284 private String mOutput;
285
286
287
288
289
290
291 public String getOutput() {
292 return this.mOutput;
293 }
294
295
296
297
298
299
300 public void setOutput(String output) {
301 this.mOutput = output;
302 }
303
304
305
306
307 private String mMEP;
308
309
310
311
312
313
314 public String getMEP() {
315 return this.mMEP;
316 }
317
318
319
320
321
322
323 public void setMEP(String MEP) {
324 this.mMEP = MEP;
325 }
326
327 }
328
329 }