Import GNU Classpath (20121202).
[official-gcc.git] / libjava / classpath / org / omg / DynamicAny / _DynEnumStub.java
blob07b2b7c5dbf0f9b2d548887ded45dcb106e6a21f
1 /* _DynEnumStub.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.TypeCode;
46 import org.omg.CORBA.portable.ObjectImpl;
47 import org.omg.DynamicAny.DynAnyPackage.InvalidValue;
48 import org.omg.DynamicAny.DynAnyPackage.TypeMismatch;
50 /**
51 * Should provide support for remote invocation of methods on DynEnum. As
52 * DynEnum can never be remote at least till 1.5 inclusive, this class is
53 * not in use.
55 * @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org)
57 public class _DynEnumStub
58 extends ObjectImpl
59 implements DynEnum, Serializable
61 /**
62 * Use serialVersionUID (v1.4) for interoperability.
64 private static final long serialVersionUID = 696844314172031949L;
66 /**
67 * The purpose and value of this field are not documented.
69 @SuppressWarnings("rawtypes") // Needed for API compatibility
70 public static final Class _opsClass = DynEnumOperations.class;
72 /**
73 * Create the DynEnum stub.
75 public _DynEnumStub()
79 /**
80 * Return the array of repository ids for this object.
82 public String[] _ids()
84 return new String[] { DynEnumHelper.id() };
87 /**
88 * The remote call of DynEnum methods is not possible.
90 * @throws MARSHAL, always.
92 public String get_as_string()
94 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
97 /**
98 * The remote call of DynEnum methods is not possible.
100 * @throws MARSHAL, always.
102 public int get_as_ulong()
104 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
108 * The remote call of DynEnum methods is not possible.
110 * @throws MARSHAL, always.
112 public void set_as_string(String _0)
113 throws InvalidValue
115 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
119 * The remote call of DynEnum methods is not possible.
121 * @throws MARSHAL, always.
123 public void set_as_ulong(int _0)
124 throws InvalidValue
126 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
130 * The remote call of DynAny methods is not possible.
132 * @throws MARSHAL, always.
134 public TypeCode type()
136 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
140 * The remote call of DynAny methods is not possible.
142 * @throws MARSHAL, always.
144 public boolean next()
146 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
150 * The remote call of DynAny methods is not possible.
152 * @throws MARSHAL, always.
154 public void destroy()
159 * The remote call of DynAny methods is not possible.
161 * @throws MARSHAL, always.
163 public DynAny copy()
165 return this;
169 * The remote call of DynAny methods is not possible.
171 * @throws MARSHAL, always.
173 public void rewind()
178 * The remote call of DynAny methods is not possible.
180 * @throws MARSHAL, always.
182 public void assign(DynAny _0)
183 throws TypeMismatch
188 * The remote call of DynAny methods is not possible.
190 * @throws MARSHAL, always.
192 public int component_count()
194 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
198 * The remote call of DynAny methods is not possible.
200 * @throws MARSHAL, always.
202 public DynAny current_component()
203 throws TypeMismatch
205 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
209 * The remote call of DynAny methods is not possible.
211 * @throws MARSHAL, always.
213 public boolean equal(DynAny _0)
215 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
219 * The remote call of DynAny methods is not possible.
221 * @throws MARSHAL, always.
223 public void from_any(Any _0)
224 throws TypeMismatch, InvalidValue
226 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
230 * The remote call of DynAny methods is not possible.
232 * @throws MARSHAL, always.
234 public Any get_any()
235 throws TypeMismatch, InvalidValue
237 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
241 * The remote call of DynAny methods is not possible.
243 * @throws MARSHAL, always.
245 public boolean get_boolean()
246 throws TypeMismatch, InvalidValue
248 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
252 * The remote call of DynAny methods is not possible.
254 * @throws MARSHAL, always.
256 public char get_char()
257 throws TypeMismatch, InvalidValue
259 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
263 * The remote call of DynAny methods is not possible.
265 * @throws MARSHAL, always.
267 public double get_double()
268 throws TypeMismatch, InvalidValue
270 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
274 * The remote call of DynAny methods is not possible.
276 * @throws MARSHAL, always.
278 public DynAny get_dyn_any()
279 throws TypeMismatch, InvalidValue
281 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
285 * The remote call of DynAny methods is not possible.
287 * @throws MARSHAL, always.
289 public float get_float()
290 throws TypeMismatch, InvalidValue
292 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
296 * The remote call of DynAny methods is not possible.
298 * @throws MARSHAL, always.
300 public int get_long()
301 throws TypeMismatch, InvalidValue
303 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
307 * The remote call of DynAny methods is not possible.
309 * @throws MARSHAL, always.
311 public long get_longlong()
312 throws TypeMismatch, InvalidValue
314 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
318 * The remote call of DynAny methods is not possible.
320 * @throws MARSHAL, always.
322 public byte get_octet()
323 throws TypeMismatch, InvalidValue
325 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
329 * The remote call of DynAny methods is not possible.
331 * @throws MARSHAL, always.
333 public org.omg.CORBA.Object get_reference()
334 throws TypeMismatch, InvalidValue
336 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
340 * The remote call of DynAny methods is not possible.
342 * @throws MARSHAL, always.
344 public short get_short()
345 throws TypeMismatch, InvalidValue
347 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
351 * The remote call of DynAny methods is not possible.
353 * @throws MARSHAL, always.
355 public String get_string()
356 throws TypeMismatch, InvalidValue
358 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
362 * The remote call of DynAny methods is not possible.
364 * @throws MARSHAL, always.
366 public TypeCode get_typecode()
367 throws TypeMismatch, InvalidValue
369 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
373 * The remote call of DynAny methods is not possible.
375 * @throws MARSHAL, always.
377 public int get_ulong()
378 throws TypeMismatch, InvalidValue
380 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
384 * The remote call of DynAny methods is not possible.
386 * @throws MARSHAL, always.
388 public long get_ulonglong()
389 throws TypeMismatch, InvalidValue
391 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
395 * The remote call of DynAny methods is not possible.
397 * @throws MARSHAL, always.
399 public short get_ushort()
400 throws TypeMismatch, InvalidValue
402 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
406 * The remote call of DynAny methods is not possible.
408 * @throws MARSHAL, always.
410 public Serializable get_val()
411 throws TypeMismatch, InvalidValue
413 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
417 * The remote call of DynAny methods is not possible.
419 * @throws MARSHAL, always.
421 public char get_wchar()
422 throws TypeMismatch, InvalidValue
424 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
428 * The remote call of DynAny methods is not possible.
430 * @throws MARSHAL, always.
432 public String get_wstring()
433 throws TypeMismatch, InvalidValue
435 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
439 * The remote call of DynAny methods is not possible.
441 * @throws MARSHAL, always.
443 public void insert_any(Any _0)
444 throws TypeMismatch, InvalidValue
446 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
450 * The remote call of DynAny methods is not possible.
452 * @throws MARSHAL, always.
454 public void insert_boolean(boolean _0)
455 throws TypeMismatch, InvalidValue
457 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
461 * The remote call of DynAny methods is not possible.
463 * @throws MARSHAL, always.
465 public void insert_char(char _0)
466 throws TypeMismatch, InvalidValue
468 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
472 * The remote call of DynAny methods is not possible.
474 * @throws MARSHAL, always.
476 public void insert_double(double _0)
477 throws TypeMismatch, InvalidValue
479 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
483 * The remote call of DynAny methods is not possible.
485 * @throws MARSHAL, always.
487 public void insert_dyn_any(DynAny _0)
488 throws TypeMismatch, InvalidValue
490 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
494 * The remote call of DynAny methods is not possible.
496 * @throws MARSHAL, always.
498 public void insert_float(float _0)
499 throws TypeMismatch, InvalidValue
501 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
505 * The remote call of DynAny methods is not possible.
507 * @throws MARSHAL, always.
509 public void insert_long(int _0)
510 throws TypeMismatch, InvalidValue
512 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
516 * The remote call of DynAny methods is not possible.
518 * @throws MARSHAL, always.
520 public void insert_longlong(long _0)
521 throws TypeMismatch, InvalidValue
523 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
527 * The remote call of DynAny methods is not possible.
529 * @throws MARSHAL, always.
531 public void insert_octet(byte _0)
532 throws TypeMismatch, InvalidValue
534 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
538 * The remote call of DynAny methods is not possible.
540 * @throws MARSHAL, always.
542 public void insert_reference(org.omg.CORBA.Object _0)
543 throws TypeMismatch, InvalidValue
545 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
549 * The remote call of DynAny methods is not possible.
551 * @throws MARSHAL, always.
553 public void insert_short(short _0)
554 throws TypeMismatch, InvalidValue
556 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
560 * The remote call of DynAny methods is not possible.
562 * @throws MARSHAL, always.
564 public void insert_string(String _0)
565 throws TypeMismatch, InvalidValue
567 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
571 * The remote call of DynAny methods is not possible.
573 * @throws MARSHAL, always.
575 public void insert_typecode(TypeCode _0)
576 throws TypeMismatch, InvalidValue
578 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
582 * The remote call of DynAny methods is not possible.
584 * @throws MARSHAL, always.
586 public void insert_ulong(int _0)
587 throws TypeMismatch, InvalidValue
589 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
593 * The remote call of DynAny methods is not possible.
595 * @throws MARSHAL, always.
597 public void insert_ulonglong(long _0)
598 throws TypeMismatch, InvalidValue
600 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
604 * The remote call of DynAny methods is not possible.
606 * @throws MARSHAL, always.
608 public void insert_ushort(short _0)
609 throws TypeMismatch, InvalidValue
611 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
615 * The remote call of DynAny methods is not possible.
617 * @throws MARSHAL, always.
619 public void insert_val(Serializable _0)
620 throws TypeMismatch, InvalidValue
622 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
626 * The remote call of DynAny methods is not possible.
628 * @throws MARSHAL, always.
630 public void insert_wchar(char _0)
631 throws TypeMismatch, InvalidValue
633 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
637 * The remote call of DynAny methods is not possible.
639 * @throws MARSHAL, always.
641 public void insert_wstring(String _0)
642 throws TypeMismatch, InvalidValue
644 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
648 * The remote call of DynAny methods is not possible.
650 * @throws MARSHAL, always.
652 public boolean seek(int _0)
654 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
658 * The remote call of DynAny methods is not possible.
660 * @throws MARSHAL, always.
662 public Any to_any()
664 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);