KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > PortableInterceptor > AdapterNameHelper


1 package org.omg.PortableInterceptor;
2
3
4 /**
5 * org/omg/PortableInterceptor/AdapterNameHelper.java .
6 * Generated by the IDL-to-Java compiler (portable), version "3.2"
7 * from ../../../../src/share/classes/org/omg/PortableInterceptor/Interceptors.idl
8 * Saturday, February 9, 2008 9:40:08 AM GMT
9 */

10
11
12 /** The name of an object adapter. This is unique only within
13    * the scope of the ORB that created the object adapter.
14    */

15 abstract public class AdapterNameHelper
16 {
17   private static String JavaDoc _id = "IDL:omg.org/PortableInterceptor/AdapterName:1.0";
18
19   public static void insert (org.omg.CORBA.Any JavaDoc a, String JavaDoc[] that)
20   {
21     org.omg.CORBA.portable.OutputStream JavaDoc out = a.create_output_stream ();
22     a.type (type ());
23     write (out, that);
24     a.read_value (out.create_input_stream (), type ());
25   }
26
27   public static String JavaDoc[] extract (org.omg.CORBA.Any JavaDoc a)
28   {
29     return read (a.create_input_stream ());
30   }
31
32   private static org.omg.CORBA.TypeCode JavaDoc __typeCode = null;
33   synchronized public static org.omg.CORBA.TypeCode JavaDoc type ()
34   {
35     if (__typeCode == null)
36     {
37       __typeCode = org.omg.CORBA.ORB.init ().create_string_tc (0);
38       __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
39       __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.CORBA.StringSeqHelper.id (), "StringSeq", __typeCode);
40       __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.PortableInterceptor.AdapterNameHelper.id (), "AdapterName", __typeCode);
41     }
42     return __typeCode;
43   }
44
45   public static String JavaDoc id ()
46   {
47     return _id;
48   }
49
50   public static String JavaDoc[] read (org.omg.CORBA.portable.InputStream JavaDoc istream)
51   {
52     String JavaDoc value[] = null;
53     value = org.omg.CORBA.StringSeqHelper.read (istream);
54     return value;
55   }
56
57   public static void write (org.omg.CORBA.portable.OutputStream JavaDoc ostream, String JavaDoc[] value)
58   {
59     org.omg.CORBA.StringSeqHelper.write (ostream, value);
60   }
61
62 }
63
Popular Tags