1 21 22 package org.omg.mof.Model; 24 public class DataTypeImpl extends org.omg.mof.Model.DataTypePOA { 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.DataTypeClass _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.Classifier[] all_of_type_classifier() { 238 return _class_proxy.all_of_type_classifier(); 239 } 240 public org.omg.mof.Model.DataType create_data_type( 241 String name, 242 String annotation, 243 org.omg.mof.Model.VisibilityKind visibility, 244 boolean is_leaf, 245 boolean is_root, 246 boolean is_abstract, 247 org.omg.CORBA.TypeCode type_code) 248 throws org.omg.mof.Reflective.MofError { 249 return _class_proxy.create_data_type( 250 name, 251 annotation, 252 visibility, 253 is_leaf, 254 is_root, 255 is_abstract, 256 type_code); 257 } 258 public org.omg.mof.Model.DataType[] all_of_class_data_type() { 259 return _class_proxy.all_of_class_data_type(); 260 } 261 public org.omg.mof.Model.DataType[] all_of_type_data_type() { 262 return _class_proxy.all_of_type_data_type(); 263 } 264 private String _name; 266 public String name() throws org.omg.mof.Reflective.MofError { 267 return _name; 268 } 269 public void set_name(String new_value) 270 throws org.omg.mof.Reflective.MofError { 271 _name = new_value; 272 } 273 274 private String _annotation; 276 public String annotation() throws org.omg.mof.Reflective.MofError { 277 return _annotation; 278 } 279 public void set_annotation(String new_value) 280 throws org.omg.mof.Reflective.MofError { 281 _annotation = new_value; 282 } 283 284 private java.util.Vector _qualified_names = new java.util.Vector (); 286 public String [] qualified_name() throws org.omg.mof.Reflective.MofError { 287 java.util.Vector _name_qualified = new java.util.Vector (); 289 _name_qualified.addElement(_name); 290 291 Namespace _current = _this(); 293 boolean exist = true; 294 while (exist) { 295 try { 296 _current = _current.container(); 297 _name_qualified.addElement(_current.name()); 298 } catch (org.omg.mof.Reflective.NotSet ex) { 299 exist = false; 300 } 301 } 302 String [] _temp = new String [_name_qualified.size()]; 303 for (int i = 0; i < _temp.length; i++) 304 _temp[i] = (String ) _name_qualified.elementAt(i); 305 return _temp; 306 } 307 308 private org.omg.mof.Model.VisibilityKind _visibility; 310 public org.omg.mof.Model.VisibilityKind visibility() 311 throws org.omg.mof.Reflective.MofError { 312 return _visibility; 313 } 314 public void set_visibility(org.omg.mof.Model.VisibilityKind new_value) 315 throws org.omg.mof.Reflective.MofError { 316 _visibility = new_value; 317 } 318 319 private boolean _is_leaf; 321 public boolean is_leaf() throws org.omg.mof.Reflective.MofError { 322 return _is_leaf; 323 } 324 public void set_is_leaf(boolean new_value) 325 throws org.omg.mof.Reflective.MofError { 326 _is_leaf = new_value; 327 } 328 329 private boolean _is_root; 331 public boolean is_root() throws org.omg.mof.Reflective.MofError { 332 return _is_root; 333 } 334 public void set_is_root(boolean new_value) 335 throws org.omg.mof.Reflective.MofError { 336 _is_root = new_value; 337 } 338 339 private boolean _is_abstract; 341 public boolean is_abstract() throws org.omg.mof.Reflective.MofError { 342 return _is_abstract; 343 } 344 public void set_is_abstract(boolean new_value) 345 throws org.omg.mof.Reflective.MofError { 346 _is_abstract = new_value; 347 } 348 349 private org.omg.CORBA.TypeCode _type_code; 351 public org.omg.CORBA.TypeCode type_code() 352 throws org.omg.mof.Reflective.MofError { 353 return _type_code; 354 } 355 public void set_type_code(org.omg.CORBA.TypeCode new_value) 356 throws org.omg.mof.Reflective.MofError { 357 _type_code = new_value; 358 } 359 360 public GeneralizableElement[] all_supertypes() 362 throws org.omg.mof.Reflective.MofError { 363 java.util.Vector allSupertypesTable = new java.util.Vector (); 365 GeneralizableElement[] _supertypes = _this().supertypes(); 366 367 for (int i = 0; i < _supertypes.length; i++) { 368 GeneralizableElement currentSupertype = _supertypes[i]; 369 GeneralizableElement[] sup = currentSupertype.all_supertypes(); 370 for (int j = 0; j < sup.length; j++) { 371 if (!allSupertypesTable.contains(sup[j])) 372 allSupertypesTable.addElement(sup[j]); 373 } 374 if (!allSupertypesTable.contains(currentSupertype)) 375 allSupertypesTable.addElement(currentSupertype); 376 } 377 378 GeneralizableElement[] allSupertypes = 380 new GeneralizableElement[allSupertypesTable.size()]; 381 for (int i = 0; i < allSupertypesTable.size(); i++) 382 allSupertypes[i] = 383 (GeneralizableElement) allSupertypesTable.elementAt(i); 384 return allSupertypes; 385 } 386 387 private org.omg.mof.Model.Namespace _container = null; 389 public org.omg.mof.Model.Namespace container() 390 throws org.omg.mof.Reflective.NotSet, org.omg.mof.Reflective.MofError { 391 if (_container != null) 392 return _container; 393 else 394 throw new org.omg.mof.Reflective.NotSet(); 395 } 396 public void set_container(org.omg.mof.Model.Namespace new_value) 397 throws org.omg.mof.Reflective.MofError { 398 _container = new_value; 399 } 400 public void unset_container() throws org.omg.mof.Reflective.MofError { 401 _container = null; 402 } 403 404 private java.util.Vector _required_elementss = new java.util.Vector (); 406 public org.omg.mof.Model.ModelElement[] required_elements() 407 throws org.omg.mof.Reflective.MofError { 408 org.omg.mof.Model.ModelElement[] temp1 = 409 new org.omg.mof.Model.ModelElement[_required_elementss.size()]; 410 for (int i = 0; i < _required_elementss.size(); i++) 411 temp1[i] = 412 (org.omg.mof.Model.ModelElement) _required_elementss.elementAt( 413 i); 414 return temp1; 415 } 416 public void set_required_elements( 417 org.omg.mof.Model.ModelElement[] new_value) 418 throws org.omg.mof.Reflective.MofError { 419 _required_elementss.removeAllElements(); 420 for (int i = 0; i < new_value.length; i++) 421 _required_elementss.addElement(new_value[i]); 422 } 423 public void add_required_elements( 424 org.omg.mof.Model.ModelElement new_element) 425 throws org.omg.mof.Reflective.MofError { 426 _required_elementss.addElement(new_element); 427 } 428 public void modify_required_elements( 429 org.omg.mof.Model.ModelElement old_element, 430 org.omg.mof.Model.ModelElement new_element) 431 throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 432 if (_required_elementss.contains(old_element)) { 433 int i = _required_elementss.indexOf(old_element); 434 _required_elementss.setElementAt(new_element, i); 435 } else 436 throw new org.omg.mof.Reflective.NotFound(); 437 } 438 public void remove_required_elements( 439 org.omg.mof.Model.ModelElement old_element) 440 throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 441 if (_required_elementss.contains(old_element)) 442 _required_elementss.removeElement(old_element); 443 else 444 throw new org.omg.mof.Reflective.NotFound(); 445 } 446 447 private java.util.Vector _constraintss = new java.util.Vector (); 449 public org.omg.mof.Model.Constraint[] constraints() 450 throws org.omg.mof.Reflective.MofError { 451 org.omg.mof.Model.Constraint[] temp1 = 452 new org.omg.mof.Model.Constraint[_constraintss.size()]; 453 for (int i = 0; i < _constraintss.size(); i++) 454 temp1[i] = 455 (org.omg.mof.Model.Constraint) _constraintss.elementAt(i); 456 return temp1; 457 } 458 public void set_constraints(org.omg.mof.Model.Constraint[] new_value) 459 throws org.omg.mof.Reflective.MofError { 460 _constraintss.removeAllElements(); 461 for (int i = 0; i < new_value.length; i++) 462 _constraintss.addElement(new_value[i]); 463 } 464 public void add_constraints(org.omg.mof.Model.Constraint new_element) 465 throws org.omg.mof.Reflective.MofError { 466 _constraintss.addElement(new_element); 467 } 468 public void modify_constraints( 469 org.omg.mof.Model.Constraint old_element, 470 org.omg.mof.Model.Constraint new_element) 471 throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 472 if (_constraintss.contains(old_element)) { 473 int i = _constraintss.indexOf(old_element); 474 _constraintss.setElementAt(new_element, i); 475 } else 476 throw new org.omg.mof.Reflective.NotFound(); 477 } 478 public void remove_constraints(org.omg.mof.Model.Constraint old_element) 479 throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 480 if (_constraintss.contains(old_element)) 481 _constraintss.removeElement(old_element); 482 else 483 throw new org.omg.mof.Reflective.NotFound(); 484 } 485 486 private java.util.Vector _contentss = new java.util.Vector (); 488 public org.omg.mof.Model.ModelElement[] contents() 489 throws org.omg.mof.Reflective.MofError { 490 org.omg.mof.Model.ModelElement[] temp1 = 491 new org.omg.mof.Model.ModelElement[_contentss.size()]; 492 for (int i = 0; i < _contentss.size(); i++) 493 temp1[i] = (org.omg.mof.Model.ModelElement) _contentss.elementAt(i); 494 return temp1; 495 } 496 public void set_contents(org.omg.mof.Model.ModelElement[] new_value) 497 throws org.omg.mof.Reflective.MofError { 498 _contentss.removeAllElements(); 499 for (int i = 0; i < new_value.length; i++) 500 _contentss.addElement(new_value[i]); 501 } 502 public void add_contents(org.omg.mof.Model.ModelElement new_element) 503 throws org.omg.mof.Reflective.MofError { 504 _contentss.addElement(new_element); 505 } 506 public void add_contents_before( 507 org.omg.mof.Model.ModelElement new_element, 508 org.omg.mof.Model.ModelElement before_element) 509 throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 510 if (_contentss.contains(before_element)) { 511 int i = _contentss.indexOf(before_element); 512 _contentss.insertElementAt(new_element, i); 513 } else 514 throw new org.omg.mof.Reflective.NotFound(); 515 } 516 public void modify_contents( 517 org.omg.mof.Model.ModelElement old_element, 518 org.omg.mof.Model.ModelElement new_element) 519 throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 520 if (_contentss.contains(old_element)) { 521 int i = _contentss.indexOf(old_element); 522 _contentss.setElementAt(new_element, i); 523 } else 524 throw new org.omg.mof.Reflective.NotFound(); 525 } 526 public void remove_contents(org.omg.mof.Model.ModelElement old_element) 527 throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 528 if (_contentss.contains(old_element)) 529 _contentss.removeElement(old_element); 530 else 531 throw new org.omg.mof.Reflective.NotFound(); 532 } 533 534 private java.util.Vector _supertypess = new java.util.Vector (); 536 public org.omg.mof.Model.GeneralizableElement[] supertypes() 537 throws org.omg.mof.Reflective.MofError { 538 org.omg.mof.Model.GeneralizableElement[] temp1 = 539 new org.omg.mof.Model.GeneralizableElement[_supertypess.size()]; 540 for (int i = 0; i < _supertypess.size(); i++) 541 temp1[i] = 542 ( 543 org 544 .omg 545 .mof 546 .Model 547 .GeneralizableElement) _supertypess 548 .elementAt( 549 i); 550 return temp1; 551 } 552 public void set_supertypes( 553 org.omg.mof.Model.GeneralizableElement[] new_value) 554 throws org.omg.mof.Reflective.MofError { 555 _supertypess.removeAllElements(); 556 for (int i = 0; i < new_value.length; i++) 557 _supertypess.addElement(new_value[i]); 558 } 559 public void add_supertypes( 560 org.omg.mof.Model.GeneralizableElement new_element) 561 throws org.omg.mof.Reflective.MofError { 562 _supertypess.addElement(new_element); 563 } 564 public void add_supertypes_before( 565 org.omg.mof.Model.GeneralizableElement new_element, 566 org.omg.mof.Model.GeneralizableElement before_element) 567 throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 568 if (_supertypess.contains(before_element)) { 569 int i = _supertypess.indexOf(before_element); 570 _supertypess.insertElementAt(new_element, i); 571 } else 572 throw new org.omg.mof.Reflective.NotFound(); 573 } 574 public void modify_supertypes( 575 org.omg.mof.Model.GeneralizableElement old_element, 576 org.omg.mof.Model.GeneralizableElement new_element) 577 throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 578 if (_supertypess.contains(old_element)) { 579 int i = _supertypess.indexOf(old_element); 580 _supertypess.setElementAt(new_element, i); 581 } else 582 throw new org.omg.mof.Reflective.NotFound(); 583 } 584 public void remove_supertypes( 585 org.omg.mof.Model.GeneralizableElement old_element) 586 throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 587 if (_supertypess.contains(old_element)) 588 _supertypess.removeElement(old_element); 589 else 590 throw new org.omg.mof.Reflective.NotFound(); 591 } 592 593 public DataTypeImpl( 594 String name, 595 String annotation, 596 org.omg.mof.Model.VisibilityKind visibility, 597 boolean is_leaf, 598 boolean is_root, 599 boolean is_abstract, 600 org.omg.CORBA.TypeCode type_code, 601 org.omg.mof.Model.DataTypeClass _proxy) { 602 _name = name; 603 _annotation = annotation; 604 _visibility = visibility; 605 _is_leaf = is_leaf; 606 _is_root = is_root; 607 _is_abstract = is_abstract; 608 _type_code = type_code; 609 _class_proxy = _proxy; 610 } 611 } 612 | Popular Tags |