1 21 22 package org.omg.mof.Model; 24 public class PackageImpl extends org.omg.mof.Model.PackagePOA { 25 26 public java.lang.String ref_mof_id() { 29 int id = _orb().object_to_string(_this()).hashCode(); 30 return String.valueOf(id); 31 } 32 public org.omg.mof.Reflective.RefObject ref_meta_object() { 34 throw new org.omg.CORBA.NO_IMPLEMENT ( 35 "ref_meta_object method not implemented", 36 1, 37 org.omg.CORBA.CompletionStatus.COMPLETED_NO); 38 } 39 public boolean ref_itself( 41 org.omg.mof.Reflective.RefBaseObject other_object) { 42 String id_obj = other_object.ref_mof_id(); 43 if (ref_mof_id().equals(id_obj)) 44 return true; 45 else 46 return false; 47 } 48 public org.omg.mof.Reflective._RefPackage ref_immediate_package() { 50 throw new org.omg.CORBA.NO_IMPLEMENT ( 51 "ref_immediate_package method not implemented", 52 1, 53 org.omg.CORBA.CompletionStatus.COMPLETED_NO); 54 } 55 public org.omg.mof.Reflective._RefPackage ref_outermost_package() { 57 throw new org.omg.CORBA.NO_IMPLEMENT ( 58 "ref_moutermost_package method not implemented", 59 1, 60 org.omg.CORBA.CompletionStatus.COMPLETED_NO); 61 } 62 public void ref_delete() throws org.omg.mof.Reflective.MofError { 64 throw new org.omg.CORBA.NO_IMPLEMENT ( 65 "ref_delete method not implemented", 66 1, 67 org.omg.CORBA.CompletionStatus.COMPLETED_NO); 68 } 69 70 public boolean ref_is_instance_of( 73 org.omg.mof.Reflective.RefObject some_class, 74 boolean consider_subtypes) { 75 throw new org.omg.CORBA.NO_IMPLEMENT ( 76 "ref_is_instance_of method not implemented", 77 1, 78 org.omg.CORBA.CompletionStatus.COMPLETED_NO); 79 } 80 public org.omg.mof.Reflective.RefObject ref_create_instance( 82 org.omg.CORBA.Any [] args) 83 throws org.omg.mof.Reflective.MofError { 84 throw new org.omg.CORBA.NO_IMPLEMENT ( 85 "ref_create_instance method not implemented", 86 1, 87 org.omg.CORBA.CompletionStatus.COMPLETED_NO); 88 } 89 public org.omg.mof.Reflective.RefObject[] ref_all_objects( 91 boolean include_subtypes) { 92 throw new org.omg.CORBA.NO_IMPLEMENT ( 93 "ref_all_objects method not implemented", 94 1, 95 org.omg.CORBA.CompletionStatus.COMPLETED_NO); 96 } 97 public void ref_set_value( 99 org.omg.mof.Reflective.RefObject feature, 100 org.omg.CORBA.Any new_value) 101 throws org.omg.mof.Reflective.MofError { 102 throw new org.omg.CORBA.NO_IMPLEMENT ( 103 "ref_set_value method not implemented", 104 1, 105 org.omg.CORBA.CompletionStatus.COMPLETED_NO); 106 } 107 public org.omg.CORBA.Any ref_value( 109 org.omg.mof.Reflective.RefObject feature) 110 throws org.omg.mof.Reflective.NotSet, org.omg.mof.Reflective.MofError { 111 throw new org.omg.CORBA.NO_IMPLEMENT ( 112 "ref_value method not implemented", 113 1, 114 org.omg.CORBA.CompletionStatus.COMPLETED_NO); 115 } 116 public void ref_unset_value() throws org.omg.mof.Reflective.MofError { 118 throw new org.omg.CORBA.NO_IMPLEMENT ( 119 "ref_unset_value method not implemented", 120 1, 121 org.omg.CORBA.CompletionStatus.COMPLETED_NO); 122 } 123 public void ref_add_value( 125 org.omg.mof.Reflective.RefObject feature, 126 org.omg.CORBA.Any new_element) 127 throws org.omg.mof.Reflective.MofError { 128 throw new org.omg.CORBA.NO_IMPLEMENT ( 129 "ref_add_value method not implemented", 130 1, 131 org.omg.CORBA.CompletionStatus.COMPLETED_NO); 132 } 133 public void ref_add_value_before( 135 org.omg.mof.Reflective.RefObject feature, 136 org.omg.CORBA.Any new_element, 137 org.omg.CORBA.Any before_element) 138 throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 139 throw new org.omg.CORBA.NO_IMPLEMENT ( 140 "ref_add_value_before method not implemented", 141 1, 142 org.omg.CORBA.CompletionStatus.COMPLETED_NO); 143 } 144 public void ref_add_value_at( 146 org.omg.mof.Reflective.RefObject feature, 147 org.omg.CORBA.Any new_element, 148 int position) 149 throws org.omg.mof.Reflective.BadPosition, org.omg.mof.Reflective.MofError { 150 throw new org.omg.CORBA.NO_IMPLEMENT ( 151 "ref_add_value_at method not implemented", 152 1, 153 org.omg.CORBA.CompletionStatus.COMPLETED_NO); 154 } 155 public void ref_modify_value( 157 org.omg.mof.Reflective.RefObject feature, 158 org.omg.CORBA.Any old_element, 159 org.omg.CORBA.Any new_element) 160 throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 161 throw new org.omg.CORBA.NO_IMPLEMENT ( 162 "ref_modify_value method not implemented", 163 1, 164 org.omg.CORBA.CompletionStatus.COMPLETED_NO); 165 } 166 public void ref_modify_value_at( 168 org.omg.mof.Reflective.RefObject feature, 169 org.omg.CORBA.Any new_element, 170 int position) 171 throws org.omg.mof.Reflective.BadPosition, org.omg.mof.Reflective.MofError { 172 throw new org.omg.CORBA.NO_IMPLEMENT ( 173 "ref_modify_value_at method not implemented", 174 1, 175 org.omg.CORBA.CompletionStatus.COMPLETED_NO); 176 } 177 public void ref_remove_value( 179 org.omg.mof.Reflective.RefObject feature, 180 org.omg.CORBA.Any existing_element) 181 throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 182 throw new org.omg.CORBA.NO_IMPLEMENT ( 183 "ref_remove_value method not implemented", 184 1, 185 org.omg.CORBA.CompletionStatus.COMPLETED_NO); 186 } 187 public void ref_remove_value_at( 189 org.omg.mof.Reflective.RefObject feature, 190 int position) 191 throws org.omg.mof.Reflective.BadPosition, org.omg.mof.Reflective.MofError { 192 throw new org.omg.CORBA.NO_IMPLEMENT ( 193 "ref_remove_value_at method not implemented", 194 1, 195 org.omg.CORBA.CompletionStatus.COMPLETED_NO); 196 } 197 public org.omg.mof.Reflective.RefObject ref_immediate_composite() { 199 throw new org.omg.CORBA.NO_IMPLEMENT ( 200 "ref_remove_value method not implemented", 201 1, 202 org.omg.CORBA.CompletionStatus.COMPLETED_NO); 203 } 204 public org.omg.mof.Reflective.RefObject ref_outermost_composite() { 206 throw new org.omg.CORBA.NO_IMPLEMENT ( 207 "ref_outermost_composite method not implemented", 208 1, 209 org.omg.CORBA.CompletionStatus.COMPLETED_NO); 210 } 211 public org.omg.CORBA.Any ref_invoke_operation( 213 org.omg.mof.Reflective.RefObject requested_temp, 214 org.omg.mof.Reflective.ValueTypeListHolder args) 215 throws 216 org.omg.mof.Reflective.OtherException, 217 org.omg.mof.Reflective.MofError { 218 throw new org.omg.CORBA.NO_IMPLEMENT ( 219 "ref_invoke_operation( method not implemented", 220 1, 221 org.omg.CORBA.CompletionStatus.COMPLETED_NO); 222 } 223 private org.omg.mof.Model.PackageClass _class_proxy; 224 public org.omg.mof.Model.ModelElement[] all_of_type_model_element() { 225 return _class_proxy.all_of_type_model_element(); 226 } 227 public org.omg.mof.Model.Namespace[] all_of_type_namespace() { 228 return _class_proxy.all_of_type_namespace(); 229 } 230 public org 231 .omg 232 .mof 233 .Model 234 .GeneralizableElement[] all_of_type_generalizable_element() { 235 return _class_proxy.all_of_type_generalizable_element(); 236 } 237 public org.omg.mof.Model.Package create_package( 238 String name, 239 String annotation, 240 org.omg.mof.Model.VisibilityKind visibility, 241 boolean is_leaf, 242 boolean is_root, 243 boolean is_abstract) 244 throws org.omg.mof.Reflective.MofError { 245 return _class_proxy.create_package( 246 name, 247 annotation, 248 visibility, 249 is_leaf, 250 is_root, 251 is_abstract); 252 } 253 public org.omg.mof.Model.Package[] all_of_class_package() { 254 return _class_proxy.all_of_class_package(); 255 } 256 public org.omg.mof.Model.Package[] all_of_type_package() { 257 return _class_proxy.all_of_type_package(); 258 } 259 private String _name; 261 public String name() throws org.omg.mof.Reflective.MofError { 262 return _name; 263 } 264 public void set_name(String new_value) 265 throws org.omg.mof.Reflective.MofError { 266 _name = new_value; 267 } 268 269 private String _annotation; 271 public String annotation() throws org.omg.mof.Reflective.MofError { 272 return _annotation; 273 } 274 public void set_annotation(String new_value) 275 throws org.omg.mof.Reflective.MofError { 276 _annotation = new_value; 277 } 278 279 private java.util.Vector _qualified_names = new java.util.Vector (); 281 public String [] qualified_name() throws org.omg.mof.Reflective.MofError { 282 java.util.Vector _name_qualified = new java.util.Vector (); 284 _name_qualified.addElement(_name); 285 286 ModelElement _current = _this(); 288 boolean exist = true; 289 while (exist) { 290 try { 291 _current = _current.container(); 292 _name_qualified.addElement(_current.name()); 293 } catch (org.omg.mof.Reflective.NotSet ex) { 294 exist = false; 295 } 296 } 297 String [] _temp = new String [_name_qualified.size()]; 298 for (int i = 0; i < _temp.length; i++) 299 _temp[i] = (String ) _name_qualified.elementAt(i); 300 return _temp; 301 } 302 303 private org.omg.mof.Model.VisibilityKind _visibility; 305 public org.omg.mof.Model.VisibilityKind visibility() 306 throws org.omg.mof.Reflective.MofError { 307 return _visibility; 308 } 309 public void set_visibility(org.omg.mof.Model.VisibilityKind new_value) 310 throws org.omg.mof.Reflective.MofError { 311 _visibility = new_value; 312 } 313 314 private boolean _is_leaf; 316 public boolean is_leaf() throws org.omg.mof.Reflective.MofError { 317 return _is_leaf; 318 } 319 public void set_is_leaf(boolean new_value) 320 throws org.omg.mof.Reflective.MofError { 321 _is_leaf = new_value; 322 } 323 324 private boolean _is_root; 326 public boolean is_root() throws org.omg.mof.Reflective.MofError { 327 return _is_root; 328 } 329 public void set_is_root(boolean new_value) 330 throws org.omg.mof.Reflective.MofError { 331 _is_root = new_value; 332 } 333 334 private boolean _is_abstract; 336 public boolean is_abstract() throws org.omg.mof.Reflective.MofError { 337 return _is_abstract; 338 } 339 public void set_is_abstract(boolean new_value) 340 throws org.omg.mof.Reflective.MofError { 341 _is_abstract = new_value; 342 } 343 344 public GeneralizableElement[] all_supertypes() 346 throws org.omg.mof.Reflective.MofError { 347 java.util.Vector allSupertypesTable = new java.util.Vector (); 349 GeneralizableElement[] _supertypes = _this().supertypes(); 350 351 for (int i = 0; i < _supertypes.length; i++) { 352 GeneralizableElement currentSupertype = _supertypes[i]; 353 GeneralizableElement[] sup = currentSupertype.all_supertypes(); 354 for (int j = 0; j < sup.length; j++) { 355 if (!allSupertypesTable.contains(sup[j])) 356 allSupertypesTable.addElement(sup[j]); 357 } 358 if (!allSupertypesTable.contains(currentSupertype)) 359 allSupertypesTable.addElement(currentSupertype); 360 } 361 362 GeneralizableElement[] allSupertypes = 364 new GeneralizableElement[allSupertypesTable.size()]; 365 for (int i = 0; i < allSupertypesTable.size(); i++) 366 allSupertypes[i] = 367 (GeneralizableElement) allSupertypesTable.elementAt(i); 368 return allSupertypes; 369 } 370 371 private org.omg.mof.Model.Namespace _container = null; 373 public org.omg.mof.Model.Namespace container() 374 throws org.omg.mof.Reflective.NotSet, org.omg.mof.Reflective.MofError { 375 if (_container != null) 376 return _container; 377 else 378 throw new org.omg.mof.Reflective.NotSet(); 379 } 380 public void set_container(org.omg.mof.Model.Namespace new_value) 381 throws org.omg.mof.Reflective.MofError { 382 _container = new_value; 383 } 384 public void unset_container() throws org.omg.mof.Reflective.MofError { 385 _container = null; 386 } 387 388 private java.util.Vector _required_elementss = new java.util.Vector (); 390 public org.omg.mof.Model.ModelElement[] required_elements() 391 throws org.omg.mof.Reflective.MofError { 392 org.omg.mof.Model.ModelElement[] temp1 = 393 new org.omg.mof.Model.ModelElement[_required_elementss.size()]; 394 for (int i = 0; i < _required_elementss.size(); i++) 395 temp1[i] = 396 (org.omg.mof.Model.ModelElement) _required_elementss.elementAt( 397 i); 398 return temp1; 399 } 400 public void set_required_elements( 401 org.omg.mof.Model.ModelElement[] new_value) 402 throws org.omg.mof.Reflective.MofError { 403 _required_elementss.removeAllElements(); 404 for (int i = 0; i < new_value.length; i++) 405 _required_elementss.addElement(new_value[i]); 406 } 407 public void add_required_elements( 408 org.omg.mof.Model.ModelElement new_element) 409 throws org.omg.mof.Reflective.MofError { 410 _required_elementss.addElement(new_element); 411 } 412 public void modify_required_elements( 413 org.omg.mof.Model.ModelElement old_element, 414 org.omg.mof.Model.ModelElement new_element) 415 throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 416 if (_required_elementss.contains(old_element)) { 417 int i = _required_elementss.indexOf(old_element); 418 _required_elementss.setElementAt(new_element, i); 419 } else 420 throw new org.omg.mof.Reflective.NotFound(); 421 } 422 public void remove_required_elements( 423 org.omg.mof.Model.ModelElement old_element) 424 throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 425 if (_required_elementss.contains(old_element)) 426 _required_elementss.removeElement(old_element); 427 else 428 throw new org.omg.mof.Reflective.NotFound(); 429 } 430 431 private java.util.Vector _constraintss = new java.util.Vector (); 433 public org.omg.mof.Model.Constraint[] constraints() 434 throws org.omg.mof.Reflective.MofError { 435 org.omg.mof.Model.Constraint[] temp1 = 436 new org.omg.mof.Model.Constraint[_constraintss.size()]; 437 for (int i = 0; i < _constraintss.size(); i++) 438 temp1[i] = 439 (org.omg.mof.Model.Constraint) _constraintss.elementAt(i); 440 return temp1; 441 } 442 public void set_constraints(org.omg.mof.Model.Constraint[] new_value) 443 throws org.omg.mof.Reflective.MofError { 444 _constraintss.removeAllElements(); 445 for (int i = 0; i < new_value.length; i++) 446 _constraintss.addElement(new_value[i]); 447 } 448 public void add_constraints(org.omg.mof.Model.Constraint new_element) 449 throws org.omg.mof.Reflective.MofError { 450 _constraintss.addElement(new_element); 451 } 452 public void modify_constraints( 453 org.omg.mof.Model.Constraint old_element, 454 org.omg.mof.Model.Constraint new_element) 455 throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 456 if (_constraintss.contains(old_element)) { 457 int i = _constraintss.indexOf(old_element); 458 _constraintss.setElementAt(new_element, i); 459 } else 460 throw new org.omg.mof.Reflective.NotFound(); 461 } 462 public void remove_constraints(org.omg.mof.Model.Constraint old_element) 463 throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 464 if (_constraintss.contains(old_element)) 465 _constraintss.removeElement(old_element); 466 else 467 throw new org.omg.mof.Reflective.NotFound(); 468 } 469 470 private java.util.Vector _contentss = new java.util.Vector (); 472 public org.omg.mof.Model.ModelElement[] contents() 473 throws org.omg.mof.Reflective.MofError { 474 org.omg.mof.Model.ModelElement[] temp1 = 475 new org.omg.mof.Model.ModelElement[_contentss.size()]; 476 for (int i = 0; i < _contentss.size(); i++) 477 temp1[i] = (org.omg.mof.Model.ModelElement) _contentss.elementAt(i); 478 return temp1; 479 } 480 public void set_contents(org.omg.mof.Model.ModelElement[] new_value) 481 throws org.omg.mof.Reflective.MofError { 482 _contentss.removeAllElements(); 483 for (int i = 0; i < new_value.length; i++) 484 _contentss.addElement(new_value[i]); 485 } 486 public void add_contents(org.omg.mof.Model.ModelElement new_element) 487 throws org.omg.mof.Reflective.MofError { 488 _contentss.addElement(new_element); 489 } 490 public void add_contents_before( 491 org.omg.mof.Model.ModelElement new_element, 492 org.omg.mof.Model.ModelElement before_element) 493 throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 494 if (_contentss.contains(before_element)) { 495 int i = _contentss.indexOf(before_element); 496 _contentss.insertElementAt(new_element, i); 497 } else 498 throw new org.omg.mof.Reflective.NotFound(); 499 } 500 public void modify_contents( 501 org.omg.mof.Model.ModelElement old_element, 502 org.omg.mof.Model.ModelElement new_element) 503 throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 504 if (_contentss.contains(old_element)) { 505 int i = _contentss.indexOf(old_element); 506 _contentss.setElementAt(new_element, i); 507 } else 508 throw new org.omg.mof.Reflective.NotFound(); 509 } 510 public void remove_contents(org.omg.mof.Model.ModelElement old_element) 511 throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 512 if (_contentss.contains(old_element)) 513 _contentss.removeElement(old_element); 514 else 515 throw new org.omg.mof.Reflective.NotFound(); 516 } 517 518 private java.util.Vector _supertypess = new java.util.Vector (); 520 public org.omg.mof.Model.GeneralizableElement[] supertypes() 521 throws org.omg.mof.Reflective.MofError { 522 org.omg.mof.Model.GeneralizableElement[] temp1 = 523 new org.omg.mof.Model.GeneralizableElement[_supertypess.size()]; 524 for (int i = 0; i < _supertypess.size(); i++) 525 temp1[i] = 526 ( 527 org 528 .omg 529 .mof 530 .Model 531 .GeneralizableElement) _supertypess 532 .elementAt( 533 i); 534 return temp1; 535 } 536 public void set_supertypes( 537 org.omg.mof.Model.GeneralizableElement[] new_value) 538 throws org.omg.mof.Reflective.MofError { 539 _supertypess.removeAllElements(); 540 for (int i = 0; i < new_value.length; i++) 541 _supertypess.addElement(new_value[i]); 542 } 543 public void add_supertypes( 544 org.omg.mof.Model.GeneralizableElement new_element) 545 throws org.omg.mof.Reflective.MofError { 546 _supertypess.addElement(new_element); 547 } 548 public void add_supertypes_before( 549 org.omg.mof.Model.GeneralizableElement new_element, 550 org.omg.mof.Model.GeneralizableElement before_element) 551 throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 552 if (_supertypess.contains(before_element)) { 553 int i = _supertypess.indexOf(before_element); 554 _supertypess.insertElementAt(new_element, i); 555 } else 556 throw new org.omg.mof.Reflective.NotFound(); 557 } 558 public void modify_supertypes( 559 org.omg.mof.Model.GeneralizableElement old_element, 560 org.omg.mof.Model.GeneralizableElement new_element) 561 throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 562 if (_supertypess.contains(old_element)) { 563 int i = _supertypess.indexOf(old_element); 564 _supertypess.setElementAt(new_element, i); 565 } else 566 throw new org.omg.mof.Reflective.NotFound(); 567 } 568 public void remove_supertypes( 569 org.omg.mof.Model.GeneralizableElement old_element) 570 throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 571 if (_supertypess.contains(old_element)) 572 _supertypess.removeElement(old_element); 573 else 574 throw new org.omg.mof.Reflective.NotFound(); 575 } 576 577 public PackageImpl( 578 String name, 579 String annotation, 580 org.omg.mof.Model.VisibilityKind visibility, 581 boolean is_leaf, 582 boolean is_root, 583 boolean is_abstract, 584 org.omg.mof.Model.PackageClass _proxy) { 585 _name = name; 586 _annotation = annotation; 587 _visibility = visibility; 588 _is_leaf = is_leaf; 589 _is_root = is_root; 590 _is_abstract = is_abstract; 591 _class_proxy = _proxy; 592 } 593 } 594 | Popular Tags |