| 1 | /** |
| 2 | * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany |
| 3 | * |
| 4 | * $Id$ |
| 5 | */ |
| 6 | package de.uka.ipd.sdq.pcm.repository.util; |
| 7 | |
| 8 | import java.util.List; |
| 9 | |
| 10 | import org.eclipse.emf.ecore.EClass; |
| 11 | import org.eclipse.emf.ecore.EObject; |
| 12 | |
| 13 | import de.uka.ipd.sdq.identifier.Identifier; |
| 14 | import de.uka.ipd.sdq.pcm.core.composition.ComposedStructure; |
| 15 | import de.uka.ipd.sdq.pcm.core.entity.ComposedProvidingRequiringEntity; |
| 16 | import de.uka.ipd.sdq.pcm.core.entity.Entity; |
| 17 | import de.uka.ipd.sdq.pcm.core.entity.InterfaceProvidingEntity; |
| 18 | import de.uka.ipd.sdq.pcm.core.entity.InterfaceProvidingRequiringEntity; |
| 19 | import de.uka.ipd.sdq.pcm.core.entity.InterfaceRequiringEntity; |
| 20 | import de.uka.ipd.sdq.pcm.core.entity.NamedElement; |
| 21 | import de.uka.ipd.sdq.pcm.core.entity.ResourceInterfaceRequiringEntity; |
| 22 | import de.uka.ipd.sdq.pcm.repository.*; |
| 23 | import de.uka.ipd.sdq.pcm.repository.BasicComponent; |
| 24 | import de.uka.ipd.sdq.pcm.repository.CollectionDataType; |
| 25 | import de.uka.ipd.sdq.pcm.repository.CompleteComponentType; |
| 26 | import de.uka.ipd.sdq.pcm.repository.CompositeComponent; |
| 27 | import de.uka.ipd.sdq.pcm.repository.CompositeDataType; |
| 28 | import de.uka.ipd.sdq.pcm.repository.DataType; |
| 29 | import de.uka.ipd.sdq.pcm.repository.EventGroup; |
| 30 | import de.uka.ipd.sdq.pcm.repository.EventType; |
| 31 | import de.uka.ipd.sdq.pcm.repository.ExceptionType; |
| 32 | import de.uka.ipd.sdq.pcm.repository.ImplementationComponentType; |
| 33 | import de.uka.ipd.sdq.pcm.repository.InfrastructureInterface; |
| 34 | import de.uka.ipd.sdq.pcm.repository.InfrastructureProvidedRole; |
| 35 | import de.uka.ipd.sdq.pcm.repository.InfrastructureRequiredRole; |
| 36 | import de.uka.ipd.sdq.pcm.repository.InfrastructureSignature; |
| 37 | import de.uka.ipd.sdq.pcm.repository.InnerDeclaration; |
| 38 | import de.uka.ipd.sdq.pcm.repository.Interface; |
| 39 | import de.uka.ipd.sdq.pcm.repository.OperationInterface; |
| 40 | import de.uka.ipd.sdq.pcm.repository.OperationProvidedRole; |
| 41 | import de.uka.ipd.sdq.pcm.repository.OperationRequiredRole; |
| 42 | import de.uka.ipd.sdq.pcm.repository.OperationSignature; |
| 43 | import de.uka.ipd.sdq.pcm.repository.Parameter; |
| 44 | import de.uka.ipd.sdq.pcm.repository.PassiveResource; |
| 45 | import de.uka.ipd.sdq.pcm.repository.PrimitiveDataType; |
| 46 | import de.uka.ipd.sdq.pcm.repository.ProvidedRole; |
| 47 | import de.uka.ipd.sdq.pcm.repository.ProvidesComponentType; |
| 48 | import de.uka.ipd.sdq.pcm.repository.Repository; |
| 49 | import de.uka.ipd.sdq.pcm.repository.RepositoryComponent; |
| 50 | import de.uka.ipd.sdq.pcm.repository.RepositoryPackage; |
| 51 | import de.uka.ipd.sdq.pcm.repository.RequiredCharacterisation; |
| 52 | import de.uka.ipd.sdq.pcm.repository.RequiredRole; |
| 53 | import de.uka.ipd.sdq.pcm.repository.Role; |
| 54 | import de.uka.ipd.sdq.pcm.repository.Signature; |
| 55 | import de.uka.ipd.sdq.pcm.repository.SinkRole; |
| 56 | import de.uka.ipd.sdq.pcm.repository.SourceRole; |
| 57 | |
| 58 | /** |
| 59 | * <!-- begin-user-doc --> |
| 60 | * The <b>Switch</b> for the model's inheritance hierarchy. |
| 61 | * It supports the call {@link #doSwitch(EObject) doSwitch(object)} |
| 62 | * to invoke the <code>caseXXX</code> method for each class of the model, |
| 63 | * starting with the actual class of the object |
| 64 | * and proceeding up the inheritance hierarchy |
| 65 | * until a non-null result is returned, |
| 66 | * which is the result of the switch. |
| 67 | * <!-- end-user-doc --> |
| 68 | * @see de.uka.ipd.sdq.pcm.repository.RepositoryPackage |
| 69 | * @generated |
| 70 | */ |
| 71 | public class RepositorySwitch<T> { |
| 72 | /** |
| 73 | * <!-- begin-user-doc --> |
| 74 | * <!-- end-user-doc --> |
| 75 | * @generated |
| 76 | */ |
| 77 | public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany"; |
| 78 | |
| 79 | /** |
| 80 | * The cached model package |
| 81 | * <!-- begin-user-doc --> |
| 82 | * <!-- end-user-doc --> |
| 83 | * @generated |
| 84 | */ |
| 85 | protected static RepositoryPackage modelPackage; |
| 86 | |
| 87 | /** |
| 88 | * Creates an instance of the switch. |
| 89 | * <!-- begin-user-doc --> |
| 90 | * <!-- end-user-doc --> |
| 91 | * @generated |
| 92 | */ |
| 93 | public RepositorySwitch() { |
| 94 | if (modelPackage == null) { |
| 95 | modelPackage = RepositoryPackage.eINSTANCE; |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | /** |
| 100 | * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. |
| 101 | * <!-- begin-user-doc --> |
| 102 | * <!-- end-user-doc --> |
| 103 | * @return the first non-null result returned by a <code>caseXXX</code> call. |
| 104 | * @generated |
| 105 | */ |
| 106 | public T doSwitch(EObject theEObject) { |
| 107 | return doSwitch(theEObject.eClass(), theEObject); |
| 108 | } |
| 109 | |
| 110 | /** |
| 111 | * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. |
| 112 | * <!-- begin-user-doc --> |
| 113 | * <!-- end-user-doc --> |
| 114 | * @return the first non-null result returned by a <code>caseXXX</code> call. |
| 115 | * @generated |
| 116 | */ |
| 117 | protected T doSwitch(EClass theEClass, EObject theEObject) { |
| 118 | if (theEClass.eContainer() == modelPackage) { |
| 119 | return doSwitch(theEClass.getClassifierID(), theEObject); |
| 120 | } |
| 121 | else { |
| 122 | List<EClass> eSuperTypes = theEClass.getESuperTypes(); |
| 123 | return |
| 124 | eSuperTypes.isEmpty() ? |
| 125 | defaultCase(theEObject) : |
| 126 | doSwitch(eSuperTypes.get(0), theEObject); |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | /** |
| 131 | * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. |
| 132 | * <!-- begin-user-doc --> |
| 133 | * <!-- end-user-doc --> |
| 134 | * @return the first non-null result returned by a <code>caseXXX</code> call. |
| 135 | * @generated |
| 136 | */ |
| 137 | protected T doSwitch(int classifierID, EObject theEObject) { |
| 138 | switch (classifierID) { |
| 139 | case RepositoryPackage.PASSIVE_RESOURCE: { |
| 140 | PassiveResource passiveResource = (PassiveResource)theEObject; |
| 141 | T result = casePassiveResource(passiveResource); |
| 142 | if (result == null) result = caseEntity(passiveResource); |
| 143 | if (result == null) result = caseIdentifier(passiveResource); |
| 144 | if (result == null) result = caseNamedElement(passiveResource); |
| 145 | if (result == null) result = defaultCase(theEObject); |
| 146 | return result; |
| 147 | } |
| 148 | case RepositoryPackage.BASIC_COMPONENT: { |
| 149 | BasicComponent basicComponent = (BasicComponent)theEObject; |
| 150 | T result = caseBasicComponent(basicComponent); |
| 151 | if (result == null) result = caseImplementationComponentType(basicComponent); |
| 152 | if (result == null) result = caseRepositoryComponent(basicComponent); |
| 153 | if (result == null) result = caseInterfaceProvidingRequiringEntity(basicComponent); |
| 154 | if (result == null) result = caseInterfaceProvidingEntity(basicComponent); |
| 155 | if (result == null) result = caseInterfaceRequiringEntity(basicComponent); |
| 156 | if (result == null) result = caseResourceInterfaceRequiringEntity(basicComponent); |
| 157 | if (result == null) result = caseEntity(basicComponent); |
| 158 | if (result == null) result = caseIdentifier(basicComponent); |
| 159 | if (result == null) result = caseNamedElement(basicComponent); |
| 160 | if (result == null) result = defaultCase(theEObject); |
| 161 | return result; |
| 162 | } |
| 163 | case RepositoryPackage.IMPLEMENTATION_COMPONENT_TYPE: { |
| 164 | ImplementationComponentType implementationComponentType = (ImplementationComponentType)theEObject; |
| 165 | T result = caseImplementationComponentType(implementationComponentType); |
| 166 | if (result == null) result = caseRepositoryComponent(implementationComponentType); |
| 167 | if (result == null) result = caseInterfaceProvidingRequiringEntity(implementationComponentType); |
| 168 | if (result == null) result = caseInterfaceProvidingEntity(implementationComponentType); |
| 169 | if (result == null) result = caseInterfaceRequiringEntity(implementationComponentType); |
| 170 | if (result == null) result = caseResourceInterfaceRequiringEntity(implementationComponentType); |
| 171 | if (result == null) result = caseEntity(implementationComponentType); |
| 172 | if (result == null) result = caseIdentifier(implementationComponentType); |
| 173 | if (result == null) result = caseNamedElement(implementationComponentType); |
| 174 | if (result == null) result = defaultCase(theEObject); |
| 175 | return result; |
| 176 | } |
| 177 | case RepositoryPackage.REPOSITORY_COMPONENT: { |
| 178 | RepositoryComponent repositoryComponent = (RepositoryComponent)theEObject; |
| 179 | T result = caseRepositoryComponent(repositoryComponent); |
| 180 | if (result == null) result = caseInterfaceProvidingRequiringEntity(repositoryComponent); |
| 181 | if (result == null) result = caseInterfaceProvidingEntity(repositoryComponent); |
| 182 | if (result == null) result = caseInterfaceRequiringEntity(repositoryComponent); |
| 183 | if (result == null) result = caseResourceInterfaceRequiringEntity(repositoryComponent); |
| 184 | if (result == null) result = caseEntity(repositoryComponent); |
| 185 | if (result == null) result = caseIdentifier(repositoryComponent); |
| 186 | if (result == null) result = caseNamedElement(repositoryComponent); |
| 187 | if (result == null) result = defaultCase(theEObject); |
| 188 | return result; |
| 189 | } |
| 190 | case RepositoryPackage.PROVIDED_ROLE: { |
| 191 | ProvidedRole providedRole = (ProvidedRole)theEObject; |
| 192 | T result = caseProvidedRole(providedRole); |
| 193 | if (result == null) result = caseRole(providedRole); |
| 194 | if (result == null) result = caseEntity(providedRole); |
| 195 | if (result == null) result = caseIdentifier(providedRole); |
| 196 | if (result == null) result = caseNamedElement(providedRole); |
| 197 | if (result == null) result = defaultCase(theEObject); |
| 198 | return result; |
| 199 | } |
| 200 | case RepositoryPackage.PARAMETER: { |
| 201 | Parameter parameter = (Parameter)theEObject; |
| 202 | T result = caseParameter(parameter); |
| 203 | if (result == null) result = defaultCase(theEObject); |
| 204 | return result; |
| 205 | } |
| 206 | case RepositoryPackage.DATA_TYPE: { |
| 207 | DataType dataType = (DataType)theEObject; |
| 208 | T result = caseDataType(dataType); |
| 209 | if (result == null) result = defaultCase(theEObject); |
| 210 | return result; |
| 211 | } |
| 212 | case RepositoryPackage.REPOSITORY: { |
| 213 | Repository repository = (Repository)theEObject; |
| 214 | T result = caseRepository(repository); |
| 215 | if (result == null) result = caseEntity(repository); |
| 216 | if (result == null) result = caseIdentifier(repository); |
| 217 | if (result == null) result = caseNamedElement(repository); |
| 218 | if (result == null) result = defaultCase(theEObject); |
| 219 | return result; |
| 220 | } |
| 221 | case RepositoryPackage.INTERFACE: { |
| 222 | Interface interface_ = (Interface)theEObject; |
| 223 | T result = caseInterface(interface_); |
| 224 | if (result == null) result = caseEntity(interface_); |
| 225 | if (result == null) result = caseIdentifier(interface_); |
| 226 | if (result == null) result = caseNamedElement(interface_); |
| 227 | if (result == null) result = defaultCase(theEObject); |
| 228 | return result; |
| 229 | } |
| 230 | case RepositoryPackage.REQUIRED_CHARACTERISATION: { |
| 231 | RequiredCharacterisation requiredCharacterisation = (RequiredCharacterisation)theEObject; |
| 232 | T result = caseRequiredCharacterisation(requiredCharacterisation); |
| 233 | if (result == null) result = defaultCase(theEObject); |
| 234 | return result; |
| 235 | } |
| 236 | case RepositoryPackage.EVENT_GROUP: { |
| 237 | EventGroup eventGroup = (EventGroup)theEObject; |
| 238 | T result = caseEventGroup(eventGroup); |
| 239 | if (result == null) result = caseInterface(eventGroup); |
| 240 | if (result == null) result = caseEntity(eventGroup); |
| 241 | if (result == null) result = caseIdentifier(eventGroup); |
| 242 | if (result == null) result = caseNamedElement(eventGroup); |
| 243 | if (result == null) result = defaultCase(theEObject); |
| 244 | return result; |
| 245 | } |
| 246 | case RepositoryPackage.EVENT_TYPE: { |
| 247 | EventType eventType = (EventType)theEObject; |
| 248 | T result = caseEventType(eventType); |
| 249 | if (result == null) result = caseSignature(eventType); |
| 250 | if (result == null) result = caseEntity(eventType); |
| 251 | if (result == null) result = caseIdentifier(eventType); |
| 252 | if (result == null) result = caseNamedElement(eventType); |
| 253 | if (result == null) result = defaultCase(theEObject); |
| 254 | return result; |
| 255 | } |
| 256 | case RepositoryPackage.SIGNATURE: { |
| 257 | Signature signature = (Signature)theEObject; |
| 258 | T result = caseSignature(signature); |
| 259 | if (result == null) result = caseEntity(signature); |
| 260 | if (result == null) result = caseIdentifier(signature); |
| 261 | if (result == null) result = caseNamedElement(signature); |
| 262 | if (result == null) result = defaultCase(theEObject); |
| 263 | return result; |
| 264 | } |
| 265 | case RepositoryPackage.EXCEPTION_TYPE: { |
| 266 | ExceptionType exceptionType = (ExceptionType)theEObject; |
| 267 | T result = caseExceptionType(exceptionType); |
| 268 | if (result == null) result = defaultCase(theEObject); |
| 269 | return result; |
| 270 | } |
| 271 | case RepositoryPackage.INFRASTRUCTURE_SIGNATURE: { |
| 272 | InfrastructureSignature infrastructureSignature = (InfrastructureSignature)theEObject; |
| 273 | T result = caseInfrastructureSignature(infrastructureSignature); |
| 274 | if (result == null) result = caseSignature(infrastructureSignature); |
| 275 | if (result == null) result = caseEntity(infrastructureSignature); |
| 276 | if (result == null) result = caseIdentifier(infrastructureSignature); |
| 277 | if (result == null) result = caseNamedElement(infrastructureSignature); |
| 278 | if (result == null) result = defaultCase(theEObject); |
| 279 | return result; |
| 280 | } |
| 281 | case RepositoryPackage.INFRASTRUCTURE_INTERFACE: { |
| 282 | InfrastructureInterface infrastructureInterface = (InfrastructureInterface)theEObject; |
| 283 | T result = caseInfrastructureInterface(infrastructureInterface); |
| 284 | if (result == null) result = caseInterface(infrastructureInterface); |
| 285 | if (result == null) result = caseEntity(infrastructureInterface); |
| 286 | if (result == null) result = caseIdentifier(infrastructureInterface); |
| 287 | if (result == null) result = caseNamedElement(infrastructureInterface); |
| 288 | if (result == null) result = defaultCase(theEObject); |
| 289 | return result; |
| 290 | } |
| 291 | case RepositoryPackage.INFRASTRUCTURE_REQUIRED_ROLE: { |
| 292 | InfrastructureRequiredRole infrastructureRequiredRole = (InfrastructureRequiredRole)theEObject; |
| 293 | T result = caseInfrastructureRequiredRole(infrastructureRequiredRole); |
| 294 | if (result == null) result = caseRequiredRole(infrastructureRequiredRole); |
| 295 | if (result == null) result = caseRole(infrastructureRequiredRole); |
| 296 | if (result == null) result = caseEntity(infrastructureRequiredRole); |
| 297 | if (result == null) result = caseIdentifier(infrastructureRequiredRole); |
| 298 | if (result == null) result = caseNamedElement(infrastructureRequiredRole); |
| 299 | if (result == null) result = defaultCase(theEObject); |
| 300 | return result; |
| 301 | } |
| 302 | case RepositoryPackage.REQUIRED_ROLE: { |
| 303 | RequiredRole requiredRole = (RequiredRole)theEObject; |
| 304 | T result = caseRequiredRole(requiredRole); |
| 305 | if (result == null) result = caseRole(requiredRole); |
| 306 | if (result == null) result = caseEntity(requiredRole); |
| 307 | if (result == null) result = caseIdentifier(requiredRole); |
| 308 | if (result == null) result = caseNamedElement(requiredRole); |
| 309 | if (result == null) result = defaultCase(theEObject); |
| 310 | return result; |
| 311 | } |
| 312 | case RepositoryPackage.OPERATION_SIGNATURE: { |
| 313 | OperationSignature operationSignature = (OperationSignature)theEObject; |
| 314 | T result = caseOperationSignature(operationSignature); |
| 315 | if (result == null) result = caseSignature(operationSignature); |
| 316 | if (result == null) result = caseEntity(operationSignature); |
| 317 | if (result == null) result = caseIdentifier(operationSignature); |
| 318 | if (result == null) result = caseNamedElement(operationSignature); |
| 319 | if (result == null) result = defaultCase(theEObject); |
| 320 | return result; |
| 321 | } |
| 322 | case RepositoryPackage.OPERATION_INTERFACE: { |
| 323 | OperationInterface operationInterface = (OperationInterface)theEObject; |
| 324 | T result = caseOperationInterface(operationInterface); |
| 325 | if (result == null) result = caseInterface(operationInterface); |
| 326 | if (result == null) result = caseEntity(operationInterface); |
| 327 | if (result == null) result = caseIdentifier(operationInterface); |
| 328 | if (result == null) result = caseNamedElement(operationInterface); |
| 329 | if (result == null) result = defaultCase(theEObject); |
| 330 | return result; |
| 331 | } |
| 332 | case RepositoryPackage.OPERATION_REQUIRED_ROLE: { |
| 333 | OperationRequiredRole operationRequiredRole = (OperationRequiredRole)theEObject; |
| 334 | T result = caseOperationRequiredRole(operationRequiredRole); |
| 335 | if (result == null) result = caseRequiredRole(operationRequiredRole); |
| 336 | if (result == null) result = caseRole(operationRequiredRole); |
| 337 | if (result == null) result = caseEntity(operationRequiredRole); |
| 338 | if (result == null) result = caseIdentifier(operationRequiredRole); |
| 339 | if (result == null) result = caseNamedElement(operationRequiredRole); |
| 340 | if (result == null) result = defaultCase(theEObject); |
| 341 | return result; |
| 342 | } |
| 343 | case RepositoryPackage.SOURCE_ROLE: { |
| 344 | SourceRole sourceRole = (SourceRole)theEObject; |
| 345 | T result = caseSourceRole(sourceRole); |
| 346 | if (result == null) result = caseRequiredRole(sourceRole); |
| 347 | if (result == null) result = caseRole(sourceRole); |
| 348 | if (result == null) result = caseEntity(sourceRole); |
| 349 | if (result == null) result = caseIdentifier(sourceRole); |
| 350 | if (result == null) result = caseNamedElement(sourceRole); |
| 351 | if (result == null) result = defaultCase(theEObject); |
| 352 | return result; |
| 353 | } |
| 354 | case RepositoryPackage.SINK_ROLE: { |
| 355 | SinkRole sinkRole = (SinkRole)theEObject; |
| 356 | T result = caseSinkRole(sinkRole); |
| 357 | if (result == null) result = caseProvidedRole(sinkRole); |
| 358 | if (result == null) result = caseRole(sinkRole); |
| 359 | if (result == null) result = caseEntity(sinkRole); |
| 360 | if (result == null) result = caseIdentifier(sinkRole); |
| 361 | if (result == null) result = caseNamedElement(sinkRole); |
| 362 | if (result == null) result = defaultCase(theEObject); |
| 363 | return result; |
| 364 | } |
| 365 | case RepositoryPackage.OPERATION_PROVIDED_ROLE: { |
| 366 | OperationProvidedRole operationProvidedRole = (OperationProvidedRole)theEObject; |
| 367 | T result = caseOperationProvidedRole(operationProvidedRole); |
| 368 | if (result == null) result = caseProvidedRole(operationProvidedRole); |
| 369 | if (result == null) result = caseRole(operationProvidedRole); |
| 370 | if (result == null) result = caseEntity(operationProvidedRole); |
| 371 | if (result == null) result = caseIdentifier(operationProvidedRole); |
| 372 | if (result == null) result = caseNamedElement(operationProvidedRole); |
| 373 | if (result == null) result = defaultCase(theEObject); |
| 374 | return result; |
| 375 | } |
| 376 | case RepositoryPackage.INFRASTRUCTURE_PROVIDED_ROLE: { |
| 377 | InfrastructureProvidedRole infrastructureProvidedRole = (InfrastructureProvidedRole)theEObject; |
| 378 | T result = caseInfrastructureProvidedRole(infrastructureProvidedRole); |
| 379 | if (result == null) result = caseProvidedRole(infrastructureProvidedRole); |
| 380 | if (result == null) result = caseRole(infrastructureProvidedRole); |
| 381 | if (result == null) result = caseEntity(infrastructureProvidedRole); |
| 382 | if (result == null) result = caseIdentifier(infrastructureProvidedRole); |
| 383 | if (result == null) result = caseNamedElement(infrastructureProvidedRole); |
| 384 | if (result == null) result = defaultCase(theEObject); |
| 385 | return result; |
| 386 | } |
| 387 | case RepositoryPackage.COMPLETE_COMPONENT_TYPE: { |
| 388 | CompleteComponentType completeComponentType = (CompleteComponentType)theEObject; |
| 389 | T result = caseCompleteComponentType(completeComponentType); |
| 390 | if (result == null) result = caseRepositoryComponent(completeComponentType); |
| 391 | if (result == null) result = caseInterfaceProvidingRequiringEntity(completeComponentType); |
| 392 | if (result == null) result = caseInterfaceProvidingEntity(completeComponentType); |
| 393 | if (result == null) result = caseInterfaceRequiringEntity(completeComponentType); |
| 394 | if (result == null) result = caseResourceInterfaceRequiringEntity(completeComponentType); |
| 395 | if (result == null) result = caseEntity(completeComponentType); |
| 396 | if (result == null) result = caseIdentifier(completeComponentType); |
| 397 | if (result == null) result = caseNamedElement(completeComponentType); |
| 398 | if (result == null) result = defaultCase(theEObject); |
| 399 | return result; |
| 400 | } |
| 401 | case RepositoryPackage.PROVIDES_COMPONENT_TYPE: { |
| 402 | ProvidesComponentType providesComponentType = (ProvidesComponentType)theEObject; |
| 403 | T result = caseProvidesComponentType(providesComponentType); |
| 404 | if (result == null) result = caseRepositoryComponent(providesComponentType); |
| 405 | if (result == null) result = caseInterfaceProvidingRequiringEntity(providesComponentType); |
| 406 | if (result == null) result = caseInterfaceProvidingEntity(providesComponentType); |
| 407 | if (result == null) result = caseInterfaceRequiringEntity(providesComponentType); |
| 408 | if (result == null) result = caseResourceInterfaceRequiringEntity(providesComponentType); |
| 409 | if (result == null) result = caseEntity(providesComponentType); |
| 410 | if (result == null) result = caseIdentifier(providesComponentType); |
| 411 | if (result == null) result = caseNamedElement(providesComponentType); |
| 412 | if (result == null) result = defaultCase(theEObject); |
| 413 | return result; |
| 414 | } |
| 415 | case RepositoryPackage.COMPOSITE_COMPONENT: { |
| 416 | CompositeComponent compositeComponent = (CompositeComponent)theEObject; |
| 417 | T result = caseCompositeComponent(compositeComponent); |
| 418 | if (result == null) result = caseComposedProvidingRequiringEntity(compositeComponent); |
| 419 | if (result == null) result = caseImplementationComponentType(compositeComponent); |
| 420 | if (result == null) result = caseComposedStructure(compositeComponent); |
| 421 | if (result == null) result = caseRepositoryComponent(compositeComponent); |
| 422 | if (result == null) result = caseInterfaceProvidingRequiringEntity(compositeComponent); |
| 423 | if (result == null) result = caseInterfaceProvidingEntity(compositeComponent); |
| 424 | if (result == null) result = caseInterfaceRequiringEntity(compositeComponent); |
| 425 | if (result == null) result = caseIdentifier(compositeComponent); |
| 426 | if (result == null) result = caseNamedElement(compositeComponent); |
| 427 | if (result == null) result = caseResourceInterfaceRequiringEntity(compositeComponent); |
| 428 | if (result == null) result = caseEntity(compositeComponent); |
| 429 | if (result == null) result = defaultCase(theEObject); |
| 430 | return result; |
| 431 | } |
| 432 | case RepositoryPackage.PRIMITIVE_DATA_TYPE: { |
| 433 | PrimitiveDataType primitiveDataType = (PrimitiveDataType)theEObject; |
| 434 | T result = casePrimitiveDataType(primitiveDataType); |
| 435 | if (result == null) result = caseDataType(primitiveDataType); |
| 436 | if (result == null) result = defaultCase(theEObject); |
| 437 | return result; |
| 438 | } |
| 439 | case RepositoryPackage.COLLECTION_DATA_TYPE: { |
| 440 | CollectionDataType collectionDataType = (CollectionDataType)theEObject; |
| 441 | T result = caseCollectionDataType(collectionDataType); |
| 442 | if (result == null) result = caseEntity(collectionDataType); |
| 443 | if (result == null) result = caseDataType(collectionDataType); |
| 444 | if (result == null) result = caseIdentifier(collectionDataType); |
| 445 | if (result == null) result = caseNamedElement(collectionDataType); |
| 446 | if (result == null) result = defaultCase(theEObject); |
| 447 | return result; |
| 448 | } |
| 449 | case RepositoryPackage.COMPOSITE_DATA_TYPE: { |
| 450 | CompositeDataType compositeDataType = (CompositeDataType)theEObject; |
| 451 | T result = caseCompositeDataType(compositeDataType); |
| 452 | if (result == null) result = caseEntity(compositeDataType); |
| 453 | if (result == null) result = caseDataType(compositeDataType); |
| 454 | if (result == null) result = caseIdentifier(compositeDataType); |
| 455 | if (result == null) result = caseNamedElement(compositeDataType); |
| 456 | if (result == null) result = defaultCase(theEObject); |
| 457 | return result; |
| 458 | } |
| 459 | case RepositoryPackage.INNER_DECLARATION: { |
| 460 | InnerDeclaration innerDeclaration = (InnerDeclaration)theEObject; |
| 461 | T result = caseInnerDeclaration(innerDeclaration); |
| 462 | if (result == null) result = caseNamedElement(innerDeclaration); |
| 463 | if (result == null) result = defaultCase(theEObject); |
| 464 | return result; |
| 465 | } |
| 466 | case RepositoryPackage.ROLE: { |
| 467 | Role role = (Role)theEObject; |
| 468 | T result = caseRole(role); |
| 469 | if (result == null) result = caseEntity(role); |
| 470 | if (result == null) result = caseIdentifier(role); |
| 471 | if (result == null) result = caseNamedElement(role); |
| 472 | if (result == null) result = defaultCase(theEObject); |
| 473 | return result; |
| 474 | } |
| 475 | default: return defaultCase(theEObject); |
| 476 | } |
| 477 | } |
| 478 | |
| 479 | /** |
| 480 | * Returns the result of interpreting the object as an instance of '<em>Passive Resource</em>'. |
| 481 | * <!-- begin-user-doc --> |
| 482 | * This implementation returns null; |
| 483 | * returning a non-null result will terminate the switch. |
| 484 | * <!-- end-user-doc --> |
| 485 | * @param object the target of the switch. |
| 486 | * @return the result of interpreting the object as an instance of '<em>Passive Resource</em>'. |
| 487 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 488 | * @generated |
| 489 | */ |
| 490 | public T casePassiveResource(PassiveResource object) { |
| 491 | return null; |
| 492 | } |
| 493 | |
| 494 | /** |
| 495 | * Returns the result of interpreting the object as an instance of '<em>Basic Component</em>'. |
| 496 | * <!-- begin-user-doc --> |
| 497 | * This implementation returns null; |
| 498 | * returning a non-null result will terminate the switch. |
| 499 | * <!-- end-user-doc --> |
| 500 | * @param object the target of the switch. |
| 501 | * @return the result of interpreting the object as an instance of '<em>Basic Component</em>'. |
| 502 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 503 | * @generated |
| 504 | */ |
| 505 | public T caseBasicComponent(BasicComponent object) { |
| 506 | return null; |
| 507 | } |
| 508 | |
| 509 | /** |
| 510 | * Returns the result of interpreting the object as an instance of '<em>Implementation Component Type</em>'. |
| 511 | * <!-- begin-user-doc --> |
| 512 | * This implementation returns null; |
| 513 | * returning a non-null result will terminate the switch. |
| 514 | * <!-- end-user-doc --> |
| 515 | * @param object the target of the switch. |
| 516 | * @return the result of interpreting the object as an instance of '<em>Implementation Component Type</em>'. |
| 517 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 518 | * @generated |
| 519 | */ |
| 520 | public T caseImplementationComponentType(ImplementationComponentType object) { |
| 521 | return null; |
| 522 | } |
| 523 | |
| 524 | /** |
| 525 | * Returns the result of interpreting the object as an instance of '<em>Component</em>'. |
| 526 | * <!-- begin-user-doc --> |
| 527 | * This implementation returns null; |
| 528 | * returning a non-null result will terminate the switch. |
| 529 | * <!-- end-user-doc --> |
| 530 | * @param object the target of the switch. |
| 531 | * @return the result of interpreting the object as an instance of '<em>Component</em>'. |
| 532 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 533 | * @generated |
| 534 | */ |
| 535 | public T caseRepositoryComponent(RepositoryComponent object) { |
| 536 | return null; |
| 537 | } |
| 538 | |
| 539 | /** |
| 540 | * Returns the result of interpreting the object as an instance of '<em>Required Role</em>'. |
| 541 | * <!-- begin-user-doc --> |
| 542 | * This implementation returns null; |
| 543 | * returning a non-null result will terminate the switch. |
| 544 | * <!-- end-user-doc --> |
| 545 | * @param object the target of the switch. |
| 546 | * @return the result of interpreting the object as an instance of '<em>Required Role</em>'. |
| 547 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 548 | * @generated |
| 549 | */ |
| 550 | public T caseRequiredRole(RequiredRole object) { |
| 551 | return null; |
| 552 | } |
| 553 | |
| 554 | /** |
| 555 | * Returns the result of interpreting the object as an instance of '<em>Role</em>'. |
| 556 | * <!-- begin-user-doc --> |
| 557 | * This implementation returns null; |
| 558 | * returning a non-null result will terminate the switch. |
| 559 | * <!-- end-user-doc --> |
| 560 | * @param object the target of the switch. |
| 561 | * @return the result of interpreting the object as an instance of '<em>Role</em>'. |
| 562 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 563 | * @generated |
| 564 | */ |
| 565 | public T caseRole(Role object) { |
| 566 | return null; |
| 567 | } |
| 568 | |
| 569 | /** |
| 570 | * Returns the result of interpreting the object as an instance of '<em>Interface</em>'. |
| 571 | * <!-- begin-user-doc --> |
| 572 | * This implementation returns null; |
| 573 | * returning a non-null result will terminate the switch. |
| 574 | * <!-- end-user-doc --> |
| 575 | * @param object the target of the switch. |
| 576 | * @return the result of interpreting the object as an instance of '<em>Interface</em>'. |
| 577 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 578 | * @generated |
| 579 | */ |
| 580 | public T caseInterface(Interface object) { |
| 581 | return null; |
| 582 | } |
| 583 | |
| 584 | /** |
| 585 | * Returns the result of interpreting the object as an instance of '<em>Repository</em>'. |
| 586 | * <!-- begin-user-doc --> |
| 587 | * This implementation returns null; |
| 588 | * returning a non-null result will terminate the switch. |
| 589 | * <!-- end-user-doc --> |
| 590 | * @param object the target of the switch. |
| 591 | * @return the result of interpreting the object as an instance of '<em>Repository</em>'. |
| 592 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 593 | * @generated |
| 594 | */ |
| 595 | public T caseRepository(Repository object) { |
| 596 | return null; |
| 597 | } |
| 598 | |
| 599 | /** |
| 600 | * Returns the result of interpreting the object as an instance of '<em>Data Type</em>'. |
| 601 | * <!-- begin-user-doc --> |
| 602 | * This implementation returns null; |
| 603 | * returning a non-null result will terminate the switch. |
| 604 | * <!-- end-user-doc --> |
| 605 | * @param object the target of the switch. |
| 606 | * @return the result of interpreting the object as an instance of '<em>Data Type</em>'. |
| 607 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 608 | * @generated |
| 609 | */ |
| 610 | public T caseDataType(DataType object) { |
| 611 | return null; |
| 612 | } |
| 613 | |
| 614 | /** |
| 615 | * Returns the result of interpreting the object as an instance of '<em>Required Characterisation</em>'. |
| 616 | * <!-- begin-user-doc --> |
| 617 | * This implementation returns null; |
| 618 | * returning a non-null result will terminate the switch. |
| 619 | * <!-- end-user-doc --> |
| 620 | * @param object the target of the switch. |
| 621 | * @return the result of interpreting the object as an instance of '<em>Required Characterisation</em>'. |
| 622 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 623 | * @generated |
| 624 | */ |
| 625 | public T caseRequiredCharacterisation(RequiredCharacterisation object) { |
| 626 | return null; |
| 627 | } |
| 628 | |
| 629 | /** |
| 630 | * Returns the result of interpreting the object as an instance of '<em>Parameter</em>'. |
| 631 | * <!-- begin-user-doc --> |
| 632 | * This implementation returns null; |
| 633 | * returning a non-null result will terminate the switch. |
| 634 | * <!-- end-user-doc --> |
| 635 | * @param object the target of the switch. |
| 636 | * @return the result of interpreting the object as an instance of '<em>Parameter</em>'. |
| 637 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 638 | * @generated |
| 639 | */ |
| 640 | public T caseParameter(Parameter object) { |
| 641 | return null; |
| 642 | } |
| 643 | |
| 644 | /** |
| 645 | * Returns the result of interpreting the object as an instance of '<em>Operation Signature</em>'. |
| 646 | * <!-- begin-user-doc --> |
| 647 | * This implementation returns null; |
| 648 | * returning a non-null result will terminate the switch. |
| 649 | * <!-- end-user-doc --> |
| 650 | * @param object the target of the switch. |
| 651 | * @return the result of interpreting the object as an instance of '<em>Operation Signature</em>'. |
| 652 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 653 | * @generated |
| 654 | */ |
| 655 | public T caseOperationSignature(OperationSignature object) { |
| 656 | return null; |
| 657 | } |
| 658 | |
| 659 | /** |
| 660 | * Returns the result of interpreting the object as an instance of '<em>Signature</em>'. |
| 661 | * <!-- begin-user-doc --> |
| 662 | * This implementation returns null; |
| 663 | * returning a non-null result will terminate the switch. |
| 664 | * <!-- end-user-doc --> |
| 665 | * @param object the target of the switch. |
| 666 | * @return the result of interpreting the object as an instance of '<em>Signature</em>'. |
| 667 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 668 | * @generated |
| 669 | */ |
| 670 | public T caseSignature(Signature object) { |
| 671 | return null; |
| 672 | } |
| 673 | |
| 674 | /** |
| 675 | * Returns the result of interpreting the object as an instance of '<em>Exception Type</em>'. |
| 676 | * <!-- begin-user-doc --> |
| 677 | * This implementation returns null; |
| 678 | * returning a non-null result will terminate the switch. |
| 679 | * <!-- end-user-doc --> |
| 680 | * @param object the target of the switch. |
| 681 | * @return the result of interpreting the object as an instance of '<em>Exception Type</em>'. |
| 682 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 683 | * @generated |
| 684 | */ |
| 685 | public T caseExceptionType(ExceptionType object) { |
| 686 | return null; |
| 687 | } |
| 688 | |
| 689 | /** |
| 690 | * Returns the result of interpreting the object as an instance of '<em>Operation Interface</em>'. |
| 691 | * <!-- begin-user-doc --> |
| 692 | * This implementation returns null; |
| 693 | * returning a non-null result will terminate the switch. |
| 694 | * <!-- end-user-doc --> |
| 695 | * @param object the target of the switch. |
| 696 | * @return the result of interpreting the object as an instance of '<em>Operation Interface</em>'. |
| 697 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 698 | * @generated |
| 699 | */ |
| 700 | public T caseOperationInterface(OperationInterface object) { |
| 701 | return null; |
| 702 | } |
| 703 | |
| 704 | /** |
| 705 | * Returns the result of interpreting the object as an instance of '<em>Infrastructure Signature</em>'. |
| 706 | * <!-- begin-user-doc --> |
| 707 | * This implementation returns null; |
| 708 | * returning a non-null result will terminate the switch. |
| 709 | * <!-- end-user-doc --> |
| 710 | * @param object the target of the switch. |
| 711 | * @return the result of interpreting the object as an instance of '<em>Infrastructure Signature</em>'. |
| 712 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 713 | * @generated |
| 714 | */ |
| 715 | public T caseInfrastructureSignature(InfrastructureSignature object) { |
| 716 | return null; |
| 717 | } |
| 718 | |
| 719 | /** |
| 720 | * Returns the result of interpreting the object as an instance of '<em>Infrastructure Required Role</em>'. |
| 721 | * <!-- begin-user-doc --> |
| 722 | * This implementation returns null; |
| 723 | * returning a non-null result will terminate the switch. |
| 724 | * <!-- end-user-doc --> |
| 725 | * @param object the target of the switch. |
| 726 | * @return the result of interpreting the object as an instance of '<em>Infrastructure Required Role</em>'. |
| 727 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 728 | * @generated |
| 729 | */ |
| 730 | public T caseInfrastructureRequiredRole(InfrastructureRequiredRole object) { |
| 731 | return null; |
| 732 | } |
| 733 | |
| 734 | /** |
| 735 | * Returns the result of interpreting the object as an instance of '<em>Event Type</em>'. |
| 736 | * <!-- begin-user-doc --> |
| 737 | * This implementation returns null; |
| 738 | * returning a non-null result will terminate the switch. |
| 739 | * <!-- end-user-doc --> |
| 740 | * @param object the target of the switch. |
| 741 | * @return the result of interpreting the object as an instance of '<em>Event Type</em>'. |
| 742 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 743 | * @generated |
| 744 | */ |
| 745 | public T caseEventType(EventType object) { |
| 746 | return null; |
| 747 | } |
| 748 | |
| 749 | /** |
| 750 | * Returns the result of interpreting the object as an instance of '<em>Event Group</em>'. |
| 751 | * <!-- begin-user-doc --> |
| 752 | * This implementation returns null; |
| 753 | * returning a non-null result will terminate the switch. |
| 754 | * <!-- end-user-doc --> |
| 755 | * @param object the target of the switch. |
| 756 | * @return the result of interpreting the object as an instance of '<em>Event Group</em>'. |
| 757 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 758 | * @generated |
| 759 | */ |
| 760 | public T caseEventGroup(EventGroup object) { |
| 761 | return null; |
| 762 | } |
| 763 | |
| 764 | /** |
| 765 | * Returns the result of interpreting the object as an instance of '<em>Complete Component Type</em>'. |
| 766 | * <!-- begin-user-doc --> |
| 767 | * This implementation returns null; |
| 768 | * returning a non-null result will terminate the switch. |
| 769 | * <!-- end-user-doc --> |
| 770 | * @param object the target of the switch. |
| 771 | * @return the result of interpreting the object as an instance of '<em>Complete Component Type</em>'. |
| 772 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 773 | * @generated |
| 774 | */ |
| 775 | public T caseCompleteComponentType(CompleteComponentType object) { |
| 776 | return null; |
| 777 | } |
| 778 | |
| 779 | /** |
| 780 | * Returns the result of interpreting the object as an instance of '<em>Provides Component Type</em>'. |
| 781 | * <!-- begin-user-doc --> |
| 782 | * This implementation returns null; |
| 783 | * returning a non-null result will terminate the switch. |
| 784 | * <!-- end-user-doc --> |
| 785 | * @param object the target of the switch. |
| 786 | * @return the result of interpreting the object as an instance of '<em>Provides Component Type</em>'. |
| 787 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 788 | * @generated |
| 789 | */ |
| 790 | public T caseProvidesComponentType(ProvidesComponentType object) { |
| 791 | return null; |
| 792 | } |
| 793 | |
| 794 | /** |
| 795 | * Returns the result of interpreting the object as an instance of '<em>Operation Required Role</em>'. |
| 796 | * <!-- begin-user-doc --> |
| 797 | * This implementation returns null; |
| 798 | * returning a non-null result will terminate the switch. |
| 799 | * <!-- end-user-doc --> |
| 800 | * @param object the target of the switch. |
| 801 | * @return the result of interpreting the object as an instance of '<em>Operation Required Role</em>'. |
| 802 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 803 | * @generated |
| 804 | */ |
| 805 | public T caseOperationRequiredRole(OperationRequiredRole object) { |
| 806 | return null; |
| 807 | } |
| 808 | |
| 809 | /** |
| 810 | * Returns the result of interpreting the object as an instance of '<em>Source Role</em>'. |
| 811 | * <!-- begin-user-doc --> |
| 812 | * This implementation returns null; |
| 813 | * returning a non-null result will terminate the switch. |
| 814 | * <!-- end-user-doc --> |
| 815 | * @param object the target of the switch. |
| 816 | * @return the result of interpreting the object as an instance of '<em>Source Role</em>'. |
| 817 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 818 | * @generated |
| 819 | */ |
| 820 | public T caseSourceRole(SourceRole object) { |
| 821 | return null; |
| 822 | } |
| 823 | |
| 824 | /** |
| 825 | * Returns the result of interpreting the object as an instance of '<em>Infrastructure Provided Role</em>'. |
| 826 | * <!-- begin-user-doc --> |
| 827 | * This implementation returns null; |
| 828 | * returning a non-null result will terminate the switch. |
| 829 | * <!-- end-user-doc --> |
| 830 | * @param object the target of the switch. |
| 831 | * @return the result of interpreting the object as an instance of '<em>Infrastructure Provided Role</em>'. |
| 832 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 833 | * @generated |
| 834 | */ |
| 835 | public T caseInfrastructureProvidedRole(InfrastructureProvidedRole object) { |
| 836 | return null; |
| 837 | } |
| 838 | |
| 839 | /** |
| 840 | * Returns the result of interpreting the object as an instance of '<em>Operation Provided Role</em>'. |
| 841 | * <!-- begin-user-doc --> |
| 842 | * This implementation returns null; |
| 843 | * returning a non-null result will terminate the switch. |
| 844 | * <!-- end-user-doc --> |
| 845 | * @param object the target of the switch. |
| 846 | * @return the result of interpreting the object as an instance of '<em>Operation Provided Role</em>'. |
| 847 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 848 | * @generated |
| 849 | */ |
| 850 | public T caseOperationProvidedRole(OperationProvidedRole object) { |
| 851 | return null; |
| 852 | } |
| 853 | |
| 854 | /** |
| 855 | * Returns the result of interpreting the object as an instance of '<em>Composite Component</em>'. |
| 856 | * <!-- begin-user-doc --> |
| 857 | * This implementation returns null; |
| 858 | * returning a non-null result will terminate the switch. |
| 859 | * <!-- end-user-doc --> |
| 860 | * @param object the target of the switch. |
| 861 | * @return the result of interpreting the object as an instance of '<em>Composite Component</em>'. |
| 862 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 863 | * @generated |
| 864 | */ |
| 865 | public T caseCompositeComponent(CompositeComponent object) { |
| 866 | return null; |
| 867 | } |
| 868 | |
| 869 | /** |
| 870 | * Returns the result of interpreting the object as an instance of '<em>Sink Role</em>'. |
| 871 | * <!-- begin-user-doc --> |
| 872 | * This implementation returns null; |
| 873 | * returning a non-null result will terminate the switch. |
| 874 | * <!-- end-user-doc --> |
| 875 | * @param object the target of the switch. |
| 876 | * @return the result of interpreting the object as an instance of '<em>Sink Role</em>'. |
| 877 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 878 | * @generated |
| 879 | */ |
| 880 | public T caseSinkRole(SinkRole object) { |
| 881 | return null; |
| 882 | } |
| 883 | |
| 884 | /** |
| 885 | * Returns the result of interpreting the object as an instance of '<em>Primitive Data Type</em>'. |
| 886 | * <!-- begin-user-doc --> |
| 887 | * This implementation returns null; |
| 888 | * returning a non-null result will terminate the switch. |
| 889 | * <!-- end-user-doc --> |
| 890 | * @param object the target of the switch. |
| 891 | * @return the result of interpreting the object as an instance of '<em>Primitive Data Type</em>'. |
| 892 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 893 | * @generated |
| 894 | */ |
| 895 | public T casePrimitiveDataType(PrimitiveDataType object) { |
| 896 | return null; |
| 897 | } |
| 898 | |
| 899 | /** |
| 900 | * Returns the result of interpreting the object as an instance of '<em>Collection Data Type</em>'. |
| 901 | * <!-- begin-user-doc --> |
| 902 | * This implementation returns null; |
| 903 | * returning a non-null result will terminate the switch. |
| 904 | * <!-- end-user-doc --> |
| 905 | * @param object the target of the switch. |
| 906 | * @return the result of interpreting the object as an instance of '<em>Collection Data Type</em>'. |
| 907 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 908 | * @generated |
| 909 | */ |
| 910 | public T caseCollectionDataType(CollectionDataType object) { |
| 911 | return null; |
| 912 | } |
| 913 | |
| 914 | /** |
| 915 | * Returns the result of interpreting the object as an instance of '<em>Composite Data Type</em>'. |
| 916 | * <!-- begin-user-doc --> |
| 917 | * This implementation returns null; |
| 918 | * returning a non-null result will terminate the switch. |
| 919 | * <!-- end-user-doc --> |
| 920 | * @param object the target of the switch. |
| 921 | * @return the result of interpreting the object as an instance of '<em>Composite Data Type</em>'. |
| 922 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 923 | * @generated |
| 924 | */ |
| 925 | public T caseCompositeDataType(CompositeDataType object) { |
| 926 | return null; |
| 927 | } |
| 928 | |
| 929 | /** |
| 930 | * Returns the result of interpreting the object as an instance of '<em>Inner Declaration</em>'. |
| 931 | * <!-- begin-user-doc --> |
| 932 | * This implementation returns null; |
| 933 | * returning a non-null result will terminate the switch. |
| 934 | * <!-- end-user-doc --> |
| 935 | * @param object the target of the switch. |
| 936 | * @return the result of interpreting the object as an instance of '<em>Inner Declaration</em>'. |
| 937 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 938 | * @generated |
| 939 | */ |
| 940 | public T caseInnerDeclaration(InnerDeclaration object) { |
| 941 | return null; |
| 942 | } |
| 943 | |
| 944 | /** |
| 945 | * Returns the result of interpreting the object as an instance of '<em>Infrastructure Interface</em>'. |
| 946 | * <!-- begin-user-doc --> |
| 947 | * This implementation returns null; |
| 948 | * returning a non-null result will terminate the switch. |
| 949 | * <!-- end-user-doc --> |
| 950 | * @param object the target of the switch. |
| 951 | * @return the result of interpreting the object as an instance of '<em>Infrastructure Interface</em>'. |
| 952 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 953 | * @generated |
| 954 | */ |
| 955 | public T caseInfrastructureInterface(InfrastructureInterface object) { |
| 956 | return null; |
| 957 | } |
| 958 | |
| 959 | /** |
| 960 | * Returns the result of interpreting the object as an instance of '<em>Provided Role</em>'. |
| 961 | * <!-- begin-user-doc --> |
| 962 | * This implementation returns null; |
| 963 | * returning a non-null result will terminate the switch. |
| 964 | * <!-- end-user-doc --> |
| 965 | * @param object the target of the switch. |
| 966 | * @return the result of interpreting the object as an instance of '<em>Provided Role</em>'. |
| 967 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 968 | * @generated |
| 969 | */ |
| 970 | public T caseProvidedRole(ProvidedRole object) { |
| 971 | return null; |
| 972 | } |
| 973 | |
| 974 | /** |
| 975 | * Returns the result of interpreting the object as an instance of '<em>Identifier</em>'. |
| 976 | * <!-- begin-user-doc --> |
| 977 | * This implementation returns null; |
| 978 | * returning a non-null result will terminate the switch. |
| 979 | * <!-- end-user-doc --> |
| 980 | * @param object the target of the switch. |
| 981 | * @return the result of interpreting the object as an instance of '<em>Identifier</em>'. |
| 982 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 983 | * @generated |
| 984 | */ |
| 985 | public T caseIdentifier(Identifier object) { |
| 986 | return null; |
| 987 | } |
| 988 | |
| 989 | /** |
| 990 | * Returns the result of interpreting the object as an instance of '<em>Named Element</em>'. |
| 991 | * <!-- begin-user-doc --> |
| 992 | * This implementation returns null; |
| 993 | * returning a non-null result will terminate the switch. |
| 994 | * <!-- end-user-doc --> |
| 995 | * @param object the target of the switch. |
| 996 | * @return the result of interpreting the object as an instance of '<em>Named Element</em>'. |
| 997 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 998 | * @generated |
| 999 | */ |
| 1000 | public T caseNamedElement(NamedElement object) { |
| 1001 | return null; |
| 1002 | } |
| 1003 | |
| 1004 | /** |
| 1005 | * Returns the result of interpreting the object as an instance of '<em>Entity</em>'. |
| 1006 | * <!-- begin-user-doc --> |
| 1007 | * This implementation returns null; |
| 1008 | * returning a non-null result will terminate the switch. |
| 1009 | * <!-- end-user-doc --> |
| 1010 | * @param object the target of the switch. |
| 1011 | * @return the result of interpreting the object as an instance of '<em>Entity</em>'. |
| 1012 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 1013 | * @generated |
| 1014 | */ |
| 1015 | public T caseEntity(Entity object) { |
| 1016 | return null; |
| 1017 | } |
| 1018 | |
| 1019 | /** |
| 1020 | * Returns the result of interpreting the object as an instance of '<em>Interface Providing Entity</em>'. |
| 1021 | * <!-- begin-user-doc --> |
| 1022 | * This implementation returns null; |
| 1023 | * returning a non-null result will terminate the switch. |
| 1024 | * <!-- end-user-doc --> |
| 1025 | * @param object the target of the switch. |
| 1026 | * @return the result of interpreting the object as an instance of '<em>Interface Providing Entity</em>'. |
| 1027 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 1028 | * @generated |
| 1029 | */ |
| 1030 | public T caseInterfaceProvidingEntity(InterfaceProvidingEntity object) { |
| 1031 | return null; |
| 1032 | } |
| 1033 | |
| 1034 | /** |
| 1035 | * Returns the result of interpreting the object as an instance of '<em>Interface Requiring Entity</em>'. |
| 1036 | * <!-- begin-user-doc --> |
| 1037 | * This implementation returns null; |
| 1038 | * returning a non-null result will terminate the switch. |
| 1039 | * <!-- end-user-doc --> |
| 1040 | * @param object the target of the switch. |
| 1041 | * @return the result of interpreting the object as an instance of '<em>Interface Requiring Entity</em>'. |
| 1042 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 1043 | * @generated |
| 1044 | */ |
| 1045 | public T caseInterfaceRequiringEntity(InterfaceRequiringEntity object) { |
| 1046 | return null; |
| 1047 | } |
| 1048 | |
| 1049 | /** |
| 1050 | * Returns the result of interpreting the object as an instance of '<em>Resource Interface Requiring Entity</em>'. |
| 1051 | * <!-- begin-user-doc --> |
| 1052 | * This implementation returns null; |
| 1053 | * returning a non-null result will terminate the switch. |
| 1054 | * <!-- end-user-doc --> |
| 1055 | * @param object the target of the switch. |
| 1056 | * @return the result of interpreting the object as an instance of '<em>Resource Interface Requiring Entity</em>'. |
| 1057 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 1058 | * @generated |
| 1059 | */ |
| 1060 | public T caseResourceInterfaceRequiringEntity(ResourceInterfaceRequiringEntity object) { |
| 1061 | return null; |
| 1062 | } |
| 1063 | |
| 1064 | /** |
| 1065 | * Returns the result of interpreting the object as an instance of '<em>Interface Providing Requiring Entity</em>'. |
| 1066 | * <!-- begin-user-doc --> |
| 1067 | * This implementation returns null; |
| 1068 | * returning a non-null result will terminate the switch. |
| 1069 | * <!-- end-user-doc --> |
| 1070 | * @param object the target of the switch. |
| 1071 | * @return the result of interpreting the object as an instance of '<em>Interface Providing Requiring Entity</em>'. |
| 1072 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 1073 | * @generated |
| 1074 | */ |
| 1075 | public T caseInterfaceProvidingRequiringEntity(InterfaceProvidingRequiringEntity object) { |
| 1076 | return null; |
| 1077 | } |
| 1078 | |
| 1079 | /** |
| 1080 | * Returns the result of interpreting the object as an instance of '<em>Composed Structure</em>'. |
| 1081 | * <!-- begin-user-doc --> |
| 1082 | * This implementation returns null; |
| 1083 | * returning a non-null result will terminate the switch. |
| 1084 | * <!-- end-user-doc --> |
| 1085 | * @param object the target of the switch. |
| 1086 | * @return the result of interpreting the object as an instance of '<em>Composed Structure</em>'. |
| 1087 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 1088 | * @generated |
| 1089 | */ |
| 1090 | public T caseComposedStructure(ComposedStructure object) { |
| 1091 | return null; |
| 1092 | } |
| 1093 | |
| 1094 | /** |
| 1095 | * Returns the result of interpreting the object as an instance of '<em>Composed Providing Requiring Entity</em>'. |
| 1096 | * <!-- begin-user-doc --> |
| 1097 | * This implementation returns null; |
| 1098 | * returning a non-null result will terminate the switch. |
| 1099 | * <!-- end-user-doc --> |
| 1100 | * @param object the target of the switch. |
| 1101 | * @return the result of interpreting the object as an instance of '<em>Composed Providing Requiring Entity</em>'. |
| 1102 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 1103 | * @generated |
| 1104 | */ |
| 1105 | public T caseComposedProvidingRequiringEntity(ComposedProvidingRequiringEntity object) { |
| 1106 | return null; |
| 1107 | } |
| 1108 | |
| 1109 | /** |
| 1110 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. |
| 1111 | * <!-- begin-user-doc --> |
| 1112 | * This implementation returns null; |
| 1113 | * returning a non-null result will terminate the switch, but this is the last case anyway. |
| 1114 | * <!-- end-user-doc --> |
| 1115 | * @param object the target of the switch. |
| 1116 | * @return the result of interpreting the object as an instance of '<em>EObject</em>'. |
| 1117 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) |
| 1118 | * @generated |
| 1119 | */ |
| 1120 | public T defaultCase(EObject object) { |
| 1121 | return null; |
| 1122 | } |
| 1123 | |
| 1124 | } //RepositorySwitch |