Dead
[official-gcc.git] / gomp-20050608-branch / libjava / classpath / org / omg / DynamicAny / _DynAnyStub.java
blobaf8d4e5ed4769654613e5fb4055168d69cd10d46
1 /* _DynAnyStub.java --
2 Copyright (C) 2005 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 org.omg.CORBA.Any;
42 import org.omg.CORBA.MARSHAL;
43 import org.omg.CORBA.TypeCode;
44 import org.omg.CORBA.portable.Delegate;
45 import org.omg.CORBA.portable.ObjectImpl;
46 import org.omg.DynamicAny.DynAnyPackage.InvalidValue;
47 import org.omg.DynamicAny.DynAnyPackage.TypeMismatch;
49 import java.io.Serializable;
51 /**
52 * Should provide support for remote invocation of methods on DynAny. As
53 * DynAny can never be remote at least till 1.5 inclusive, this class is
54 * not in use.
56 * @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org)
58 public class _DynAnyStub
59 extends ObjectImpl
60 implements DynAny, Serializable
62 /**
63 * Use serialVersionUID (v1.4) for interoperability.
65 private static final long serialVersionUID = -6521892777941121597L;
67 /**
68 * The purpose and value of this field are not documented.
70 public static final Class _opsClass = DynAnyOperations.class;
72 /**
73 * Create the DynAny stub.
75 public _DynAnyStub()
79 /**
80 * Create the naming context stub with the given delegate.
82 public _DynAnyStub(Delegate delegate)
84 _set_delegate(delegate);
87 /**
88 * Return the array of repository ids for this object.
90 public String[] _ids()
92 return new String[] { DynAnyHelper.id() };
95 /**
96 * The remote call of DynAny methods is not possible.
98 * @throws MARSHAL, always.
100 public TypeCode type()
102 throw new MARSHAL(NOT_APPLICABLE);
106 * The remote call of DynAny methods is not possible.
108 * @throws MARSHAL, always.
110 public boolean next()
112 throw new MARSHAL(NOT_APPLICABLE);
116 * The remote call of DynAny methods is not possible.
118 * @throws MARSHAL, always.
120 public void destroy()
125 * The remote call of DynAny methods is not possible.
127 * @throws MARSHAL, always.
129 public DynAny copy()
131 return this;
135 * The remote call of DynAny methods is not possible.
137 * @throws MARSHAL, always.
139 public void rewind()
144 * The remote call of DynAny methods is not possible.
146 * @throws MARSHAL, always.
148 public void assign(DynAny _0)
149 throws TypeMismatch
154 * The remote call of DynAny methods is not possible.
156 * @throws MARSHAL, always.
158 public int component_count()
160 throw new MARSHAL(NOT_APPLICABLE);
164 * The remote call of DynAny methods is not possible.
166 * @throws MARSHAL, always.
168 public DynAny current_component()
169 throws TypeMismatch
171 throw new MARSHAL(NOT_APPLICABLE);
175 * The remote call of DynAny methods is not possible.
177 * @throws MARSHAL, always.
179 public boolean equal(DynAny _0)
181 throw new MARSHAL(NOT_APPLICABLE);
185 * The remote call of DynAny methods is not possible.
187 * @throws MARSHAL, always.
189 public void from_any(Any _0)
190 throws TypeMismatch, InvalidValue
192 throw new MARSHAL(NOT_APPLICABLE);
196 * The remote call of DynAny methods is not possible.
198 * @throws MARSHAL, always.
200 public Any get_any()
201 throws TypeMismatch, InvalidValue
203 throw new MARSHAL(NOT_APPLICABLE);
207 * The remote call of DynAny methods is not possible.
209 * @throws MARSHAL, always.
211 public boolean get_boolean()
212 throws TypeMismatch, InvalidValue
214 throw new MARSHAL(NOT_APPLICABLE);
218 * The remote call of DynAny methods is not possible.
220 * @throws MARSHAL, always.
222 public char get_char()
223 throws TypeMismatch, InvalidValue
225 throw new MARSHAL(NOT_APPLICABLE);
229 * The remote call of DynAny methods is not possible.
231 * @throws MARSHAL, always.
233 public double get_double()
234 throws TypeMismatch, InvalidValue
236 throw new MARSHAL(NOT_APPLICABLE);
240 * The remote call of DynAny methods is not possible.
242 * @throws MARSHAL, always.
244 public DynAny get_dyn_any()
245 throws TypeMismatch, InvalidValue
247 throw new MARSHAL(NOT_APPLICABLE);
251 * The remote call of DynAny methods is not possible.
253 * @throws MARSHAL, always.
255 public float get_float()
256 throws TypeMismatch, InvalidValue
258 throw new MARSHAL(NOT_APPLICABLE);
262 * The remote call of DynAny methods is not possible.
264 * @throws MARSHAL, always.
266 public int get_long()
267 throws TypeMismatch, InvalidValue
269 throw new MARSHAL(NOT_APPLICABLE);
273 * The remote call of DynAny methods is not possible.
275 * @throws MARSHAL, always.
277 public long get_longlong()
278 throws TypeMismatch, InvalidValue
280 throw new MARSHAL(NOT_APPLICABLE);
284 * The remote call of DynAny methods is not possible.
286 * @throws MARSHAL, always.
288 public byte get_octet()
289 throws TypeMismatch, InvalidValue
291 throw new MARSHAL(NOT_APPLICABLE);
295 * The remote call of DynAny methods is not possible.
297 * @throws MARSHAL, always.
299 public org.omg.CORBA.Object get_reference()
300 throws TypeMismatch, InvalidValue
302 throw new MARSHAL(NOT_APPLICABLE);
306 * The remote call of DynAny methods is not possible.
308 * @throws MARSHAL, always.
310 public short get_short()
311 throws TypeMismatch, InvalidValue
313 throw new MARSHAL(NOT_APPLICABLE);
317 * The remote call of DynAny methods is not possible.
319 * @throws MARSHAL, always.
321 public String get_string()
322 throws TypeMismatch, InvalidValue
324 throw new MARSHAL(NOT_APPLICABLE);
328 * The remote call of DynAny methods is not possible.
330 * @throws MARSHAL, always.
332 public TypeCode get_typecode()
333 throws TypeMismatch, InvalidValue
335 throw new MARSHAL(NOT_APPLICABLE);
339 * The remote call of DynAny methods is not possible.
341 * @throws MARSHAL, always.
343 public int get_ulong()
344 throws TypeMismatch, InvalidValue
346 throw new MARSHAL(NOT_APPLICABLE);
350 * The remote call of DynAny methods is not possible.
352 * @throws MARSHAL, always.
354 public long get_ulonglong()
355 throws TypeMismatch, InvalidValue
357 throw new MARSHAL(NOT_APPLICABLE);
361 * The remote call of DynAny methods is not possible.
363 * @throws MARSHAL, always.
365 public short get_ushort()
366 throws TypeMismatch, InvalidValue
368 throw new MARSHAL(NOT_APPLICABLE);
372 * The remote call of DynAny methods is not possible.
374 * @throws MARSHAL, always.
376 public Serializable get_val()
377 throws TypeMismatch, InvalidValue
379 throw new MARSHAL(NOT_APPLICABLE);
383 * The remote call of DynAny methods is not possible.
385 * @throws MARSHAL, always.
387 public char get_wchar()
388 throws TypeMismatch, InvalidValue
390 throw new MARSHAL(NOT_APPLICABLE);
394 * The remote call of DynAny methods is not possible.
396 * @throws MARSHAL, always.
398 public String get_wstring()
399 throws TypeMismatch, InvalidValue
401 throw new MARSHAL(NOT_APPLICABLE);
405 * The remote call of DynAny methods is not possible.
407 * @throws MARSHAL, always.
409 public void insert_any(Any _0)
410 throws TypeMismatch, InvalidValue
412 throw new MARSHAL(NOT_APPLICABLE);
416 * The remote call of DynAny methods is not possible.
418 * @throws MARSHAL, always.
420 public void insert_boolean(boolean _0)
421 throws TypeMismatch, InvalidValue
423 throw new MARSHAL(NOT_APPLICABLE);
427 * The remote call of DynAny methods is not possible.
429 * @throws MARSHAL, always.
431 public void insert_char(char _0)
432 throws TypeMismatch, InvalidValue
434 throw new MARSHAL(NOT_APPLICABLE);
438 * The remote call of DynAny methods is not possible.
440 * @throws MARSHAL, always.
442 public void insert_double(double _0)
443 throws TypeMismatch, InvalidValue
445 throw new MARSHAL(NOT_APPLICABLE);
449 * The remote call of DynAny methods is not possible.
451 * @throws MARSHAL, always.
453 public void insert_dyn_any(DynAny _0)
454 throws TypeMismatch, InvalidValue
456 throw new MARSHAL(NOT_APPLICABLE);
460 * The remote call of DynAny methods is not possible.
462 * @throws MARSHAL, always.
464 public void insert_float(float _0)
465 throws TypeMismatch, InvalidValue
467 throw new MARSHAL(NOT_APPLICABLE);
471 * The remote call of DynAny methods is not possible.
473 * @throws MARSHAL, always.
475 public void insert_long(int _0)
476 throws TypeMismatch, InvalidValue
478 throw new MARSHAL(NOT_APPLICABLE);
482 * The remote call of DynAny methods is not possible.
484 * @throws MARSHAL, always.
486 public void insert_longlong(long _0)
487 throws TypeMismatch, InvalidValue
489 throw new MARSHAL(NOT_APPLICABLE);
493 * The remote call of DynAny methods is not possible.
495 * @throws MARSHAL, always.
497 public void insert_octet(byte _0)
498 throws TypeMismatch, InvalidValue
500 throw new MARSHAL(NOT_APPLICABLE);
504 * The remote call of DynAny methods is not possible.
506 * @throws MARSHAL, always.
508 public void insert_reference(org.omg.CORBA.Object _0)
509 throws TypeMismatch, InvalidValue
511 throw new MARSHAL(NOT_APPLICABLE);
515 * The remote call of DynAny methods is not possible.
517 * @throws MARSHAL, always.
519 public void insert_short(short _0)
520 throws TypeMismatch, InvalidValue
522 throw new MARSHAL(NOT_APPLICABLE);
526 * The remote call of DynAny methods is not possible.
528 * @throws MARSHAL, always.
530 public void insert_string(String _0)
531 throws TypeMismatch, InvalidValue
533 throw new MARSHAL(NOT_APPLICABLE);
537 * The remote call of DynAny methods is not possible.
539 * @throws MARSHAL, always.
541 public void insert_typecode(TypeCode _0)
542 throws TypeMismatch, InvalidValue
544 throw new MARSHAL(NOT_APPLICABLE);
548 * The remote call of DynAny methods is not possible.
550 * @throws MARSHAL, always.
552 public void insert_ulong(int _0)
553 throws TypeMismatch, InvalidValue
555 throw new MARSHAL(NOT_APPLICABLE);
559 * The remote call of DynAny methods is not possible.
561 * @throws MARSHAL, always.
563 public void insert_ulonglong(long _0)
564 throws TypeMismatch, InvalidValue
566 throw new MARSHAL(NOT_APPLICABLE);
570 * The remote call of DynAny methods is not possible.
572 * @throws MARSHAL, always.
574 public void insert_ushort(short _0)
575 throws TypeMismatch, InvalidValue
577 throw new MARSHAL(NOT_APPLICABLE);
581 * The remote call of DynAny methods is not possible.
583 * @throws MARSHAL, always.
585 public void insert_val(Serializable _0)
586 throws TypeMismatch, InvalidValue
588 throw new MARSHAL(NOT_APPLICABLE);
592 * The remote call of DynAny methods is not possible.
594 * @throws MARSHAL, always.
596 public void insert_wchar(char _0)
597 throws TypeMismatch, InvalidValue
599 throw new MARSHAL(NOT_APPLICABLE);
603 * The remote call of DynAny methods is not possible.
605 * @throws MARSHAL, always.
607 public void insert_wstring(String _0)
608 throws TypeMismatch, InvalidValue
610 throw new MARSHAL(NOT_APPLICABLE);
614 * The remote call of DynAny methods is not possible.
616 * @throws MARSHAL, always.
618 public boolean seek(int _0)
620 throw new MARSHAL(NOT_APPLICABLE);
624 * The remote call of DynAny methods is not possible.
626 * @throws MARSHAL, always.
628 public Any to_any()
630 throw new MARSHAL(NOT_APPLICABLE);
633 static String NOT_APPLICABLE =
634 "DynAnys are always local objects. " +
635 "They and are never accessed on remote side via stubs.";