Coverage Report - org.argouml.model.mdr.MetaTypesMDRImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
MetaTypesMDRImpl
66%
96/144
100%
6/6
1.12
 
 1  
 /* $Id: MetaTypesMDRImpl.java 19074 2011-02-24 14:48:45Z thn $
 2  
  *****************************************************************************
 3  
  * Copyright (c) 2009 Contributors - see below
 4  
  * All rights reserved. This program and the accompanying materials
 5  
  * are made available under the terms of the Eclipse Public License v1.0
 6  
  * which accompanies this distribution, and is available at
 7  
  * http://www.eclipse.org/legal/epl-v10.html
 8  
  *
 9  
  * Contributors:
 10  
  *    thn
 11  
  *****************************************************************************
 12  
  *
 13  
  * Some portions of this file was previously release using the BSD License:
 14  
  */
 15  
 
 16  
 // Copyright (c) 2005-2006 The Regents of the University of California. All
 17  
 // Rights Reserved. Permission to use, copy, modify, and distribute this
 18  
 // software and its documentation without fee, and without a written
 19  
 // agreement is hereby granted, provided that the above copyright notice
 20  
 // and this paragraph appear in all copies. This software program and
 21  
 // documentation are copyrighted by The Regents of the University of
 22  
 // California. The software program and documentation are supplied "AS
 23  
 // IS", without any accompanying services from The Regents. The Regents
 24  
 // does not warrant that the operation of the program will be
 25  
 // uninterrupted or error-free. The end-user understands that the program
 26  
 // was developed for research purposes and is advised not to rely
 27  
 // exclusively on the program for any reason. IN NO EVENT SHALL THE
 28  
 // UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
 29  
 // SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS,
 30  
 // ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF
 31  
 // THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF
 32  
 // SUCH DAMAGE. THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY
 33  
 // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 34  
 // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE
 35  
 // PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF
 36  
 // CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT,
 37  
 // UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 38  
 
 39  
 package org.argouml.model.mdr;
 40  
 
 41  
 import javax.jmi.model.PrimitiveType;
 42  
 
 43  
 import org.argouml.model.MetaTypes;
 44  
 import org.argouml.model.NotImplementedException;
 45  
 import org.omg.uml.behavioralelements.activitygraphs.ActionState;
 46  
 import org.omg.uml.behavioralelements.activitygraphs.ActivityGraph;
 47  
 import org.omg.uml.behavioralelements.activitygraphs.CallState;
 48  
 import org.omg.uml.behavioralelements.activitygraphs.ClassifierInState;
 49  
 import org.omg.uml.behavioralelements.activitygraphs.ObjectFlowState;
 50  
 import org.omg.uml.behavioralelements.activitygraphs.Partition;
 51  
 import org.omg.uml.behavioralelements.activitygraphs.SubactivityState;
 52  
 import org.omg.uml.behavioralelements.collaborations.AssociationEndRole;
 53  
 import org.omg.uml.behavioralelements.collaborations.AssociationRole;
 54  
 import org.omg.uml.behavioralelements.collaborations.ClassifierRole;
 55  
 import org.omg.uml.behavioralelements.collaborations.Collaboration;
 56  
 import org.omg.uml.behavioralelements.collaborations.CollaborationInstanceSet;
 57  
 import org.omg.uml.behavioralelements.collaborations.Interaction;
 58  
 import org.omg.uml.behavioralelements.collaborations.InteractionInstanceSet;
 59  
 import org.omg.uml.behavioralelements.collaborations.Message;
 60  
 import org.omg.uml.behavioralelements.commonbehavior.Action;
 61  
 import org.omg.uml.behavioralelements.commonbehavior.ActionSequence;
 62  
 import org.omg.uml.behavioralelements.commonbehavior.Argument;
 63  
 import org.omg.uml.behavioralelements.commonbehavior.AttributeLink;
 64  
 import org.omg.uml.behavioralelements.commonbehavior.CallAction;
 65  
 import org.omg.uml.behavioralelements.commonbehavior.ComponentInstance;
 66  
 import org.omg.uml.behavioralelements.commonbehavior.CreateAction;
 67  
 import org.omg.uml.behavioralelements.commonbehavior.DataValue;
 68  
 import org.omg.uml.behavioralelements.commonbehavior.DestroyAction;
 69  
 import org.omg.uml.behavioralelements.commonbehavior.Instance;
 70  
 import org.omg.uml.behavioralelements.commonbehavior.Link;
 71  
 import org.omg.uml.behavioralelements.commonbehavior.LinkEnd;
 72  
 import org.omg.uml.behavioralelements.commonbehavior.LinkObject;
 73  
 import org.omg.uml.behavioralelements.commonbehavior.NodeInstance;
 74  
 import org.omg.uml.behavioralelements.commonbehavior.Reception;
 75  
 import org.omg.uml.behavioralelements.commonbehavior.ReturnAction;
 76  
 import org.omg.uml.behavioralelements.commonbehavior.SendAction;
 77  
 import org.omg.uml.behavioralelements.commonbehavior.Signal;
 78  
 import org.omg.uml.behavioralelements.commonbehavior.Stimulus;
 79  
 import org.omg.uml.behavioralelements.commonbehavior.SubsystemInstance;
 80  
 import org.omg.uml.behavioralelements.commonbehavior.TerminateAction;
 81  
 import org.omg.uml.behavioralelements.commonbehavior.UmlException;
 82  
 import org.omg.uml.behavioralelements.commonbehavior.UninterpretedAction;
 83  
 import org.omg.uml.behavioralelements.statemachines.CallEvent;
 84  
 import org.omg.uml.behavioralelements.statemachines.ChangeEvent;
 85  
 import org.omg.uml.behavioralelements.statemachines.CompositeState;
 86  
 import org.omg.uml.behavioralelements.statemachines.Event;
 87  
 import org.omg.uml.behavioralelements.statemachines.FinalState;
 88  
 import org.omg.uml.behavioralelements.statemachines.Guard;
 89  
 import org.omg.uml.behavioralelements.statemachines.Pseudostate;
 90  
 import org.omg.uml.behavioralelements.statemachines.SignalEvent;
 91  
 import org.omg.uml.behavioralelements.statemachines.SimpleState;
 92  
 import org.omg.uml.behavioralelements.statemachines.State;
 93  
 import org.omg.uml.behavioralelements.statemachines.StateMachine;
 94  
 import org.omg.uml.behavioralelements.statemachines.StateVertex;
 95  
 import org.omg.uml.behavioralelements.statemachines.StubState;
 96  
 import org.omg.uml.behavioralelements.statemachines.SubmachineState;
 97  
 import org.omg.uml.behavioralelements.statemachines.SynchState;
 98  
 import org.omg.uml.behavioralelements.statemachines.TimeEvent;
 99  
 import org.omg.uml.behavioralelements.statemachines.Transition;
 100  
 import org.omg.uml.behavioralelements.usecases.Actor;
 101  
 import org.omg.uml.behavioralelements.usecases.Extend;
 102  
 import org.omg.uml.behavioralelements.usecases.ExtensionPoint;
 103  
 import org.omg.uml.behavioralelements.usecases.Include;
 104  
 import org.omg.uml.behavioralelements.usecases.UseCase;
 105  
 import org.omg.uml.foundation.core.Abstraction;
 106  
 import org.omg.uml.foundation.core.Artifact;
 107  
 import org.omg.uml.foundation.core.AssociationClass;
 108  
 import org.omg.uml.foundation.core.AssociationEnd;
 109  
 import org.omg.uml.foundation.core.Attribute;
 110  
 import org.omg.uml.foundation.core.BehavioralFeature;
 111  
 import org.omg.uml.foundation.core.Binding;
 112  
 import org.omg.uml.foundation.core.Classifier;
 113  
 import org.omg.uml.foundation.core.Comment;
 114  
 import org.omg.uml.foundation.core.Component;
 115  
 import org.omg.uml.foundation.core.Constraint;
 116  
 import org.omg.uml.foundation.core.DataType;
 117  
 import org.omg.uml.foundation.core.Dependency;
 118  
 import org.omg.uml.foundation.core.Element;
 119  
 import org.omg.uml.foundation.core.ElementResidence;
 120  
 import org.omg.uml.foundation.core.Enumeration;
 121  
 import org.omg.uml.foundation.core.EnumerationLiteral;
 122  
 import org.omg.uml.foundation.core.Feature;
 123  
 import org.omg.uml.foundation.core.Flow;
 124  
 import org.omg.uml.foundation.core.GeneralizableElement;
 125  
 import org.omg.uml.foundation.core.Generalization;
 126  
 import org.omg.uml.foundation.core.Interface;
 127  
 import org.omg.uml.foundation.core.Method;
 128  
 import org.omg.uml.foundation.core.ModelElement;
 129  
 import org.omg.uml.foundation.core.Namespace;
 130  
 import org.omg.uml.foundation.core.Node;
 131  
 import org.omg.uml.foundation.core.Operation;
 132  
 import org.omg.uml.foundation.core.Parameter;
 133  
 import org.omg.uml.foundation.core.Permission;
 134  
 import org.omg.uml.foundation.core.Relationship;
 135  
 import org.omg.uml.foundation.core.Stereotype;
 136  
 import org.omg.uml.foundation.core.StructuralFeature;
 137  
 import org.omg.uml.foundation.core.TagDefinition;
 138  
 import org.omg.uml.foundation.core.TaggedValue;
 139  
 import org.omg.uml.foundation.core.TemplateArgument;
 140  
 import org.omg.uml.foundation.core.TemplateParameter;
 141  
 import org.omg.uml.foundation.core.UmlAssociation;
 142  
 import org.omg.uml.foundation.core.UmlClass;
 143  
 import org.omg.uml.foundation.core.Usage;
 144  
 import org.omg.uml.foundation.datatypes.ActionExpression;
 145  
 import org.omg.uml.foundation.datatypes.AggregationKind;
 146  
 import org.omg.uml.foundation.datatypes.BooleanExpression;
 147  
 import org.omg.uml.foundation.datatypes.CallConcurrencyKind;
 148  
 import org.omg.uml.foundation.datatypes.Expression;
 149  
 import org.omg.uml.foundation.datatypes.Multiplicity;
 150  
 import org.omg.uml.foundation.datatypes.MultiplicityRange;
 151  
 import org.omg.uml.foundation.datatypes.ParameterDirectionKind;
 152  
 import org.omg.uml.foundation.datatypes.PseudostateKind;
 153  
 import org.omg.uml.foundation.datatypes.ScopeKind;
 154  
 import org.omg.uml.foundation.datatypes.VisibilityKind;
 155  
 import org.omg.uml.modelmanagement.ElementImport;
 156  
 import org.omg.uml.modelmanagement.Model;
 157  
 import org.omg.uml.modelmanagement.Subsystem;
 158  
 import org.omg.uml.modelmanagement.UmlPackage;
 159  
 
 160  
 /**
 161  
  * This class contains methods to retrieve objects that represent the different
 162  
  * UML types. These objects are use as tokens used to create model elements in
 163  
  * some methods.
 164  
  * 
 165  
  * @see org.argouml.model.UmlFactory#buildConnection( Object, Object, Object,
 166  
  *      Object, Object, Object, Object)
 167  
  * @see org.argouml.model.UmlFactory#buildNode(Object)
 168  
  */
 169  
 final class MetaTypesMDRImpl implements MetaTypes {
 170  
 
 171  
     /**
 172  
      * Constructor that forbids to instantiate.
 173  
      */
 174  900
     MetaTypesMDRImpl() {
 175  
         // forbid instantiation
 176  900
     }
 177  
     
 178  
     public String getName(Object modelElement) {
 179  
         Class<?> clazz;
 180  16997
         if (modelElement instanceof Class) {
 181  900
             clazz = (Class<?>) modelElement;
 182  
         } else {
 183  16097
             clazz = modelElement.getClass();
 184  
         }
 185  16997
         String name = clazz.getName();
 186  
 
 187  
         // The name of the meta type is the class name (after the last .)
 188  
         // and before the next $ or end of class name.
 189  16997
         int startName = name.lastIndexOf('.') + 1;
 190  
 
 191  
         // MDR classes may have a UML or Uml prefix which should be removed.
 192  16997
         if (name.regionMatches(true, startName, "UML", 0, 3)) {
 193  1068
             startName += 3;
 194  
         }
 195  
 
 196  16997
         int endName = name.indexOf('$', startName);
 197  16997
         if (endName < 0) {
 198  3768
             endName = name.length();
 199  
         }
 200  
 
 201  16997
         return name.substring(startName, endName);
 202  
     }
 203  
 
 204  
     /*
 205  
      * @see org.argouml.model.MetaTypes#getAbstraction()
 206  
      */
 207  
     public Object getAbstraction() {
 208  1047
         return Abstraction.class;
 209  
     }
 210  
 
 211  
     public Object getAcceptEventAction() {
 212  0
         throw new NotImplementedException("Not a UML 1.4 element");
 213  
     }
 214  
 
 215  
     public Object getAction() {
 216  104
         return Action.class;
 217  
     }
 218  
 
 219  
     public Object getActionExpression() {
 220  0
         return ActionExpression.class;
 221  
     }
 222  
 
 223  
     public Object getActionState() {
 224  919
         return ActionState.class;
 225  
     }
 226  
 
 227  
     public Object getActivity() {
 228  38
         return ActivityGraph.class;
 229  
     }
 230  
 
 231  
     public Object getActivityParameterNode() {
 232  0
         throw new NotImplementedException("This is not a UML1.4 class");
 233  
     }
 234  
 
 235  
     public Object getActor() {
 236  4658
         return Actor.class;
 237  
     }
 238  
 
 239  
     public Object getAggregationKind() {
 240  0
         return AggregationKind.class;
 241  
     }
 242  
     
 243  
     public Object getArtifact() {
 244  104
         return Artifact.class;
 245  
     }
 246  
 
 247  
     public Object getAssociation() {
 248  8510
         return UmlAssociation.class;
 249  
     }
 250  
 
 251  
     public Object getAssociationClass() {
 252  11032
         return AssociationClass.class;
 253  
     }
 254  
 
 255  
     public Object getAssociationEnd() {
 256  2828
         return AssociationEnd.class;
 257  
     }
 258  
 
 259  
     public Object getAssociationEndRole() {
 260  104
         return AssociationEndRole.class;
 261  
     }
 262  
 
 263  
     public Object getAssociationRole() {
 264  218
         return AssociationRole.class;
 265  
     }
 266  
 
 267  
     public Object getAttribute() {
 268  2823
         return Attribute.class;
 269  
     }
 270  
 
 271  
     public Object getBehavioralFeature() {
 272  0
         return BehavioralFeature.class;    
 273  
     }
 274  
     
 275  
     public Object getBinding() {
 276  0
         return Binding.class;
 277  
     }
 278  
 
 279  
     public Object getBooleanExpression() {
 280  0
         return BooleanExpression.class;
 281  
     }
 282  
 
 283  
     public Object getCallAction() {
 284  38
         return CallAction.class;
 285  
     }
 286  
 
 287  
     public Object getCallBehaviorAction() {
 288  0
         throw new NotImplementedException("This is not a UML1.4 class");
 289  
     }
 290  
 
 291  
     public Object getCallConcurrencyKind() {
 292  0
         return CallConcurrencyKind.class;
 293  
     }
 294  
 
 295  
     public Object getCallState() {
 296  19
         return CallState.class;
 297  
     }
 298  
 
 299  
     public Object getCentralBufferNode() {
 300  0
         throw new NotImplementedException("This is not a UML1.4 class");
 301  
     }
 302  
 
 303  
     public Object getUMLClass() {
 304  17336
         return UmlClass.class;
 305  
     }
 306  
 
 307  
     public Object getClassifier() {
 308  7360
         return Classifier.class;
 309  
     }
 310  
 
 311  
     public Object getClassifierRole() {
 312  142
         return ClassifierRole.class;
 313  
     }
 314  
 
 315  
     public Object getCollaboration() {
 316  104
         return Collaboration.class;
 317  
     }
 318  
 
 319  
     public Object getComment() {
 320  104
         return Comment.class;
 321  
     }
 322  
 
 323  
     public Object getComponent() {
 324  123
         return Component.class;
 325  
     }
 326  
 
 327  
     public Object getComponentInstance() {
 328  19
         return ComponentInstance.class;
 329  
     }
 330  
 
 331  
     public Object getCompositeState() {
 332  1962
         return CompositeState.class;
 333  
     }
 334  
     
 335  
     public Object getConstraint() {
 336  104
         return Constraint.class;
 337  
     }
 338  
 
 339  
     public Object getControlFlow() {
 340  0
         throw new NotImplementedException("This is not a UML1.4 class");
 341  
     }
 342  
 
 343  
     public Object getCreateAction() {
 344  38
         return CreateAction.class;
 345  
     }
 346  
 
 347  
     public Object getCreateObjectAction() {
 348  0
         throw new NotImplementedException("This is not a UML1.4 class");
 349  
     }
 350  
     
 351  
     public Object getDataStoreNode() {
 352  0
         throw new NotImplementedException("This is not a UML1.4 class");
 353  
     }
 354  
 
 355  
     public Object getDataType() {
 356  2932
         return DataType.class;
 357  
     }
 358  
 
 359  
     public Object getDependency() {
 360  1224
         return Dependency.class;
 361  
     }
 362  
 
 363  
     public Object getDestroyAction() {
 364  38
         return DestroyAction.class;
 365  
     }
 366  
 
 367  
     public Object getDestroyObjectAction() {
 368  0
         throw new NotImplementedException("This is not a UML1.4 class");
 369  
     }
 370  
 
 371  
     public Object getEnumeration() {
 372  1132
         return Enumeration.class;
 373  
     }
 374  
     
 375  
     public Object getEnumerationLiteral() {
 376  123
         return EnumerationLiteral.class;
 377  
     }
 378  
 
 379  
     public Object getElementImport() {
 380  104
         return ElementImport.class;
 381  
     }
 382  
     
 383  
     public Object getEvent() {
 384  0
         return Event.class;
 385  
     }
 386  
 
 387  
     public Object getException() {
 388  1132
         return UmlException.class;
 389  
     }
 390  
 
 391  
     public Object getExpansionNode() {
 392  0
         throw new NotImplementedException("This is not a UML1.4 class");
 393  
     }
 394  
 
 395  
     public Object getExtend() {
 396  158
         return Extend.class;
 397  
     }
 398  
 
 399  
     public Object getExtensionPoint() {
 400  123
         return ExtensionPoint.class;
 401  
     }
 402  
 
 403  
     public Object getFinalState() {
 404  77
         return FinalState.class;
 405  
     }
 406  
 
 407  
     public Object getGeneralizableElement() {
 408  3602
         return GeneralizableElement.class;
 409  
     }
 410  
 
 411  
     public Object getGeneralization() {
 412  1224
         return Generalization.class;
 413  
     }
 414  
 
 415  
     public Object getGuard() {
 416  123
         return Guard.class;
 417  
     }
 418  
 
 419  
     public Object getInclude() {
 420  158
         return Include.class;
 421  
     }
 422  
 
 423  
     public Object getInputPin() {
 424  0
         throw new NotImplementedException("Not a UML1.4 element");
 425  
     }
 426  
 
 427  
     public Object getInstance() {
 428  1004
         return Instance.class;
 429  
     }
 430  
 
 431  
     public Object getInterface() {
 432  7536
         return Interface.class;
 433  
     }
 434  
 
 435  
     public Object getLink() {
 436  1023
         return Link.class;
 437  
     }
 438  
 
 439  
     public Object getMessage() {
 440  218
         return Message.class;
 441  
     }
 442  
 
 443  
     public Object getModel() {
 444  104
         return Model.class;
 445  
     }
 446  
 
 447  
     public Object getModelElement() {
 448  2700
         return ModelElement.class;
 449  
     }
 450  
 
 451  
     public Object getMultiplicity() {
 452  0
         return Multiplicity.class;
 453  
     }
 454  
 
 455  
     public Object getNamespace() {
 456  3600
         return Namespace.class;
 457  
     }
 458  
 
 459  
     public Object getNode() {
 460  125
         return Node.class;
 461  
     }
 462  
 
 463  
     public Object getNodeInstance() {
 464  19
         return NodeInstance.class;
 465  
     }
 466  
 
 467  
     public Object getObject() {
 468  19
         return org.omg.uml.behavioralelements.commonbehavior.Object.class;
 469  
     }
 470  
 
 471  
     public Object getObjectFlow() {
 472  0
         throw new NotImplementedException("This is not a UML1.4 class");
 473  
     }
 474  
 
 475  
     public Object getObjectFlowState() {
 476  19
         return ObjectFlowState.class;
 477  
     }
 478  
 
 479  
     public Object getOperation() {
 480  5523
         return Operation.class;
 481  
     }
 482  
 
 483  
     public Object getOutputPin() {
 484  0
         throw new NotImplementedException("Not a UML1.4 element");
 485  
     }
 486  
 
 487  
     public Object getPackage() {
 488  2932
         return UmlPackage.class;
 489  
     }
 490  
 
 491  
     public Object getParameter() {
 492  1023
         return Parameter.class;
 493  
     }
 494  
 
 495  
     public Object getParameterDirectionKind() {
 496  0
         return ParameterDirectionKind.class;
 497  
     }
 498  
 
 499  
     public Object getPartition() {
 500  123
         return Partition.class;
 501  
     }
 502  
 
 503  
     public Object getPackageImport() {
 504  1028
         return Permission.class;
 505  
     }
 506  
 
 507  
     public Object getProfile() {
 508  0
         return Package.class;
 509  
     }
 510  
 
 511  
     public Object getProperty() {
 512  0
         return Attribute.class;
 513  
     }
 514  
 
 515  
     public Object getPseudostate() {
 516  7672
         return Pseudostate.class;
 517  
     }
 518  
 
 519  
     public Object getPseudostateKind() {
 520  0
         return PseudostateKind.class;
 521  
     }
 522  
 
 523  
     public Object getReception() {
 524  19
         return Reception.class;
 525  
     }
 526  
 
 527  
     public Object getReturnAction() {
 528  38
         return ReturnAction.class;
 529  
     }
 530  
 
 531  
     public Object getScopeKind() {
 532  0
         return ScopeKind.class;
 533  
     }
 534  
 
 535  
     public Object getSendAction() {
 536  38
         return SendAction.class;
 537  
     }
 538  
 
 539  
     public Object getSendSignalAction() {
 540  0
         throw new NotImplementedException("Not a UML 1.4 element");
 541  
     }
 542  
 
 543  
     public Object getSignal() {
 544  1170
         return Signal.class;
 545  
     }
 546  
 
 547  
     public Object getSimpleState() {
 548  162
         return SimpleState.class;
 549  
     }
 550  
 
 551  
     public Object getState() {
 552  4604
         return State.class;
 553  
     }
 554  
 
 555  
     public Object getStateMachine() {
 556  4079
         return StateMachine.class;
 557  
     }
 558  
 
 559  
     public Object getStateVertex() {
 560  5504
         return StateVertex.class;
 561  
     }
 562  
 
 563  
     public Object getStereotype() {
 564  2032
         return Stereotype.class;
 565  
     }
 566  
 
 567  
     public Object getStimulus() {
 568  0
         return Stimulus.class;
 569  
     }
 570  
 
 571  
     public Object getStubState() {
 572  58
         return StubState.class;
 573  
     }
 574  
 
 575  
     public Object getSubactivityState() {
 576  0
         return SubactivityState.class;
 577  
     }
 578  
 
 579  
     public Object getSubmachineState() {
 580  58
         return SubmachineState.class;
 581  
     }
 582  
 
 583  
     public Object getSubsystem() {
 584  0
         return Subsystem.class;
 585  
     }
 586  
 
 587  
     public Object getSynchState() {
 588  958
         return SynchState.class;
 589  
     }
 590  
     
 591  
     public Object getTemplateArgument() {
 592  0
         return TemplateArgument.class;
 593  
     }
 594  
     
 595  
     public Object getTemplateParameter() {
 596  19
         return TemplateParameter.class;
 597  
     }
 598  
 
 599  
     public Object getTerminateAction() {
 600  19
         return TerminateAction.class;
 601  
     }
 602  
 
 603  
     public Object getTransition() {
 604  6481
         return Transition.class;
 605  
     }
 606  
 
 607  
     public Object getUsage() {
 608  1028
         return Usage.class;
 609  
     }
 610  
 
 611  
     public Object getUseCase() {
 612  5558
         return UseCase.class;
 613  
     }
 614  
 
 615  
     public Object getVisibilityKind() {
 616  0
         return VisibilityKind.class;
 617  
     }
 618  
 
 619  
     public Object getTagDefinition() {
 620  1004
         return TagDefinition.class;
 621  
     }
 622  
 
 623  
     public Object getTaggedValue() {
 624  104
         return TaggedValue.class;
 625  
     }
 626  
 
 627  
     public Object getInteraction() {
 628  104
         return Interaction.class;
 629  
     }
 630  
 
 631  
     public Object getActionSequence() {
 632  19
         return ActionSequence.class;
 633  
     }
 634  
 
 635  
     public Object getArgument() {
 636  19
         return Argument.class;
 637  
     }
 638  
 
 639  
     public Object getAttributeLink() {
 640  0
         return AttributeLink.class;
 641  
     }
 642  
 
 643  
     public Object getCallEvent() {
 644  19
         return CallEvent.class;
 645  
     }
 646  
 
 647  
     public Object getChangeEvent() {
 648  19
         return ChangeEvent.class;
 649  
     }
 650  
 
 651  
     public Object getClassifierInState() {
 652  0
         return ClassifierInState.class;
 653  
     }
 654  
 
 655  
     public Object getCollaborationInstanceSet() {
 656  0
         return CollaborationInstanceSet.class;
 657  
     }
 658  
 
 659  
     public Object getDataValue() {
 660  0
         return DataValue.class;
 661  
     }
 662  
 
 663  
     public Object getElement() {
 664  0
         return Element.class;
 665  
     }
 666  
 
 667  
     public Object getElementResidence() {
 668  0
         return ElementResidence.class;
 669  
     }
 670  
 
 671  
     public Object getExpression() {
 672  0
         return Expression.class;
 673  
     }
 674  
 
 675  
     public Object getFeature() {
 676  0
         return Feature.class;
 677  
     }
 678  
 
 679  
     public Object getFlow() {
 680  0
         return Flow.class;
 681  
     }
 682  
 
 683  
     public Object getInteractionInstanceSet() {
 684  0
         return InteractionInstanceSet.class;
 685  
     }
 686  
 
 687  
     public Object getLinkEnd() {
 688  0
         return LinkEnd.class;
 689  
     }
 690  
 
 691  
     public Object getLinkObject() {
 692  0
         return LinkObject.class;
 693  
     }
 694  
 
 695  
     public Object getMethod() {
 696  19
         return Method.class;
 697  
     }
 698  
 
 699  
     public Object getMultiplicityRange() {
 700  0
         return MultiplicityRange.class;
 701  
     }
 702  
 
 703  
     public Object getPrimitiveType() {
 704  0
         return PrimitiveType.class;
 705  
     }
 706  
 
 707  
     public Object getRelationship() {
 708  0
         return Relationship.class;
 709  
     }
 710  
 
 711  
     public Object getSignalEvent() {
 712  19
         return SignalEvent.class;
 713  
     }
 714  
 
 715  
     public Object getStructuralFeature() {
 716  0
         return StructuralFeature.class;
 717  
     }
 718  
 
 719  
     public Object getSubsystemInstance() {
 720  0
         return SubsystemInstance.class;
 721  
     }
 722  
 
 723  
     public Object getTimeEvent() {
 724  19
         return TimeEvent.class;
 725  
     }
 726  
 
 727  
     public Object getUninterpretedAction() {
 728  19
         return UninterpretedAction.class;
 729  
     }
 730  
 
 731  
 
 732  
 }