1 /* _DynUnionStub.java --
2 Copyright (C) 2005, 2006 Free Software Foundation, Inc.
4 This file is part of GNU Classpath.
6 GNU Classpath is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
11 GNU Classpath is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU Classpath; see the file COPYING. If not, write to the
18 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 Linking this library statically or dynamically with other modules is
22 making a combined work based on this library. Thus, the terms and
23 conditions of the GNU General Public License cover the whole
26 As a special exception, the copyright holders of this library give you
27 permission to link this library with independent modules to produce an
28 executable, regardless of the license terms of these independent
29 modules, and to copy and distribute the resulting executable under
30 terms of your choice, provided that you also meet, for each linked
31 independent module, the terms and conditions of the license of that
32 module. An independent module is a module which is not derived from
33 or based on this library. If you modify this library, you may extend
34 this exception to your version of the library, but you are not
35 obligated to do so. If you do not wish to do so, delete this
36 exception statement from your version. */
39 package org
.omg
.DynamicAny
;
41 import java
.io
.Serializable
;
43 import org
.omg
.CORBA
.Any
;
44 import org
.omg
.CORBA
.MARSHAL
;
45 import org
.omg
.CORBA
.TCKind
;
46 import org
.omg
.CORBA
.TypeCode
;
47 import org
.omg
.CORBA
.portable
.Delegate
;
48 import org
.omg
.CORBA
.portable
.ObjectImpl
;
49 import org
.omg
.DynamicAny
.DynAnyPackage
.InvalidValue
;
50 import org
.omg
.DynamicAny
.DynAnyPackage
.TypeMismatch
;
53 * Should provide support for remote invocation of methods on DynUnion. As
54 * DynUnion can never be remote at least till 1.5 inclusive, this class is
57 * @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org)
59 public class _DynUnionStub
61 implements DynUnion
, Serializable
64 * Use serialVersionUID for interoperability.
66 private static final long serialVersionUID
= -8921031953572009897L;
69 * The purpose and value of this field are not documented.
71 public static final Class _opsClass
= DynUnionOperations
.class;
74 * Create the DynUnion stub. To get the stub working,
75 * you must later set the delegate with
76 * {@link ObjectImpl#_set_delegate(Delegate)}.
78 public _DynUnionStub()
83 * Return the array of repository ids for this object.
85 public String
[] _ids()
87 return new String
[] { DynUnionHelper
.id() };
91 * The remote call of DynAny methods is not possible.
93 * @throws MARSHAL, always.
95 public DynAny
member()
98 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
102 * The remote call of DynAny methods is not possible.
104 * @throws MARSHAL, always.
106 public TCKind
discriminator_kind()
108 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
112 * The remote call of DynAny methods is not possible.
114 * @throws MARSHAL, always.
116 public DynAny
get_discriminator()
118 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
122 * The remote call of DynAny methods is not possible.
124 * @throws MARSHAL, always.
126 public boolean has_no_active_member()
128 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
132 * The remote call of DynAny methods is not possible.
134 * @throws MARSHAL, always.
136 public TCKind
member_kind()
139 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
143 * The remote call of DynAny methods is not possible.
145 * @throws MARSHAL, always.
147 public String
member_name()
150 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
154 * The remote call of DynAny methods is not possible.
156 * @throws MARSHAL, always.
158 public void set_discriminator(DynAny _0
)
161 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
165 * The remote call of DynAny methods is not possible.
167 * @throws MARSHAL, always.
169 public void set_to_default_member()
172 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
176 * The remote call of DynAny methods is not possible.
178 * @throws MARSHAL, always.
180 public void set_to_no_active_member()
183 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
187 * The remote call of DynAny methods is not possible.
189 * @throws MARSHAL, always.
191 public TypeCode
type()
193 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
197 * The remote call of DynAny methods is not possible.
199 * @throws MARSHAL, always.
201 public boolean next()
203 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
207 * The remote call of DynAny methods is not possible.
209 * @throws MARSHAL, always.
211 public void destroy()
216 * The remote call of DynAny methods is not possible.
218 * @throws MARSHAL, always.
226 * The remote call of DynAny methods is not possible.
228 * @throws MARSHAL, always.
235 * The remote call of DynAny methods is not possible.
237 * @throws MARSHAL, always.
239 public void assign(DynAny _0
)
245 * The remote call of DynAny methods is not possible.
247 * @throws MARSHAL, always.
249 public int component_count()
251 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
255 * The remote call of DynAny methods is not possible.
257 * @throws MARSHAL, always.
259 public DynAny
current_component()
262 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
266 * The remote call of DynAny methods is not possible.
268 * @throws MARSHAL, always.
270 public boolean equal(DynAny _0
)
272 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
276 * The remote call of DynAny methods is not possible.
278 * @throws MARSHAL, always.
280 public void from_any(Any _0
)
281 throws TypeMismatch
, InvalidValue
283 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
287 * The remote call of DynAny methods is not possible.
289 * @throws MARSHAL, always.
292 throws TypeMismatch
, InvalidValue
294 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
298 * The remote call of DynAny methods is not possible.
300 * @throws MARSHAL, always.
302 public boolean get_boolean()
303 throws TypeMismatch
, InvalidValue
305 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
309 * The remote call of DynAny methods is not possible.
311 * @throws MARSHAL, always.
313 public char get_char()
314 throws TypeMismatch
, InvalidValue
316 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
320 * The remote call of DynAny methods is not possible.
322 * @throws MARSHAL, always.
324 public double get_double()
325 throws TypeMismatch
, InvalidValue
327 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
331 * The remote call of DynAny methods is not possible.
333 * @throws MARSHAL, always.
335 public DynAny
get_dyn_any()
336 throws TypeMismatch
, InvalidValue
338 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
342 * The remote call of DynAny methods is not possible.
344 * @throws MARSHAL, always.
346 public float get_float()
347 throws TypeMismatch
, InvalidValue
349 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
353 * The remote call of DynAny methods is not possible.
355 * @throws MARSHAL, always.
357 public int get_long()
358 throws TypeMismatch
, InvalidValue
360 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
364 * The remote call of DynAny methods is not possible.
366 * @throws MARSHAL, always.
368 public long get_longlong()
369 throws TypeMismatch
, InvalidValue
371 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
375 * The remote call of DynAny methods is not possible.
377 * @throws MARSHAL, always.
379 public byte get_octet()
380 throws TypeMismatch
, InvalidValue
382 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
386 * The remote call of DynAny methods is not possible.
388 * @throws MARSHAL, always.
390 public org
.omg
.CORBA
.Object
get_reference()
391 throws TypeMismatch
, InvalidValue
393 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
397 * The remote call of DynAny methods is not possible.
399 * @throws MARSHAL, always.
401 public short get_short()
402 throws TypeMismatch
, InvalidValue
404 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
408 * The remote call of DynAny methods is not possible.
410 * @throws MARSHAL, always.
412 public String
get_string()
413 throws TypeMismatch
, InvalidValue
415 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
419 * The remote call of DynAny methods is not possible.
421 * @throws MARSHAL, always.
423 public TypeCode
get_typecode()
424 throws TypeMismatch
, InvalidValue
426 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
430 * The remote call of DynAny methods is not possible.
432 * @throws MARSHAL, always.
434 public int get_ulong()
435 throws TypeMismatch
, InvalidValue
437 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
441 * The remote call of DynAny methods is not possible.
443 * @throws MARSHAL, always.
445 public long get_ulonglong()
446 throws TypeMismatch
, InvalidValue
448 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
452 * The remote call of DynAny methods is not possible.
454 * @throws MARSHAL, always.
456 public short get_ushort()
457 throws TypeMismatch
, InvalidValue
459 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
463 * The remote call of DynAny methods is not possible.
465 * @throws MARSHAL, always.
467 public Serializable
get_val()
468 throws TypeMismatch
, InvalidValue
470 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
474 * The remote call of DynAny methods is not possible.
476 * @throws MARSHAL, always.
478 public char get_wchar()
479 throws TypeMismatch
, InvalidValue
481 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
485 * The remote call of DynAny methods is not possible.
487 * @throws MARSHAL, always.
489 public String
get_wstring()
490 throws TypeMismatch
, InvalidValue
492 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
496 * The remote call of DynAny methods is not possible.
498 * @throws MARSHAL, always.
500 public void insert_any(Any _0
)
501 throws TypeMismatch
, InvalidValue
503 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
507 * The remote call of DynAny methods is not possible.
509 * @throws MARSHAL, always.
511 public void insert_boolean(boolean _0
)
512 throws TypeMismatch
, InvalidValue
514 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
518 * The remote call of DynAny methods is not possible.
520 * @throws MARSHAL, always.
522 public void insert_char(char _0
)
523 throws TypeMismatch
, InvalidValue
525 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
529 * The remote call of DynAny methods is not possible.
531 * @throws MARSHAL, always.
533 public void insert_double(double _0
)
534 throws TypeMismatch
, InvalidValue
536 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
540 * The remote call of DynAny methods is not possible.
542 * @throws MARSHAL, always.
544 public void insert_dyn_any(DynAny _0
)
545 throws TypeMismatch
, InvalidValue
547 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
551 * The remote call of DynAny methods is not possible.
553 * @throws MARSHAL, always.
555 public void insert_float(float _0
)
556 throws TypeMismatch
, InvalidValue
558 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
562 * The remote call of DynAny methods is not possible.
564 * @throws MARSHAL, always.
566 public void insert_long(int _0
)
567 throws TypeMismatch
, InvalidValue
569 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
573 * The remote call of DynAny methods is not possible.
575 * @throws MARSHAL, always.
577 public void insert_longlong(long _0
)
578 throws TypeMismatch
, InvalidValue
580 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
584 * The remote call of DynAny methods is not possible.
586 * @throws MARSHAL, always.
588 public void insert_octet(byte _0
)
589 throws TypeMismatch
, InvalidValue
591 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
595 * The remote call of DynAny methods is not possible.
597 * @throws MARSHAL, always.
599 public void insert_reference(org
.omg
.CORBA
.Object _0
)
600 throws TypeMismatch
, InvalidValue
602 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
606 * The remote call of DynAny methods is not possible.
608 * @throws MARSHAL, always.
610 public void insert_short(short _0
)
611 throws TypeMismatch
, InvalidValue
613 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
617 * The remote call of DynAny methods is not possible.
619 * @throws MARSHAL, always.
621 public void insert_string(String _0
)
622 throws TypeMismatch
, InvalidValue
624 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
628 * The remote call of DynAny methods is not possible.
630 * @throws MARSHAL, always.
632 public void insert_typecode(TypeCode _0
)
633 throws TypeMismatch
, InvalidValue
635 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
639 * The remote call of DynAny methods is not possible.
641 * @throws MARSHAL, always.
643 public void insert_ulong(int _0
)
644 throws TypeMismatch
, InvalidValue
646 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
650 * The remote call of DynAny methods is not possible.
652 * @throws MARSHAL, always.
654 public void insert_ulonglong(long _0
)
655 throws TypeMismatch
, InvalidValue
657 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
661 * The remote call of DynAny methods is not possible.
663 * @throws MARSHAL, always.
665 public void insert_ushort(short _0
)
666 throws TypeMismatch
, InvalidValue
668 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
672 * The remote call of DynAny methods is not possible.
674 * @throws MARSHAL, always.
676 public void insert_val(Serializable _0
)
677 throws TypeMismatch
, InvalidValue
679 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
683 * The remote call of DynAny methods is not possible.
685 * @throws MARSHAL, always.
687 public void insert_wchar(char _0
)
688 throws TypeMismatch
, InvalidValue
690 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
694 * The remote call of DynAny methods is not possible.
696 * @throws MARSHAL, always.
698 public void insert_wstring(String _0
)
699 throws TypeMismatch
, InvalidValue
701 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
705 * The remote call of DynAny methods is not possible.
707 * @throws MARSHAL, always.
709 public boolean seek(int _0
)
711 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);
715 * The remote call of DynAny methods is not possible.
717 * @throws MARSHAL, always.
721 throw new MARSHAL(_DynAnyStub
.NOT_APPLICABLE
);