| 1 | /** |
| 2 | * <copyright> |
| 3 | * </copyright> |
| 4 | * |
| 5 | * $Id$ |
| 6 | */ |
| 7 | package EMOF.util; |
| 8 | |
| 9 | import EMOF.Comment; |
| 10 | import EMOF.DataType; |
| 11 | import EMOF.EMOFPackage; |
| 12 | import EMOF.Element; |
| 13 | import EMOF.Enumeration; |
| 14 | import EMOF.EnumerationLiteral; |
| 15 | import EMOF.Extent; |
| 16 | import EMOF.Factory; |
| 17 | import EMOF.MultiplicityElement; |
| 18 | import EMOF.NamedElement; |
| 19 | import EMOF.Operation; |
| 20 | import EMOF.Parameter; |
| 21 | import EMOF.PrimitiveType; |
| 22 | import EMOF.Property; |
| 23 | import EMOF.ReflectiveCollection; |
| 24 | import EMOF.ReflectiveSequence; |
| 25 | import EMOF.Tag; |
| 26 | import EMOF.Type; |
| 27 | import EMOF.TypedElement; |
| 28 | import EMOF.URIExtent; |
| 29 | |
| 30 | import java.util.List; |
| 31 | |
| 32 | import org.eclipse.emf.ecore.EClass; |
| 33 | import org.eclipse.emf.ecore.EObject; |
| 34 | |
| 35 | /** |
| 36 | * <!-- begin-user-doc --> |
| 37 | * The <b>Switch</b> for the model's inheritance hierarchy. |
| 38 | * It supports the call {@link #doSwitch(EObject) doSwitch(object)} |
| 39 | * to invoke the <code>caseXXX</code> method for each class of the model, |
| 40 | * starting with the actual class of the object |
| 41 | * and proceeding up the inheritance hierarchy |
| 42 | * until a non-null result is returned, |
| 43 | * which is the result of the switch. |
| 44 | * <!-- end-user-doc --> |
| 45 | * @see EMOF.EMOFPackage |
| 46 | * @generated |
| 47 | */ |
| 48 | public class EMOFSwitch<T> { |
| 49 | /** |
| 50 | * The cached model package |
| 51 | * <!-- begin-user-doc --> |
| 52 | * <!-- end-user-doc --> |
| 53 | * @generated |
| 54 | */ |
| 55 | protected static EMOFPackage modelPackage; |
| 56 | |
| 57 | /** |
| 58 | * Creates an instance of the switch. |
| 59 | * <!-- begin-user-doc --> |
| 60 | * <!-- end-user-doc --> |
| 61 | * @generated |
| 62 | */ |
| 63 | public EMOFSwitch() { |
| 64 | if (modelPackage == null) { |
| 65 | modelPackage = EMOFPackage.eINSTANCE; |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | /** |
| 70 | * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. |
| 71 | * <!-- begin-user-doc --> |
| 72 | * <!-- end-user-doc --> |
| 73 | * @return the first non-null result returned by a <code>caseXXX</code> call. |
| 74 | * @generated |
| 75 | */ |
| 76 | public T doSwitch(EObject theEObject) { |
| 77 | return doSwitch(theEObject.eClass(), theEObject); |
| 78 | } |
| 79 | |
| 80 | /** |
| 81 | * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. |
| 82 | * <!-- begin-user-doc --> |
| 83 | * <!-- end-user-doc --> |
| 84 | * @return the first non-null result returned by a <code>caseXXX</code> call. |
| 85 | * @generated |
| 86 | */ |
| 87 | protected T doSwitch(EClass theEClass, EObject theEObject) { |
| 88 | if (theEClass.eContainer() == modelPackage) { |
| 89 | return doSwitch(theEClass.getClassifierID(), theEObject); |
| 90 | } |
| 91 | else { |
| 92 | List<EClass> eSuperTypes = theEClass.getESuperTypes(); |
| 93 | return |
| 94 | eSuperTypes.isEmpty() ? |
| 95 | defaultCase(theEObject) : |
| 96 | doSwitch(eSuperTypes.get(0), theEObject); |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | /** |
| 101 | * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. |
| 102 | * <!-- begin-user-doc --> |
| 103 | * <!-- end-user-doc --> |
| 104 | * @return the first non-null result returned by a <code>caseXXX</code> call. |
| 105 | * @generated |
| 106 | */ |
| 107 | protected T doSwitch(int classifierID, EObject theEObject) { |
| 108 | switch (classifierID) { |
| 109 | case EMOFPackage.CLASS: { |
| 110 | EMOF.Class class_ = (EMOF.Class)theEObject; |
| 111 | T result = caseClass(class_); |
| 112 | if (result == null) result = caseType(class_); |
| 113 | if (result == null) result = caseNamedElement(class_); |
| 114 | if (result == null) result = caseElement(class_); |
| 115 | if (result == null) result = caseObject(class_); |
| 116 | if (result == null) result = defaultCase(theEObject); |
| 117 | return result; |
| 118 | } |
| 119 | case EMOFPackage.COMMENT: { |
| 120 | Comment comment = (Comment)theEObject; |
| 121 | T result = caseComment(comment); |
| 122 | if (result == null) result = caseElement(comment); |
| 123 | if (result == null) result = caseObject(comment); |
| 124 | if (result == null) result = defaultCase(theEObject); |
| 125 | return result; |
| 126 | } |
| 127 | case EMOFPackage.DATA_TYPE: { |
| 128 | DataType dataType = (DataType)theEObject; |
| 129 | T result = caseDataType(dataType); |
| 130 | if (result == null) result = caseType(dataType); |
| 131 | if (result == null) result = caseNamedElement(dataType); |
| 132 | if (result == null) result = caseElement(dataType); |
| 133 | if (result == null) result = caseObject(dataType); |
| 134 | if (result == null) result = defaultCase(theEObject); |
| 135 | return result; |
| 136 | } |
| 137 | case EMOFPackage.ELEMENT: { |
| 138 | Element element = (Element)theEObject; |
| 139 | T result = caseElement(element); |
| 140 | if (result == null) result = caseObject(element); |
| 141 | if (result == null) result = defaultCase(theEObject); |
| 142 | return result; |
| 143 | } |
| 144 | case EMOFPackage.ENUMERATION: { |
| 145 | Enumeration enumeration = (Enumeration)theEObject; |
| 146 | T result = caseEnumeration(enumeration); |
| 147 | if (result == null) result = caseDataType(enumeration); |
| 148 | if (result == null) result = caseType(enumeration); |
| 149 | if (result == null) result = caseNamedElement(enumeration); |
| 150 | if (result == null) result = caseElement(enumeration); |
| 151 | if (result == null) result = caseObject(enumeration); |
| 152 | if (result == null) result = defaultCase(theEObject); |
| 153 | return result; |
| 154 | } |
| 155 | case EMOFPackage.ENUMERATION_LITERAL: { |
| 156 | EnumerationLiteral enumerationLiteral = (EnumerationLiteral)theEObject; |
| 157 | T result = caseEnumerationLiteral(enumerationLiteral); |
| 158 | if (result == null) result = caseNamedElement(enumerationLiteral); |
| 159 | if (result == null) result = caseElement(enumerationLiteral); |
| 160 | if (result == null) result = caseObject(enumerationLiteral); |
| 161 | if (result == null) result = defaultCase(theEObject); |
| 162 | return result; |
| 163 | } |
| 164 | case EMOFPackage.EXTENT: { |
| 165 | Extent extent = (Extent)theEObject; |
| 166 | T result = caseExtent(extent); |
| 167 | if (result == null) result = caseObject(extent); |
| 168 | if (result == null) result = defaultCase(theEObject); |
| 169 | return result; |
| 170 | } |
| 171 | case EMOFPackage.FACTORY: { |
| 172 | Factory factory = (Factory)theEObject; |
| 173 | T result = caseFactory(factory); |
| 174 | if (result == null) result = caseElement(factory); |
| 175 | if (result == null) result = caseObject(factory); |
| 176 | if (result == null) result = defaultCase(theEObject); |
| 177 | return result; |
| 178 | } |
| 179 | case EMOFPackage.MULTIPLICITY_ELEMENT: { |
| 180 | MultiplicityElement multiplicityElement = (MultiplicityElement)theEObject; |
| 181 | T result = caseMultiplicityElement(multiplicityElement); |
| 182 | if (result == null) result = defaultCase(theEObject); |
| 183 | return result; |
| 184 | } |
| 185 | case EMOFPackage.NAMED_ELEMENT: { |
| 186 | NamedElement namedElement = (NamedElement)theEObject; |
| 187 | T result = caseNamedElement(namedElement); |
| 188 | if (result == null) result = caseElement(namedElement); |
| 189 | if (result == null) result = caseObject(namedElement); |
| 190 | if (result == null) result = defaultCase(theEObject); |
| 191 | return result; |
| 192 | } |
| 193 | case EMOFPackage.OBJECT: { |
| 194 | EMOF.Object object = (EMOF.Object)theEObject; |
| 195 | T result = caseObject(object); |
| 196 | if (result == null) result = defaultCase(theEObject); |
| 197 | return result; |
| 198 | } |
| 199 | case EMOFPackage.OPERATION: { |
| 200 | Operation operation = (Operation)theEObject; |
| 201 | T result = caseOperation(operation); |
| 202 | if (result == null) result = caseTypedElement(operation); |
| 203 | if (result == null) result = caseMultiplicityElement(operation); |
| 204 | if (result == null) result = caseNamedElement(operation); |
| 205 | if (result == null) result = caseElement(operation); |
| 206 | if (result == null) result = caseObject(operation); |
| 207 | if (result == null) result = defaultCase(theEObject); |
| 208 | return result; |
| 209 | } |
| 210 | case EMOFPackage.PACKAGE: { |
| 211 | EMOF.Package package_ = (EMOF.Package)theEObject; |
| 212 | T result = casePackage(package_); |
| 213 | if (result == null) result = caseNamedElement(package_); |
| 214 | if (result == null) result = caseElement(package_); |
| 215 | if (result == null) result = caseObject(package_); |
| 216 | if (result == null) result = defaultCase(theEObject); |
| 217 | return result; |
| 218 | } |
| 219 | case EMOFPackage.PARAMETER: { |
| 220 | Parameter parameter = (Parameter)theEObject; |
| 221 | T result = caseParameter(parameter); |
| 222 | if (result == null) result = caseTypedElement(parameter); |
| 223 | if (result == null) result = caseMultiplicityElement(parameter); |
| 224 | if (result == null) result = caseNamedElement(parameter); |
| 225 | if (result == null) result = caseElement(parameter); |
| 226 | if (result == null) result = caseObject(parameter); |
| 227 | if (result == null) result = defaultCase(theEObject); |
| 228 | return result; |
| 229 | } |
| 230 | case EMOFPackage.PRIMITIVE_TYPE: { |
| 231 | PrimitiveType primitiveType = (PrimitiveType)theEObject; |
| 232 | T result = casePrimitiveType(primitiveType); |
| 233 | if (result == null) result = caseDataType(primitiveType); |
| 234 | if (result == null) result = caseType(primitiveType); |
| 235 | if (result == null) result = caseNamedElement(primitiveType); |
| 236 | if (result == null) result = caseElement(primitiveType); |
| 237 | if (result == null) result = caseObject(primitiveType); |
| 238 | if (result == null) result = defaultCase(theEObject); |
| 239 | return result; |
| 240 | } |
| 241 | case EMOFPackage.PROPERTY: { |
| 242 | Property property = (Property)theEObject; |
| 243 | T result = caseProperty(property); |
| 244 | if (result == null) result = caseTypedElement(property); |
| 245 | if (result == null) result = caseMultiplicityElement(property); |
| 246 | if (result == null) result = caseNamedElement(property); |
| 247 | if (result == null) result = caseElement(property); |
| 248 | if (result == null) result = caseObject(property); |
| 249 | if (result == null) result = defaultCase(theEObject); |
| 250 | return result; |
| 251 | } |
| 252 | case EMOFPackage.REFLECTIVE_COLLECTION: { |
| 253 | ReflectiveCollection reflectiveCollection = (ReflectiveCollection)theEObject; |
| 254 | T result = caseReflectiveCollection(reflectiveCollection); |
| 255 | if (result == null) result = caseObject(reflectiveCollection); |
| 256 | if (result == null) result = defaultCase(theEObject); |
| 257 | return result; |
| 258 | } |
| 259 | case EMOFPackage.REFLECTIVE_SEQUENCE: { |
| 260 | ReflectiveSequence reflectiveSequence = (ReflectiveSequence)theEObject; |
| 261 | T result = caseReflectiveSequence(reflectiveSequence); |
| 262 | if (result == null) result = caseReflectiveCollection(reflectiveSequence); |
| 263 | if (result == null) result = caseObject(reflectiveSequence); |
| 264 | if (result == null) result = defaultCase(theEObject); |
| 265 | return result; |
| 266 | } |
| 267 | case EMOFPackage.TAG: { |
| 268 | Tag tag = (Tag)theEObject; |
| 269 | T result = caseTag(tag); |
| 270 | if (result == null) result = caseElement(tag); |
| 271 | if (result == null) result = caseObject(tag); |
| 272 | if (result == null) result = defaultCase(theEObject); |
| 273 | return result; |
| 274 | } |
| 275 | case EMOFPackage.TYPE: { |
| 276 | Type type = (Type)theEObject; |
| 277 | T result = caseType(type); |
| 278 | if (result == null) result = caseNamedElement(type); |
| 279 | if (result == null) result = caseElement(type); |
| 280 | if (result == null) result = caseObject(type); |
| 281 | if (result == null) result = defaultCase(theEObject); |
| 282 | return result; |
| 283 | } |
| 284 | case EMOFPackage.TYPED_ELEMENT: { |
| 285 | TypedElement typedElement = (TypedElement)theEObject; |
| 286 | T result = caseTypedElement(typedElement); |
| 287 | if (result == null) result = caseNamedElement(typedElement); |
| 288 | if (result == null) result = caseElement(typedElement); |
| 289 | if (result == null) result = caseObject(typedElement); |
| 290 | if (result == null) result = defaultCase(theEObject); |
| 291 | return result; |
| 292 | } |
| 293 | case EMOFPackage.URI_EXTENT: { |
| 294 | URIExtent uriExtent = (URIExtent)theEObject; |
| 295 | T result = caseURIExtent(uriExtent); |
| 296 | if (result == null) result = caseExtent(uriExtent); |
| 297 | if (result == null) result = caseObject(uriExtent); |
| 298 | if (result == null) result = defaultCase(theEObject); |
| 299 | return result; |
| 300 | } |
| 301 | default: return defaultCase(theEObject); |
| 302 | } |
| 303 | } |
| 304 | |
| 305 | /** |
| 306 | * Returns the result of interpreting the object as an instance of '<em>Class</em>'. |
| 307 | * <!-- begin-user-doc --> |
| 308 | * This implementation returns null; |
| 309 | * returning a non-null result will terminate the switch. |
| 310 | * <!-- end-user-doc --> |
| 311 | * @param object the target of the switch. |
| 312 | * @return the result of interpreting the object as an instance of '<em>Class</em>'. |
| 313 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 314 | * @generated |
| 315 | */ |
| 316 | public T caseClass(EMOF.Class object) { |
| 317 | return null; |
| 318 | } |
| 319 | |
| 320 | /** |
| 321 | * Returns the result of interpreting the object as an instance of '<em>Comment</em>'. |
| 322 | * <!-- begin-user-doc --> |
| 323 | * This implementation returns null; |
| 324 | * returning a non-null result will terminate the switch. |
| 325 | * <!-- end-user-doc --> |
| 326 | * @param object the target of the switch. |
| 327 | * @return the result of interpreting the object as an instance of '<em>Comment</em>'. |
| 328 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 329 | * @generated |
| 330 | */ |
| 331 | public T caseComment(Comment object) { |
| 332 | return null; |
| 333 | } |
| 334 | |
| 335 | /** |
| 336 | * Returns the result of interpreting the object as an instance of '<em>Data Type</em>'. |
| 337 | * <!-- begin-user-doc --> |
| 338 | * This implementation returns null; |
| 339 | * returning a non-null result will terminate the switch. |
| 340 | * <!-- end-user-doc --> |
| 341 | * @param object the target of the switch. |
| 342 | * @return the result of interpreting the object as an instance of '<em>Data Type</em>'. |
| 343 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 344 | * @generated |
| 345 | */ |
| 346 | public T caseDataType(DataType object) { |
| 347 | return null; |
| 348 | } |
| 349 | |
| 350 | /** |
| 351 | * Returns the result of interpreting the object as an instance of '<em>Element</em>'. |
| 352 | * <!-- begin-user-doc --> |
| 353 | * This implementation returns null; |
| 354 | * returning a non-null result will terminate the switch. |
| 355 | * <!-- end-user-doc --> |
| 356 | * @param object the target of the switch. |
| 357 | * @return the result of interpreting the object as an instance of '<em>Element</em>'. |
| 358 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 359 | * @generated |
| 360 | */ |
| 361 | public T caseElement(Element object) { |
| 362 | return null; |
| 363 | } |
| 364 | |
| 365 | /** |
| 366 | * Returns the result of interpreting the object as an instance of '<em>Enumeration</em>'. |
| 367 | * <!-- begin-user-doc --> |
| 368 | * This implementation returns null; |
| 369 | * returning a non-null result will terminate the switch. |
| 370 | * <!-- end-user-doc --> |
| 371 | * @param object the target of the switch. |
| 372 | * @return the result of interpreting the object as an instance of '<em>Enumeration</em>'. |
| 373 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 374 | * @generated |
| 375 | */ |
| 376 | public T caseEnumeration(Enumeration object) { |
| 377 | return null; |
| 378 | } |
| 379 | |
| 380 | /** |
| 381 | * Returns the result of interpreting the object as an instance of '<em>Enumeration Literal</em>'. |
| 382 | * <!-- begin-user-doc --> |
| 383 | * This implementation returns null; |
| 384 | * returning a non-null result will terminate the switch. |
| 385 | * <!-- end-user-doc --> |
| 386 | * @param object the target of the switch. |
| 387 | * @return the result of interpreting the object as an instance of '<em>Enumeration Literal</em>'. |
| 388 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 389 | * @generated |
| 390 | */ |
| 391 | public T caseEnumerationLiteral(EnumerationLiteral object) { |
| 392 | return null; |
| 393 | } |
| 394 | |
| 395 | /** |
| 396 | * Returns the result of interpreting the object as an instance of '<em>Extent</em>'. |
| 397 | * <!-- begin-user-doc --> |
| 398 | * This implementation returns null; |
| 399 | * returning a non-null result will terminate the switch. |
| 400 | * <!-- end-user-doc --> |
| 401 | * @param object the target of the switch. |
| 402 | * @return the result of interpreting the object as an instance of '<em>Extent</em>'. |
| 403 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 404 | * @generated |
| 405 | */ |
| 406 | public T caseExtent(Extent object) { |
| 407 | return null; |
| 408 | } |
| 409 | |
| 410 | /** |
| 411 | * Returns the result of interpreting the object as an instance of '<em>Factory</em>'. |
| 412 | * <!-- begin-user-doc --> |
| 413 | * This implementation returns null; |
| 414 | * returning a non-null result will terminate the switch. |
| 415 | * <!-- end-user-doc --> |
| 416 | * @param object the target of the switch. |
| 417 | * @return the result of interpreting the object as an instance of '<em>Factory</em>'. |
| 418 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 419 | * @generated |
| 420 | */ |
| 421 | public T caseFactory(Factory object) { |
| 422 | return null; |
| 423 | } |
| 424 | |
| 425 | /** |
| 426 | * Returns the result of interpreting the object as an instance of '<em>Multiplicity Element</em>'. |
| 427 | * <!-- begin-user-doc --> |
| 428 | * This implementation returns null; |
| 429 | * returning a non-null result will terminate the switch. |
| 430 | * <!-- end-user-doc --> |
| 431 | * @param object the target of the switch. |
| 432 | * @return the result of interpreting the object as an instance of '<em>Multiplicity Element</em>'. |
| 433 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 434 | * @generated |
| 435 | */ |
| 436 | public T caseMultiplicityElement(MultiplicityElement object) { |
| 437 | return null; |
| 438 | } |
| 439 | |
| 440 | /** |
| 441 | * Returns the result of interpreting the object as an instance of '<em>Named Element</em>'. |
| 442 | * <!-- begin-user-doc --> |
| 443 | * This implementation returns null; |
| 444 | * returning a non-null result will terminate the switch. |
| 445 | * <!-- end-user-doc --> |
| 446 | * @param object the target of the switch. |
| 447 | * @return the result of interpreting the object as an instance of '<em>Named Element</em>'. |
| 448 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 449 | * @generated |
| 450 | */ |
| 451 | public T caseNamedElement(NamedElement object) { |
| 452 | return null; |
| 453 | } |
| 454 | |
| 455 | /** |
| 456 | * Returns the result of interpreting the object as an instance of '<em>Object</em>'. |
| 457 | * <!-- begin-user-doc --> |
| 458 | * This implementation returns null; |
| 459 | * returning a non-null result will terminate the switch. |
| 460 | * <!-- end-user-doc --> |
| 461 | * @param object the target of the switch. |
| 462 | * @return the result of interpreting the object as an instance of '<em>Object</em>'. |
| 463 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 464 | * @generated |
| 465 | */ |
| 466 | public T caseObject(EMOF.Object object) { |
| 467 | return null; |
| 468 | } |
| 469 | |
| 470 | /** |
| 471 | * Returns the result of interpreting the object as an instance of '<em>Operation</em>'. |
| 472 | * <!-- begin-user-doc --> |
| 473 | * This implementation returns null; |
| 474 | * returning a non-null result will terminate the switch. |
| 475 | * <!-- end-user-doc --> |
| 476 | * @param object the target of the switch. |
| 477 | * @return the result of interpreting the object as an instance of '<em>Operation</em>'. |
| 478 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 479 | * @generated |
| 480 | */ |
| 481 | public T caseOperation(Operation object) { |
| 482 | return null; |
| 483 | } |
| 484 | |
| 485 | /** |
| 486 | * Returns the result of interpreting the object as an instance of '<em>Package</em>'. |
| 487 | * <!-- begin-user-doc --> |
| 488 | * This implementation returns null; |
| 489 | * returning a non-null result will terminate the switch. |
| 490 | * <!-- end-user-doc --> |
| 491 | * @param object the target of the switch. |
| 492 | * @return the result of interpreting the object as an instance of '<em>Package</em>'. |
| 493 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 494 | * @generated |
| 495 | */ |
| 496 | public T casePackage(EMOF.Package object) { |
| 497 | return null; |
| 498 | } |
| 499 | |
| 500 | /** |
| 501 | * Returns the result of interpreting the object as an instance of '<em>Parameter</em>'. |
| 502 | * <!-- begin-user-doc --> |
| 503 | * This implementation returns null; |
| 504 | * returning a non-null result will terminate the switch. |
| 505 | * <!-- end-user-doc --> |
| 506 | * @param object the target of the switch. |
| 507 | * @return the result of interpreting the object as an instance of '<em>Parameter</em>'. |
| 508 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 509 | * @generated |
| 510 | */ |
| 511 | public T caseParameter(Parameter object) { |
| 512 | return null; |
| 513 | } |
| 514 | |
| 515 | /** |
| 516 | * Returns the result of interpreting the object as an instance of '<em>Primitive Type</em>'. |
| 517 | * <!-- begin-user-doc --> |
| 518 | * This implementation returns null; |
| 519 | * returning a non-null result will terminate the switch. |
| 520 | * <!-- end-user-doc --> |
| 521 | * @param object the target of the switch. |
| 522 | * @return the result of interpreting the object as an instance of '<em>Primitive Type</em>'. |
| 523 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 524 | * @generated |
| 525 | */ |
| 526 | public T casePrimitiveType(PrimitiveType object) { |
| 527 | return null; |
| 528 | } |
| 529 | |
| 530 | /** |
| 531 | * Returns the result of interpreting the object as an instance of '<em>Property</em>'. |
| 532 | * <!-- begin-user-doc --> |
| 533 | * This implementation returns null; |
| 534 | * returning a non-null result will terminate the switch. |
| 535 | * <!-- end-user-doc --> |
| 536 | * @param object the target of the switch. |
| 537 | * @return the result of interpreting the object as an instance of '<em>Property</em>'. |
| 538 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 539 | * @generated |
| 540 | */ |
| 541 | public T caseProperty(Property object) { |
| 542 | return null; |
| 543 | } |
| 544 | |
| 545 | /** |
| 546 | * Returns the result of interpreting the object as an instance of '<em>Reflective Collection</em>'. |
| 547 | * <!-- begin-user-doc --> |
| 548 | * This implementation returns null; |
| 549 | * returning a non-null result will terminate the switch. |
| 550 | * <!-- end-user-doc --> |
| 551 | * @param object the target of the switch. |
| 552 | * @return the result of interpreting the object as an instance of '<em>Reflective Collection</em>'. |
| 553 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 554 | * @generated |
| 555 | */ |
| 556 | public T caseReflectiveCollection(ReflectiveCollection object) { |
| 557 | return null; |
| 558 | } |
| 559 | |
| 560 | /** |
| 561 | * Returns the result of interpreting the object as an instance of '<em>Reflective Sequence</em>'. |
| 562 | * <!-- begin-user-doc --> |
| 563 | * This implementation returns null; |
| 564 | * returning a non-null result will terminate the switch. |
| 565 | * <!-- end-user-doc --> |
| 566 | * @param object the target of the switch. |
| 567 | * @return the result of interpreting the object as an instance of '<em>Reflective Sequence</em>'. |
| 568 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 569 | * @generated |
| 570 | */ |
| 571 | public T caseReflectiveSequence(ReflectiveSequence object) { |
| 572 | return null; |
| 573 | } |
| 574 | |
| 575 | /** |
| 576 | * Returns the result of interpreting the object as an instance of '<em>Tag</em>'. |
| 577 | * <!-- begin-user-doc --> |
| 578 | * This implementation returns null; |
| 579 | * returning a non-null result will terminate the switch. |
| 580 | * <!-- end-user-doc --> |
| 581 | * @param object the target of the switch. |
| 582 | * @return the result of interpreting the object as an instance of '<em>Tag</em>'. |
| 583 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 584 | * @generated |
| 585 | */ |
| 586 | public T caseTag(Tag object) { |
| 587 | return null; |
| 588 | } |
| 589 | |
| 590 | /** |
| 591 | * Returns the result of interpreting the object as an instance of '<em>Type</em>'. |
| 592 | * <!-- begin-user-doc --> |
| 593 | * This implementation returns null; |
| 594 | * returning a non-null result will terminate the switch. |
| 595 | * <!-- end-user-doc --> |
| 596 | * @param object the target of the switch. |
| 597 | * @return the result of interpreting the object as an instance of '<em>Type</em>'. |
| 598 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 599 | * @generated |
| 600 | */ |
| 601 | public T caseType(Type object) { |
| 602 | return null; |
| 603 | } |
| 604 | |
| 605 | /** |
| 606 | * Returns the result of interpreting the object as an instance of '<em>Typed Element</em>'. |
| 607 | * <!-- begin-user-doc --> |
| 608 | * This implementation returns null; |
| 609 | * returning a non-null result will terminate the switch. |
| 610 | * <!-- end-user-doc --> |
| 611 | * @param object the target of the switch. |
| 612 | * @return the result of interpreting the object as an instance of '<em>Typed Element</em>'. |
| 613 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 614 | * @generated |
| 615 | */ |
| 616 | public T caseTypedElement(TypedElement object) { |
| 617 | return null; |
| 618 | } |
| 619 | |
| 620 | /** |
| 621 | * Returns the result of interpreting the object as an instance of '<em>URI Extent</em>'. |
| 622 | * <!-- begin-user-doc --> |
| 623 | * This implementation returns null; |
| 624 | * returning a non-null result will terminate the switch. |
| 625 | * <!-- end-user-doc --> |
| 626 | * @param object the target of the switch. |
| 627 | * @return the result of interpreting the object as an instance of '<em>URI Extent</em>'. |
| 628 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 629 | * @generated |
| 630 | */ |
| 631 | public T caseURIExtent(URIExtent object) { |
| 632 | return null; |
| 633 | } |
| 634 | |
| 635 | /** |
| 636 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. |
| 637 | * <!-- begin-user-doc --> |
| 638 | * This implementation returns null; |
| 639 | * returning a non-null result will terminate the switch, but this is the last case anyway. |
| 640 | * <!-- end-user-doc --> |
| 641 | * @param object the target of the switch. |
| 642 | * @return the result of interpreting the object as an instance of '<em>EObject</em>'. |
| 643 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) |
| 644 | * @generated |
| 645 | */ |
| 646 | public T defaultCase(EObject object) { |
| 647 | return null; |
| 648 | } |
| 649 | |
| 650 | } //EMOFSwitch |