| 1 | /** |
| 2 | * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany |
| 3 | * |
| 4 | * $Id$ |
| 5 | */ |
| 6 | package de.uka.ipd.sdq.pcm.core.composition.impl; |
| 7 | |
| 8 | import java.util.Map; |
| 9 | |
| 10 | import org.eclipse.emf.common.notify.Notification; |
| 11 | import org.eclipse.emf.common.util.BasicDiagnostic; |
| 12 | import org.eclipse.emf.common.util.Diagnostic; |
| 13 | import org.eclipse.emf.common.util.DiagnosticChain; |
| 14 | import org.eclipse.emf.ecore.EClass; |
| 15 | import org.eclipse.emf.ecore.InternalEObject; |
| 16 | import org.eclipse.emf.ecore.impl.ENotificationImpl; |
| 17 | import org.eclipse.emf.ecore.plugin.EcorePlugin; |
| 18 | import org.eclipse.emf.ecore.util.EObjectValidator; |
| 19 | import org.eclipse.ocl.ParserException; |
| 20 | import org.eclipse.ocl.ecore.Constraint; |
| 21 | import org.eclipse.ocl.ecore.OCL; |
| 22 | |
| 23 | import de.uka.ipd.sdq.pcm.core.composition.AssemblyContext; |
| 24 | import de.uka.ipd.sdq.pcm.core.composition.CompositionPackage; |
| 25 | import de.uka.ipd.sdq.pcm.core.composition.ProvidedDelegationConnector; |
| 26 | import de.uka.ipd.sdq.pcm.core.composition.util.CompositionValidator; |
| 27 | import de.uka.ipd.sdq.pcm.repository.OperationProvidedRole; |
| 28 | import de.uka.ipd.sdq.pcm.repository.impl.DelegationConnectorImpl; |
| 29 | |
| 30 | /** |
| 31 | * <!-- begin-user-doc --> |
| 32 | * An implementation of the model object '<em><b>Provided Delegation Connector</b></em>'. |
| 33 | * <!-- end-user-doc --> |
| 34 | * <p> |
| 35 | * The following features are implemented: |
| 36 | * <ul> |
| 37 | * <li>{@link de.uka.ipd.sdq.pcm.core.composition.impl.ProvidedDelegationConnectorImpl#getInnerProvidedRole_ProvidedDelegationConnector <em>Inner Provided Role Provided Delegation Connector</em>}</li> |
| 38 | * <li>{@link de.uka.ipd.sdq.pcm.core.composition.impl.ProvidedDelegationConnectorImpl#getOuterProvidedRole_ProvidedDelegationConnector <em>Outer Provided Role Provided Delegation Connector</em>}</li> |
| 39 | * <li>{@link de.uka.ipd.sdq.pcm.core.composition.impl.ProvidedDelegationConnectorImpl#getAssemblyContext_ProvidedDelegationConnector <em>Assembly Context Provided Delegation Connector</em>}</li> |
| 40 | * </ul> |
| 41 | * </p> |
| 42 | * |
| 43 | * @generated |
| 44 | */ |
| 45 | public class ProvidedDelegationConnectorImpl extends DelegationConnectorImpl implements ProvidedDelegationConnector { |
| 46 | /** |
| 47 | * <!-- begin-user-doc --> |
| 48 | * <!-- end-user-doc --> |
| 49 | * @generated |
| 50 | */ |
| 51 | public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany"; |
| 52 | |
| 53 | /** |
| 54 | * The cached value of the '{@link #getInnerProvidedRole_ProvidedDelegationConnector() <em>Inner Provided Role Provided Delegation Connector</em>}' reference. |
| 55 | * <!-- begin-user-doc --> |
| 56 | * <!-- end-user-doc --> |
| 57 | * @see #getInnerProvidedRole_ProvidedDelegationConnector() |
| 58 | * @generated |
| 59 | * @ordered |
| 60 | */ |
| 61 | protected OperationProvidedRole innerProvidedRole_ProvidedDelegationConnector; |
| 62 | |
| 63 | /** |
| 64 | * The cached value of the '{@link #getOuterProvidedRole_ProvidedDelegationConnector() <em>Outer Provided Role Provided Delegation Connector</em>}' reference. |
| 65 | * <!-- begin-user-doc --> |
| 66 | * <!-- end-user-doc --> |
| 67 | * @see #getOuterProvidedRole_ProvidedDelegationConnector() |
| 68 | * @generated |
| 69 | * @ordered |
| 70 | */ |
| 71 | protected OperationProvidedRole outerProvidedRole_ProvidedDelegationConnector; |
| 72 | |
| 73 | /** |
| 74 | * The cached value of the '{@link #getAssemblyContext_ProvidedDelegationConnector() <em>Assembly Context Provided Delegation Connector</em>}' reference. |
| 75 | * <!-- begin-user-doc --> |
| 76 | * <!-- end-user-doc --> |
| 77 | * @see #getAssemblyContext_ProvidedDelegationConnector() |
| 78 | * @generated |
| 79 | * @ordered |
| 80 | */ |
| 81 | protected AssemblyContext assemblyContext_ProvidedDelegationConnector; |
| 82 | |
| 83 | /** |
| 84 | * <!-- begin-user-doc --> |
| 85 | * <!-- end-user-doc --> |
| 86 | * @generated |
| 87 | */ |
| 88 | protected ProvidedDelegationConnectorImpl() { |
| 89 | super(); |
| 90 | } |
| 91 | |
| 92 | /** |
| 93 | * <!-- begin-user-doc --> |
| 94 | * <!-- end-user-doc --> |
| 95 | * @generated |
| 96 | */ |
| 97 | @Override |
| 98 | protected EClass eStaticClass() { |
| 99 | return CompositionPackage.Literals.PROVIDED_DELEGATION_CONNECTOR; |
| 100 | } |
| 101 | |
| 102 | /** |
| 103 | * <!-- begin-user-doc --> |
| 104 | * <!-- end-user-doc --> |
| 105 | * @generated |
| 106 | */ |
| 107 | public OperationProvidedRole getInnerProvidedRole_ProvidedDelegationConnector() { |
| 108 | if (innerProvidedRole_ProvidedDelegationConnector != null && innerProvidedRole_ProvidedDelegationConnector.eIsProxy()) { |
| 109 | InternalEObject oldInnerProvidedRole_ProvidedDelegationConnector = (InternalEObject)innerProvidedRole_ProvidedDelegationConnector; |
| 110 | innerProvidedRole_ProvidedDelegationConnector = (OperationProvidedRole)eResolveProxy(oldInnerProvidedRole_ProvidedDelegationConnector); |
| 111 | if (innerProvidedRole_ProvidedDelegationConnector != oldInnerProvidedRole_ProvidedDelegationConnector) { |
| 112 | if (eNotificationRequired()) |
| 113 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CompositionPackage.PROVIDED_DELEGATION_CONNECTOR__INNER_PROVIDED_ROLE_PROVIDED_DELEGATION_CONNECTOR, oldInnerProvidedRole_ProvidedDelegationConnector, innerProvidedRole_ProvidedDelegationConnector)); |
| 114 | } |
| 115 | } |
| 116 | return innerProvidedRole_ProvidedDelegationConnector; |
| 117 | } |
| 118 | |
| 119 | /** |
| 120 | * <!-- begin-user-doc --> |
| 121 | * <!-- end-user-doc --> |
| 122 | * @generated |
| 123 | */ |
| 124 | public OperationProvidedRole basicGetInnerProvidedRole_ProvidedDelegationConnector() { |
| 125 | return innerProvidedRole_ProvidedDelegationConnector; |
| 126 | } |
| 127 | |
| 128 | /** |
| 129 | * <!-- begin-user-doc --> |
| 130 | * <!-- end-user-doc --> |
| 131 | * @generated |
| 132 | */ |
| 133 | public void setInnerProvidedRole_ProvidedDelegationConnector(OperationProvidedRole newInnerProvidedRole_ProvidedDelegationConnector) { |
| 134 | OperationProvidedRole oldInnerProvidedRole_ProvidedDelegationConnector = innerProvidedRole_ProvidedDelegationConnector; |
| 135 | innerProvidedRole_ProvidedDelegationConnector = newInnerProvidedRole_ProvidedDelegationConnector; |
| 136 | if (eNotificationRequired()) |
| 137 | eNotify(new ENotificationImpl(this, Notification.SET, CompositionPackage.PROVIDED_DELEGATION_CONNECTOR__INNER_PROVIDED_ROLE_PROVIDED_DELEGATION_CONNECTOR, oldInnerProvidedRole_ProvidedDelegationConnector, innerProvidedRole_ProvidedDelegationConnector)); |
| 138 | } |
| 139 | |
| 140 | /** |
| 141 | * <!-- begin-user-doc --> |
| 142 | * <!-- end-user-doc --> |
| 143 | * @generated |
| 144 | */ |
| 145 | public OperationProvidedRole getOuterProvidedRole_ProvidedDelegationConnector() { |
| 146 | if (outerProvidedRole_ProvidedDelegationConnector != null && outerProvidedRole_ProvidedDelegationConnector.eIsProxy()) { |
| 147 | InternalEObject oldOuterProvidedRole_ProvidedDelegationConnector = (InternalEObject)outerProvidedRole_ProvidedDelegationConnector; |
| 148 | outerProvidedRole_ProvidedDelegationConnector = (OperationProvidedRole)eResolveProxy(oldOuterProvidedRole_ProvidedDelegationConnector); |
| 149 | if (outerProvidedRole_ProvidedDelegationConnector != oldOuterProvidedRole_ProvidedDelegationConnector) { |
| 150 | if (eNotificationRequired()) |
| 151 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CompositionPackage.PROVIDED_DELEGATION_CONNECTOR__OUTER_PROVIDED_ROLE_PROVIDED_DELEGATION_CONNECTOR, oldOuterProvidedRole_ProvidedDelegationConnector, outerProvidedRole_ProvidedDelegationConnector)); |
| 152 | } |
| 153 | } |
| 154 | return outerProvidedRole_ProvidedDelegationConnector; |
| 155 | } |
| 156 | |
| 157 | /** |
| 158 | * <!-- begin-user-doc --> |
| 159 | * <!-- end-user-doc --> |
| 160 | * @generated |
| 161 | */ |
| 162 | public OperationProvidedRole basicGetOuterProvidedRole_ProvidedDelegationConnector() { |
| 163 | return outerProvidedRole_ProvidedDelegationConnector; |
| 164 | } |
| 165 | |
| 166 | /** |
| 167 | * <!-- begin-user-doc --> |
| 168 | * <!-- end-user-doc --> |
| 169 | * @generated |
| 170 | */ |
| 171 | public void setOuterProvidedRole_ProvidedDelegationConnector(OperationProvidedRole newOuterProvidedRole_ProvidedDelegationConnector) { |
| 172 | OperationProvidedRole oldOuterProvidedRole_ProvidedDelegationConnector = outerProvidedRole_ProvidedDelegationConnector; |
| 173 | outerProvidedRole_ProvidedDelegationConnector = newOuterProvidedRole_ProvidedDelegationConnector; |
| 174 | if (eNotificationRequired()) |
| 175 | eNotify(new ENotificationImpl(this, Notification.SET, CompositionPackage.PROVIDED_DELEGATION_CONNECTOR__OUTER_PROVIDED_ROLE_PROVIDED_DELEGATION_CONNECTOR, oldOuterProvidedRole_ProvidedDelegationConnector, outerProvidedRole_ProvidedDelegationConnector)); |
| 176 | } |
| 177 | |
| 178 | /** |
| 179 | * <!-- begin-user-doc --> |
| 180 | * <!-- end-user-doc --> |
| 181 | * @generated |
| 182 | */ |
| 183 | public AssemblyContext getAssemblyContext_ProvidedDelegationConnector() { |
| 184 | if (assemblyContext_ProvidedDelegationConnector != null && assemblyContext_ProvidedDelegationConnector.eIsProxy()) { |
| 185 | InternalEObject oldAssemblyContext_ProvidedDelegationConnector = (InternalEObject)assemblyContext_ProvidedDelegationConnector; |
| 186 | assemblyContext_ProvidedDelegationConnector = (AssemblyContext)eResolveProxy(oldAssemblyContext_ProvidedDelegationConnector); |
| 187 | if (assemblyContext_ProvidedDelegationConnector != oldAssemblyContext_ProvidedDelegationConnector) { |
| 188 | if (eNotificationRequired()) |
| 189 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CompositionPackage.PROVIDED_DELEGATION_CONNECTOR__ASSEMBLY_CONTEXT_PROVIDED_DELEGATION_CONNECTOR, oldAssemblyContext_ProvidedDelegationConnector, assemblyContext_ProvidedDelegationConnector)); |
| 190 | } |
| 191 | } |
| 192 | return assemblyContext_ProvidedDelegationConnector; |
| 193 | } |
| 194 | |
| 195 | /** |
| 196 | * <!-- begin-user-doc --> |
| 197 | * <!-- end-user-doc --> |
| 198 | * @generated |
| 199 | */ |
| 200 | public AssemblyContext basicGetAssemblyContext_ProvidedDelegationConnector() { |
| 201 | return assemblyContext_ProvidedDelegationConnector; |
| 202 | } |
| 203 | |
| 204 | /** |
| 205 | * <!-- begin-user-doc --> |
| 206 | * <!-- end-user-doc --> |
| 207 | * @generated |
| 208 | */ |
| 209 | public void setAssemblyContext_ProvidedDelegationConnector(AssemblyContext newAssemblyContext_ProvidedDelegationConnector) { |
| 210 | AssemblyContext oldAssemblyContext_ProvidedDelegationConnector = assemblyContext_ProvidedDelegationConnector; |
| 211 | assemblyContext_ProvidedDelegationConnector = newAssemblyContext_ProvidedDelegationConnector; |
| 212 | if (eNotificationRequired()) |
| 213 | eNotify(new ENotificationImpl(this, Notification.SET, CompositionPackage.PROVIDED_DELEGATION_CONNECTOR__ASSEMBLY_CONTEXT_PROVIDED_DELEGATION_CONNECTOR, oldAssemblyContext_ProvidedDelegationConnector, assemblyContext_ProvidedDelegationConnector)); |
| 214 | } |
| 215 | |
| 216 | /** |
| 217 | * The cached OCL expression body for the '{@link #ProvidedDelegationConnectorandtheconnectedComponentmustbepartofthesamecompositestructure(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Provided Delegation Connectorandtheconnected Componentmustbepartofthesamecompositestructure</em>}' operation. |
| 218 | * <!-- begin-user-doc --> |
| 219 | * <!-- end-user-doc --> |
| 220 | * @see #ProvidedDelegationConnectorandtheconnectedComponentmustbepartofthesamecompositestructure(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) |
| 221 | * @generated |
| 222 | * @ordered |
| 223 | */ |
| 224 | protected static final String PROVIDED_DELEGATION_CONNECTORANDTHECONNECTED_COMPONENTMUSTBEPARTOFTHESAMECOMPOSITESTRUCTURE__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP = "self.parentStructure__Connector = self.assemblyContext_ProvidedDelegationConnector.parentStructure__AssemblyContext"; |
| 225 | |
| 226 | /** |
| 227 | * The cached OCL invariant for the '{@link #ProvidedDelegationConnectorandtheconnectedComponentmustbepartofthesamecompositestructure(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Provided Delegation Connectorandtheconnected Componentmustbepartofthesamecompositestructure</em>}' invariant operation. |
| 228 | * <!-- begin-user-doc --> |
| 229 | * <!-- end-user-doc --> |
| 230 | * @see #ProvidedDelegationConnectorandtheconnectedComponentmustbepartofthesamecompositestructure(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) |
| 231 | * @generated |
| 232 | * @ordered |
| 233 | */ |
| 234 | protected static Constraint PROVIDED_DELEGATION_CONNECTORANDTHECONNECTED_COMPONENTMUSTBEPARTOFTHESAMECOMPOSITESTRUCTURE__DIAGNOSTIC_CHAIN_MAP__EOCL_INV; |
| 235 | |
| 236 | /** |
| 237 | * <!-- begin-user-doc --> |
| 238 | * <!-- end-user-doc --> |
| 239 | * @generated |
| 240 | */ |
| 241 | public boolean ProvidedDelegationConnectorandtheconnectedComponentmustbepartofthesamecompositestructure(DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 242 | if (PROVIDED_DELEGATION_CONNECTORANDTHECONNECTED_COMPONENTMUSTBEPARTOFTHESAMECOMPOSITESTRUCTURE__DIAGNOSTIC_CHAIN_MAP__EOCL_INV == null) { |
| 243 | OCL.Helper helper = EOCL_ENV.createOCLHelper(); |
| 244 | helper.setContext(CompositionPackage.Literals.PROVIDED_DELEGATION_CONNECTOR); |
| 245 | try { |
| 246 | PROVIDED_DELEGATION_CONNECTORANDTHECONNECTED_COMPONENTMUSTBEPARTOFTHESAMECOMPOSITESTRUCTURE__DIAGNOSTIC_CHAIN_MAP__EOCL_INV = helper.createInvariant(PROVIDED_DELEGATION_CONNECTORANDTHECONNECTED_COMPONENTMUSTBEPARTOFTHESAMECOMPOSITESTRUCTURE__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP); |
| 247 | } |
| 248 | catch (ParserException pe) { |
| 249 | throw new UnsupportedOperationException(pe.getLocalizedMessage()); |
| 250 | } |
| 251 | } |
| 252 | if (!EOCL_ENV.createQuery(PROVIDED_DELEGATION_CONNECTORANDTHECONNECTED_COMPONENTMUSTBEPARTOFTHESAMECOMPOSITESTRUCTURE__DIAGNOSTIC_CHAIN_MAP__EOCL_INV).check(this)) { |
| 253 | if (diagnostics != null) { |
| 254 | diagnostics.add |
| 255 | (new BasicDiagnostic |
| 256 | (Diagnostic.ERROR, |
| 257 | CompositionValidator.DIAGNOSTIC_SOURCE, |
| 258 | CompositionValidator.PROVIDED_DELEGATION_CONNECTOR__PROVIDED_DELEGATION_CONNECTORANDTHECONNECTED_COMPONENTMUSTBEPARTOFTHESAMECOMPOSITESTRUCTURE, |
| 259 | EcorePlugin.INSTANCE.getString("_UI_GenericInvariant_diagnostic", new Object[] { "ProvidedDelegationConnectorandtheconnectedComponentmustbepartofthesamecompositestructure", EObjectValidator.getObjectLabel(this, context) }), |
| 260 | new Object [] { this })); |
| 261 | } |
| 262 | return false; |
| 263 | } |
| 264 | return true; |
| 265 | } |
| 266 | |
| 267 | /** |
| 268 | * The cached OCL expression body for the '{@link #ComponentOfAssemblyContextAndInnerRoleProvidingComponentNeedToBeTheSame(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Component Of Assembly Context And Inner Role Providing Component Need To Be The Same</em>}' operation. |
| 269 | * <!-- begin-user-doc --> |
| 270 | * <!-- end-user-doc --> |
| 271 | * @see #ComponentOfAssemblyContextAndInnerRoleProvidingComponentNeedToBeTheSame(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) |
| 272 | * @generated |
| 273 | * @ordered |
| 274 | */ |
| 275 | protected static final String COMPONENT_OF_ASSEMBLY_CONTEXT_AND_INNER_ROLE_PROVIDING_COMPONENT_NEED_TO_BE_THE_SAME__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP = "self.innerProvidedRole_ProvidedDelegationConnector.providingEntity_ProvidedRole = self.assemblyContext_ProvidedDelegationConnector.encapsulatedComponent__AssemblyContext"; |
| 276 | |
| 277 | /** |
| 278 | * The cached OCL invariant for the '{@link #ComponentOfAssemblyContextAndInnerRoleProvidingComponentNeedToBeTheSame(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Component Of Assembly Context And Inner Role Providing Component Need To Be The Same</em>}' invariant operation. |
| 279 | * <!-- begin-user-doc --> |
| 280 | * <!-- end-user-doc --> |
| 281 | * @see #ComponentOfAssemblyContextAndInnerRoleProvidingComponentNeedToBeTheSame(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) |
| 282 | * @generated |
| 283 | * @ordered |
| 284 | */ |
| 285 | protected static Constraint COMPONENT_OF_ASSEMBLY_CONTEXT_AND_INNER_ROLE_PROVIDING_COMPONENT_NEED_TO_BE_THE_SAME__DIAGNOSTIC_CHAIN_MAP__EOCL_INV; |
| 286 | |
| 287 | /** |
| 288 | * <!-- begin-user-doc --> |
| 289 | * <!-- end-user-doc --> |
| 290 | * @generated |
| 291 | */ |
| 292 | public boolean ComponentOfAssemblyContextAndInnerRoleProvidingComponentNeedToBeTheSame(DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 293 | if (COMPONENT_OF_ASSEMBLY_CONTEXT_AND_INNER_ROLE_PROVIDING_COMPONENT_NEED_TO_BE_THE_SAME__DIAGNOSTIC_CHAIN_MAP__EOCL_INV == null) { |
| 294 | OCL.Helper helper = EOCL_ENV.createOCLHelper(); |
| 295 | helper.setContext(CompositionPackage.Literals.PROVIDED_DELEGATION_CONNECTOR); |
| 296 | try { |
| 297 | COMPONENT_OF_ASSEMBLY_CONTEXT_AND_INNER_ROLE_PROVIDING_COMPONENT_NEED_TO_BE_THE_SAME__DIAGNOSTIC_CHAIN_MAP__EOCL_INV = helper.createInvariant(COMPONENT_OF_ASSEMBLY_CONTEXT_AND_INNER_ROLE_PROVIDING_COMPONENT_NEED_TO_BE_THE_SAME__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP); |
| 298 | } |
| 299 | catch (ParserException pe) { |
| 300 | throw new UnsupportedOperationException(pe.getLocalizedMessage()); |
| 301 | } |
| 302 | } |
| 303 | if (!EOCL_ENV.createQuery(COMPONENT_OF_ASSEMBLY_CONTEXT_AND_INNER_ROLE_PROVIDING_COMPONENT_NEED_TO_BE_THE_SAME__DIAGNOSTIC_CHAIN_MAP__EOCL_INV).check(this)) { |
| 304 | if (diagnostics != null) { |
| 305 | diagnostics.add |
| 306 | (new BasicDiagnostic |
| 307 | (Diagnostic.ERROR, |
| 308 | CompositionValidator.DIAGNOSTIC_SOURCE, |
| 309 | CompositionValidator.PROVIDED_DELEGATION_CONNECTOR__COMPONENT_OF_ASSEMBLY_CONTEXT_AND_INNER_ROLE_PROVIDING_COMPONENT_NEED_TO_BE_THE_SAME, |
| 310 | EcorePlugin.INSTANCE.getString("_UI_GenericInvariant_diagnostic", new Object[] { "ComponentOfAssemblyContextAndInnerRoleProvidingComponentNeedToBeTheSame", EObjectValidator.getObjectLabel(this, context) }), |
| 311 | new Object [] { this })); |
| 312 | } |
| 313 | return false; |
| 314 | } |
| 315 | return true; |
| 316 | } |
| 317 | |
| 318 | /** |
| 319 | * <!-- begin-user-doc --> |
| 320 | * <!-- end-user-doc --> |
| 321 | * @generated |
| 322 | */ |
| 323 | @Override |
| 324 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
| 325 | switch (featureID) { |
| 326 | case CompositionPackage.PROVIDED_DELEGATION_CONNECTOR__INNER_PROVIDED_ROLE_PROVIDED_DELEGATION_CONNECTOR: |
| 327 | if (resolve) return getInnerProvidedRole_ProvidedDelegationConnector(); |
| 328 | return basicGetInnerProvidedRole_ProvidedDelegationConnector(); |
| 329 | case CompositionPackage.PROVIDED_DELEGATION_CONNECTOR__OUTER_PROVIDED_ROLE_PROVIDED_DELEGATION_CONNECTOR: |
| 330 | if (resolve) return getOuterProvidedRole_ProvidedDelegationConnector(); |
| 331 | return basicGetOuterProvidedRole_ProvidedDelegationConnector(); |
| 332 | case CompositionPackage.PROVIDED_DELEGATION_CONNECTOR__ASSEMBLY_CONTEXT_PROVIDED_DELEGATION_CONNECTOR: |
| 333 | if (resolve) return getAssemblyContext_ProvidedDelegationConnector(); |
| 334 | return basicGetAssemblyContext_ProvidedDelegationConnector(); |
| 335 | } |
| 336 | return super.eGet(featureID, resolve, coreType); |
| 337 | } |
| 338 | |
| 339 | /** |
| 340 | * <!-- begin-user-doc --> |
| 341 | * <!-- end-user-doc --> |
| 342 | * @generated |
| 343 | */ |
| 344 | @Override |
| 345 | public void eSet(int featureID, Object newValue) { |
| 346 | switch (featureID) { |
| 347 | case CompositionPackage.PROVIDED_DELEGATION_CONNECTOR__INNER_PROVIDED_ROLE_PROVIDED_DELEGATION_CONNECTOR: |
| 348 | setInnerProvidedRole_ProvidedDelegationConnector((OperationProvidedRole)newValue); |
| 349 | return; |
| 350 | case CompositionPackage.PROVIDED_DELEGATION_CONNECTOR__OUTER_PROVIDED_ROLE_PROVIDED_DELEGATION_CONNECTOR: |
| 351 | setOuterProvidedRole_ProvidedDelegationConnector((OperationProvidedRole)newValue); |
| 352 | return; |
| 353 | case CompositionPackage.PROVIDED_DELEGATION_CONNECTOR__ASSEMBLY_CONTEXT_PROVIDED_DELEGATION_CONNECTOR: |
| 354 | setAssemblyContext_ProvidedDelegationConnector((AssemblyContext)newValue); |
| 355 | return; |
| 356 | } |
| 357 | super.eSet(featureID, newValue); |
| 358 | } |
| 359 | |
| 360 | /** |
| 361 | * <!-- begin-user-doc --> |
| 362 | * <!-- end-user-doc --> |
| 363 | * @generated |
| 364 | */ |
| 365 | @Override |
| 366 | public void eUnset(int featureID) { |
| 367 | switch (featureID) { |
| 368 | case CompositionPackage.PROVIDED_DELEGATION_CONNECTOR__INNER_PROVIDED_ROLE_PROVIDED_DELEGATION_CONNECTOR: |
| 369 | setInnerProvidedRole_ProvidedDelegationConnector((OperationProvidedRole)null); |
| 370 | return; |
| 371 | case CompositionPackage.PROVIDED_DELEGATION_CONNECTOR__OUTER_PROVIDED_ROLE_PROVIDED_DELEGATION_CONNECTOR: |
| 372 | setOuterProvidedRole_ProvidedDelegationConnector((OperationProvidedRole)null); |
| 373 | return; |
| 374 | case CompositionPackage.PROVIDED_DELEGATION_CONNECTOR__ASSEMBLY_CONTEXT_PROVIDED_DELEGATION_CONNECTOR: |
| 375 | setAssemblyContext_ProvidedDelegationConnector((AssemblyContext)null); |
| 376 | return; |
| 377 | } |
| 378 | super.eUnset(featureID); |
| 379 | } |
| 380 | |
| 381 | /** |
| 382 | * <!-- begin-user-doc --> |
| 383 | * <!-- end-user-doc --> |
| 384 | * @generated |
| 385 | */ |
| 386 | @Override |
| 387 | public boolean eIsSet(int featureID) { |
| 388 | switch (featureID) { |
| 389 | case CompositionPackage.PROVIDED_DELEGATION_CONNECTOR__INNER_PROVIDED_ROLE_PROVIDED_DELEGATION_CONNECTOR: |
| 390 | return innerProvidedRole_ProvidedDelegationConnector != null; |
| 391 | case CompositionPackage.PROVIDED_DELEGATION_CONNECTOR__OUTER_PROVIDED_ROLE_PROVIDED_DELEGATION_CONNECTOR: |
| 392 | return outerProvidedRole_ProvidedDelegationConnector != null; |
| 393 | case CompositionPackage.PROVIDED_DELEGATION_CONNECTOR__ASSEMBLY_CONTEXT_PROVIDED_DELEGATION_CONNECTOR: |
| 394 | return assemblyContext_ProvidedDelegationConnector != null; |
| 395 | } |
| 396 | return super.eIsSet(featureID); |
| 397 | } |
| 398 | |
| 399 | /** |
| 400 | * The cached environment for evaluating OCL expressions. |
| 401 | * <!-- begin-user-doc --> |
| 402 | * <!-- end-user-doc --> |
| 403 | * @generated |
| 404 | * @ordered |
| 405 | */ |
| 406 | protected static final OCL EOCL_ENV = OCL.newInstance(); |
| 407 | |
| 408 | } //ProvidedDelegationConnectorImpl |