| 1 | /* |
| 2 | * Copyright 2007, IPD, SDQ, University of Karlsruhe |
| 3 | */ |
| 4 | package de.uka.ipd.sdq.pcm.gmf.repository.part; |
| 5 | |
| 6 | import java.util.Collection; |
| 7 | import java.util.Collections; |
| 8 | import java.util.Iterator; |
| 9 | import java.util.LinkedList; |
| 10 | import java.util.List; |
| 11 | import java.util.Map; |
| 12 | |
| 13 | import org.eclipse.emf.ecore.EObject; |
| 14 | import org.eclipse.emf.ecore.EStructuralFeature; |
| 15 | import org.eclipse.emf.ecore.util.EcoreUtil; |
| 16 | import org.eclipse.gmf.runtime.notation.View; |
| 17 | |
| 18 | import de.uka.ipd.sdq.pcm.core.entity.InterfaceProvidingEntity; |
| 19 | import de.uka.ipd.sdq.pcm.core.entity.InterfaceRequiringEntity; |
| 20 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.BasicComponentComponentParameterCompartmentEditPart; |
| 21 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.BasicComponentEditPart; |
| 22 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.BasicComponentPassiveResourceCompartmentEditPart; |
| 23 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.BasicComponentSEFFCompartmentEditPart; |
| 24 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.CompleteComponentTypeEditPart; |
| 25 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.CompleteComponentTypeParentProvidesComponentTypesEditPart; |
| 26 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.CompositeComponentEditPart; |
| 27 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.EventGroupEditPart; |
| 28 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.EventGroupEventTypeListEditPart; |
| 29 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.EventTypeEditPart; |
| 30 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.ImplementationComponentTypeParentCompleteComponentTypesEditPart; |
| 31 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.InfrastructureInterfaceEditPart; |
| 32 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.InfrastructureInterfaceInfrastructureSignatureListEditPart; |
| 33 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.InfrastructureProvidedRoleEditPart; |
| 34 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.InfrastructureRequiredRoleEditPart; |
| 35 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.InfrastructureSignatureEditPart; |
| 36 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.OperationInterfaceEditPart; |
| 37 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.OperationInterfaceSignatureListEditPart; |
| 38 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.OperationProvidedRoleEditPart; |
| 39 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.OperationRequiredRoleEditPart; |
| 40 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.OperationSignatureEditPart; |
| 41 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.PassiveResourceEditPart; |
| 42 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.ProvidesComponentTypeEditPart; |
| 43 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.RepositoryEditPart; |
| 44 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.ResourceDemandingSEFFEditPart; |
| 45 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.SinkRoleEditPart; |
| 46 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.SourceRoleEditPart; |
| 47 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.SubSystemEditPart; |
| 48 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.VariableCharacterisationEditPart; |
| 49 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.VariableUsageComponentParameterVariableCharacterisationCompartmentEditPart; |
| 50 | import de.uka.ipd.sdq.pcm.gmf.repository.edit.parts.VariableUsageEditPart; |
| 51 | import de.uka.ipd.sdq.pcm.gmf.repository.providers.PalladioComponentModelElementTypes; |
| 52 | import de.uka.ipd.sdq.pcm.parameter.VariableCharacterisation; |
| 53 | import de.uka.ipd.sdq.pcm.parameter.VariableUsage; |
| 54 | import de.uka.ipd.sdq.pcm.repository.BasicComponent; |
| 55 | import de.uka.ipd.sdq.pcm.repository.CompleteComponentType; |
| 56 | import de.uka.ipd.sdq.pcm.repository.CompositeComponent; |
| 57 | import de.uka.ipd.sdq.pcm.repository.EventGroup; |
| 58 | import de.uka.ipd.sdq.pcm.repository.EventType; |
| 59 | import de.uka.ipd.sdq.pcm.repository.ImplementationComponentType; |
| 60 | import de.uka.ipd.sdq.pcm.repository.InfrastructureInterface; |
| 61 | import de.uka.ipd.sdq.pcm.repository.InfrastructureProvidedRole; |
| 62 | import de.uka.ipd.sdq.pcm.repository.InfrastructureRequiredRole; |
| 63 | import de.uka.ipd.sdq.pcm.repository.InfrastructureSignature; |
| 64 | import de.uka.ipd.sdq.pcm.repository.Interface; |
| 65 | import de.uka.ipd.sdq.pcm.repository.OperationInterface; |
| 66 | import de.uka.ipd.sdq.pcm.repository.OperationProvidedRole; |
| 67 | import de.uka.ipd.sdq.pcm.repository.OperationRequiredRole; |
| 68 | import de.uka.ipd.sdq.pcm.repository.OperationSignature; |
| 69 | import de.uka.ipd.sdq.pcm.repository.PassiveResource; |
| 70 | import de.uka.ipd.sdq.pcm.repository.ProvidesComponentType; |
| 71 | import de.uka.ipd.sdq.pcm.repository.Repository; |
| 72 | import de.uka.ipd.sdq.pcm.repository.RepositoryComponent; |
| 73 | import de.uka.ipd.sdq.pcm.repository.RepositoryPackage; |
| 74 | import de.uka.ipd.sdq.pcm.repository.SinkRole; |
| 75 | import de.uka.ipd.sdq.pcm.repository.SourceRole; |
| 76 | import de.uka.ipd.sdq.pcm.seff.ServiceEffectSpecification; |
| 77 | import de.uka.ipd.sdq.pcm.subsystem.SubSystem; |
| 78 | |
| 79 | /** |
| 80 | * @generated |
| 81 | */ |
| 82 | public class PalladioComponentModelDiagramUpdater { |
| 83 | |
| 84 | /** |
| 85 | * @generated |
| 86 | */ |
| 87 | public static boolean isShortcutOrphaned(View view) { |
| 88 | return !view.isSetElement() || view.getElement() == null |
| 89 | || view.getElement().eIsProxy(); |
| 90 | } |
| 91 | |
| 92 | /** |
| 93 | * @generated |
| 94 | */ |
| 95 | public static List getSemanticChildren(View view) { |
| 96 | switch (PalladioComponentModelVisualIDRegistry.getVisualID(view)) { |
| 97 | case OperationInterfaceSignatureListEditPart.VISUAL_ID: |
| 98 | return getOperationInterfaceSignatureList_7106SemanticChildren(view); |
| 99 | case EventGroupEventTypeListEditPart.VISUAL_ID: |
| 100 | return getEventGroupEventTypeList_7107SemanticChildren(view); |
| 101 | case BasicComponentSEFFCompartmentEditPart.VISUAL_ID: |
| 102 | return getBasicComponentSEFFCompartment_7102SemanticChildren(view); |
| 103 | case BasicComponentPassiveResourceCompartmentEditPart.VISUAL_ID: |
| 104 | return getBasicComponentPassiveResourceCompartment_7103SemanticChildren(view); |
| 105 | case BasicComponentComponentParameterCompartmentEditPart.VISUAL_ID: |
| 106 | return getBasicComponentComponentParameterCompartment_7104SemanticChildren(view); |
| 107 | case VariableUsageComponentParameterVariableCharacterisationCompartmentEditPart.VISUAL_ID: |
| 108 | return getVariableUsageComponentParameterVariableCharacterisationCompartment_7105SemanticChildren(view); |
| 109 | case InfrastructureInterfaceInfrastructureSignatureListEditPart.VISUAL_ID: |
| 110 | return getInfrastructureInterfaceInfrastructureSignatureList_7108SemanticChildren(view); |
| 111 | case RepositoryEditPart.VISUAL_ID: |
| 112 | return getRepository_1000SemanticChildren(view); |
| 113 | } |
| 114 | return Collections.EMPTY_LIST; |
| 115 | } |
| 116 | |
| 117 | /** |
| 118 | * @generated |
| 119 | */ |
| 120 | public static List getOperationInterfaceSignatureList_7106SemanticChildren( |
| 121 | View view) { |
| 122 | if (false == view.eContainer() instanceof View) { |
| 123 | return Collections.EMPTY_LIST; |
| 124 | } |
| 125 | View containerView = (View) view.eContainer(); |
| 126 | if (!containerView.isSetElement()) { |
| 127 | return Collections.EMPTY_LIST; |
| 128 | } |
| 129 | OperationInterface modelElement = (OperationInterface) containerView |
| 130 | .getElement(); |
| 131 | List result = new LinkedList(); |
| 132 | for (Iterator it = modelElement.getSignatures__OperationInterface() |
| 133 | .iterator(); it.hasNext();) { |
| 134 | OperationSignature childElement = (OperationSignature) it.next(); |
| 135 | int visualID = PalladioComponentModelVisualIDRegistry |
| 136 | .getNodeVisualID(view, childElement); |
| 137 | if (visualID == OperationSignatureEditPart.VISUAL_ID) { |
| 138 | result.add(new PalladioComponentModelNodeDescriptor( |
| 139 | childElement, visualID)); |
| 140 | continue; |
| 141 | } |
| 142 | } |
| 143 | return result; |
| 144 | } |
| 145 | |
| 146 | /** |
| 147 | * @generated |
| 148 | */ |
| 149 | public static List getEventGroupEventTypeList_7107SemanticChildren(View view) { |
| 150 | if (false == view.eContainer() instanceof View) { |
| 151 | return Collections.EMPTY_LIST; |
| 152 | } |
| 153 | View containerView = (View) view.eContainer(); |
| 154 | if (!containerView.isSetElement()) { |
| 155 | return Collections.EMPTY_LIST; |
| 156 | } |
| 157 | EventGroup modelElement = (EventGroup) containerView.getElement(); |
| 158 | List result = new LinkedList(); |
| 159 | for (Iterator it = modelElement.getEventTypes__EventGroup().iterator(); it |
| 160 | .hasNext();) { |
| 161 | EventType childElement = (EventType) it.next(); |
| 162 | int visualID = PalladioComponentModelVisualIDRegistry |
| 163 | .getNodeVisualID(view, childElement); |
| 164 | if (visualID == EventTypeEditPart.VISUAL_ID) { |
| 165 | result.add(new PalladioComponentModelNodeDescriptor( |
| 166 | childElement, visualID)); |
| 167 | continue; |
| 168 | } |
| 169 | } |
| 170 | return result; |
| 171 | } |
| 172 | |
| 173 | /** |
| 174 | * @generated |
| 175 | */ |
| 176 | public static List getBasicComponentSEFFCompartment_7102SemanticChildren( |
| 177 | View view) { |
| 178 | if (false == view.eContainer() instanceof View) { |
| 179 | return Collections.EMPTY_LIST; |
| 180 | } |
| 181 | View containerView = (View) view.eContainer(); |
| 182 | if (!containerView.isSetElement()) { |
| 183 | return Collections.EMPTY_LIST; |
| 184 | } |
| 185 | BasicComponent modelElement = (BasicComponent) containerView |
| 186 | .getElement(); |
| 187 | List result = new LinkedList(); |
| 188 | for (Iterator it = modelElement |
| 189 | .getServiceEffectSpecifications__BasicComponent().iterator(); it |
| 190 | .hasNext();) { |
| 191 | ServiceEffectSpecification childElement = (ServiceEffectSpecification) it |
| 192 | .next(); |
| 193 | int visualID = PalladioComponentModelVisualIDRegistry |
| 194 | .getNodeVisualID(view, childElement); |
| 195 | if (visualID == ResourceDemandingSEFFEditPart.VISUAL_ID) { |
| 196 | result.add(new PalladioComponentModelNodeDescriptor( |
| 197 | childElement, visualID)); |
| 198 | continue; |
| 199 | } |
| 200 | } |
| 201 | return result; |
| 202 | } |
| 203 | |
| 204 | /** |
| 205 | * @generated |
| 206 | */ |
| 207 | public static List getBasicComponentPassiveResourceCompartment_7103SemanticChildren( |
| 208 | View view) { |
| 209 | if (false == view.eContainer() instanceof View) { |
| 210 | return Collections.EMPTY_LIST; |
| 211 | } |
| 212 | View containerView = (View) view.eContainer(); |
| 213 | if (!containerView.isSetElement()) { |
| 214 | return Collections.EMPTY_LIST; |
| 215 | } |
| 216 | BasicComponent modelElement = (BasicComponent) containerView |
| 217 | .getElement(); |
| 218 | List result = new LinkedList(); |
| 219 | for (Iterator it = modelElement.getPassiveResource_BasicComponent() |
| 220 | .iterator(); it.hasNext();) { |
| 221 | PassiveResource childElement = (PassiveResource) it.next(); |
| 222 | int visualID = PalladioComponentModelVisualIDRegistry |
| 223 | .getNodeVisualID(view, childElement); |
| 224 | if (visualID == PassiveResourceEditPart.VISUAL_ID) { |
| 225 | result.add(new PalladioComponentModelNodeDescriptor( |
| 226 | childElement, visualID)); |
| 227 | continue; |
| 228 | } |
| 229 | } |
| 230 | return result; |
| 231 | } |
| 232 | |
| 233 | /** |
| 234 | * @generated |
| 235 | */ |
| 236 | public static List getBasicComponentComponentParameterCompartment_7104SemanticChildren( |
| 237 | View view) { |
| 238 | if (false == view.eContainer() instanceof View) { |
| 239 | return Collections.EMPTY_LIST; |
| 240 | } |
| 241 | View containerView = (View) view.eContainer(); |
| 242 | if (!containerView.isSetElement()) { |
| 243 | return Collections.EMPTY_LIST; |
| 244 | } |
| 245 | BasicComponent modelElement = (BasicComponent) containerView |
| 246 | .getElement(); |
| 247 | List result = new LinkedList(); |
| 248 | for (Iterator it = modelElement |
| 249 | .getComponentParameterUsage_ImplementationComponentType() |
| 250 | .iterator(); it.hasNext();) { |
| 251 | VariableUsage childElement = (VariableUsage) it.next(); |
| 252 | int visualID = PalladioComponentModelVisualIDRegistry |
| 253 | .getNodeVisualID(view, childElement); |
| 254 | if (visualID == VariableUsageEditPart.VISUAL_ID) { |
| 255 | result.add(new PalladioComponentModelNodeDescriptor( |
| 256 | childElement, visualID)); |
| 257 | continue; |
| 258 | } |
| 259 | } |
| 260 | return result; |
| 261 | } |
| 262 | |
| 263 | /** |
| 264 | * @generated |
| 265 | */ |
| 266 | public static List getVariableUsageComponentParameterVariableCharacterisationCompartment_7105SemanticChildren( |
| 267 | View view) { |
| 268 | if (false == view.eContainer() instanceof View) { |
| 269 | return Collections.EMPTY_LIST; |
| 270 | } |
| 271 | View containerView = (View) view.eContainer(); |
| 272 | if (!containerView.isSetElement()) { |
| 273 | return Collections.EMPTY_LIST; |
| 274 | } |
| 275 | VariableUsage modelElement = (VariableUsage) containerView.getElement(); |
| 276 | List result = new LinkedList(); |
| 277 | for (Iterator it = modelElement |
| 278 | .getVariableCharacterisation_VariableUsage().iterator(); it |
| 279 | .hasNext();) { |
| 280 | VariableCharacterisation childElement = (VariableCharacterisation) it |
| 281 | .next(); |
| 282 | int visualID = PalladioComponentModelVisualIDRegistry |
| 283 | .getNodeVisualID(view, childElement); |
| 284 | if (visualID == VariableCharacterisationEditPart.VISUAL_ID) { |
| 285 | result.add(new PalladioComponentModelNodeDescriptor( |
| 286 | childElement, visualID)); |
| 287 | continue; |
| 288 | } |
| 289 | } |
| 290 | return result; |
| 291 | } |
| 292 | |
| 293 | /** |
| 294 | * @generated |
| 295 | */ |
| 296 | public static List getInfrastructureInterfaceInfrastructureSignatureList_7108SemanticChildren( |
| 297 | View view) { |
| 298 | if (false == view.eContainer() instanceof View) { |
| 299 | return Collections.EMPTY_LIST; |
| 300 | } |
| 301 | View containerView = (View) view.eContainer(); |
| 302 | if (!containerView.isSetElement()) { |
| 303 | return Collections.EMPTY_LIST; |
| 304 | } |
| 305 | InfrastructureInterface modelElement = (InfrastructureInterface) containerView |
| 306 | .getElement(); |
| 307 | List result = new LinkedList(); |
| 308 | for (Iterator it = modelElement |
| 309 | .getInfrastructureSignatures__InfrastructureInterface() |
| 310 | .iterator(); it.hasNext();) { |
| 311 | InfrastructureSignature childElement = (InfrastructureSignature) it |
| 312 | .next(); |
| 313 | int visualID = PalladioComponentModelVisualIDRegistry |
| 314 | .getNodeVisualID(view, childElement); |
| 315 | if (visualID == InfrastructureSignatureEditPart.VISUAL_ID) { |
| 316 | result.add(new PalladioComponentModelNodeDescriptor( |
| 317 | childElement, visualID)); |
| 318 | continue; |
| 319 | } |
| 320 | } |
| 321 | return result; |
| 322 | } |
| 323 | |
| 324 | /** |
| 325 | * @generated |
| 326 | */ |
| 327 | public static List getRepository_1000SemanticChildren(View view) { |
| 328 | if (!view.isSetElement()) { |
| 329 | return Collections.EMPTY_LIST; |
| 330 | } |
| 331 | Repository modelElement = (Repository) view.getElement(); |
| 332 | List result = new LinkedList(); |
| 333 | for (Iterator it = modelElement.getInterfaces__Repository().iterator(); it |
| 334 | .hasNext();) { |
| 335 | Interface childElement = (Interface) it.next(); |
| 336 | int visualID = PalladioComponentModelVisualIDRegistry |
| 337 | .getNodeVisualID(view, childElement); |
| 338 | if (visualID == OperationInterfaceEditPart.VISUAL_ID) { |
| 339 | result.add(new PalladioComponentModelNodeDescriptor( |
| 340 | childElement, visualID)); |
| 341 | continue; |
| 342 | } |
| 343 | if (visualID == EventGroupEditPart.VISUAL_ID) { |
| 344 | result.add(new PalladioComponentModelNodeDescriptor( |
| 345 | childElement, visualID)); |
| 346 | continue; |
| 347 | } |
| 348 | if (visualID == InfrastructureInterfaceEditPart.VISUAL_ID) { |
| 349 | result.add(new PalladioComponentModelNodeDescriptor( |
| 350 | childElement, visualID)); |
| 351 | continue; |
| 352 | } |
| 353 | } |
| 354 | for (Iterator it = modelElement.getComponents__Repository().iterator(); it |
| 355 | .hasNext();) { |
| 356 | RepositoryComponent childElement = (RepositoryComponent) it.next(); |
| 357 | int visualID = PalladioComponentModelVisualIDRegistry |
| 358 | .getNodeVisualID(view, childElement); |
| 359 | if (visualID == BasicComponentEditPart.VISUAL_ID) { |
| 360 | result.add(new PalladioComponentModelNodeDescriptor( |
| 361 | childElement, visualID)); |
| 362 | continue; |
| 363 | } |
| 364 | if (visualID == CompositeComponentEditPart.VISUAL_ID) { |
| 365 | result.add(new PalladioComponentModelNodeDescriptor( |
| 366 | childElement, visualID)); |
| 367 | continue; |
| 368 | } |
| 369 | if (visualID == CompleteComponentTypeEditPart.VISUAL_ID) { |
| 370 | result.add(new PalladioComponentModelNodeDescriptor( |
| 371 | childElement, visualID)); |
| 372 | continue; |
| 373 | } |
| 374 | if (visualID == ProvidesComponentTypeEditPart.VISUAL_ID) { |
| 375 | result.add(new PalladioComponentModelNodeDescriptor( |
| 376 | childElement, visualID)); |
| 377 | continue; |
| 378 | } |
| 379 | if (visualID == SubSystemEditPart.VISUAL_ID) { |
| 380 | result.add(new PalladioComponentModelNodeDescriptor( |
| 381 | childElement, visualID)); |
| 382 | continue; |
| 383 | } |
| 384 | } |
| 385 | return result; |
| 386 | } |
| 387 | |
| 388 | /** |
| 389 | * @generated |
| 390 | */ |
| 391 | public static List getContainedLinks(View view) { |
| 392 | switch (PalladioComponentModelVisualIDRegistry.getVisualID(view)) { |
| 393 | case RepositoryEditPart.VISUAL_ID: |
| 394 | return getRepository_1000ContainedLinks(view); |
| 395 | case OperationInterfaceEditPart.VISUAL_ID: |
| 396 | return getOperationInterface_2107ContainedLinks(view); |
| 397 | case EventGroupEditPart.VISUAL_ID: |
| 398 | return getEventGroup_2108ContainedLinks(view); |
| 399 | case BasicComponentEditPart.VISUAL_ID: |
| 400 | return getBasicComponent_2102ContainedLinks(view); |
| 401 | case CompositeComponentEditPart.VISUAL_ID: |
| 402 | return getCompositeComponent_2103ContainedLinks(view); |
| 403 | case CompleteComponentTypeEditPart.VISUAL_ID: |
| 404 | return getCompleteComponentType_2104ContainedLinks(view); |
| 405 | case ProvidesComponentTypeEditPart.VISUAL_ID: |
| 406 | return getProvidesComponentType_2105ContainedLinks(view); |
| 407 | case SubSystemEditPart.VISUAL_ID: |
| 408 | return getSubSystem_2106ContainedLinks(view); |
| 409 | case InfrastructureInterfaceEditPart.VISUAL_ID: |
| 410 | return getInfrastructureInterface_2109ContainedLinks(view); |
| 411 | case OperationSignatureEditPart.VISUAL_ID: |
| 412 | return getOperationSignature_3106ContainedLinks(view); |
| 413 | case EventTypeEditPart.VISUAL_ID: |
| 414 | return getEventType_3107ContainedLinks(view); |
| 415 | case ResourceDemandingSEFFEditPart.VISUAL_ID: |
| 416 | return getResourceDemandingSEFF_3102ContainedLinks(view); |
| 417 | case PassiveResourceEditPart.VISUAL_ID: |
| 418 | return getPassiveResource_3103ContainedLinks(view); |
| 419 | case VariableUsageEditPart.VISUAL_ID: |
| 420 | return getVariableUsage_3104ContainedLinks(view); |
| 421 | case VariableCharacterisationEditPart.VISUAL_ID: |
| 422 | return getVariableCharacterisation_3105ContainedLinks(view); |
| 423 | case InfrastructureSignatureEditPart.VISUAL_ID: |
| 424 | return getInfrastructureSignature_3108ContainedLinks(view); |
| 425 | case OperationProvidedRoleEditPart.VISUAL_ID: |
| 426 | return getOperationProvidedRole_4105ContainedLinks(view); |
| 427 | case InfrastructureProvidedRoleEditPart.VISUAL_ID: |
| 428 | return getInfrastructureProvidedRole_4111ContainedLinks(view); |
| 429 | case InfrastructureRequiredRoleEditPart.VISUAL_ID: |
| 430 | return getInfrastructureRequiredRole_4112ContainedLinks(view); |
| 431 | case SinkRoleEditPart.VISUAL_ID: |
| 432 | return getSinkRole_4109ContainedLinks(view); |
| 433 | case OperationRequiredRoleEditPart.VISUAL_ID: |
| 434 | return getOperationRequiredRole_4106ContainedLinks(view); |
| 435 | case SourceRoleEditPart.VISUAL_ID: |
| 436 | return getSourceRole_4110ContainedLinks(view); |
| 437 | } |
| 438 | return Collections.EMPTY_LIST; |
| 439 | } |
| 440 | |
| 441 | /** |
| 442 | * @generated |
| 443 | */ |
| 444 | public static List getIncomingLinks(View view) { |
| 445 | switch (PalladioComponentModelVisualIDRegistry.getVisualID(view)) { |
| 446 | case OperationInterfaceEditPart.VISUAL_ID: |
| 447 | return getOperationInterface_2107IncomingLinks(view); |
| 448 | case EventGroupEditPart.VISUAL_ID: |
| 449 | return getEventGroup_2108IncomingLinks(view); |
| 450 | case BasicComponentEditPart.VISUAL_ID: |
| 451 | return getBasicComponent_2102IncomingLinks(view); |
| 452 | case CompositeComponentEditPart.VISUAL_ID: |
| 453 | return getCompositeComponent_2103IncomingLinks(view); |
| 454 | case CompleteComponentTypeEditPart.VISUAL_ID: |
| 455 | return getCompleteComponentType_2104IncomingLinks(view); |
| 456 | case ProvidesComponentTypeEditPart.VISUAL_ID: |
| 457 | return getProvidesComponentType_2105IncomingLinks(view); |
| 458 | case SubSystemEditPart.VISUAL_ID: |
| 459 | return getSubSystem_2106IncomingLinks(view); |
| 460 | case InfrastructureInterfaceEditPart.VISUAL_ID: |
| 461 | return getInfrastructureInterface_2109IncomingLinks(view); |
| 462 | case OperationSignatureEditPart.VISUAL_ID: |
| 463 | return getOperationSignature_3106IncomingLinks(view); |
| 464 | case EventTypeEditPart.VISUAL_ID: |
| 465 | return getEventType_3107IncomingLinks(view); |
| 466 | case ResourceDemandingSEFFEditPart.VISUAL_ID: |
| 467 | return getResourceDemandingSEFF_3102IncomingLinks(view); |
| 468 | case PassiveResourceEditPart.VISUAL_ID: |
| 469 | return getPassiveResource_3103IncomingLinks(view); |
| 470 | case VariableUsageEditPart.VISUAL_ID: |
| 471 | return getVariableUsage_3104IncomingLinks(view); |
| 472 | case VariableCharacterisationEditPart.VISUAL_ID: |
| 473 | return getVariableCharacterisation_3105IncomingLinks(view); |
| 474 | case InfrastructureSignatureEditPart.VISUAL_ID: |
| 475 | return getInfrastructureSignature_3108IncomingLinks(view); |
| 476 | case OperationProvidedRoleEditPart.VISUAL_ID: |
| 477 | return getOperationProvidedRole_4105IncomingLinks(view); |
| 478 | case InfrastructureProvidedRoleEditPart.VISUAL_ID: |
| 479 | return getInfrastructureProvidedRole_4111IncomingLinks(view); |
| 480 | case InfrastructureRequiredRoleEditPart.VISUAL_ID: |
| 481 | return getInfrastructureRequiredRole_4112IncomingLinks(view); |
| 482 | case SinkRoleEditPart.VISUAL_ID: |
| 483 | return getSinkRole_4109IncomingLinks(view); |
| 484 | case OperationRequiredRoleEditPart.VISUAL_ID: |
| 485 | return getOperationRequiredRole_4106IncomingLinks(view); |
| 486 | case SourceRoleEditPart.VISUAL_ID: |
| 487 | return getSourceRole_4110IncomingLinks(view); |
| 488 | } |
| 489 | return Collections.EMPTY_LIST; |
| 490 | } |
| 491 | |
| 492 | /** |
| 493 | * @generated |
| 494 | */ |
| 495 | public static List getOutgoingLinks(View view) { |
| 496 | switch (PalladioComponentModelVisualIDRegistry.getVisualID(view)) { |
| 497 | case OperationInterfaceEditPart.VISUAL_ID: |
| 498 | return getOperationInterface_2107OutgoingLinks(view); |
| 499 | case EventGroupEditPart.VISUAL_ID: |
| 500 | return getEventGroup_2108OutgoingLinks(view); |
| 501 | case BasicComponentEditPart.VISUAL_ID: |
| 502 | return getBasicComponent_2102OutgoingLinks(view); |
| 503 | case CompositeComponentEditPart.VISUAL_ID: |
| 504 | return getCompositeComponent_2103OutgoingLinks(view); |
| 505 | case CompleteComponentTypeEditPart.VISUAL_ID: |
| 506 | return getCompleteComponentType_2104OutgoingLinks(view); |
| 507 | case ProvidesComponentTypeEditPart.VISUAL_ID: |
| 508 | return getProvidesComponentType_2105OutgoingLinks(view); |
| 509 | case SubSystemEditPart.VISUAL_ID: |
| 510 | return getSubSystem_2106OutgoingLinks(view); |
| 511 | case InfrastructureInterfaceEditPart.VISUAL_ID: |
| 512 | return getInfrastructureInterface_2109OutgoingLinks(view); |
| 513 | case OperationSignatureEditPart.VISUAL_ID: |
| 514 | return getOperationSignature_3106OutgoingLinks(view); |
| 515 | case EventTypeEditPart.VISUAL_ID: |
| 516 | return getEventType_3107OutgoingLinks(view); |
| 517 | case ResourceDemandingSEFFEditPart.VISUAL_ID: |
| 518 | return getResourceDemandingSEFF_3102OutgoingLinks(view); |
| 519 | case PassiveResourceEditPart.VISUAL_ID: |
| 520 | return getPassiveResource_3103OutgoingLinks(view); |
| 521 | case VariableUsageEditPart.VISUAL_ID: |
| 522 | return getVariableUsage_3104OutgoingLinks(view); |
| 523 | case VariableCharacterisationEditPart.VISUAL_ID: |
| 524 | return getVariableCharacterisation_3105OutgoingLinks(view); |
| 525 | case InfrastructureSignatureEditPart.VISUAL_ID: |
| 526 | return getInfrastructureSignature_3108OutgoingLinks(view); |
| 527 | case OperationProvidedRoleEditPart.VISUAL_ID: |
| 528 | return getOperationProvidedRole_4105OutgoingLinks(view); |
| 529 | case InfrastructureProvidedRoleEditPart.VISUAL_ID: |
| 530 | return getInfrastructureProvidedRole_4111OutgoingLinks(view); |
| 531 | case InfrastructureRequiredRoleEditPart.VISUAL_ID: |
| 532 | return getInfrastructureRequiredRole_4112OutgoingLinks(view); |
| 533 | case SinkRoleEditPart.VISUAL_ID: |
| 534 | return getSinkRole_4109OutgoingLinks(view); |
| 535 | case OperationRequiredRoleEditPart.VISUAL_ID: |
| 536 | return getOperationRequiredRole_4106OutgoingLinks(view); |
| 537 | case SourceRoleEditPart.VISUAL_ID: |
| 538 | return getSourceRole_4110OutgoingLinks(view); |
| 539 | } |
| 540 | return Collections.EMPTY_LIST; |
| 541 | } |
| 542 | |
| 543 | /** |
| 544 | * @generated |
| 545 | */ |
| 546 | public static List getRepository_1000ContainedLinks(View view) { |
| 547 | return Collections.EMPTY_LIST; |
| 548 | } |
| 549 | |
| 550 | /** |
| 551 | * @generated |
| 552 | */ |
| 553 | public static List getOperationInterface_2107ContainedLinks(View view) { |
| 554 | return Collections.EMPTY_LIST; |
| 555 | } |
| 556 | |
| 557 | /** |
| 558 | * @generated |
| 559 | */ |
| 560 | public static List getEventGroup_2108ContainedLinks(View view) { |
| 561 | return Collections.EMPTY_LIST; |
| 562 | } |
| 563 | |
| 564 | /** |
| 565 | * @generated |
| 566 | */ |
| 567 | public static List getBasicComponent_2102ContainedLinks(View view) { |
| 568 | BasicComponent modelElement = (BasicComponent) view.getElement(); |
| 569 | List result = new LinkedList(); |
| 570 | result |
| 571 | .addAll(getContainedTypeModelFacetLinks_OperationProvidedRole_4105(modelElement)); |
| 572 | result |
| 573 | .addAll(getContainedTypeModelFacetLinks_InfrastructureProvidedRole_4111(modelElement)); |
| 574 | result |
| 575 | .addAll(getContainedTypeModelFacetLinks_InfrastructureRequiredRole_4112(modelElement)); |
| 576 | result |
| 577 | .addAll(getContainedTypeModelFacetLinks_SinkRole_4109(modelElement)); |
| 578 | result |
| 579 | .addAll(getContainedTypeModelFacetLinks_OperationRequiredRole_4106(modelElement)); |
| 580 | result |
| 581 | .addAll(getOutgoingFeatureModelFacetLinks_ImplementationComponentType_ParentCompleteComponentTypes_4103(modelElement)); |
| 582 | result |
| 583 | .addAll(getContainedTypeModelFacetLinks_SourceRole_4110(modelElement)); |
| 584 | return result; |
| 585 | } |
| 586 | |
| 587 | /** |
| 588 | * @generated |
| 589 | */ |
| 590 | public static List getCompositeComponent_2103ContainedLinks(View view) { |
| 591 | CompositeComponent modelElement = (CompositeComponent) view |
| 592 | .getElement(); |
| 593 | List result = new LinkedList(); |
| 594 | result |
| 595 | .addAll(getContainedTypeModelFacetLinks_OperationProvidedRole_4105(modelElement)); |
| 596 | result |
| 597 | .addAll(getContainedTypeModelFacetLinks_InfrastructureProvidedRole_4111(modelElement)); |
| 598 | result |
| 599 | .addAll(getContainedTypeModelFacetLinks_InfrastructureRequiredRole_4112(modelElement)); |
| 600 | result |
| 601 | .addAll(getContainedTypeModelFacetLinks_SinkRole_4109(modelElement)); |
| 602 | result |
| 603 | .addAll(getContainedTypeModelFacetLinks_OperationRequiredRole_4106(modelElement)); |
| 604 | result |
| 605 | .addAll(getOutgoingFeatureModelFacetLinks_ImplementationComponentType_ParentCompleteComponentTypes_4103(modelElement)); |
| 606 | result |
| 607 | .addAll(getContainedTypeModelFacetLinks_SourceRole_4110(modelElement)); |
| 608 | return result; |
| 609 | } |
| 610 | |
| 611 | /** |
| 612 | * @generated |
| 613 | */ |
| 614 | public static List getCompleteComponentType_2104ContainedLinks(View view) { |
| 615 | CompleteComponentType modelElement = (CompleteComponentType) view |
| 616 | .getElement(); |
| 617 | List result = new LinkedList(); |
| 618 | result |
| 619 | .addAll(getContainedTypeModelFacetLinks_OperationProvidedRole_4105(modelElement)); |
| 620 | result |
| 621 | .addAll(getContainedTypeModelFacetLinks_InfrastructureProvidedRole_4111(modelElement)); |
| 622 | result |
| 623 | .addAll(getContainedTypeModelFacetLinks_InfrastructureRequiredRole_4112(modelElement)); |
| 624 | result |
| 625 | .addAll(getContainedTypeModelFacetLinks_SinkRole_4109(modelElement)); |
| 626 | result |
| 627 | .addAll(getContainedTypeModelFacetLinks_OperationRequiredRole_4106(modelElement)); |
| 628 | result |
| 629 | .addAll(getOutgoingFeatureModelFacetLinks_CompleteComponentType_ParentProvidesComponentTypes_4104(modelElement)); |
| 630 | result |
| 631 | .addAll(getContainedTypeModelFacetLinks_SourceRole_4110(modelElement)); |
| 632 | return result; |
| 633 | } |
| 634 | |
| 635 | /** |
| 636 | * @generated |
| 637 | */ |
| 638 | public static List getProvidesComponentType_2105ContainedLinks(View view) { |
| 639 | ProvidesComponentType modelElement = (ProvidesComponentType) view |
| 640 | .getElement(); |
| 641 | List result = new LinkedList(); |
| 642 | result |
| 643 | .addAll(getContainedTypeModelFacetLinks_OperationProvidedRole_4105(modelElement)); |
| 644 | result |
| 645 | .addAll(getContainedTypeModelFacetLinks_InfrastructureProvidedRole_4111(modelElement)); |
| 646 | result |
| 647 | .addAll(getContainedTypeModelFacetLinks_InfrastructureRequiredRole_4112(modelElement)); |
| 648 | result |
| 649 | .addAll(getContainedTypeModelFacetLinks_SinkRole_4109(modelElement)); |
| 650 | result |
| 651 | .addAll(getContainedTypeModelFacetLinks_OperationRequiredRole_4106(modelElement)); |
| 652 | result |
| 653 | .addAll(getContainedTypeModelFacetLinks_SourceRole_4110(modelElement)); |
| 654 | return result; |
| 655 | } |
| 656 | |
| 657 | /** |
| 658 | * @generated |
| 659 | */ |
| 660 | public static List getSubSystem_2106ContainedLinks(View view) { |
| 661 | SubSystem modelElement = (SubSystem) view.getElement(); |
| 662 | List result = new LinkedList(); |
| 663 | result |
| 664 | .addAll(getContainedTypeModelFacetLinks_OperationProvidedRole_4105(modelElement)); |
| 665 | result |
| 666 | .addAll(getContainedTypeModelFacetLinks_InfrastructureProvidedRole_4111(modelElement)); |
| 667 | result |
| 668 | .addAll(getContainedTypeModelFacetLinks_InfrastructureRequiredRole_4112(modelElement)); |
| 669 | result |
| 670 | .addAll(getContainedTypeModelFacetLinks_SinkRole_4109(modelElement)); |
| 671 | result |
| 672 | .addAll(getContainedTypeModelFacetLinks_OperationRequiredRole_4106(modelElement)); |
| 673 | result |
| 674 | .addAll(getContainedTypeModelFacetLinks_SourceRole_4110(modelElement)); |
| 675 | return result; |
| 676 | } |
| 677 | |
| 678 | /** |
| 679 | * @generated |
| 680 | */ |
| 681 | public static List getInfrastructureInterface_2109ContainedLinks(View view) { |
| 682 | return Collections.EMPTY_LIST; |
| 683 | } |
| 684 | |
| 685 | /** |
| 686 | * @generated |
| 687 | */ |
| 688 | public static List getOperationSignature_3106ContainedLinks(View view) { |
| 689 | return Collections.EMPTY_LIST; |
| 690 | } |
| 691 | |
| 692 | /** |
| 693 | * @generated |
| 694 | */ |
| 695 | public static List getEventType_3107ContainedLinks(View view) { |
| 696 | return Collections.EMPTY_LIST; |
| 697 | } |
| 698 | |
| 699 | /** |
| 700 | * @generated |
| 701 | */ |
| 702 | public static List getResourceDemandingSEFF_3102ContainedLinks(View view) { |
| 703 | return Collections.EMPTY_LIST; |
| 704 | } |
| 705 | |
| 706 | /** |
| 707 | * @generated |
| 708 | */ |
| 709 | public static List getPassiveResource_3103ContainedLinks(View view) { |
| 710 | return Collections.EMPTY_LIST; |
| 711 | } |
| 712 | |
| 713 | /** |
| 714 | * @generated |
| 715 | */ |
| 716 | public static List getVariableUsage_3104ContainedLinks(View view) { |
| 717 | return Collections.EMPTY_LIST; |
| 718 | } |
| 719 | |
| 720 | /** |
| 721 | * @generated |
| 722 | */ |
| 723 | public static List getVariableCharacterisation_3105ContainedLinks(View view) { |
| 724 | return Collections.EMPTY_LIST; |
| 725 | } |
| 726 | |
| 727 | /** |
| 728 | * @generated |
| 729 | */ |
| 730 | public static List getInfrastructureSignature_3108ContainedLinks(View view) { |
| 731 | return Collections.EMPTY_LIST; |
| 732 | } |
| 733 | |
| 734 | /** |
| 735 | * @generated |
| 736 | */ |
| 737 | public static List getOperationProvidedRole_4105ContainedLinks(View view) { |
| 738 | return Collections.EMPTY_LIST; |
| 739 | } |
| 740 | |
| 741 | /** |
| 742 | * @generated |
| 743 | */ |
| 744 | public static List getInfrastructureProvidedRole_4111ContainedLinks( |
| 745 | View view) { |
| 746 | return Collections.EMPTY_LIST; |
| 747 | } |
| 748 | |
| 749 | /** |
| 750 | * @generated |
| 751 | */ |
| 752 | public static List getInfrastructureRequiredRole_4112ContainedLinks( |
| 753 | View view) { |
| 754 | return Collections.EMPTY_LIST; |
| 755 | } |
| 756 | |
| 757 | /** |
| 758 | * @generated |
| 759 | */ |
| 760 | public static List getSinkRole_4109ContainedLinks(View view) { |
| 761 | return Collections.EMPTY_LIST; |
| 762 | } |
| 763 | |
| 764 | /** |
| 765 | * @generated |
| 766 | */ |
| 767 | public static List getOperationRequiredRole_4106ContainedLinks(View view) { |
| 768 | return Collections.EMPTY_LIST; |
| 769 | } |
| 770 | |
| 771 | /** |
| 772 | * @generated |
| 773 | */ |
| 774 | public static List getSourceRole_4110ContainedLinks(View view) { |
| 775 | return Collections.EMPTY_LIST; |
| 776 | } |
| 777 | |
| 778 | /** |
| 779 | * @generated |
| 780 | */ |
| 781 | public static List getOperationInterface_2107IncomingLinks(View view) { |
| 782 | OperationInterface modelElement = (OperationInterface) view |
| 783 | .getElement(); |
| 784 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 785 | .getResourceSet().getResources()); |
| 786 | List result = new LinkedList(); |
| 787 | result |
| 788 | .addAll(getIncomingTypeModelFacetLinks_OperationProvidedRole_4105( |
| 789 | modelElement, crossReferences)); |
| 790 | result |
| 791 | .addAll(getIncomingTypeModelFacetLinks_OperationRequiredRole_4106( |
| 792 | modelElement, crossReferences)); |
| 793 | return result; |
| 794 | } |
| 795 | |
| 796 | /** |
| 797 | * @generated |
| 798 | */ |
| 799 | public static List getEventGroup_2108IncomingLinks(View view) { |
| 800 | EventGroup modelElement = (EventGroup) view.getElement(); |
| 801 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 802 | .getResourceSet().getResources()); |
| 803 | List result = new LinkedList(); |
| 804 | result.addAll(getIncomingTypeModelFacetLinks_SinkRole_4109( |
| 805 | modelElement, crossReferences)); |
| 806 | result.addAll(getIncomingTypeModelFacetLinks_SourceRole_4110( |
| 807 | modelElement, crossReferences)); |
| 808 | return result; |
| 809 | } |
| 810 | |
| 811 | /** |
| 812 | * @generated |
| 813 | */ |
| 814 | public static List getBasicComponent_2102IncomingLinks(View view) { |
| 815 | return Collections.EMPTY_LIST; |
| 816 | } |
| 817 | |
| 818 | /** |
| 819 | * @generated |
| 820 | */ |
| 821 | public static List getCompositeComponent_2103IncomingLinks(View view) { |
| 822 | return Collections.EMPTY_LIST; |
| 823 | } |
| 824 | |
| 825 | /** |
| 826 | * @generated |
| 827 | */ |
| 828 | public static List getCompleteComponentType_2104IncomingLinks(View view) { |
| 829 | CompleteComponentType modelElement = (CompleteComponentType) view |
| 830 | .getElement(); |
| 831 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 832 | .getResourceSet().getResources()); |
| 833 | List result = new LinkedList(); |
| 834 | result |
| 835 | .addAll(getIncomingFeatureModelFacetLinks_ImplementationComponentType_ParentCompleteComponentTypes_4103( |
| 836 | modelElement, crossReferences)); |
| 837 | return result; |
| 838 | } |
| 839 | |
| 840 | /** |
| 841 | * @generated |
| 842 | */ |
| 843 | public static List getProvidesComponentType_2105IncomingLinks(View view) { |
| 844 | ProvidesComponentType modelElement = (ProvidesComponentType) view |
| 845 | .getElement(); |
| 846 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 847 | .getResourceSet().getResources()); |
| 848 | List result = new LinkedList(); |
| 849 | result |
| 850 | .addAll(getIncomingFeatureModelFacetLinks_CompleteComponentType_ParentProvidesComponentTypes_4104( |
| 851 | modelElement, crossReferences)); |
| 852 | return result; |
| 853 | } |
| 854 | |
| 855 | /** |
| 856 | * @generated |
| 857 | */ |
| 858 | public static List getSubSystem_2106IncomingLinks(View view) { |
| 859 | return Collections.EMPTY_LIST; |
| 860 | } |
| 861 | |
| 862 | /** |
| 863 | * @generated |
| 864 | */ |
| 865 | public static List getInfrastructureInterface_2109IncomingLinks(View view) { |
| 866 | InfrastructureInterface modelElement = (InfrastructureInterface) view |
| 867 | .getElement(); |
| 868 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 869 | .getResourceSet().getResources()); |
| 870 | List result = new LinkedList(); |
| 871 | result |
| 872 | .addAll(getIncomingTypeModelFacetLinks_InfrastructureProvidedRole_4111( |
| 873 | modelElement, crossReferences)); |
| 874 | result |
| 875 | .addAll(getIncomingTypeModelFacetLinks_InfrastructureRequiredRole_4112( |
| 876 | modelElement, crossReferences)); |
| 877 | return result; |
| 878 | } |
| 879 | |
| 880 | /** |
| 881 | * @generated |
| 882 | */ |
| 883 | public static List getOperationSignature_3106IncomingLinks(View view) { |
| 884 | return Collections.EMPTY_LIST; |
| 885 | } |
| 886 | |
| 887 | /** |
| 888 | * @generated |
| 889 | */ |
| 890 | public static List getEventType_3107IncomingLinks(View view) { |
| 891 | return Collections.EMPTY_LIST; |
| 892 | } |
| 893 | |
| 894 | /** |
| 895 | * @generated |
| 896 | */ |
| 897 | public static List getResourceDemandingSEFF_3102IncomingLinks(View view) { |
| 898 | return Collections.EMPTY_LIST; |
| 899 | } |
| 900 | |
| 901 | /** |
| 902 | * @generated |
| 903 | */ |
| 904 | public static List getPassiveResource_3103IncomingLinks(View view) { |
| 905 | return Collections.EMPTY_LIST; |
| 906 | } |
| 907 | |
| 908 | /** |
| 909 | * @generated |
| 910 | */ |
| 911 | public static List getVariableUsage_3104IncomingLinks(View view) { |
| 912 | return Collections.EMPTY_LIST; |
| 913 | } |
| 914 | |
| 915 | /** |
| 916 | * @generated |
| 917 | */ |
| 918 | public static List getVariableCharacterisation_3105IncomingLinks(View view) { |
| 919 | return Collections.EMPTY_LIST; |
| 920 | } |
| 921 | |
| 922 | /** |
| 923 | * @generated |
| 924 | */ |
| 925 | public static List getInfrastructureSignature_3108IncomingLinks(View view) { |
| 926 | return Collections.EMPTY_LIST; |
| 927 | } |
| 928 | |
| 929 | /** |
| 930 | * @generated |
| 931 | */ |
| 932 | public static List getOperationProvidedRole_4105IncomingLinks(View view) { |
| 933 | return Collections.EMPTY_LIST; |
| 934 | } |
| 935 | |
| 936 | /** |
| 937 | * @generated |
| 938 | */ |
| 939 | public static List getInfrastructureProvidedRole_4111IncomingLinks(View view) { |
| 940 | return Collections.EMPTY_LIST; |
| 941 | } |
| 942 | |
| 943 | /** |
| 944 | * @generated |
| 945 | */ |
| 946 | public static List getInfrastructureRequiredRole_4112IncomingLinks(View view) { |
| 947 | return Collections.EMPTY_LIST; |
| 948 | } |
| 949 | |
| 950 | /** |
| 951 | * @generated |
| 952 | */ |
| 953 | public static List getSinkRole_4109IncomingLinks(View view) { |
| 954 | return Collections.EMPTY_LIST; |
| 955 | } |
| 956 | |
| 957 | /** |
| 958 | * @generated |
| 959 | */ |
| 960 | public static List getOperationRequiredRole_4106IncomingLinks(View view) { |
| 961 | return Collections.EMPTY_LIST; |
| 962 | } |
| 963 | |
| 964 | /** |
| 965 | * @generated |
| 966 | */ |
| 967 | public static List getSourceRole_4110IncomingLinks(View view) { |
| 968 | return Collections.EMPTY_LIST; |
| 969 | } |
| 970 | |
| 971 | /** |
| 972 | * @generated |
| 973 | */ |
| 974 | public static List getOperationInterface_2107OutgoingLinks(View view) { |
| 975 | return Collections.EMPTY_LIST; |
| 976 | } |
| 977 | |
| 978 | /** |
| 979 | * @generated |
| 980 | */ |
| 981 | public static List getEventGroup_2108OutgoingLinks(View view) { |
| 982 | return Collections.EMPTY_LIST; |
| 983 | } |
| 984 | |
| 985 | /** |
| 986 | * @generated |
| 987 | */ |
| 988 | public static List getBasicComponent_2102OutgoingLinks(View view) { |
| 989 | BasicComponent modelElement = (BasicComponent) view.getElement(); |
| 990 | List result = new LinkedList(); |
| 991 | result |
| 992 | .addAll(getContainedTypeModelFacetLinks_OperationProvidedRole_4105(modelElement)); |
| 993 | result |
| 994 | .addAll(getContainedTypeModelFacetLinks_InfrastructureProvidedRole_4111(modelElement)); |
| 995 | result |
| 996 | .addAll(getContainedTypeModelFacetLinks_InfrastructureRequiredRole_4112(modelElement)); |
| 997 | result |
| 998 | .addAll(getContainedTypeModelFacetLinks_SinkRole_4109(modelElement)); |
| 999 | result |
| 1000 | .addAll(getContainedTypeModelFacetLinks_OperationRequiredRole_4106(modelElement)); |
| 1001 | result |
| 1002 | .addAll(getOutgoingFeatureModelFacetLinks_ImplementationComponentType_ParentCompleteComponentTypes_4103(modelElement)); |
| 1003 | result |
| 1004 | .addAll(getContainedTypeModelFacetLinks_SourceRole_4110(modelElement)); |
| 1005 | return result; |
| 1006 | } |
| 1007 | |
| 1008 | /** |
| 1009 | * @generated |
| 1010 | */ |
| 1011 | public static List getCompositeComponent_2103OutgoingLinks(View view) { |
| 1012 | CompositeComponent modelElement = (CompositeComponent) view |
| 1013 | .getElement(); |
| 1014 | List result = new LinkedList(); |
| 1015 | result |
| 1016 | .addAll(getContainedTypeModelFacetLinks_OperationProvidedRole_4105(modelElement)); |
| 1017 | result |
| 1018 | .addAll(getContainedTypeModelFacetLinks_InfrastructureProvidedRole_4111(modelElement)); |
| 1019 | result |
| 1020 | .addAll(getContainedTypeModelFacetLinks_InfrastructureRequiredRole_4112(modelElement)); |
| 1021 | result |
| 1022 | .addAll(getContainedTypeModelFacetLinks_SinkRole_4109(modelElement)); |
| 1023 | result |
| 1024 | .addAll(getContainedTypeModelFacetLinks_OperationRequiredRole_4106(modelElement)); |
| 1025 | result |
| 1026 | .addAll(getOutgoingFeatureModelFacetLinks_ImplementationComponentType_ParentCompleteComponentTypes_4103(modelElement)); |
| 1027 | result |
| 1028 | .addAll(getContainedTypeModelFacetLinks_SourceRole_4110(modelElement)); |
| 1029 | return result; |
| 1030 | } |
| 1031 | |
| 1032 | /** |
| 1033 | * @generated |
| 1034 | */ |
| 1035 | public static List getCompleteComponentType_2104OutgoingLinks(View view) { |
| 1036 | CompleteComponentType modelElement = (CompleteComponentType) view |
| 1037 | .getElement(); |
| 1038 | List result = new LinkedList(); |
| 1039 | result |
| 1040 | .addAll(getContainedTypeModelFacetLinks_OperationProvidedRole_4105(modelElement)); |
| 1041 | result |
| 1042 | .addAll(getContainedTypeModelFacetLinks_InfrastructureProvidedRole_4111(modelElement)); |
| 1043 | result |
| 1044 | .addAll(getContainedTypeModelFacetLinks_InfrastructureRequiredRole_4112(modelElement)); |
| 1045 | result |
| 1046 | .addAll(getContainedTypeModelFacetLinks_SinkRole_4109(modelElement)); |
| 1047 | result |
| 1048 | .addAll(getContainedTypeModelFacetLinks_OperationRequiredRole_4106(modelElement)); |
| 1049 | result |
| 1050 | .addAll(getOutgoingFeatureModelFacetLinks_CompleteComponentType_ParentProvidesComponentTypes_4104(modelElement)); |
| 1051 | result |
| 1052 | .addAll(getContainedTypeModelFacetLinks_SourceRole_4110(modelElement)); |
| 1053 | return result; |
| 1054 | } |
| 1055 | |
| 1056 | /** |
| 1057 | * @generated |
| 1058 | */ |
| 1059 | public static List getProvidesComponentType_2105OutgoingLinks(View view) { |
| 1060 | ProvidesComponentType modelElement = (ProvidesComponentType) view |
| 1061 | .getElement(); |
| 1062 | List result = new LinkedList(); |
| 1063 | result |
| 1064 | .addAll(getContainedTypeModelFacetLinks_OperationProvidedRole_4105(modelElement)); |
| 1065 | result |
| 1066 | .addAll(getContainedTypeModelFacetLinks_InfrastructureProvidedRole_4111(modelElement)); |
| 1067 | result |
| 1068 | .addAll(getContainedTypeModelFacetLinks_InfrastructureRequiredRole_4112(modelElement)); |
| 1069 | result |
| 1070 | .addAll(getContainedTypeModelFacetLinks_SinkRole_4109(modelElement)); |
| 1071 | result |
| 1072 | .addAll(getContainedTypeModelFacetLinks_OperationRequiredRole_4106(modelElement)); |
| 1073 | result |
| 1074 | .addAll(getContainedTypeModelFacetLinks_SourceRole_4110(modelElement)); |
| 1075 | return result; |
| 1076 | } |
| 1077 | |
| 1078 | /** |
| 1079 | * @generated |
| 1080 | */ |
| 1081 | public static List getSubSystem_2106OutgoingLinks(View view) { |
| 1082 | SubSystem modelElement = (SubSystem) view.getElement(); |
| 1083 | List result = new LinkedList(); |
| 1084 | result |
| 1085 | .addAll(getContainedTypeModelFacetLinks_OperationProvidedRole_4105(modelElement)); |
| 1086 | result |
| 1087 | .addAll(getContainedTypeModelFacetLinks_InfrastructureProvidedRole_4111(modelElement)); |
| 1088 | result |
| 1089 | .addAll(getContainedTypeModelFacetLinks_InfrastructureRequiredRole_4112(modelElement)); |
| 1090 | result |
| 1091 | .addAll(getContainedTypeModelFacetLinks_SinkRole_4109(modelElement)); |
| 1092 | result |
| 1093 | .addAll(getContainedTypeModelFacetLinks_OperationRequiredRole_4106(modelElement)); |
| 1094 | result |
| 1095 | .addAll(getContainedTypeModelFacetLinks_SourceRole_4110(modelElement)); |
| 1096 | return result; |
| 1097 | } |
| 1098 | |
| 1099 | /** |
| 1100 | * @generated |
| 1101 | */ |
| 1102 | public static List getInfrastructureInterface_2109OutgoingLinks(View view) { |
| 1103 | return Collections.EMPTY_LIST; |
| 1104 | } |
| 1105 | |
| 1106 | /** |
| 1107 | * @generated |
| 1108 | */ |
| 1109 | public static List getOperationSignature_3106OutgoingLinks(View view) { |
| 1110 | return Collections.EMPTY_LIST; |
| 1111 | } |
| 1112 | |
| 1113 | /** |
| 1114 | * @generated |
| 1115 | */ |
| 1116 | public static List getEventType_3107OutgoingLinks(View view) { |
| 1117 | return Collections.EMPTY_LIST; |
| 1118 | } |
| 1119 | |
| 1120 | /** |
| 1121 | * @generated |
| 1122 | */ |
| 1123 | public static List getResourceDemandingSEFF_3102OutgoingLinks(View view) { |
| 1124 | return Collections.EMPTY_LIST; |
| 1125 | } |
| 1126 | |
| 1127 | /** |
| 1128 | * @generated |
| 1129 | */ |
| 1130 | public static List getPassiveResource_3103OutgoingLinks(View view) { |
| 1131 | return Collections.EMPTY_LIST; |
| 1132 | } |
| 1133 | |
| 1134 | /** |
| 1135 | * @generated |
| 1136 | */ |
| 1137 | public static List getVariableUsage_3104OutgoingLinks(View view) { |
| 1138 | return Collections.EMPTY_LIST; |
| 1139 | } |
| 1140 | |
| 1141 | /** |
| 1142 | * @generated |
| 1143 | */ |
| 1144 | public static List getVariableCharacterisation_3105OutgoingLinks(View view) { |
| 1145 | return Collections.EMPTY_LIST; |
| 1146 | } |
| 1147 | |
| 1148 | /** |
| 1149 | * @generated |
| 1150 | */ |
| 1151 | public static List getInfrastructureSignature_3108OutgoingLinks(View view) { |
| 1152 | return Collections.EMPTY_LIST; |
| 1153 | } |
| 1154 | |
| 1155 | /** |
| 1156 | * @generated |
| 1157 | */ |
| 1158 | public static List getOperationProvidedRole_4105OutgoingLinks(View view) { |
| 1159 | return Collections.EMPTY_LIST; |
| 1160 | } |
| 1161 | |
| 1162 | /** |
| 1163 | * @generated |
| 1164 | */ |
| 1165 | public static List getInfrastructureProvidedRole_4111OutgoingLinks(View view) { |
| 1166 | return Collections.EMPTY_LIST; |
| 1167 | } |
| 1168 | |
| 1169 | /** |
| 1170 | * @generated |
| 1171 | */ |
| 1172 | public static List getInfrastructureRequiredRole_4112OutgoingLinks(View view) { |
| 1173 | return Collections.EMPTY_LIST; |
| 1174 | } |
| 1175 | |
| 1176 | /** |
| 1177 | * @generated |
| 1178 | */ |
| 1179 | public static List getSinkRole_4109OutgoingLinks(View view) { |
| 1180 | return Collections.EMPTY_LIST; |
| 1181 | } |
| 1182 | |
| 1183 | /** |
| 1184 | * @generated |
| 1185 | */ |
| 1186 | public static List getOperationRequiredRole_4106OutgoingLinks(View view) { |
| 1187 | return Collections.EMPTY_LIST; |
| 1188 | } |
| 1189 | |
| 1190 | /** |
| 1191 | * @generated |
| 1192 | */ |
| 1193 | public static List getSourceRole_4110OutgoingLinks(View view) { |
| 1194 | return Collections.EMPTY_LIST; |
| 1195 | } |
| 1196 | |
| 1197 | /** |
| 1198 | * @generated |
| 1199 | */ |
| 1200 | private static Collection getContainedTypeModelFacetLinks_OperationProvidedRole_4105( |
| 1201 | InterfaceProvidingEntity container) { |
| 1202 | Collection result = new LinkedList(); |
| 1203 | for (Iterator links = container |
| 1204 | .getProvidedRoles_InterfaceProvidingEntity().iterator(); links |
| 1205 | .hasNext();) { |
| 1206 | EObject linkObject = (EObject) links.next(); |
| 1207 | if (false == linkObject instanceof OperationProvidedRole) { |
| 1208 | continue; |
| 1209 | } |
| 1210 | OperationProvidedRole link = (OperationProvidedRole) linkObject; |
| 1211 | if (OperationProvidedRoleEditPart.VISUAL_ID != PalladioComponentModelVisualIDRegistry |
| 1212 | .getLinkWithClassVisualID(link)) { |
| 1213 | continue; |
| 1214 | } |
| 1215 | OperationInterface dst = link |
| 1216 | .getProvidedInterface__OperationProvidedRole(); |
| 1217 | result |
| 1218 | .add(new PalladioComponentModelLinkDescriptor( |
| 1219 | container, |
| 1220 | dst, |
| 1221 | link, |
| 1222 | PalladioComponentModelElementTypes.OperationProvidedRole_4105, |
| 1223 | OperationProvidedRoleEditPart.VISUAL_ID)); |
| 1224 | } |
| 1225 | return result; |
| 1226 | } |
| 1227 | |
| 1228 | /** |
| 1229 | * @generated |
| 1230 | */ |
| 1231 | private static Collection getContainedTypeModelFacetLinks_InfrastructureProvidedRole_4111( |
| 1232 | InterfaceProvidingEntity container) { |
| 1233 | Collection result = new LinkedList(); |
| 1234 | for (Iterator links = container |
| 1235 | .getProvidedRoles_InterfaceProvidingEntity().iterator(); links |
| 1236 | .hasNext();) { |
| 1237 | EObject linkObject = (EObject) links.next(); |
| 1238 | if (false == linkObject instanceof InfrastructureProvidedRole) { |
| 1239 | continue; |
| 1240 | } |
| 1241 | InfrastructureProvidedRole link = (InfrastructureProvidedRole) linkObject; |
| 1242 | if (InfrastructureProvidedRoleEditPart.VISUAL_ID != PalladioComponentModelVisualIDRegistry |
| 1243 | .getLinkWithClassVisualID(link)) { |
| 1244 | continue; |
| 1245 | } |
| 1246 | InfrastructureInterface dst = link |
| 1247 | .getProvidedInterface__InfrastructureProvidedRole(); |
| 1248 | result |
| 1249 | .add(new PalladioComponentModelLinkDescriptor( |
| 1250 | container, |
| 1251 | dst, |
| 1252 | link, |
| 1253 | PalladioComponentModelElementTypes.InfrastructureProvidedRole_4111, |
| 1254 | InfrastructureProvidedRoleEditPart.VISUAL_ID)); |
| 1255 | } |
| 1256 | return result; |
| 1257 | } |
| 1258 | |
| 1259 | /** |
| 1260 | * @generated |
| 1261 | */ |
| 1262 | private static Collection getContainedTypeModelFacetLinks_InfrastructureRequiredRole_4112( |
| 1263 | InterfaceRequiringEntity container) { |
| 1264 | Collection result = new LinkedList(); |
| 1265 | for (Iterator links = container |
| 1266 | .getRequiredRoles_InterfaceRequiringEntity().iterator(); links |
| 1267 | .hasNext();) { |
| 1268 | EObject linkObject = (EObject) links.next(); |
| 1269 | if (false == linkObject instanceof InfrastructureRequiredRole) { |
| 1270 | continue; |
| 1271 | } |
| 1272 | InfrastructureRequiredRole link = (InfrastructureRequiredRole) linkObject; |
| 1273 | if (InfrastructureRequiredRoleEditPart.VISUAL_ID != PalladioComponentModelVisualIDRegistry |
| 1274 | .getLinkWithClassVisualID(link)) { |
| 1275 | continue; |
| 1276 | } |
| 1277 | InfrastructureInterface dst = link |
| 1278 | .getRequiredInterface__InfrastructureRequiredRole(); |
| 1279 | result |
| 1280 | .add(new PalladioComponentModelLinkDescriptor( |
| 1281 | container, |
| 1282 | dst, |
| 1283 | link, |
| 1284 | PalladioComponentModelElementTypes.InfrastructureRequiredRole_4112, |
| 1285 | InfrastructureRequiredRoleEditPart.VISUAL_ID)); |
| 1286 | } |
| 1287 | return result; |
| 1288 | } |
| 1289 | |
| 1290 | /** |
| 1291 | * @generated |
| 1292 | */ |
| 1293 | private static Collection getContainedTypeModelFacetLinks_SinkRole_4109( |
| 1294 | InterfaceProvidingEntity container) { |
| 1295 | Collection result = new LinkedList(); |
| 1296 | for (Iterator links = container |
| 1297 | .getProvidedRoles_InterfaceProvidingEntity().iterator(); links |
| 1298 | .hasNext();) { |
| 1299 | EObject linkObject = (EObject) links.next(); |
| 1300 | if (false == linkObject instanceof SinkRole) { |
| 1301 | continue; |
| 1302 | } |
| 1303 | SinkRole link = (SinkRole) linkObject; |
| 1304 | if (SinkRoleEditPart.VISUAL_ID != PalladioComponentModelVisualIDRegistry |
| 1305 | .getLinkWithClassVisualID(link)) { |
| 1306 | continue; |
| 1307 | } |
| 1308 | EventGroup dst = link.getEventGroup__SinkRole(); |
| 1309 | result.add(new PalladioComponentModelLinkDescriptor(container, dst, |
| 1310 | link, PalladioComponentModelElementTypes.SinkRole_4109, |
| 1311 | SinkRoleEditPart.VISUAL_ID)); |
| 1312 | } |
| 1313 | return result; |
| 1314 | } |
| 1315 | |
| 1316 | /** |
| 1317 | * @generated |
| 1318 | */ |
| 1319 | private static Collection getContainedTypeModelFacetLinks_OperationRequiredRole_4106( |
| 1320 | InterfaceRequiringEntity container) { |
| 1321 | Collection result = new LinkedList(); |
| 1322 | for (Iterator links = container |
| 1323 | .getRequiredRoles_InterfaceRequiringEntity().iterator(); links |
| 1324 | .hasNext();) { |
| 1325 | EObject linkObject = (EObject) links.next(); |
| 1326 | if (false == linkObject instanceof OperationRequiredRole) { |
| 1327 | continue; |
| 1328 | } |
| 1329 | OperationRequiredRole link = (OperationRequiredRole) linkObject; |
| 1330 | if (OperationRequiredRoleEditPart.VISUAL_ID != PalladioComponentModelVisualIDRegistry |
| 1331 | .getLinkWithClassVisualID(link)) { |
| 1332 | continue; |
| 1333 | } |
| 1334 | OperationInterface dst = link |
| 1335 | .getRequiredInterface__OperationRequiredRole(); |
| 1336 | result |
| 1337 | .add(new PalladioComponentModelLinkDescriptor( |
| 1338 | container, |
| 1339 | dst, |
| 1340 | link, |
| 1341 | PalladioComponentModelElementTypes.OperationRequiredRole_4106, |
| 1342 | OperationRequiredRoleEditPart.VISUAL_ID)); |
| 1343 | } |
| 1344 | return result; |
| 1345 | } |
| 1346 | |
| 1347 | /** |
| 1348 | * @generated |
| 1349 | */ |
| 1350 | private static Collection getContainedTypeModelFacetLinks_SourceRole_4110( |
| 1351 | InterfaceRequiringEntity container) { |
| 1352 | Collection result = new LinkedList(); |
| 1353 | for (Iterator links = container |
| 1354 | .getRequiredRoles_InterfaceRequiringEntity().iterator(); links |
| 1355 | .hasNext();) { |
| 1356 | EObject linkObject = (EObject) links.next(); |
| 1357 | if (false == linkObject instanceof SourceRole) { |
| 1358 | continue; |
| 1359 | } |
| 1360 | SourceRole link = (SourceRole) linkObject; |
| 1361 | if (SourceRoleEditPart.VISUAL_ID != PalladioComponentModelVisualIDRegistry |
| 1362 | .getLinkWithClassVisualID(link)) { |
| 1363 | continue; |
| 1364 | } |
| 1365 | EventGroup dst = link.getEventGroup__SourceRole(); |
| 1366 | result.add(new PalladioComponentModelLinkDescriptor(container, dst, |
| 1367 | link, PalladioComponentModelElementTypes.SourceRole_4110, |
| 1368 | SourceRoleEditPart.VISUAL_ID)); |
| 1369 | } |
| 1370 | return result; |
| 1371 | } |
| 1372 | |
| 1373 | /** |
| 1374 | * @generated |
| 1375 | */ |
| 1376 | private static Collection getIncomingTypeModelFacetLinks_OperationProvidedRole_4105( |
| 1377 | OperationInterface target, Map crossReferences) { |
| 1378 | Collection result = new LinkedList(); |
| 1379 | Collection settings = (Collection) crossReferences.get(target); |
| 1380 | for (Iterator it = settings.iterator(); it.hasNext();) { |
| 1381 | EStructuralFeature.Setting setting = (EStructuralFeature.Setting) it |
| 1382 | .next(); |
| 1383 | if (setting.getEStructuralFeature() != RepositoryPackage.eINSTANCE |
| 1384 | .getOperationProvidedRole_ProvidedInterface__OperationProvidedRole() |
| 1385 | || false == setting.getEObject() instanceof OperationProvidedRole) { |
| 1386 | continue; |
| 1387 | } |
| 1388 | OperationProvidedRole link = (OperationProvidedRole) setting |
| 1389 | .getEObject(); |
| 1390 | if (OperationProvidedRoleEditPart.VISUAL_ID != PalladioComponentModelVisualIDRegistry |
| 1391 | .getLinkWithClassVisualID(link)) { |
| 1392 | continue; |
| 1393 | } |
| 1394 | if (false == link.eContainer() instanceof InterfaceProvidingEntity) { |
| 1395 | continue; |
| 1396 | } |
| 1397 | InterfaceProvidingEntity container = (InterfaceProvidingEntity) link |
| 1398 | .eContainer(); |
| 1399 | result |
| 1400 | .add(new PalladioComponentModelLinkDescriptor( |
| 1401 | container, |
| 1402 | target, |
| 1403 | link, |
| 1404 | PalladioComponentModelElementTypes.OperationProvidedRole_4105, |
| 1405 | OperationProvidedRoleEditPart.VISUAL_ID)); |
| 1406 | |
| 1407 | } |
| 1408 | return result; |
| 1409 | } |
| 1410 | |
| 1411 | /** |
| 1412 | * @generated |
| 1413 | */ |
| 1414 | private static Collection getIncomingTypeModelFacetLinks_InfrastructureProvidedRole_4111( |
| 1415 | InfrastructureInterface target, Map crossReferences) { |
| 1416 | Collection result = new LinkedList(); |
| 1417 | Collection settings = (Collection) crossReferences.get(target); |
| 1418 | for (Iterator it = settings.iterator(); it.hasNext();) { |
| 1419 | EStructuralFeature.Setting setting = (EStructuralFeature.Setting) it |
| 1420 | .next(); |
| 1421 | if (setting.getEStructuralFeature() != RepositoryPackage.eINSTANCE |
| 1422 | .getInfrastructureProvidedRole_ProvidedInterface__InfrastructureProvidedRole() |
| 1423 | || false == setting.getEObject() instanceof InfrastructureProvidedRole) { |
| 1424 | continue; |
| 1425 | } |
| 1426 | InfrastructureProvidedRole link = (InfrastructureProvidedRole) setting |
| 1427 | .getEObject(); |
| 1428 | if (InfrastructureProvidedRoleEditPart.VISUAL_ID != PalladioComponentModelVisualIDRegistry |
| 1429 | .getLinkWithClassVisualID(link)) { |
| 1430 | continue; |
| 1431 | } |
| 1432 | if (false == link.eContainer() instanceof InterfaceProvidingEntity) { |
| 1433 | continue; |
| 1434 | } |
| 1435 | InterfaceProvidingEntity container = (InterfaceProvidingEntity) link |
| 1436 | .eContainer(); |
| 1437 | result |
| 1438 | .add(new PalladioComponentModelLinkDescriptor( |
| 1439 | container, |
| 1440 | target, |
| 1441 | link, |
| 1442 | PalladioComponentModelElementTypes.InfrastructureProvidedRole_4111, |
| 1443 | InfrastructureProvidedRoleEditPart.VISUAL_ID)); |
| 1444 | |
| 1445 | } |
| 1446 | return result; |
| 1447 | } |
| 1448 | |
| 1449 | /** |
| 1450 | * @generated |
| 1451 | */ |
| 1452 | private static Collection getIncomingTypeModelFacetLinks_InfrastructureRequiredRole_4112( |
| 1453 | InfrastructureInterface target, Map crossReferences) { |
| 1454 | Collection result = new LinkedList(); |
| 1455 | Collection settings = (Collection) crossReferences.get(target); |
| 1456 | for (Iterator it = settings.iterator(); it.hasNext();) { |
| 1457 | EStructuralFeature.Setting setting = (EStructuralFeature.Setting) it |
| 1458 | .next(); |
| 1459 | if (setting.getEStructuralFeature() != RepositoryPackage.eINSTANCE |
| 1460 | .getInfrastructureRequiredRole_RequiredInterface__InfrastructureRequiredRole() |
| 1461 | || false == setting.getEObject() instanceof InfrastructureRequiredRole) { |
| 1462 | continue; |
| 1463 | } |
| 1464 | InfrastructureRequiredRole link = (InfrastructureRequiredRole) setting |
| 1465 | .getEObject(); |
| 1466 | if (InfrastructureRequiredRoleEditPart.VISUAL_ID != PalladioComponentModelVisualIDRegistry |
| 1467 | .getLinkWithClassVisualID(link)) { |
| 1468 | continue; |
| 1469 | } |
| 1470 | if (false == link.eContainer() instanceof InterfaceRequiringEntity) { |
| 1471 | continue; |
| 1472 | } |
| 1473 | InterfaceRequiringEntity container = (InterfaceRequiringEntity) link |
| 1474 | .eContainer(); |
| 1475 | result |
| 1476 | .add(new PalladioComponentModelLinkDescriptor( |
| 1477 | container, |
| 1478 | target, |
| 1479 | link, |
| 1480 | PalladioComponentModelElementTypes.InfrastructureRequiredRole_4112, |
| 1481 | InfrastructureRequiredRoleEditPart.VISUAL_ID)); |
| 1482 | |
| 1483 | } |
| 1484 | return result; |
| 1485 | } |
| 1486 | |
| 1487 | /** |
| 1488 | * @generated |
| 1489 | */ |
| 1490 | private static Collection getIncomingTypeModelFacetLinks_SinkRole_4109( |
| 1491 | EventGroup target, Map crossReferences) { |
| 1492 | Collection result = new LinkedList(); |
| 1493 | Collection settings = (Collection) crossReferences.get(target); |
| 1494 | for (Iterator it = settings.iterator(); it.hasNext();) { |
| 1495 | EStructuralFeature.Setting setting = (EStructuralFeature.Setting) it |
| 1496 | .next(); |
| 1497 | if (setting.getEStructuralFeature() != RepositoryPackage.eINSTANCE |
| 1498 | .getSinkRole_EventGroup__SinkRole() |
| 1499 | || false == setting.getEObject() instanceof SinkRole) { |
| 1500 | continue; |
| 1501 | } |
| 1502 | SinkRole link = (SinkRole) setting.getEObject(); |
| 1503 | if (SinkRoleEditPart.VISUAL_ID != PalladioComponentModelVisualIDRegistry |
| 1504 | .getLinkWithClassVisualID(link)) { |
| 1505 | continue; |
| 1506 | } |
| 1507 | if (false == link.eContainer() instanceof InterfaceProvidingEntity) { |
| 1508 | continue; |
| 1509 | } |
| 1510 | InterfaceProvidingEntity container = (InterfaceProvidingEntity) link |
| 1511 | .eContainer(); |
| 1512 | result.add(new PalladioComponentModelLinkDescriptor(container, |
| 1513 | target, link, |
| 1514 | PalladioComponentModelElementTypes.SinkRole_4109, |
| 1515 | SinkRoleEditPart.VISUAL_ID)); |
| 1516 | |
| 1517 | } |
| 1518 | return result; |
| 1519 | } |
| 1520 | |
| 1521 | /** |
| 1522 | * @generated |
| 1523 | */ |
| 1524 | private static Collection getIncomingTypeModelFacetLinks_OperationRequiredRole_4106( |
| 1525 | OperationInterface target, Map crossReferences) { |
| 1526 | Collection result = new LinkedList(); |
| 1527 | Collection settings = (Collection) crossReferences.get(target); |
| 1528 | for (Iterator it = settings.iterator(); it.hasNext();) { |
| 1529 | EStructuralFeature.Setting setting = (EStructuralFeature.Setting) it |
| 1530 | .next(); |
| 1531 | if (setting.getEStructuralFeature() != RepositoryPackage.eINSTANCE |
| 1532 | .getOperationRequiredRole_RequiredInterface__OperationRequiredRole() |
| 1533 | || false == setting.getEObject() instanceof OperationRequiredRole) { |
| 1534 | continue; |
| 1535 | } |
| 1536 | OperationRequiredRole link = (OperationRequiredRole) setting |
| 1537 | .getEObject(); |
| 1538 | if (OperationRequiredRoleEditPart.VISUAL_ID != PalladioComponentModelVisualIDRegistry |
| 1539 | .getLinkWithClassVisualID(link)) { |
| 1540 | continue; |
| 1541 | } |
| 1542 | if (false == link.eContainer() instanceof InterfaceRequiringEntity) { |
| 1543 | continue; |
| 1544 | } |
| 1545 | InterfaceRequiringEntity container = (InterfaceRequiringEntity) link |
| 1546 | .eContainer(); |
| 1547 | result |
| 1548 | .add(new PalladioComponentModelLinkDescriptor( |
| 1549 | container, |
| 1550 | target, |
| 1551 | link, |
| 1552 | PalladioComponentModelElementTypes.OperationRequiredRole_4106, |
| 1553 | OperationRequiredRoleEditPart.VISUAL_ID)); |
| 1554 | |
| 1555 | } |
| 1556 | return result; |
| 1557 | } |
| 1558 | |
| 1559 | /** |
| 1560 | * @generated |
| 1561 | */ |
| 1562 | private static Collection getIncomingFeatureModelFacetLinks_ImplementationComponentType_ParentCompleteComponentTypes_4103( |
| 1563 | CompleteComponentType target, Map crossReferences) { |
| 1564 | Collection result = new LinkedList(); |
| 1565 | Collection settings = (Collection) crossReferences.get(target); |
| 1566 | for (Iterator it = settings.iterator(); it.hasNext();) { |
| 1567 | EStructuralFeature.Setting setting = (EStructuralFeature.Setting) it |
| 1568 | .next(); |
| 1569 | if (setting.getEStructuralFeature() == RepositoryPackage.eINSTANCE |
| 1570 | .getImplementationComponentType_ParentCompleteComponentTypes()) { |
| 1571 | result |
| 1572 | .add(new PalladioComponentModelLinkDescriptor( |
| 1573 | setting.getEObject(), |
| 1574 | target, |
| 1575 | PalladioComponentModelElementTypes.ImplementationComponentTypeParentCompleteComponentTypes_4103, |
| 1576 | ImplementationComponentTypeParentCompleteComponentTypesEditPart.VISUAL_ID)); |
| 1577 | } |
| 1578 | } |
| 1579 | return result; |
| 1580 | } |
| 1581 | |
| 1582 | /** |
| 1583 | * @generated |
| 1584 | */ |
| 1585 | private static Collection getIncomingFeatureModelFacetLinks_CompleteComponentType_ParentProvidesComponentTypes_4104( |
| 1586 | ProvidesComponentType target, Map crossReferences) { |
| 1587 | Collection result = new LinkedList(); |
| 1588 | Collection settings = (Collection) crossReferences.get(target); |
| 1589 | for (Iterator it = settings.iterator(); it.hasNext();) { |
| 1590 | EStructuralFeature.Setting setting = (EStructuralFeature.Setting) it |
| 1591 | .next(); |
| 1592 | if (setting.getEStructuralFeature() == RepositoryPackage.eINSTANCE |
| 1593 | .getCompleteComponentType_ParentProvidesComponentTypes()) { |
| 1594 | result |
| 1595 | .add(new PalladioComponentModelLinkDescriptor( |
| 1596 | setting.getEObject(), |
| 1597 | target, |
| 1598 | PalladioComponentModelElementTypes.CompleteComponentTypeParentProvidesComponentTypes_4104, |
| 1599 | CompleteComponentTypeParentProvidesComponentTypesEditPart.VISUAL_ID)); |
| 1600 | } |
| 1601 | } |
| 1602 | return result; |
| 1603 | } |
| 1604 | |
| 1605 | /** |
| 1606 | * @generated |
| 1607 | */ |
| 1608 | private static Collection getIncomingTypeModelFacetLinks_SourceRole_4110( |
| 1609 | EventGroup target, Map crossReferences) { |
| 1610 | Collection result = new LinkedList(); |
| 1611 | Collection settings = (Collection) crossReferences.get(target); |
| 1612 | for (Iterator it = settings.iterator(); it.hasNext();) { |
| 1613 | EStructuralFeature.Setting setting = (EStructuralFeature.Setting) it |
| 1614 | .next(); |
| 1615 | if (setting.getEStructuralFeature() != RepositoryPackage.eINSTANCE |
| 1616 | .getSourceRole_EventGroup__SourceRole() |
| 1617 | || false == setting.getEObject() instanceof SourceRole) { |
| 1618 | continue; |
| 1619 | } |
| 1620 | SourceRole link = (SourceRole) setting.getEObject(); |
| 1621 | if (SourceRoleEditPart.VISUAL_ID != PalladioComponentModelVisualIDRegistry |
| 1622 | .getLinkWithClassVisualID(link)) { |
| 1623 | continue; |
| 1624 | } |
| 1625 | if (false == link.eContainer() instanceof InterfaceRequiringEntity) { |
| 1626 | continue; |
| 1627 | } |
| 1628 | InterfaceRequiringEntity container = (InterfaceRequiringEntity) link |
| 1629 | .eContainer(); |
| 1630 | result.add(new PalladioComponentModelLinkDescriptor(container, |
| 1631 | target, link, |
| 1632 | PalladioComponentModelElementTypes.SourceRole_4110, |
| 1633 | SourceRoleEditPart.VISUAL_ID)); |
| 1634 | |
| 1635 | } |
| 1636 | return result; |
| 1637 | } |
| 1638 | |
| 1639 | /** |
| 1640 | * @generated |
| 1641 | */ |
| 1642 | private static Collection getOutgoingFeatureModelFacetLinks_ImplementationComponentType_ParentCompleteComponentTypes_4103( |
| 1643 | ImplementationComponentType source) { |
| 1644 | Collection result = new LinkedList(); |
| 1645 | for (Iterator destinations = source.getParentCompleteComponentTypes() |
| 1646 | .iterator(); destinations.hasNext();) { |
| 1647 | CompleteComponentType destination = (CompleteComponentType) destinations |
| 1648 | .next(); |
| 1649 | result |
| 1650 | .add(new PalladioComponentModelLinkDescriptor( |
| 1651 | source, |
| 1652 | destination, |
| 1653 | PalladioComponentModelElementTypes.ImplementationComponentTypeParentCompleteComponentTypes_4103, |
| 1654 | ImplementationComponentTypeParentCompleteComponentTypesEditPart.VISUAL_ID)); |
| 1655 | } |
| 1656 | return result; |
| 1657 | } |
| 1658 | |
| 1659 | /** |
| 1660 | * @generated |
| 1661 | */ |
| 1662 | private static Collection getOutgoingFeatureModelFacetLinks_CompleteComponentType_ParentProvidesComponentTypes_4104( |
| 1663 | CompleteComponentType source) { |
| 1664 | Collection result = new LinkedList(); |
| 1665 | for (Iterator destinations = source.getParentProvidesComponentTypes() |
| 1666 | .iterator(); destinations.hasNext();) { |
| 1667 | ProvidesComponentType destination = (ProvidesComponentType) destinations |
| 1668 | .next(); |
| 1669 | result |
| 1670 | .add(new PalladioComponentModelLinkDescriptor( |
| 1671 | source, |
| 1672 | destination, |
| 1673 | PalladioComponentModelElementTypes.CompleteComponentTypeParentProvidesComponentTypes_4104, |
| 1674 | CompleteComponentTypeParentProvidesComponentTypesEditPart.VISUAL_ID)); |
| 1675 | } |
| 1676 | return result; |
| 1677 | } |
| 1678 | |
| 1679 | } |