Import GNU Classpath (20121202).
[official-gcc.git] / libjava / classpath / org / omg / DynamicAny / _DynAnyStub.java
bloba2adec9ed721189fdaf853938e93c06ac7489ca6
1 /* _DynAnyStub.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 DynAny. As
52 * DynAny 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 _DynAnyStub
58 extends ObjectImpl
59 implements DynAny, Serializable
61 /**
62 * Use serialVersionUID (v1.4) for interoperability.
64 private static final long serialVersionUID = -6521892777941121597L;
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 = DynAnyOperations.class;
72 /**
73 * Create the DynAny stub.
75 public _DynAnyStub()
79 /**
80 * Return the array of repository ids for this object.
82 public String[] _ids()
84 return new String[] { DynAnyHelper.id() };
87 /**
88 * The remote call of DynAny methods is not possible.
90 * @throws MARSHAL, always.
92 public TypeCode type()
94 throw new MARSHAL(NOT_APPLICABLE);
97 /**
98 * The remote call of DynAny methods is not possible.
100 * @throws MARSHAL, always.
102 public boolean next()
104 throw new MARSHAL(NOT_APPLICABLE);
108 * The remote call of DynAny methods is not possible.
110 * @throws MARSHAL, always.
112 public void destroy()
117 * The remote call of DynAny methods is not possible.
119 * @throws MARSHAL, always.
121 public DynAny copy()
123 return this;
127 * The remote call of DynAny methods is not possible.
129 * @throws MARSHAL, always.
131 public void rewind()
136 * The remote call of DynAny methods is not possible.
138 * @throws MARSHAL, always.
140 public void assign(DynAny _0)
141 throws TypeMismatch
146 * The remote call of DynAny methods is not possible.
148 * @throws MARSHAL, always.
150 public int component_count()
152 throw new MARSHAL(NOT_APPLICABLE);
156 * The remote call of DynAny methods is not possible.
158 * @throws MARSHAL, always.
160 public DynAny current_component()
161 throws TypeMismatch
163 throw new MARSHAL(NOT_APPLICABLE);
167 * The remote call of DynAny methods is not possible.
169 * @throws MARSHAL, always.
171 public boolean equal(DynAny _0)
173 throw new MARSHAL(NOT_APPLICABLE);
177 * The remote call of DynAny methods is not possible.
179 * @throws MARSHAL, always.
181 public void from_any(Any _0)
182 throws TypeMismatch, InvalidValue
184 throw new MARSHAL(NOT_APPLICABLE);
188 * The remote call of DynAny methods is not possible.
190 * @throws MARSHAL, always.
192 public Any get_any()
193 throws TypeMismatch, InvalidValue
195 throw new MARSHAL(NOT_APPLICABLE);
199 * The remote call of DynAny methods is not possible.
201 * @throws MARSHAL, always.
203 public boolean get_boolean()
204 throws TypeMismatch, InvalidValue
206 throw new MARSHAL(NOT_APPLICABLE);
210 * The remote call of DynAny methods is not possible.
212 * @throws MARSHAL, always.
214 public char get_char()
215 throws TypeMismatch, InvalidValue
217 throw new MARSHAL(NOT_APPLICABLE);
221 * The remote call of DynAny methods is not possible.
223 * @throws MARSHAL, always.
225 public double get_double()
226 throws TypeMismatch, InvalidValue
228 throw new MARSHAL(NOT_APPLICABLE);
232 * The remote call of DynAny methods is not possible.
234 * @throws MARSHAL, always.
236 public DynAny get_dyn_any()
237 throws TypeMismatch, InvalidValue
239 throw new MARSHAL(NOT_APPLICABLE);
243 * The remote call of DynAny methods is not possible.
245 * @throws MARSHAL, always.
247 public float get_float()
248 throws TypeMismatch, InvalidValue
250 throw new MARSHAL(NOT_APPLICABLE);
254 * The remote call of DynAny methods is not possible.
256 * @throws MARSHAL, always.
258 public int get_long()
259 throws TypeMismatch, InvalidValue
261 throw new MARSHAL(NOT_APPLICABLE);
265 * The remote call of DynAny methods is not possible.
267 * @throws MARSHAL, always.
269 public long get_longlong()
270 throws TypeMismatch, InvalidValue
272 throw new MARSHAL(NOT_APPLICABLE);
276 * The remote call of DynAny methods is not possible.
278 * @throws MARSHAL, always.
280 public byte get_octet()
281 throws TypeMismatch, InvalidValue
283 throw new MARSHAL(NOT_APPLICABLE);
287 * The remote call of DynAny methods is not possible.
289 * @throws MARSHAL, always.
291 public org.omg.CORBA.Object get_reference()
292 throws TypeMismatch, InvalidValue
294 throw new MARSHAL(NOT_APPLICABLE);
298 * The remote call of DynAny methods is not possible.
300 * @throws MARSHAL, always.
302 public short get_short()
303 throws TypeMismatch, InvalidValue
305 throw new MARSHAL(NOT_APPLICABLE);
309 * The remote call of DynAny methods is not possible.
311 * @throws MARSHAL, always.
313 public String get_string()
314 throws TypeMismatch, InvalidValue
316 throw new MARSHAL(NOT_APPLICABLE);
320 * The remote call of DynAny methods is not possible.
322 * @throws MARSHAL, always.
324 public TypeCode get_typecode()
325 throws TypeMismatch, InvalidValue
327 throw new MARSHAL(NOT_APPLICABLE);
331 * The remote call of DynAny methods is not possible.
333 * @throws MARSHAL, always.
335 public int get_ulong()
336 throws TypeMismatch, InvalidValue
338 throw new MARSHAL(NOT_APPLICABLE);
342 * The remote call of DynAny methods is not possible.
344 * @throws MARSHAL, always.
346 public long get_ulonglong()
347 throws TypeMismatch, InvalidValue
349 throw new MARSHAL(NOT_APPLICABLE);
353 * The remote call of DynAny methods is not possible.
355 * @throws MARSHAL, always.
357 public short get_ushort()
358 throws TypeMismatch, InvalidValue
360 throw new MARSHAL(NOT_APPLICABLE);
364 * The remote call of DynAny methods is not possible.
366 * @throws MARSHAL, always.
368 public Serializable get_val()
369 throws TypeMismatch, InvalidValue
371 throw new MARSHAL(NOT_APPLICABLE);
375 * The remote call of DynAny methods is not possible.
377 * @throws MARSHAL, always.
379 public char get_wchar()
380 throws TypeMismatch, InvalidValue
382 throw new MARSHAL(NOT_APPLICABLE);
386 * The remote call of DynAny methods is not possible.
388 * @throws MARSHAL, always.
390 public String get_wstring()
391 throws TypeMismatch, InvalidValue
393 throw new MARSHAL(NOT_APPLICABLE);
397 * The remote call of DynAny methods is not possible.
399 * @throws MARSHAL, always.
401 public void insert_any(Any _0)
402 throws TypeMismatch, InvalidValue
404 throw new MARSHAL(NOT_APPLICABLE);
408 * The remote call of DynAny methods is not possible.
410 * @throws MARSHAL, always.
412 public void insert_boolean(boolean _0)
413 throws TypeMismatch, InvalidValue
415 throw new MARSHAL(NOT_APPLICABLE);
419 * The remote call of DynAny methods is not possible.
421 * @throws MARSHAL, always.
423 public void insert_char(char _0)
424 throws TypeMismatch, InvalidValue
426 throw new MARSHAL(NOT_APPLICABLE);
430 * The remote call of DynAny methods is not possible.
432 * @throws MARSHAL, always.
434 public void insert_double(double _0)
435 throws TypeMismatch, InvalidValue
437 throw new MARSHAL(NOT_APPLICABLE);
441 * The remote call of DynAny methods is not possible.
443 * @throws MARSHAL, always.
445 public void insert_dyn_any(DynAny _0)
446 throws TypeMismatch, InvalidValue
448 throw new MARSHAL(NOT_APPLICABLE);
452 * The remote call of DynAny methods is not possible.
454 * @throws MARSHAL, always.
456 public void insert_float(float _0)
457 throws TypeMismatch, InvalidValue
459 throw new MARSHAL(NOT_APPLICABLE);
463 * The remote call of DynAny methods is not possible.
465 * @throws MARSHAL, always.
467 public void insert_long(int _0)
468 throws TypeMismatch, InvalidValue
470 throw new MARSHAL(NOT_APPLICABLE);
474 * The remote call of DynAny methods is not possible.
476 * @throws MARSHAL, always.
478 public void insert_longlong(long _0)
479 throws TypeMismatch, InvalidValue
481 throw new MARSHAL(NOT_APPLICABLE);
485 * The remote call of DynAny methods is not possible.
487 * @throws MARSHAL, always.
489 public void insert_octet(byte _0)
490 throws TypeMismatch, InvalidValue
492 throw new MARSHAL(NOT_APPLICABLE);
496 * The remote call of DynAny methods is not possible.
498 * @throws MARSHAL, always.
500 public void insert_reference(org.omg.CORBA.Object _0)
501 throws TypeMismatch, InvalidValue
503 throw new MARSHAL(NOT_APPLICABLE);
507 * The remote call of DynAny methods is not possible.
509 * @throws MARSHAL, always.
511 public void insert_short(short _0)
512 throws TypeMismatch, InvalidValue
514 throw new MARSHAL(NOT_APPLICABLE);
518 * The remote call of DynAny methods is not possible.
520 * @throws MARSHAL, always.
522 public void insert_string(String _0)
523 throws TypeMismatch, InvalidValue
525 throw new MARSHAL(NOT_APPLICABLE);
529 * The remote call of DynAny methods is not possible.
531 * @throws MARSHAL, always.
533 public void insert_typecode(TypeCode _0)
534 throws TypeMismatch, InvalidValue
536 throw new MARSHAL(NOT_APPLICABLE);
540 * The remote call of DynAny methods is not possible.
542 * @throws MARSHAL, always.
544 public void insert_ulong(int _0)
545 throws TypeMismatch, InvalidValue
547 throw new MARSHAL(NOT_APPLICABLE);
551 * The remote call of DynAny methods is not possible.
553 * @throws MARSHAL, always.
555 public void insert_ulonglong(long _0)
556 throws TypeMismatch, InvalidValue
558 throw new MARSHAL(NOT_APPLICABLE);
562 * The remote call of DynAny methods is not possible.
564 * @throws MARSHAL, always.
566 public void insert_ushort(short _0)
567 throws TypeMismatch, InvalidValue
569 throw new MARSHAL(NOT_APPLICABLE);
573 * The remote call of DynAny methods is not possible.
575 * @throws MARSHAL, always.
577 public void insert_val(Serializable _0)
578 throws TypeMismatch, InvalidValue
580 throw new MARSHAL(NOT_APPLICABLE);
584 * The remote call of DynAny methods is not possible.
586 * @throws MARSHAL, always.
588 public void insert_wchar(char _0)
589 throws TypeMismatch, InvalidValue
591 throw new MARSHAL(NOT_APPLICABLE);
595 * The remote call of DynAny methods is not possible.
597 * @throws MARSHAL, always.
599 public void insert_wstring(String _0)
600 throws TypeMismatch, InvalidValue
602 throw new MARSHAL(NOT_APPLICABLE);
606 * The remote call of DynAny methods is not possible.
608 * @throws MARSHAL, always.
610 public boolean seek(int _0)
612 throw new MARSHAL(NOT_APPLICABLE);
616 * The remote call of DynAny methods is not possible.
618 * @throws MARSHAL, always.
620 public Any to_any()
622 throw new MARSHAL(NOT_APPLICABLE);
625 static String NOT_APPLICABLE =
626 "DynAnys are always local objects. " +
627 "They and are never accessed on remote side via stubs.";