1 /* _DynStructStub.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 DynStruct. As
54 * DynStruct can never be remote at least till 1.5 inclusive, this class is
57 * @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org)
59 public class _DynStructStub
61 implements DynStruct, Serializable
64 * Use serialVersionUID (v1.4) for interoperability.
66 private static final long serialVersionUID = -8415786200783826656L;
69 * The purpose and value of this field are not documented.
71 @SuppressWarnings("rawtypes") // Needed for API compatibility
72 public static final Class _opsClass = DynStructOperations.class;
75 * Create the DynStruct stub. To get the stub working,
76 * you must later set the delegate with
77 * {@link ObjectImpl#_set_delegate(Delegate)}.
79 public _DynStructStub()
84 * Return the array of repository ids for this object.
86 public String[] _ids()
88 return new String[] { DynStructHelper.id() };
92 * The remote call of DynAny methods is not possible.
94 * @throws MARSHAL, always.
96 public TCKind current_member_kind()
97 throws TypeMismatch, InvalidValue
99 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
103 * The remote call of DynAny methods is not possible.
105 * @throws MARSHAL, always.
107 public String current_member_name()
108 throws TypeMismatch, InvalidValue
110 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
114 * The remote call of DynAny methods is not possible.
116 * @throws MARSHAL, always.
118 public NameValuePair[] get_members()
120 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
124 * The remote call of DynAny methods is not possible.
126 * @throws MARSHAL, always.
128 public NameDynAnyPair[] get_members_as_dyn_any()
130 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
134 * The remote call of DynAny methods is not possible.
136 * @throws MARSHAL, always.
138 public void set_members(NameValuePair[] _0)
139 throws TypeMismatch, InvalidValue
141 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
145 * The remote call of DynAny methods is not possible.
147 * @throws MARSHAL, always.
149 public void set_members_as_dyn_any(NameDynAnyPair[] _0)
150 throws TypeMismatch, InvalidValue
152 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
156 * The remote call of DynAny methods is not possible.
158 * @throws MARSHAL, always.
160 public TypeCode type()
162 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
166 * The remote call of DynAny methods is not possible.
168 * @throws MARSHAL, always.
170 public boolean next()
172 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
176 * The remote call of DynAny methods is not possible.
178 * @throws MARSHAL, always.
180 public void destroy()
185 * The remote call of DynAny methods is not possible.
187 * @throws MARSHAL, always.
195 * The remote call of DynAny methods is not possible.
197 * @throws MARSHAL, always.
204 * The remote call of DynAny methods is not possible.
206 * @throws MARSHAL, always.
208 public void assign(DynAny _0)
214 * The remote call of DynAny methods is not possible.
216 * @throws MARSHAL, always.
218 public int component_count()
220 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
224 * The remote call of DynAny methods is not possible.
226 * @throws MARSHAL, always.
228 public DynAny current_component()
231 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
235 * The remote call of DynAny methods is not possible.
237 * @throws MARSHAL, always.
239 public boolean equal(DynAny _0)
241 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
245 * The remote call of DynAny methods is not possible.
247 * @throws MARSHAL, always.
249 public void from_any(Any _0)
250 throws TypeMismatch, InvalidValue
252 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
256 * The remote call of DynAny methods is not possible.
258 * @throws MARSHAL, always.
261 throws TypeMismatch, InvalidValue
263 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
267 * The remote call of DynAny methods is not possible.
269 * @throws MARSHAL, always.
271 public boolean get_boolean()
272 throws TypeMismatch, InvalidValue
274 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
278 * The remote call of DynAny methods is not possible.
280 * @throws MARSHAL, always.
282 public char get_char()
283 throws TypeMismatch, InvalidValue
285 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
289 * The remote call of DynAny methods is not possible.
291 * @throws MARSHAL, always.
293 public double get_double()
294 throws TypeMismatch, InvalidValue
296 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
300 * The remote call of DynAny methods is not possible.
302 * @throws MARSHAL, always.
304 public DynAny get_dyn_any()
305 throws TypeMismatch, InvalidValue
307 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
311 * The remote call of DynAny methods is not possible.
313 * @throws MARSHAL, always.
315 public float get_float()
316 throws TypeMismatch, InvalidValue
318 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
322 * The remote call of DynAny methods is not possible.
324 * @throws MARSHAL, always.
326 public int get_long()
327 throws TypeMismatch, InvalidValue
329 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
333 * The remote call of DynAny methods is not possible.
335 * @throws MARSHAL, always.
337 public long get_longlong()
338 throws TypeMismatch, InvalidValue
340 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
344 * The remote call of DynAny methods is not possible.
346 * @throws MARSHAL, always.
348 public byte get_octet()
349 throws TypeMismatch, InvalidValue
351 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
355 * The remote call of DynAny methods is not possible.
357 * @throws MARSHAL, always.
359 public org.omg.CORBA.Object get_reference()
360 throws TypeMismatch, InvalidValue
362 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
366 * The remote call of DynAny methods is not possible.
368 * @throws MARSHAL, always.
370 public short get_short()
371 throws TypeMismatch, InvalidValue
373 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
377 * The remote call of DynAny methods is not possible.
379 * @throws MARSHAL, always.
381 public String get_string()
382 throws TypeMismatch, InvalidValue
384 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
388 * The remote call of DynAny methods is not possible.
390 * @throws MARSHAL, always.
392 public TypeCode get_typecode()
393 throws TypeMismatch, InvalidValue
395 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
399 * The remote call of DynAny methods is not possible.
401 * @throws MARSHAL, always.
403 public int get_ulong()
404 throws TypeMismatch, InvalidValue
406 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
410 * The remote call of DynAny methods is not possible.
412 * @throws MARSHAL, always.
414 public long get_ulonglong()
415 throws TypeMismatch, InvalidValue
417 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
421 * The remote call of DynAny methods is not possible.
423 * @throws MARSHAL, always.
425 public short get_ushort()
426 throws TypeMismatch, InvalidValue
428 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
432 * The remote call of DynAny methods is not possible.
434 * @throws MARSHAL, always.
436 public Serializable get_val()
437 throws TypeMismatch, InvalidValue
439 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
443 * The remote call of DynAny methods is not possible.
445 * @throws MARSHAL, always.
447 public char get_wchar()
448 throws TypeMismatch, InvalidValue
450 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
454 * The remote call of DynAny methods is not possible.
456 * @throws MARSHAL, always.
458 public String get_wstring()
459 throws TypeMismatch, InvalidValue
461 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
465 * The remote call of DynAny methods is not possible.
467 * @throws MARSHAL, always.
469 public void insert_any(Any _0)
470 throws TypeMismatch, InvalidValue
472 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
476 * The remote call of DynAny methods is not possible.
478 * @throws MARSHAL, always.
480 public void insert_boolean(boolean _0)
481 throws TypeMismatch, InvalidValue
483 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
487 * The remote call of DynAny methods is not possible.
489 * @throws MARSHAL, always.
491 public void insert_char(char _0)
492 throws TypeMismatch, InvalidValue
494 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
498 * The remote call of DynAny methods is not possible.
500 * @throws MARSHAL, always.
502 public void insert_double(double _0)
503 throws TypeMismatch, InvalidValue
505 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
509 * The remote call of DynAny methods is not possible.
511 * @throws MARSHAL, always.
513 public void insert_dyn_any(DynAny _0)
514 throws TypeMismatch, InvalidValue
516 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
520 * The remote call of DynAny methods is not possible.
522 * @throws MARSHAL, always.
524 public void insert_float(float _0)
525 throws TypeMismatch, InvalidValue
527 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
531 * The remote call of DynAny methods is not possible.
533 * @throws MARSHAL, always.
535 public void insert_long(int _0)
536 throws TypeMismatch, InvalidValue
538 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
542 * The remote call of DynAny methods is not possible.
544 * @throws MARSHAL, always.
546 public void insert_longlong(long _0)
547 throws TypeMismatch, InvalidValue
549 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
553 * The remote call of DynAny methods is not possible.
555 * @throws MARSHAL, always.
557 public void insert_octet(byte _0)
558 throws TypeMismatch, InvalidValue
560 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
564 * The remote call of DynAny methods is not possible.
566 * @throws MARSHAL, always.
568 public void insert_reference(org.omg.CORBA.Object _0)
569 throws TypeMismatch, InvalidValue
571 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
575 * The remote call of DynAny methods is not possible.
577 * @throws MARSHAL, always.
579 public void insert_short(short _0)
580 throws TypeMismatch, InvalidValue
582 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
586 * The remote call of DynAny methods is not possible.
588 * @throws MARSHAL, always.
590 public void insert_string(String _0)
591 throws TypeMismatch, InvalidValue
593 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
597 * The remote call of DynAny methods is not possible.
599 * @throws MARSHAL, always.
601 public void insert_typecode(TypeCode _0)
602 throws TypeMismatch, InvalidValue
604 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
608 * The remote call of DynAny methods is not possible.
610 * @throws MARSHAL, always.
612 public void insert_ulong(int _0)
613 throws TypeMismatch, InvalidValue
615 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
619 * The remote call of DynAny methods is not possible.
621 * @throws MARSHAL, always.
623 public void insert_ulonglong(long _0)
624 throws TypeMismatch, InvalidValue
626 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
630 * The remote call of DynAny methods is not possible.
632 * @throws MARSHAL, always.
634 public void insert_ushort(short _0)
635 throws TypeMismatch, InvalidValue
637 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
641 * The remote call of DynAny methods is not possible.
643 * @throws MARSHAL, always.
645 public void insert_val(Serializable _0)
646 throws TypeMismatch, InvalidValue
648 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
652 * The remote call of DynAny methods is not possible.
654 * @throws MARSHAL, always.
656 public void insert_wchar(char _0)
657 throws TypeMismatch, InvalidValue
659 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
663 * The remote call of DynAny methods is not possible.
665 * @throws MARSHAL, always.
667 public void insert_wstring(String _0)
668 throws TypeMismatch, InvalidValue
670 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
674 * The remote call of DynAny methods is not possible.
676 * @throws MARSHAL, always.
678 public boolean seek(int _0)
680 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
684 * The remote call of DynAny methods is not possible.
686 * @throws MARSHAL, always.
690 throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);