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