KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > CORBA > ORBPackage > InvalidNameHelper


1 package org.omg.CORBA.ORBPackage;
2
3
4 public final class InvalidNameHelper
5 {
6     private static org.omg.CORBA.TypeCode JavaDoc _type = org.omg.CORBA.ORB.init().create_exception_tc( org.omg.CORBA.ORBPackage.InvalidNameHelper.id(),"InvalidName",new org.omg.CORBA.StructMember JavaDoc[0]);
7     public static void insert (final org.omg.CORBA.Any JavaDoc any, final org.omg.CORBA.ORBPackage.InvalidName JavaDoc s)
8     {
9         any.type(type());
10         write( any.create_output_stream(),s);
11     }
12     public static org.omg.CORBA.ORBPackage.InvalidName JavaDoc extract (final org.omg.CORBA.Any JavaDoc any)
13     {
14         return read(any.create_input_stream());
15     }
16     public static org.omg.CORBA.TypeCode JavaDoc type()
17     {
18         return _type;
19     }
20     public static String JavaDoc id()
21     {
22         return "IDL:omg.org/CORBA/ORB/InvalidName:1.0";
23     }
24     public static org.omg.CORBA.ORBPackage.InvalidName JavaDoc read (final org.omg.CORBA.portable.InputStream JavaDoc in)
25     {
26         org.omg.CORBA.ORBPackage.InvalidName JavaDoc result = new org.omg.CORBA.ORBPackage.InvalidName JavaDoc();
27         if(!in.read_string().equals(id())) throw new org.omg.CORBA.MARSHAL JavaDoc("wrong id");
28         return result;
29     }
30     public static void write (final org.omg.CORBA.portable.OutputStream JavaDoc out, final org.omg.CORBA.ORBPackage.InvalidName JavaDoc s)
31     {
32         out.write_string(id());
33     }
34 }
35
Popular Tags