001 /* _DynEnumStub.java --
002 Copyright (C) 2005, 2006 Free Software Foundation, Inc.
003
004 This file is part of GNU Classpath.
005
006 GNU Classpath is free software; you can redistribute it and/or modify
007 it under the terms of the GNU General Public License as published by
008 the Free Software Foundation; either version 2, or (at your option)
009 any later version.
010
011 GNU Classpath is distributed in the hope that it will be useful, but
012 WITHOUT ANY WARRANTY; without even the implied warranty of
013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014 General Public License for more details.
015
016 You should have received a copy of the GNU General Public License
017 along with GNU Classpath; see the file COPYING. If not, write to the
018 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
019 02110-1301 USA.
020
021 Linking this library statically or dynamically with other modules is
022 making a combined work based on this library. Thus, the terms and
023 conditions of the GNU General Public License cover the whole
024 combination.
025
026 As a special exception, the copyright holders of this library give you
027 permission to link this library with independent modules to produce an
028 executable, regardless of the license terms of these independent
029 modules, and to copy and distribute the resulting executable under
030 terms of your choice, provided that you also meet, for each linked
031 independent module, the terms and conditions of the license of that
032 module. An independent module is a module which is not derived from
033 or based on this library. If you modify this library, you may extend
034 this exception to your version of the library, but you are not
035 obligated to do so. If you do not wish to do so, delete this
036 exception statement from your version. */
037
038
039 package org.omg.DynamicAny;
040
041 import java.io.Serializable;
042
043 import org.omg.CORBA.Any;
044 import org.omg.CORBA.MARSHAL;
045 import org.omg.CORBA.TypeCode;
046 import org.omg.CORBA.portable.ObjectImpl;
047 import org.omg.DynamicAny.DynAnyPackage.InvalidValue;
048 import org.omg.DynamicAny.DynAnyPackage.TypeMismatch;
049
050 /**
051 * Should provide support for remote invocation of methods on DynEnum. As
052 * DynEnum can never be remote at least till 1.5 inclusive, this class is
053 * not in use.
054 *
055 * @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org)
056 */
057 public class _DynEnumStub
058 extends ObjectImpl
059 implements DynEnum, Serializable
060 {
061 /**
062 * Use serialVersionUID (v1.4) for interoperability.
063 */
064 private static final long serialVersionUID = 696844314172031949L;
065
066 /**
067 * The purpose and value of this field are not documented.
068 */
069 public static final Class _opsClass = DynEnumOperations.class;
070
071 /**
072 * Create the DynEnum stub.
073 */
074 public _DynEnumStub()
075 {
076 }
077
078 /**
079 * Return the array of repository ids for this object.
080 */
081 public String[] _ids()
082 {
083 return new String[] { DynEnumHelper.id() };
084 }
085
086 /**
087 * The remote call of DynEnum methods is not possible.
088 *
089 * @throws MARSHAL, always.
090 */
091 public String get_as_string()
092 {
093 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
094 }
095
096 /**
097 * The remote call of DynEnum methods is not possible.
098 *
099 * @throws MARSHAL, always.
100 */
101 public int get_as_ulong()
102 {
103 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
104 }
105
106 /**
107 * The remote call of DynEnum methods is not possible.
108 *
109 * @throws MARSHAL, always.
110 */
111 public void set_as_string(String _0)
112 throws InvalidValue
113 {
114 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
115 }
116
117 /**
118 * The remote call of DynEnum methods is not possible.
119 *
120 * @throws MARSHAL, always.
121 */
122 public void set_as_ulong(int _0)
123 throws InvalidValue
124 {
125 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
126 }
127
128 /**
129 * The remote call of DynAny methods is not possible.
130 *
131 * @throws MARSHAL, always.
132 */
133 public TypeCode type()
134 {
135 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
136 }
137
138 /**
139 * The remote call of DynAny methods is not possible.
140 *
141 * @throws MARSHAL, always.
142 */
143 public boolean next()
144 {
145 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
146 }
147
148 /**
149 * The remote call of DynAny methods is not possible.
150 *
151 * @throws MARSHAL, always.
152 */
153 public void destroy()
154 {
155 }
156
157 /**
158 * The remote call of DynAny methods is not possible.
159 *
160 * @throws MARSHAL, always.
161 */
162 public DynAny copy()
163 {
164 return this;
165 }
166
167 /**
168 * The remote call of DynAny methods is not possible.
169 *
170 * @throws MARSHAL, always.
171 */
172 public void rewind()
173 {
174 }
175
176 /**
177 * The remote call of DynAny methods is not possible.
178 *
179 * @throws MARSHAL, always.
180 */
181 public void assign(DynAny _0)
182 throws TypeMismatch
183 {
184 }
185
186 /**
187 * The remote call of DynAny methods is not possible.
188 *
189 * @throws MARSHAL, always.
190 */
191 public int component_count()
192 {
193 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
194 }
195
196 /**
197 * The remote call of DynAny methods is not possible.
198 *
199 * @throws MARSHAL, always.
200 */
201 public DynAny current_component()
202 throws TypeMismatch
203 {
204 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
205 }
206
207 /**
208 * The remote call of DynAny methods is not possible.
209 *
210 * @throws MARSHAL, always.
211 */
212 public boolean equal(DynAny _0)
213 {
214 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
215 }
216
217 /**
218 * The remote call of DynAny methods is not possible.
219 *
220 * @throws MARSHAL, always.
221 */
222 public void from_any(Any _0)
223 throws TypeMismatch, InvalidValue
224 {
225 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
226 }
227
228 /**
229 * The remote call of DynAny methods is not possible.
230 *
231 * @throws MARSHAL, always.
232 */
233 public Any get_any()
234 throws TypeMismatch, InvalidValue
235 {
236 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
237 }
238
239 /**
240 * The remote call of DynAny methods is not possible.
241 *
242 * @throws MARSHAL, always.
243 */
244 public boolean get_boolean()
245 throws TypeMismatch, InvalidValue
246 {
247 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
248 }
249
250 /**
251 * The remote call of DynAny methods is not possible.
252 *
253 * @throws MARSHAL, always.
254 */
255 public char get_char()
256 throws TypeMismatch, InvalidValue
257 {
258 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
259 }
260
261 /**
262 * The remote call of DynAny methods is not possible.
263 *
264 * @throws MARSHAL, always.
265 */
266 public double get_double()
267 throws TypeMismatch, InvalidValue
268 {
269 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
270 }
271
272 /**
273 * The remote call of DynAny methods is not possible.
274 *
275 * @throws MARSHAL, always.
276 */
277 public DynAny get_dyn_any()
278 throws TypeMismatch, InvalidValue
279 {
280 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
281 }
282
283 /**
284 * The remote call of DynAny methods is not possible.
285 *
286 * @throws MARSHAL, always.
287 */
288 public float get_float()
289 throws TypeMismatch, InvalidValue
290 {
291 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
292 }
293
294 /**
295 * The remote call of DynAny methods is not possible.
296 *
297 * @throws MARSHAL, always.
298 */
299 public int get_long()
300 throws TypeMismatch, InvalidValue
301 {
302 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
303 }
304
305 /**
306 * The remote call of DynAny methods is not possible.
307 *
308 * @throws MARSHAL, always.
309 */
310 public long get_longlong()
311 throws TypeMismatch, InvalidValue
312 {
313 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
314 }
315
316 /**
317 * The remote call of DynAny methods is not possible.
318 *
319 * @throws MARSHAL, always.
320 */
321 public byte get_octet()
322 throws TypeMismatch, InvalidValue
323 {
324 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
325 }
326
327 /**
328 * The remote call of DynAny methods is not possible.
329 *
330 * @throws MARSHAL, always.
331 */
332 public org.omg.CORBA.Object get_reference()
333 throws TypeMismatch, InvalidValue
334 {
335 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
336 }
337
338 /**
339 * The remote call of DynAny methods is not possible.
340 *
341 * @throws MARSHAL, always.
342 */
343 public short get_short()
344 throws TypeMismatch, InvalidValue
345 {
346 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
347 }
348
349 /**
350 * The remote call of DynAny methods is not possible.
351 *
352 * @throws MARSHAL, always.
353 */
354 public String get_string()
355 throws TypeMismatch, InvalidValue
356 {
357 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
358 }
359
360 /**
361 * The remote call of DynAny methods is not possible.
362 *
363 * @throws MARSHAL, always.
364 */
365 public TypeCode get_typecode()
366 throws TypeMismatch, InvalidValue
367 {
368 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
369 }
370
371 /**
372 * The remote call of DynAny methods is not possible.
373 *
374 * @throws MARSHAL, always.
375 */
376 public int get_ulong()
377 throws TypeMismatch, InvalidValue
378 {
379 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
380 }
381
382 /**
383 * The remote call of DynAny methods is not possible.
384 *
385 * @throws MARSHAL, always.
386 */
387 public long get_ulonglong()
388 throws TypeMismatch, InvalidValue
389 {
390 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
391 }
392
393 /**
394 * The remote call of DynAny methods is not possible.
395 *
396 * @throws MARSHAL, always.
397 */
398 public short get_ushort()
399 throws TypeMismatch, InvalidValue
400 {
401 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
402 }
403
404 /**
405 * The remote call of DynAny methods is not possible.
406 *
407 * @throws MARSHAL, always.
408 */
409 public Serializable get_val()
410 throws TypeMismatch, InvalidValue
411 {
412 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
413 }
414
415 /**
416 * The remote call of DynAny methods is not possible.
417 *
418 * @throws MARSHAL, always.
419 */
420 public char get_wchar()
421 throws TypeMismatch, InvalidValue
422 {
423 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
424 }
425
426 /**
427 * The remote call of DynAny methods is not possible.
428 *
429 * @throws MARSHAL, always.
430 */
431 public String get_wstring()
432 throws TypeMismatch, InvalidValue
433 {
434 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
435 }
436
437 /**
438 * The remote call of DynAny methods is not possible.
439 *
440 * @throws MARSHAL, always.
441 */
442 public void insert_any(Any _0)
443 throws TypeMismatch, InvalidValue
444 {
445 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
446 }
447
448 /**
449 * The remote call of DynAny methods is not possible.
450 *
451 * @throws MARSHAL, always.
452 */
453 public void insert_boolean(boolean _0)
454 throws TypeMismatch, InvalidValue
455 {
456 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
457 }
458
459 /**
460 * The remote call of DynAny methods is not possible.
461 *
462 * @throws MARSHAL, always.
463 */
464 public void insert_char(char _0)
465 throws TypeMismatch, InvalidValue
466 {
467 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
468 }
469
470 /**
471 * The remote call of DynAny methods is not possible.
472 *
473 * @throws MARSHAL, always.
474 */
475 public void insert_double(double _0)
476 throws TypeMismatch, InvalidValue
477 {
478 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
479 }
480
481 /**
482 * The remote call of DynAny methods is not possible.
483 *
484 * @throws MARSHAL, always.
485 */
486 public void insert_dyn_any(DynAny _0)
487 throws TypeMismatch, InvalidValue
488 {
489 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
490 }
491
492 /**
493 * The remote call of DynAny methods is not possible.
494 *
495 * @throws MARSHAL, always.
496 */
497 public void insert_float(float _0)
498 throws TypeMismatch, InvalidValue
499 {
500 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
501 }
502
503 /**
504 * The remote call of DynAny methods is not possible.
505 *
506 * @throws MARSHAL, always.
507 */
508 public void insert_long(int _0)
509 throws TypeMismatch, InvalidValue
510 {
511 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
512 }
513
514 /**
515 * The remote call of DynAny methods is not possible.
516 *
517 * @throws MARSHAL, always.
518 */
519 public void insert_longlong(long _0)
520 throws TypeMismatch, InvalidValue
521 {
522 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
523 }
524
525 /**
526 * The remote call of DynAny methods is not possible.
527 *
528 * @throws MARSHAL, always.
529 */
530 public void insert_octet(byte _0)
531 throws TypeMismatch, InvalidValue
532 {
533 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
534 }
535
536 /**
537 * The remote call of DynAny methods is not possible.
538 *
539 * @throws MARSHAL, always.
540 */
541 public void insert_reference(org.omg.CORBA.Object _0)
542 throws TypeMismatch, InvalidValue
543 {
544 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
545 }
546
547 /**
548 * The remote call of DynAny methods is not possible.
549 *
550 * @throws MARSHAL, always.
551 */
552 public void insert_short(short _0)
553 throws TypeMismatch, InvalidValue
554 {
555 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
556 }
557
558 /**
559 * The remote call of DynAny methods is not possible.
560 *
561 * @throws MARSHAL, always.
562 */
563 public void insert_string(String _0)
564 throws TypeMismatch, InvalidValue
565 {
566 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
567 }
568
569 /**
570 * The remote call of DynAny methods is not possible.
571 *
572 * @throws MARSHAL, always.
573 */
574 public void insert_typecode(TypeCode _0)
575 throws TypeMismatch, InvalidValue
576 {
577 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
578 }
579
580 /**
581 * The remote call of DynAny methods is not possible.
582 *
583 * @throws MARSHAL, always.
584 */
585 public void insert_ulong(int _0)
586 throws TypeMismatch, InvalidValue
587 {
588 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
589 }
590
591 /**
592 * The remote call of DynAny methods is not possible.
593 *
594 * @throws MARSHAL, always.
595 */
596 public void insert_ulonglong(long _0)
597 throws TypeMismatch, InvalidValue
598 {
599 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
600 }
601
602 /**
603 * The remote call of DynAny methods is not possible.
604 *
605 * @throws MARSHAL, always.
606 */
607 public void insert_ushort(short _0)
608 throws TypeMismatch, InvalidValue
609 {
610 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
611 }
612
613 /**
614 * The remote call of DynAny methods is not possible.
615 *
616 * @throws MARSHAL, always.
617 */
618 public void insert_val(Serializable _0)
619 throws TypeMismatch, InvalidValue
620 {
621 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
622 }
623
624 /**
625 * The remote call of DynAny methods is not possible.
626 *
627 * @throws MARSHAL, always.
628 */
629 public void insert_wchar(char _0)
630 throws TypeMismatch, InvalidValue
631 {
632 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
633 }
634
635 /**
636 * The remote call of DynAny methods is not possible.
637 *
638 * @throws MARSHAL, always.
639 */
640 public void insert_wstring(String _0)
641 throws TypeMismatch, InvalidValue
642 {
643 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
644 }
645
646 /**
647 * The remote call of DynAny methods is not possible.
648 *
649 * @throws MARSHAL, always.
650 */
651 public boolean seek(int _0)
652 {
653 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
654 }
655
656 /**
657 * The remote call of DynAny methods is not possible.
658 *
659 * @throws MARSHAL, always.
660 */
661 public Any to_any()
662 {
663 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
664 }
665
666 }