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