001    /* _DynSequenceStub.java --
002       Copyright (C) 2005, 2006 Free Software Foundation, Inc.
003    
004    This file is part of GNU Classpath.
005    
006    GNU Classpath is free software; you can redistribute it and/or modify
007    it under the terms of the GNU General Public License as published by
008    the Free Software Foundation; either version 2, or (at your option)
009    any later version.
010    
011    GNU Classpath is distributed in the hope that it will be useful, but
012    WITHOUT ANY WARRANTY; without even the implied warranty of
013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
014    General Public License for more details.
015    
016    You should have received a copy of the GNU General Public License
017    along with GNU Classpath; see the file COPYING.  If not, write to the
018    Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
019    02110-1301 USA.
020    
021    Linking this library statically or dynamically with other modules is
022    making a combined work based on this library.  Thus, the terms and
023    conditions of the GNU General Public License cover the whole
024    combination.
025    
026    As a special exception, the copyright holders of this library give you
027    permission to link this library with independent modules to produce an
028    executable, regardless of the license terms of these independent
029    modules, and to copy and distribute the resulting executable under
030    terms of your choice, provided that you also meet, for each linked
031    independent module, the terms and conditions of the license of that
032    module.  An independent module is a module which is not derived from
033    or based on this library.  If you modify this library, you may extend
034    this exception to your version of the library, but you are not
035    obligated to do so.  If you do not wish to do so, delete this
036    exception statement from your version. */
037    
038    
039    package org.omg.DynamicAny;
040    
041    import java.io.Serializable;
042    
043    import org.omg.CORBA.Any;
044    import org.omg.CORBA.MARSHAL;
045    import org.omg.CORBA.TypeCode;
046    import org.omg.CORBA.portable.Delegate;
047    import org.omg.CORBA.portable.ObjectImpl;
048    import org.omg.DynamicAny.DynAnyPackage.InvalidValue;
049    import org.omg.DynamicAny.DynAnyPackage.TypeMismatch;
050    
051    /**
052     * Should provide support for remote invocation of methods on DynSequence. As
053     * DynSequence can never be remote at least till 1.5 inclusive, this class is
054     * not in use.
055     *
056     * @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org)
057     */
058    public class _DynSequenceStub
059      extends ObjectImpl
060      implements DynSequence, Serializable
061    {
062      /**
063       * Use serialVersionUID (v1.4) for interoperability.
064       */
065      private static final long serialVersionUID = 7191437435669107554L;
066    
067      /**
068       * The purpose and value of this field are not documented.
069       */
070      @SuppressWarnings("unchecked") // Needed for API compatibility
071      public static final Class _opsClass = DynSequenceOperations.class;
072    
073      /**
074       * Create the DynSequence stub. To get the stub working,
075       * you must later set the delegate with
076       * {@link ObjectImpl#_set_delegate(Delegate)}.
077       */
078      public _DynSequenceStub()
079      {
080      }
081    
082      /**
083       * Return the array of repository ids for this object.
084       */
085      public String[] _ids()
086      {
087        return new String[] { DynSequenceHelper.id() };
088      }
089    
090      /**
091       * The remote call of DynAny methods is not possible.
092       *
093       * @throws MARSHAL, always.
094       */
095      public Any[] get_elements()
096      {
097        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
098      }
099    
100      /**
101       * The remote call of DynAny methods is not possible.
102       *
103       * @throws MARSHAL, always.
104       */
105      public DynAny[] get_elements_as_dyn_any()
106      {
107        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
108      }
109    
110      /**
111       * The remote call of DynAny methods is not possible.
112       *
113       * @throws MARSHAL, always.
114       */
115      public void set_elements(Any[] _0)
116                        throws TypeMismatch, InvalidValue
117      {
118        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
119      }
120    
121      /**
122       * The remote call of DynAny methods is not possible.
123       *
124       * @throws MARSHAL, always.
125       */
126      public void set_elements_as_dyn_any(DynAny[] _0)
127                                   throws TypeMismatch, InvalidValue
128      {
129        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
130      }
131    
132      /**
133       * The remote call of DynAny methods is not possible.
134       *
135       * @throws MARSHAL, always.
136       */
137      public int get_length()
138      {
139        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
140      }
141    
142      /**
143       * The remote call of DynAny methods is not possible.
144       *
145       * @throws MARSHAL, always.
146       */
147      public void set_length(int _0)
148                      throws InvalidValue
149      {
150        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
151      }
152    
153      /**
154       * The remote call of DynAny methods is not possible.
155       *
156       * @throws MARSHAL, always.
157       */
158      public TypeCode type()
159      {
160        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
161      }
162    
163      /**
164       * The remote call of DynAny methods is not possible.
165       *
166       * @throws MARSHAL, always.
167       */
168      public boolean next()
169      {
170        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
171      }
172    
173      /**
174       * The remote call of DynAny methods is not possible.
175       *
176       * @throws MARSHAL, always.
177       */
178      public void destroy()
179      {
180      }
181    
182      /**
183       * The remote call of DynAny methods is not possible.
184       *
185       * @throws MARSHAL, always.
186       */
187      public DynAny copy()
188      {
189        return this;
190      }
191    
192      /**
193       * The remote call of DynAny methods is not possible.
194       *
195       * @throws MARSHAL, always.
196       */
197      public void rewind()
198      {
199      }
200    
201      /**
202       * The remote call of DynAny methods is not possible.
203       *
204       * @throws MARSHAL, always.
205       */
206      public void assign(DynAny _0)
207                  throws TypeMismatch
208      {
209      }
210    
211      /**
212       * The remote call of DynAny methods is not possible.
213       *
214       * @throws MARSHAL, always.
215       */
216      public int component_count()
217      {
218        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
219      }
220    
221      /**
222       * The remote call of DynAny methods is not possible.
223       *
224       * @throws MARSHAL, always.
225       */
226      public DynAny current_component()
227                               throws TypeMismatch
228      {
229        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
230      }
231    
232      /**
233       * The remote call of DynAny methods is not possible.
234       *
235       * @throws MARSHAL, always.
236       */
237      public boolean equal(DynAny _0)
238      {
239        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
240      }
241    
242      /**
243       * The remote call of DynAny methods is not possible.
244       *
245       * @throws MARSHAL, always.
246       */
247      public void from_any(Any _0)
248                    throws TypeMismatch, InvalidValue
249      {
250        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
251      }
252    
253      /**
254       * The remote call of DynAny methods is not possible.
255       *
256       * @throws MARSHAL, always.
257       */
258      public Any get_any()
259                  throws TypeMismatch, InvalidValue
260      {
261        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
262      }
263    
264      /**
265       * The remote call of DynAny methods is not possible.
266       *
267       * @throws MARSHAL, always.
268       */
269      public boolean get_boolean()
270                          throws TypeMismatch, InvalidValue
271      {
272        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
273      }
274    
275      /**
276       * The remote call of DynAny methods is not possible.
277       *
278       * @throws MARSHAL, always.
279       */
280      public char get_char()
281                    throws TypeMismatch, InvalidValue
282      {
283        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
284      }
285    
286      /**
287       * The remote call of DynAny methods is not possible.
288       *
289       * @throws MARSHAL, always.
290       */
291      public double get_double()
292                        throws TypeMismatch, InvalidValue
293      {
294        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
295      }
296    
297      /**
298       * The remote call of DynAny methods is not possible.
299       *
300       * @throws MARSHAL, always.
301       */
302      public DynAny get_dyn_any()
303                         throws TypeMismatch, InvalidValue
304      {
305        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
306      }
307    
308      /**
309       * The remote call of DynAny methods is not possible.
310       *
311       * @throws MARSHAL, always.
312       */
313      public float get_float()
314                      throws TypeMismatch, InvalidValue
315      {
316        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
317      }
318    
319      /**
320       * The remote call of DynAny methods is not possible.
321       *
322       * @throws MARSHAL, always.
323       */
324      public int get_long()
325                   throws TypeMismatch, InvalidValue
326      {
327        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
328      }
329    
330      /**
331       * The remote call of DynAny methods is not possible.
332       *
333       * @throws MARSHAL, always.
334       */
335      public long get_longlong()
336                        throws TypeMismatch, InvalidValue
337      {
338        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
339      }
340    
341      /**
342       * The remote call of DynAny methods is not possible.
343       *
344       * @throws MARSHAL, always.
345       */
346      public byte get_octet()
347                     throws TypeMismatch, InvalidValue
348      {
349        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
350      }
351    
352      /**
353       * The remote call of DynAny methods is not possible.
354       *
355       * @throws MARSHAL, always.
356       */
357      public org.omg.CORBA.Object get_reference()
358                                         throws TypeMismatch, InvalidValue
359      {
360        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
361      }
362    
363      /**
364       * The remote call of DynAny methods is not possible.
365       *
366       * @throws MARSHAL, always.
367       */
368      public short get_short()
369                      throws TypeMismatch, InvalidValue
370      {
371        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
372      }
373    
374      /**
375       * The remote call of DynAny methods is not possible.
376       *
377       * @throws MARSHAL, always.
378       */
379      public String get_string()
380                        throws TypeMismatch, InvalidValue
381      {
382        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
383      }
384    
385      /**
386       * The remote call of DynAny methods is not possible.
387       *
388       * @throws MARSHAL, always.
389       */
390      public TypeCode get_typecode()
391                            throws TypeMismatch, InvalidValue
392      {
393        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
394      }
395    
396      /**
397       * The remote call of DynAny methods is not possible.
398       *
399       * @throws MARSHAL, always.
400       */
401      public int get_ulong()
402                    throws TypeMismatch, InvalidValue
403      {
404        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
405      }
406    
407      /**
408       * The remote call of DynAny methods is not possible.
409       *
410       * @throws MARSHAL, always.
411       */
412      public long get_ulonglong()
413                         throws TypeMismatch, InvalidValue
414      {
415        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
416      }
417    
418      /**
419       * The remote call of DynAny methods is not possible.
420       *
421       * @throws MARSHAL, always.
422       */
423      public short get_ushort()
424                       throws TypeMismatch, InvalidValue
425      {
426        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
427      }
428    
429      /**
430       * The remote call of DynAny methods is not possible.
431       *
432       * @throws MARSHAL, always.
433       */
434      public Serializable get_val()
435                           throws TypeMismatch, InvalidValue
436      {
437        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
438      }
439    
440      /**
441       * The remote call of DynAny methods is not possible.
442       *
443       * @throws MARSHAL, always.
444       */
445      public char get_wchar()
446                     throws TypeMismatch, InvalidValue
447      {
448        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
449      }
450    
451      /**
452       * The remote call of DynAny methods is not possible.
453       *
454       * @throws MARSHAL, always.
455       */
456      public String get_wstring()
457                         throws TypeMismatch, InvalidValue
458      {
459        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
460      }
461    
462      /**
463       * The remote call of DynAny methods is not possible.
464       *
465       * @throws MARSHAL, always.
466       */
467      public void insert_any(Any _0)
468                      throws TypeMismatch, InvalidValue
469      {
470        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
471      }
472    
473      /**
474       * The remote call of DynAny methods is not possible.
475       *
476       * @throws MARSHAL, always.
477       */
478      public void insert_boolean(boolean _0)
479                          throws TypeMismatch, InvalidValue
480      {
481        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
482      }
483    
484      /**
485       * The remote call of DynAny methods is not possible.
486       *
487       * @throws MARSHAL, always.
488       */
489      public void insert_char(char _0)
490                       throws TypeMismatch, InvalidValue
491      {
492        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
493      }
494    
495      /**
496       * The remote call of DynAny methods is not possible.
497       *
498       * @throws MARSHAL, always.
499       */
500      public void insert_double(double _0)
501                         throws TypeMismatch, InvalidValue
502      {
503        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
504      }
505    
506      /**
507       * The remote call of DynAny methods is not possible.
508       *
509       * @throws MARSHAL, always.
510       */
511      public void insert_dyn_any(DynAny _0)
512                          throws TypeMismatch, InvalidValue
513      {
514        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
515      }
516    
517      /**
518       * The remote call of DynAny methods is not possible.
519       *
520       * @throws MARSHAL, always.
521       */
522      public void insert_float(float _0)
523                        throws TypeMismatch, InvalidValue
524      {
525        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
526      }
527    
528      /**
529       * The remote call of DynAny methods is not possible.
530       *
531       * @throws MARSHAL, always.
532       */
533      public void insert_long(int _0)
534                       throws TypeMismatch, InvalidValue
535      {
536        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
537      }
538    
539      /**
540       * The remote call of DynAny methods is not possible.
541       *
542       * @throws MARSHAL, always.
543       */
544      public void insert_longlong(long _0)
545                           throws TypeMismatch, InvalidValue
546      {
547        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
548      }
549    
550      /**
551       * The remote call of DynAny methods is not possible.
552       *
553       * @throws MARSHAL, always.
554       */
555      public void insert_octet(byte _0)
556                        throws TypeMismatch, InvalidValue
557      {
558        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
559      }
560    
561      /**
562       * The remote call of DynAny methods is not possible.
563       *
564       * @throws MARSHAL, always.
565       */
566      public void insert_reference(org.omg.CORBA.Object _0)
567                            throws TypeMismatch, InvalidValue
568      {
569        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
570      }
571    
572      /**
573       * The remote call of DynAny methods is not possible.
574       *
575       * @throws MARSHAL, always.
576       */
577      public void insert_short(short _0)
578                        throws TypeMismatch, InvalidValue
579      {
580        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
581      }
582    
583      /**
584       * The remote call of DynAny methods is not possible.
585       *
586       * @throws MARSHAL, always.
587       */
588      public void insert_string(String _0)
589                         throws TypeMismatch, InvalidValue
590      {
591        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
592      }
593    
594      /**
595       * The remote call of DynAny methods is not possible.
596       *
597       * @throws MARSHAL, always.
598       */
599      public void insert_typecode(TypeCode _0)
600                           throws TypeMismatch, InvalidValue
601      {
602        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
603      }
604    
605      /**
606       * The remote call of DynAny methods is not possible.
607       *
608       * @throws MARSHAL, always.
609       */
610      public void insert_ulong(int _0)
611                        throws TypeMismatch, InvalidValue
612      {
613        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
614      }
615    
616      /**
617       * The remote call of DynAny methods is not possible.
618       *
619       * @throws MARSHAL, always.
620       */
621      public void insert_ulonglong(long _0)
622                            throws TypeMismatch, InvalidValue
623      {
624        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
625      }
626    
627      /**
628       * The remote call of DynAny methods is not possible.
629       *
630       * @throws MARSHAL, always.
631       */
632      public void insert_ushort(short _0)
633                         throws TypeMismatch, InvalidValue
634      {
635        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
636      }
637    
638      /**
639       * The remote call of DynAny methods is not possible.
640       *
641       * @throws MARSHAL, always.
642       */
643      public void insert_val(Serializable _0)
644                      throws TypeMismatch, InvalidValue
645      {
646        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
647      }
648    
649      /**
650       * The remote call of DynAny methods is not possible.
651       *
652       * @throws MARSHAL, always.
653       */
654      public void insert_wchar(char _0)
655                        throws TypeMismatch, InvalidValue
656      {
657        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
658      }
659    
660      /**
661       * The remote call of DynAny methods is not possible.
662       *
663       * @throws MARSHAL, always.
664       */
665      public void insert_wstring(String _0)
666                          throws TypeMismatch, InvalidValue
667      {
668        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
669      }
670    
671      /**
672       * The remote call of DynAny methods is not possible.
673       *
674       * @throws MARSHAL, always.
675       */
676      public boolean seek(int _0)
677      {
678        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
679      }
680    
681      /**
682       * The remote call of DynAny methods is not possible.
683       *
684       * @throws MARSHAL, always.
685       */
686      public Any to_any()
687      {
688        throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
689      }
690    
691    }