1 package org.omg.mof.Model; 2 3 4 10 11 12 public abstract class TypedElementClassPOA extends org.omg.PortableServer.Servant 14 implements org.omg.mof.Model.TypedElementClassOperations, org.omg.CORBA.portable.InvokeHandler 15 { 16 17 19 private static java.util.Hashtable _methods = new java.util.Hashtable (); 20 static 21 { 22 _methods.put ("_get_all_of_type_typed_element", new java.lang.Integer (0)); 23 _methods.put ("_get_all_of_type_model_element", new java.lang.Integer (1)); 24 _methods.put ("ref_is_instance_of", new java.lang.Integer (2)); 25 _methods.put ("ref_create_instance", new java.lang.Integer (3)); 26 _methods.put ("ref_all_objects", new java.lang.Integer (4)); 27 _methods.put ("ref_set_value", new java.lang.Integer (5)); 28 _methods.put ("ref_value", new java.lang.Integer (6)); 29 _methods.put ("ref_unset_value", new java.lang.Integer (7)); 30 _methods.put ("ref_add_value", new java.lang.Integer (8)); 31 _methods.put ("ref_add_value_before", new java.lang.Integer (9)); 32 _methods.put ("ref_add_value_at", new java.lang.Integer (10)); 33 _methods.put ("ref_modify_value", new java.lang.Integer (11)); 34 _methods.put ("ref_modify_value_at", new java.lang.Integer (12)); 35 _methods.put ("ref_remove_value", new java.lang.Integer (13)); 36 _methods.put ("ref_remove_value_at", new java.lang.Integer (14)); 37 _methods.put ("ref_immediate_composite", new java.lang.Integer (15)); 38 _methods.put ("ref_outermost_composite", new java.lang.Integer (16)); 39 _methods.put ("ref_invoke_operation", new java.lang.Integer (17)); 40 _methods.put ("ref_mof_id", new java.lang.Integer (18)); 41 _methods.put ("ref_meta_object", new java.lang.Integer (19)); 42 _methods.put ("ref_itself", new java.lang.Integer (20)); 43 _methods.put ("ref_immediate_package", new java.lang.Integer (21)); 44 _methods.put ("ref_outermost_package", new java.lang.Integer (22)); 45 _methods.put ("ref_delete", new java.lang.Integer (23)); 46 } 47 48 public org.omg.CORBA.portable.OutputStream _invoke (String $method, 49 org.omg.CORBA.portable.InputStream in, 50 org.omg.CORBA.portable.ResponseHandler $rh) 51 { 52 org.omg.CORBA.portable.OutputStream out = null; 53 java.lang.Integer __method = (java.lang.Integer )_methods.get ($method); 54 if (__method == null) 55 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 56 57 switch (__method.intValue ()) 58 { 59 case 0: { 61 org.omg.mof.Model.TypedElement $result[] = null; 62 $result = this.all_of_type_typed_element (); 63 out = $rh.createReply(); 64 org.omg.mof.Model.TypedElementSetHelper.write (out, $result); 65 break; 66 } 67 68 case 1: { 70 org.omg.mof.Model.ModelElement $result[] = null; 71 $result = this.all_of_type_model_element (); 72 out = $rh.createReply(); 73 org.omg.mof.Model.ModelElementSetHelper.write (out, $result); 74 break; 75 } 76 77 case 2: { 79 org.omg.mof.Reflective.RefObject some_class = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 80 boolean consider_subtypes = in.read_boolean (); 81 boolean $result = false; 82 $result = this.ref_is_instance_of (some_class, consider_subtypes); 83 out = $rh.createReply(); 84 out.write_boolean ($result); 85 break; 86 } 87 88 case 3: { 90 try { 91 org.omg.CORBA.Any args[] = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 92 org.omg.mof.Reflective.RefObject $result = null; 93 $result = this.ref_create_instance (args); 94 out = $rh.createReply(); 95 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 96 } catch (org.omg.mof.Reflective.MofError $ex) { 97 out = $rh.createExceptionReply (); 98 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 99 } 100 break; 101 } 102 103 case 4: { 105 boolean include_subtypes = in.read_boolean (); 106 org.omg.mof.Reflective.RefObject $result[] = null; 107 $result = this.ref_all_objects (include_subtypes); 108 out = $rh.createReply(); 109 org.omg.mof.Reflective.RefObjectSetHelper.write (out, $result); 110 break; 111 } 112 113 case 5: { 115 try { 116 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 117 org.omg.CORBA.Any new_value = org.omg.mof.Reflective._ValueTypeHelper.read (in); 118 this.ref_set_value (feature, new_value); 119 out = $rh.createReply(); 120 } catch (org.omg.mof.Reflective.MofError $ex) { 121 out = $rh.createExceptionReply (); 122 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 123 } 124 break; 125 } 126 127 case 6: { 129 try { 130 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 131 org.omg.CORBA.Any $result = null; 132 $result = this.ref_value (feature); 133 out = $rh.createReply(); 134 out.write_any ($result); 135 } catch (org.omg.mof.Reflective.NotSet $ex) { 136 out = $rh.createExceptionReply (); 137 org.omg.mof.Reflective.NotSetHelper.write (out, $ex); 138 } catch (org.omg.mof.Reflective.MofError $ex) { 139 out = $rh.createExceptionReply (); 140 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 141 } 142 break; 143 } 144 145 case 7: { 147 try { 148 this.ref_unset_value (); 149 out = $rh.createReply(); 150 } catch (org.omg.mof.Reflective.MofError $ex) { 151 out = $rh.createExceptionReply (); 152 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 153 } 154 break; 155 } 156 157 case 8: { 159 try { 160 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 161 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 162 this.ref_add_value (feature, new_element); 163 out = $rh.createReply(); 164 } catch (org.omg.mof.Reflective.MofError $ex) { 165 out = $rh.createExceptionReply (); 166 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 167 } 168 break; 169 } 170 171 case 9: { 173 try { 174 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 175 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 176 org.omg.CORBA.Any before_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 177 this.ref_add_value_before (feature, new_element, before_element); 178 out = $rh.createReply(); 179 } catch (org.omg.mof.Reflective.NotFound $ex) { 180 out = $rh.createExceptionReply (); 181 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 182 } catch (org.omg.mof.Reflective.MofError $ex) { 183 out = $rh.createExceptionReply (); 184 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 185 } 186 break; 187 } 188 189 case 10: { 191 try { 192 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 193 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 194 int position = in.read_ulong (); 195 this.ref_add_value_at (feature, new_element, position); 196 out = $rh.createReply(); 197 } catch (org.omg.mof.Reflective.BadPosition $ex) { 198 out = $rh.createExceptionReply (); 199 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 200 } catch (org.omg.mof.Reflective.MofError $ex) { 201 out = $rh.createExceptionReply (); 202 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 203 } 204 break; 205 } 206 207 case 11: { 209 try { 210 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 211 org.omg.CORBA.Any old_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 212 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 213 this.ref_modify_value (feature, old_element, new_element); 214 out = $rh.createReply(); 215 } catch (org.omg.mof.Reflective.NotFound $ex) { 216 out = $rh.createExceptionReply (); 217 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 218 } catch (org.omg.mof.Reflective.MofError $ex) { 219 out = $rh.createExceptionReply (); 220 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 221 } 222 break; 223 } 224 225 case 12: { 227 try { 228 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 229 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 230 int position = in.read_ulong (); 231 this.ref_modify_value_at (feature, new_element, position); 232 out = $rh.createReply(); 233 } catch (org.omg.mof.Reflective.BadPosition $ex) { 234 out = $rh.createExceptionReply (); 235 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 236 } catch (org.omg.mof.Reflective.MofError $ex) { 237 out = $rh.createExceptionReply (); 238 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 239 } 240 break; 241 } 242 243 case 13: { 245 try { 246 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 247 org.omg.CORBA.Any existing_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 248 this.ref_remove_value (feature, existing_element); 249 out = $rh.createReply(); 250 } catch (org.omg.mof.Reflective.NotFound $ex) { 251 out = $rh.createExceptionReply (); 252 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 253 } catch (org.omg.mof.Reflective.MofError $ex) { 254 out = $rh.createExceptionReply (); 255 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 256 } 257 break; 258 } 259 260 case 14: { 262 try { 263 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 264 int position = in.read_ulong (); 265 this.ref_remove_value_at (feature, position); 266 out = $rh.createReply(); 267 } catch (org.omg.mof.Reflective.BadPosition $ex) { 268 out = $rh.createExceptionReply (); 269 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 270 } catch (org.omg.mof.Reflective.MofError $ex) { 271 out = $rh.createExceptionReply (); 272 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 273 } 274 break; 275 } 276 277 case 15: { 279 org.omg.mof.Reflective.RefObject $result = null; 280 $result = this.ref_immediate_composite (); 281 out = $rh.createReply(); 282 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 283 break; 284 } 285 286 case 16: { 288 org.omg.mof.Reflective.RefObject $result = null; 289 $result = this.ref_outermost_composite (); 290 out = $rh.createReply(); 291 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 292 break; 293 } 294 295 case 17: { 297 try { 298 org.omg.mof.Reflective.RefObject requested_operation = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 299 org.omg.mof.Reflective.ValueTypeListHolder args = new org.omg.mof.Reflective.ValueTypeListHolder (); 300 args.value = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 301 org.omg.CORBA.Any $result = null; 302 $result = this.ref_invoke_operation (requested_operation, args); 303 out = $rh.createReply(); 304 out.write_any ($result); 305 org.omg.mof.Reflective.ValueTypeListHelper.write (out, args.value); 306 } catch (org.omg.mof.Reflective.OtherException $ex) { 307 out = $rh.createExceptionReply (); 308 org.omg.mof.Reflective.OtherExceptionHelper.write (out, $ex); 309 } catch (org.omg.mof.Reflective.MofError $ex) { 310 out = $rh.createExceptionReply (); 311 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 312 } 313 break; 314 } 315 316 case 18: { 318 String $result = null; 319 $result = this.ref_mof_id (); 320 out = $rh.createReply(); 321 out.write_string ($result); 322 break; 323 } 324 325 case 19: { 327 org.omg.mof.Reflective.RefObject $result = null; 328 $result = this.ref_meta_object (); 329 out = $rh.createReply(); 330 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 331 break; 332 } 333 334 case 20: { 336 org.omg.mof.Reflective.RefBaseObject other_object = org.omg.mof.Reflective.RefBaseObjectHelper.read (in); 337 boolean $result = false; 338 $result = this.ref_itself (other_object); 339 out = $rh.createReply(); 340 out.write_boolean ($result); 341 break; 342 } 343 344 case 21: { 346 org.omg.mof.Reflective._RefPackage $result = null; 347 $result = this.ref_immediate_package (); 348 out = $rh.createReply(); 349 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 350 break; 351 } 352 353 case 22: { 355 org.omg.mof.Reflective._RefPackage $result = null; 356 $result = this.ref_outermost_package (); 357 out = $rh.createReply(); 358 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 359 break; 360 } 361 362 case 23: { 364 try { 365 this.ref_delete (); 366 out = $rh.createReply(); 367 } catch (org.omg.mof.Reflective.MofError $ex) { 368 out = $rh.createExceptionReply (); 369 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 370 } 371 break; 372 } 373 374 default: 375 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 376 } 377 378 return out; 379 } 381 private static String [] __ids = { 383 "IDL:org/omg/mof/Model/TypedElementClass:1.0", 384 "IDL:org/omg/mof/Model/ModelElementClass:1.0", 385 "IDL:org/omg/mof/Reflective/RefObject:1.0", 386 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"}; 387 388 public String [] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId) 389 { 390 return (String [])__ids.clone (); 391 } 392 393 public TypedElementClass _this() 394 { 395 return TypedElementClassHelper.narrow( 396 super._this_object()); 397 } 398 399 public TypedElementClass _this(org.omg.CORBA.ORB orb) 400 { 401 return TypedElementClassHelper.narrow( 402 super._this_object(orb)); 403 } 404 405 406 } | Popular Tags |