KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > CORBA > PolicyListHelper


1 /*
2  * @(#)PolicyListHelper.java 1.9 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7 package org.omg.CORBA;
8
9
10 /**
11 * The Helper for <tt>PolicyList</tt>. For more information on
12 * Helper files, see <a HREF="doc-files/generatedfiles.html#helper">
13 * "Generated Files: Helper Files"</a>.<P>
14 * org/omg/CORBA/PolicyListHelper.java
15 * Generated by the IDL-to-Java compiler (portable), version "3.0"
16 * from ../../../../../src/share/classes/org/omg/PortableServer/corba.idl
17 * Saturday, July 17, 1999 12:26:21 AM PDT
18 */

19
20 abstract public class PolicyListHelper
21 {
22   private static String JavaDoc _id = "IDL:omg.org/CORBA/PolicyList:1.0";
23
24   public static void insert (org.omg.CORBA.Any JavaDoc a, org.omg.CORBA.Policy JavaDoc[] that)
25   {
26     org.omg.CORBA.portable.OutputStream JavaDoc out = a.create_output_stream ();
27     a.type (type ());
28     write (out, that);
29     a.read_value (out.create_input_stream (), type ());
30   }
31
32   public static org.omg.CORBA.Policy JavaDoc[] extract (org.omg.CORBA.Any JavaDoc a)
33   {
34     return read (a.create_input_stream ());
35   }
36
37   private static org.omg.CORBA.TypeCode JavaDoc __typeCode = null;
38   synchronized public static org.omg.CORBA.TypeCode JavaDoc type ()
39   {
40     if (__typeCode == null)
41     {
42       __typeCode = org.omg.CORBA.PolicyHelper.type ();
43       __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
44       __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.CORBA.PolicyListHelper.id (), "PolicyList", __typeCode);
45     }
46     return __typeCode;
47   }
48
49   public static String JavaDoc id ()
50   {
51     return _id;
52   }
53
54   public static org.omg.CORBA.Policy JavaDoc[] read (org.omg.CORBA.portable.InputStream JavaDoc istream)
55   {
56     org.omg.CORBA.Policy JavaDoc value[] = null;
57     int _len0 = istream.read_long ();
58     value = new org.omg.CORBA.Policy JavaDoc[_len0];
59     for (int _o1 = 0;_o1 < value.length; ++_o1)
60       value[_o1] = org.omg.CORBA.PolicyHelper.read (istream);
61     return value;
62   }
63
64   public static void write (org.omg.CORBA.portable.OutputStream JavaDoc ostream, org.omg.CORBA.Policy JavaDoc[] value)
65   {
66     ostream.write_long (value.length);
67     for (int _i0 = 0;_i0 < value.length; ++_i0)
68       org.omg.CORBA.PolicyHelper.write (ostream, value[_i0]);
69   }
70
71 }
72
Popular Tags