Import GNU Classpath (20121202).
[official-gcc.git] / libjava / classpath / org / omg / DynamicAny / _DynUnionStub.java
blobde351d8d4a9fcb1f78b52c1b60ae175620d8e5af
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)
9 any later version.
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
19 02110-1301 USA.
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
24 combination.
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;
52 /**
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
55 * not in use.
57 * @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org)
59 public class _DynUnionStub
60 extends ObjectImpl
61 implements DynUnion, Serializable
63 /**
64 * Use serialVersionUID for interoperability.
66 private static final long serialVersionUID = -8921031953572009897L;
68 /**
69 * The purpose and value of this field are not documented.
71 @SuppressWarnings("rawtypes") // Needed for API compatibility
72 public static final Class _opsClass = DynUnionOperations.class;
74 /**
75 * Create the DynUnion stub. To get the stub working,
76 * you must later set the delegate with
77 * {@link ObjectImpl#_set_delegate(Delegate)}.
79 public _DynUnionStub()
83 /**
84 * Return the array of repository ids for this object.
86 public String[] _ids()
88 return new String[] { DynUnionHelper.id() };
91 /**
92 * The remote call of DynAny methods is not possible.
94 * @throws MARSHAL, always.
96 public DynAny member()
97 throws InvalidValue
99 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
103 * The remote call of DynAny methods is not possible.
105 * @throws MARSHAL, always.
107 public TCKind discriminator_kind()
109 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
113 * The remote call of DynAny methods is not possible.
115 * @throws MARSHAL, always.
117 public DynAny get_discriminator()
119 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
123 * The remote call of DynAny methods is not possible.
125 * @throws MARSHAL, always.
127 public boolean has_no_active_member()
129 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
133 * The remote call of DynAny methods is not possible.
135 * @throws MARSHAL, always.
137 public TCKind member_kind()
138 throws InvalidValue
140 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
144 * The remote call of DynAny methods is not possible.
146 * @throws MARSHAL, always.
148 public String member_name()
149 throws InvalidValue
151 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
155 * The remote call of DynAny methods is not possible.
157 * @throws MARSHAL, always.
159 public void set_discriminator(DynAny _0)
160 throws TypeMismatch
162 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
166 * The remote call of DynAny methods is not possible.
168 * @throws MARSHAL, always.
170 public void set_to_default_member()
171 throws TypeMismatch
173 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
177 * The remote call of DynAny methods is not possible.
179 * @throws MARSHAL, always.
181 public void set_to_no_active_member()
182 throws TypeMismatch
184 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
188 * The remote call of DynAny methods is not possible.
190 * @throws MARSHAL, always.
192 public TypeCode type()
194 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
198 * The remote call of DynAny methods is not possible.
200 * @throws MARSHAL, always.
202 public boolean next()
204 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
208 * The remote call of DynAny methods is not possible.
210 * @throws MARSHAL, always.
212 public void destroy()
217 * The remote call of DynAny methods is not possible.
219 * @throws MARSHAL, always.
221 public DynAny copy()
223 return this;
227 * The remote call of DynAny methods is not possible.
229 * @throws MARSHAL, always.
231 public void rewind()
236 * The remote call of DynAny methods is not possible.
238 * @throws MARSHAL, always.
240 public void assign(DynAny _0)
241 throws TypeMismatch
246 * The remote call of DynAny methods is not possible.
248 * @throws MARSHAL, always.
250 public int component_count()
252 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
256 * The remote call of DynAny methods is not possible.
258 * @throws MARSHAL, always.
260 public DynAny current_component()
261 throws TypeMismatch
263 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
267 * The remote call of DynAny methods is not possible.
269 * @throws MARSHAL, always.
271 public boolean equal(DynAny _0)
273 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
277 * The remote call of DynAny methods is not possible.
279 * @throws MARSHAL, always.
281 public void from_any(Any _0)
282 throws TypeMismatch, InvalidValue
284 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
288 * The remote call of DynAny methods is not possible.
290 * @throws MARSHAL, always.
292 public Any get_any()
293 throws TypeMismatch, InvalidValue
295 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
299 * The remote call of DynAny methods is not possible.
301 * @throws MARSHAL, always.
303 public boolean get_boolean()
304 throws TypeMismatch, InvalidValue
306 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
310 * The remote call of DynAny methods is not possible.
312 * @throws MARSHAL, always.
314 public char get_char()
315 throws TypeMismatch, InvalidValue
317 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
321 * The remote call of DynAny methods is not possible.
323 * @throws MARSHAL, always.
325 public double get_double()
326 throws TypeMismatch, InvalidValue
328 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
332 * The remote call of DynAny methods is not possible.
334 * @throws MARSHAL, always.
336 public DynAny get_dyn_any()
337 throws TypeMismatch, InvalidValue
339 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
343 * The remote call of DynAny methods is not possible.
345 * @throws MARSHAL, always.
347 public float get_float()
348 throws TypeMismatch, InvalidValue
350 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
354 * The remote call of DynAny methods is not possible.
356 * @throws MARSHAL, always.
358 public int get_long()
359 throws TypeMismatch, InvalidValue
361 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
365 * The remote call of DynAny methods is not possible.
367 * @throws MARSHAL, always.
369 public long get_longlong()
370 throws TypeMismatch, InvalidValue
372 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
376 * The remote call of DynAny methods is not possible.
378 * @throws MARSHAL, always.
380 public byte get_octet()
381 throws TypeMismatch, InvalidValue
383 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
387 * The remote call of DynAny methods is not possible.
389 * @throws MARSHAL, always.
391 public org.omg.CORBA.Object get_reference()
392 throws TypeMismatch, InvalidValue
394 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
398 * The remote call of DynAny methods is not possible.
400 * @throws MARSHAL, always.
402 public short get_short()
403 throws TypeMismatch, InvalidValue
405 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
409 * The remote call of DynAny methods is not possible.
411 * @throws MARSHAL, always.
413 public String get_string()
414 throws TypeMismatch, InvalidValue
416 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
420 * The remote call of DynAny methods is not possible.
422 * @throws MARSHAL, always.
424 public TypeCode get_typecode()
425 throws TypeMismatch, InvalidValue
427 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
431 * The remote call of DynAny methods is not possible.
433 * @throws MARSHAL, always.
435 public int get_ulong()
436 throws TypeMismatch, InvalidValue
438 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
442 * The remote call of DynAny methods is not possible.
444 * @throws MARSHAL, always.
446 public long get_ulonglong()
447 throws TypeMismatch, InvalidValue
449 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
453 * The remote call of DynAny methods is not possible.
455 * @throws MARSHAL, always.
457 public short get_ushort()
458 throws TypeMismatch, InvalidValue
460 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
464 * The remote call of DynAny methods is not possible.
466 * @throws MARSHAL, always.
468 public Serializable get_val()
469 throws TypeMismatch, InvalidValue
471 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
475 * The remote call of DynAny methods is not possible.
477 * @throws MARSHAL, always.
479 public char get_wchar()
480 throws TypeMismatch, InvalidValue
482 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
486 * The remote call of DynAny methods is not possible.
488 * @throws MARSHAL, always.
490 public String get_wstring()
491 throws TypeMismatch, InvalidValue
493 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
497 * The remote call of DynAny methods is not possible.
499 * @throws MARSHAL, always.
501 public void insert_any(Any _0)
502 throws TypeMismatch, InvalidValue
504 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
508 * The remote call of DynAny methods is not possible.
510 * @throws MARSHAL, always.
512 public void insert_boolean(boolean _0)
513 throws TypeMismatch, InvalidValue
515 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
519 * The remote call of DynAny methods is not possible.
521 * @throws MARSHAL, always.
523 public void insert_char(char _0)
524 throws TypeMismatch, InvalidValue
526 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
530 * The remote call of DynAny methods is not possible.
532 * @throws MARSHAL, always.
534 public void insert_double(double _0)
535 throws TypeMismatch, InvalidValue
537 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
541 * The remote call of DynAny methods is not possible.
543 * @throws MARSHAL, always.
545 public void insert_dyn_any(DynAny _0)
546 throws TypeMismatch, InvalidValue
548 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
552 * The remote call of DynAny methods is not possible.
554 * @throws MARSHAL, always.
556 public void insert_float(float _0)
557 throws TypeMismatch, InvalidValue
559 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
563 * The remote call of DynAny methods is not possible.
565 * @throws MARSHAL, always.
567 public void insert_long(int _0)
568 throws TypeMismatch, InvalidValue
570 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
574 * The remote call of DynAny methods is not possible.
576 * @throws MARSHAL, always.
578 public void insert_longlong(long _0)
579 throws TypeMismatch, InvalidValue
581 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
585 * The remote call of DynAny methods is not possible.
587 * @throws MARSHAL, always.
589 public void insert_octet(byte _0)
590 throws TypeMismatch, InvalidValue
592 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
596 * The remote call of DynAny methods is not possible.
598 * @throws MARSHAL, always.
600 public void insert_reference(org.omg.CORBA.Object _0)
601 throws TypeMismatch, InvalidValue
603 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
607 * The remote call of DynAny methods is not possible.
609 * @throws MARSHAL, always.
611 public void insert_short(short _0)
612 throws TypeMismatch, InvalidValue
614 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
618 * The remote call of DynAny methods is not possible.
620 * @throws MARSHAL, always.
622 public void insert_string(String _0)
623 throws TypeMismatch, InvalidValue
625 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
629 * The remote call of DynAny methods is not possible.
631 * @throws MARSHAL, always.
633 public void insert_typecode(TypeCode _0)
634 throws TypeMismatch, InvalidValue
636 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
640 * The remote call of DynAny methods is not possible.
642 * @throws MARSHAL, always.
644 public void insert_ulong(int _0)
645 throws TypeMismatch, InvalidValue
647 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
651 * The remote call of DynAny methods is not possible.
653 * @throws MARSHAL, always.
655 public void insert_ulonglong(long _0)
656 throws TypeMismatch, InvalidValue
658 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
662 * The remote call of DynAny methods is not possible.
664 * @throws MARSHAL, always.
666 public void insert_ushort(short _0)
667 throws TypeMismatch, InvalidValue
669 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
673 * The remote call of DynAny methods is not possible.
675 * @throws MARSHAL, always.
677 public void insert_val(Serializable _0)
678 throws TypeMismatch, InvalidValue
680 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
684 * The remote call of DynAny methods is not possible.
686 * @throws MARSHAL, always.
688 public void insert_wchar(char _0)
689 throws TypeMismatch, InvalidValue
691 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
695 * The remote call of DynAny methods is not possible.
697 * @throws MARSHAL, always.
699 public void insert_wstring(String _0)
700 throws TypeMismatch, InvalidValue
702 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
706 * The remote call of DynAny methods is not possible.
708 * @throws MARSHAL, always.
710 public boolean seek(int _0)
712 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
716 * The remote call of DynAny methods is not possible.
718 * @throws MARSHAL, always.
720 public Any to_any()
722 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);