View Javadoc

1   package FIPA;
2   
3   
4   /***
5   * FIPA/PropertyHelper.java
6   * Generated by the IDL-to-Java compiler (portable), version "3.0"
7   * from FIPA.idl
8   * 09 March 2001 16:39:32 o'clock GMT
9   */
10  
11  
12  // keyword and value pair.
13  abstract public class PropertyHelper
14  {
15    private static String  _id = "IDL:FIPA/Property:1.0";
16  
17    public static void insert (org.omg.CORBA.Any a, FIPA.Property that)
18    {
19      org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
20      a.type (type ());
21      write (out, that);
22      a.read_value (out.create_input_stream (), type ());
23    }
24  
25    public static FIPA.Property extract (org.omg.CORBA.Any a)
26    {
27      return read (a.create_input_stream ());
28    }
29  
30    private static org.omg.CORBA.TypeCode __typeCode = null;
31    private static boolean __active = false;
32    synchronized public static org.omg.CORBA.TypeCode type ()
33    {
34      if (__typeCode == null)
35      {
36        synchronized (org.omg.CORBA.TypeCode.class)
37        {
38          if (__typeCode == null)
39          {
40            if (__active)
41            {
42              return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
43            }
44            __active = true;
45            org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [2];
46            org.omg.CORBA.TypeCode _tcOf_members0 = null;
47            _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0);
48            _members0[0] = new org.omg.CORBA.StructMember (
49              "keyword",
50              _tcOf_members0,
51              null);
52            _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_any);
53            _members0[1] = new org.omg.CORBA.StructMember (
54              "value",
55              _tcOf_members0,
56              null);
57            __typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (FIPA.PropertyHelper.id (), "Property", _members0);
58            __active = false;
59          }
60        }
61      }
62      return __typeCode;
63    }
64  
65    public static String id ()
66    {
67      return _id;
68    }
69  
70    public static FIPA.Property read (org.omg.CORBA.portable.InputStream istream)
71    {
72      FIPA.Property value = new FIPA.Property ();
73      value.keyword = istream.read_string ();
74      value.value = istream.read_any ();
75      return value;
76    }
77  
78    public static void write (org.omg.CORBA.portable.OutputStream ostream, FIPA.Property value)
79    {
80      ostream.write_string (value.keyword);
81      ostream.write_any (value.value);
82    }
83  
84  }