KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.PortableInterceptor;
2
3
4 /**
5 * org/omg/PortableInterceptor/ObjectReferenceTemplateSeqHelper.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 /** Sequence of object reference templates is used for reporting state
13    * changes that do not occur on the adapter manager.
14    */

15 abstract public class ObjectReferenceTemplateSeqHelper
16 {
17   private static String JavaDoc _id = "IDL:omg.org/PortableInterceptor/ObjectReferenceTemplateSeq:1.0";
18
19   public static void insert (org.omg.CORBA.Any JavaDoc a, org.omg.PortableInterceptor.ObjectReferenceTemplate 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 org.omg.PortableInterceptor.ObjectReferenceTemplate 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.PortableInterceptor.ObjectReferenceTemplateHelper.type ();
38       __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
39       __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.PortableInterceptor.ObjectReferenceTemplateSeqHelper.id (), "ObjectReferenceTemplateSeq", __typeCode);
40     }
41     return __typeCode;
42   }
43
44   public static String JavaDoc id ()
45   {
46     return _id;
47   }
48
49   public static org.omg.PortableInterceptor.ObjectReferenceTemplate JavaDoc[] read (org.omg.CORBA.portable.InputStream JavaDoc istream)
50   {
51     org.omg.PortableInterceptor.ObjectReferenceTemplate JavaDoc value[] = null;
52     int _len0 = istream.read_long ();
53     value = new org.omg.PortableInterceptor.ObjectReferenceTemplate JavaDoc[_len0];
54     for (int _o1 = 0;_o1 < value.length; ++_o1)
55       value[_o1] = org.omg.PortableInterceptor.ObjectReferenceTemplateHelper.read (istream);
56     return value;
57   }
58
59   public static void write (org.omg.CORBA.portable.OutputStream JavaDoc ostream, org.omg.PortableInterceptor.ObjectReferenceTemplate JavaDoc[] value)
60   {
61     ostream.write_long (value.length);
62     for (int _i0 = 0;_i0 < value.length; ++_i0)
63       org.omg.PortableInterceptor.ObjectReferenceTemplateHelper.write (ostream, value[_i0]);
64   }
65
66 }
67
Popular Tags