Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/omg/CosTradingRepos/ServiceTypeRepositoryPackage/IdentifierHelper.java


1   // **********************************************************************
2   //
3   // Generated by the ORBacus IDL to Java Translator
4   //
5   // Copyright (c) 2000
6   // Object Oriented Concepts, Inc.
7   // Billerica, MA, USA
8   //
9   // All Rights Reserved
10  //
11  // **********************************************************************
12  
13  // Version: 4.0
14  // License: non-commercial
15  
16  package org.omg.CosTradingRepos.ServiceTypeRepositoryPackage;
17  
18  //
19  // IDL:omg.org/CosTradingRepos/ServiceTypeRepository/Identifier:1.0
20  //
21  final public class IdentifierHelper
22  {
23      public static void
24      insert(org.omg.CORBA.Any any, String _ob_v)
25      {
26          org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
27          write(out, _ob_v);
28          any.read_value(out.create_input_stream(), type());
29      }
30  
31      public static String
32      extract(org.omg.CORBA.Any any)
33      {
34          if(any.type().equal(type()))
35              return read(any.create_input_stream());
36          else
37              throw new org.omg.CORBA.BAD_OPERATION();
38      }
39  
40      private static org.omg.CORBA.TypeCode typeCode_;
41  
42      public static org.omg.CORBA.TypeCode
43      type()
44      {
45          if(typeCode_ == null)
46          {
47              org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
48              typeCode_ = orb.create_alias_tc(id(), "Identifier", org.omg.CosTrading.IstringHelper.type());
49          }
50  
51          return typeCode_;
52      }
53  
54      public static String
55      id()
56      {
57          return "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/Identifier:1.0";
58      }
59  
60      public static String
61      read(org.omg.CORBA.portable.InputStream in)
62      {
63          String _ob_v;
64          _ob_v = org.omg.CosTrading.IstringHelper.read(in);
65          return _ob_v;
66      }
67  
68      public static void
69      write(org.omg.CORBA.portable.OutputStream out, String _ob_v)
70      {
71          org.omg.CosTrading.IstringHelper.write(out, _ob_v);
72      }
73  }