View Javadoc

1   /***** Copyright (c) 1999-2000 Object Management Group. Unlimited rights to 
2          duplicate and use this code are hereby granted provided that this 
3          copyright notice is included.
4   *****/
5   
6   /***** This class is specifed by the mapping as abstract.
7          A "dummy" implementation is provided so that the "official" org.omg.*
8          packages may be compiled.  
9          
10         ORB-vendors shall provide a complete implementation of the class
11         by extending it with a vendor-specific class which
12         provides "real" implementations for all the methods. E.g.
13  
14  	   package com.acme_orb_vendor.CORBA;
15  	   public class ORB extends org.omg.CORBA { ... }
16  
17         In order to be conformant the class shall support the signatures
18         specified here, but will have an orb-specific implementation.
19  
20  	Implementations of the static init methods in this class are also required.
21  
22         The class may support additional vendor specific functionality.
23  *****/
24  
25  package org.omg.CORBA;
26  
27  abstract public class ORB {
28      public String id()
29      {
30  	throw new org.omg.CORBA.NO_IMPLEMENT();
31      }
32  
33      abstract public org.omg.CORBA.Object string_to_object(String str);
34  
35      abstract public String object_to_string(org.omg.CORBA.Object obj);
36  
37      // Dynamic Invocation related operations
38  
39      abstract public NVList create_list(int count);
40  
41      /**
42      * @deprecated by CORBA 2.3
43      */
44      public NVList create_operation_list(org.omg.CORBA.Object oper) {
45              throw new org.omg.CORBA.NO_IMPLEMENT();
46      }
47  
48      abstract public NamedValue create_named_value(String s, Any any, int flags);
49  
50      abstract public ExceptionList create_exception_list();
51  
52      abstract public ContextList create_context_list();
53  
54      abstract public Context get_default_context();
55  
56      abstract public Environment create_environment();
57  
58      abstract public void send_multiple_requests_oneway(Request[] req);
59  
60      abstract public void send_multiple_requests_deferred(Request[] req);
61  
62      abstract public boolean poll_next_response();
63  
64      abstract public Request get_next_response() throws WrongTransaction;
65  
66      public boolean get_service_information(short service_type,
67                                      ServiceInformationHolder service_info) {
68          throw new org.omg.CORBA.NO_IMPLEMENT();
69      }
70  
71      abstract public String[] list_initial_services();
72  
73      public void register_initial_reference(
74  	String object_name,
75  	org.omg.CORBA.Object object
76      ) throws org.omg.CORBA.ORBPackage.InvalidName
77      {
78  	throw new org.omg.CORBA.NO_IMPLEMENT() ;
79      }
80  
81      // Initial reference operation
82  
83      abstract public org.omg.CORBA.Object resolve_initial_references(
84                                      String object_name)
85              throws org.omg.CORBA.ORBPackage.InvalidName;
86  
87      // typecode creation
88  
89      abstract public TypeCode create_struct_tc(String id, String name,
90                                      StructMember[] members);
91  
92      abstract public TypeCode create_union_tc(String id, String name,
93                                      TypeCode discriminator_type,
94                                      UnionMember[] members);
95  
96      abstract public TypeCode create_enum_tc(String id, String name,
97                                      String[] members);
98  
99      abstract public TypeCode create_alias_tc(String id, String name,
100                                     TypeCode original_type);
101 
102     abstract public TypeCode create_exception_tc(String id, String name,
103                                                StructMember[] members);
104 
105     abstract public TypeCode create_interface_tc(String id, String name);
106 
107     abstract public TypeCode create_string_tc(int bound);
108 
109     abstract public TypeCode create_wstring_tc(int bound);
110 
111     public org.omg.CORBA.TypeCode create_fixed_tc(short digits, short scale) {
112         throw new org.omg.CORBA.NO_IMPLEMENT();
113     }
114 
115     abstract public TypeCode create_sequence_tc(int bound, 
116                                     TypeCode element_type);
117 
118     /**
119     * @deprecated by CORBA 2.3
120     */
121     abstract public TypeCode create_recursive_sequence_tc(int bound, int offset);
122 
123     abstract public TypeCode create_array_tc(int length, TypeCode element_type);
124 
125     public org.omg.CORBA.TypeCode create_value_tc(String id,
126                                     String name,
127                                     short type_modifier,
128                                     TypeCode concrete_base,
129                                     ValueMember[] members) {
130         throw new org.omg.CORBA.NO_IMPLEMENT();
131     }
132 
133     public org.omg.CORBA.TypeCode create_value_box_tc(String id,
134                                     String name,
135                                     TypeCode boxed_type) {
136         throw new org.omg.CORBA.NO_IMPLEMENT();
137     }
138     
139     public org.omg.CORBA.TypeCode create_native_tc(String id,
140                                     String name) {
141         throw new org.omg.CORBA.NO_IMPLEMENT();
142     }
143 
144     public org.omg.CORBA.TypeCode create_recursive_tc(String id) {
145         throw new org.omg.CORBA.NO_IMPLEMENT();
146     }   
147 
148     public org.omg.CORBA.TypeCode create_abstract_interface_tc(
149                                     String id,
150                                     String name) {
151         throw new org.omg.CORBA.NO_IMPLEMENT();
152     }
153 
154 
155     public org.omg.CORBA.TypeCode create_local_interface_tc(
156                                     String id,
157                                     String name) {
158         throw new org.omg.CORBA.NO_IMPLEMENT();
159     }
160 
161     /**
162     * @deprecated Deprecated by CORBA 2.3
163     */
164     public org.omg.CORBA.Current get_current() {
165         throw new org.omg.CORBA.NO_IMPLEMENT();
166     }
167 
168     /** 
169     * @deprecated Deprecated by Portable Object Adapter.
170     * see OMG document orbos/98-01-06 for details.
171     */
172     public void connect(org.omg.CORBA.Object obj) {
173         throw new org.omg.CORBA.NO_IMPLEMENT();
174     }
175 
176     /** 
177     * @deprecated Deprecated by Portable Object Adapter.
178     * see OMG document orbos/98-01-06 for details.
179     */
180     public void disconnect(org.omg.CORBA.Object obj) {
181         throw new org.omg.CORBA.NO_IMPLEMENT();
182     }
183 
184     // Thread related operations
185 
186     public boolean work_pending() {
187         throw new org.omg.CORBA.NO_IMPLEMENT();
188     }
189 
190     public void perform_work() {
191         throw new org.omg.CORBA.NO_IMPLEMENT();
192     }
193 
194     public void run() {
195         throw new org.omg.CORBA.NO_IMPLEMENT();
196     }
197 
198     public void shutdown(boolean wait_for_completion) {
199         throw new org.omg.CORBA.NO_IMPLEMENT();
200     }
201 
202     // policy related operations
203 
204     public org.omg.CORBA.Policy create_policy(int type, org.omg.CORBA.Any val)
205                         throws org.omg.CORBA.PolicyError {
206         throw new org.omg.CORBA.NO_IMPLEMENT();
207     }
208 
209     // Additional methods for IDL/Java mapping
210 
211     abstract public TypeCode get_primitive_tc(TCKind tcKind);
212 
213     abstract public Any create_any();
214 
215     abstract public org.omg.CORBA.portable.OutputStream create_output_stream();
216 
217     // Additional static methods for ORB initialization
218 
219     public static ORB init(String[] args, java.util.Properties props) {
220 	/* VENDOR MUST SUPPLY IMPLEMENTATION */
221 	throw new org.omg.CORBA.NO_IMPLEMENT();
222     }
223 
224     public static ORB init(java.applet.Applet app, java.util.Properties props) {
225 	/* VENDOR MUST SUPPLY IMPLEMENTATION */
226 	throw new org.omg.CORBA.NO_IMPLEMENT();
227     }
228 
229     public static ORB init() {
230 	/* VENDOR MUST SUPPLY IMPLEMENTATION */
231 	throw new org.omg.CORBA.NO_IMPLEMENT();
232     }
233 
234     abstract protected void set_parameters(String[] args,
235                                     java.util.Properties props);
236 
237     abstract protected void set_parameters(java.applet.Applet app,
238                                     java.util.Properties props);
239 
240     // always return a ValueDef or throw BAD_PARAM if not repid of a value
241     public org.omg.CORBA.Object get_value_def(String repid) {
242         throw new org.omg.CORBA.NO_IMPLEMENT();
243     }
244         
245     public org.omg.CORBA.portable.ValueFactory register_value_factory(
246                 String id, org.omg.CORBA.portable.ValueFactory factory) {
247         throw new org.omg.CORBA.NO_IMPLEMENT();
248     }
249 
250     public void unregister_value_factory(String id) {
251         throw new org.omg.CORBA.NO_IMPLEMENT();
252     }
253 
254     public org.omg.CORBA.portable.ValueFactory lookup_value_factory(String id){
255         throw new org.omg.CORBA.NO_IMPLEMENT();
256     }
257 
258     public void set_delegate(java.lang.Object wrapper) {
259         throw new org.omg.CORBA.NO_IMPLEMENT();
260     }
261 }
262