| /* |
| * Copyright (c) 2003, 2004 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Common Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/cpl-v10.html |
| * |
| * Contributors: |
| * IBM - Initial API and implementation |
| * |
| * $Id: ExecutionOccurrenceImpl.java,v 1.4 2004/06/18 04:34:31 khussey Exp $ |
| */ |
| package org.eclipse.uml2.impl; |
| |
| import java.util.Collection; |
| |
| import java.util.Iterator; |
| |
| import org.eclipse.emf.common.notify.Notification; |
| import org.eclipse.emf.common.notify.NotificationChain; |
| import org.eclipse.emf.common.util.EList; |
| import org.eclipse.emf.ecore.EClass; |
| import org.eclipse.emf.ecore.EStructuralFeature; |
| import org.eclipse.emf.ecore.InternalEObject; |
| import org.eclipse.emf.ecore.impl.ENotificationImpl; |
| import org.eclipse.emf.ecore.util.EObjectResolvingEList; |
| import org.eclipse.emf.ecore.util.InternalEList; |
| import org.eclipse.uml2.Behavior; |
| import org.eclipse.uml2.EventOccurrence; |
| import org.eclipse.uml2.ExecutionOccurrence; |
| import org.eclipse.uml2.Interaction; |
| import org.eclipse.uml2.InteractionOperand; |
| import org.eclipse.uml2.StringExpression; |
| import org.eclipse.uml2.TemplateSignature; |
| import org.eclipse.uml2.UML2Package; |
| import org.eclipse.uml2.VisibilityKind; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model object '<em><b>Execution Occurrence</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * The following features are implemented: |
| * <ul> |
| * <li>{@link org.eclipse.uml2.impl.ExecutionOccurrenceImpl#getStart <em>Start</em>}</li> |
| * <li>{@link org.eclipse.uml2.impl.ExecutionOccurrenceImpl#getFinish <em>Finish</em>}</li> |
| * <li>{@link org.eclipse.uml2.impl.ExecutionOccurrenceImpl#getBehaviors <em>Behavior</em>}</li> |
| * </ul> |
| * </p> |
| * |
| * @generated |
| */ |
| public class ExecutionOccurrenceImpl extends InteractionFragmentImpl implements ExecutionOccurrence { |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public static final String copyright = "Copyright (c) 2003, 2004 IBM Corporation and others."; //$NON-NLS-1$ |
| |
| /** |
| * The cached value of the '{@link #getStart() <em>Start</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getStart() |
| * @generated |
| * @ordered |
| */ |
| protected EventOccurrence start = null; |
| |
| /** |
| * The cached value of the '{@link #getFinish() <em>Finish</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getFinish() |
| * @generated |
| * @ordered |
| */ |
| protected EventOccurrence finish = null; |
| |
| /** |
| * The cached value of the '{@link #getBehaviors() <em>Behavior</em>}' reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getBehaviors() |
| * @generated |
| * @ordered |
| */ |
| protected EList behavior = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected ExecutionOccurrenceImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected EClass eStaticClass() { |
| return UML2Package.eINSTANCE.getExecutionOccurrence(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EventOccurrence getStart() { |
| if (start != null && start.eIsProxy()) { |
| EventOccurrence oldStart = start; |
| start = (EventOccurrence)eResolveProxy((InternalEObject)start); |
| if (start != oldStart) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, UML2Package.EXECUTION_OCCURRENCE__START, oldStart, start)); |
| } |
| } |
| return start; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EventOccurrence basicGetStart() { |
| return start; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetStart(EventOccurrence newStart, NotificationChain msgs) { |
| EventOccurrence oldStart = start; |
| start = newStart; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UML2Package.EXECUTION_OCCURRENCE__START, oldStart, newStart); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setStart(EventOccurrence newStart) { |
| if (newStart != start) { |
| NotificationChain msgs = null; |
| if (start != null) |
| msgs = ((InternalEObject)start).eInverseRemove(this, UML2Package.EVENT_OCCURRENCE__START_EXEC, EventOccurrence.class, msgs); |
| if (newStart != null) |
| msgs = ((InternalEObject)newStart).eInverseAdd(this, UML2Package.EVENT_OCCURRENCE__START_EXEC, EventOccurrence.class, msgs); |
| msgs = basicSetStart(newStart, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, UML2Package.EXECUTION_OCCURRENCE__START, newStart, newStart)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EventOccurrence getFinish() { |
| if (finish != null && finish.eIsProxy()) { |
| EventOccurrence oldFinish = finish; |
| finish = (EventOccurrence)eResolveProxy((InternalEObject)finish); |
| if (finish != oldFinish) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, UML2Package.EXECUTION_OCCURRENCE__FINISH, oldFinish, finish)); |
| } |
| } |
| return finish; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EventOccurrence basicGetFinish() { |
| return finish; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetFinish(EventOccurrence newFinish, NotificationChain msgs) { |
| EventOccurrence oldFinish = finish; |
| finish = newFinish; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UML2Package.EXECUTION_OCCURRENCE__FINISH, oldFinish, newFinish); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setFinish(EventOccurrence newFinish) { |
| if (newFinish != finish) { |
| NotificationChain msgs = null; |
| if (finish != null) |
| msgs = ((InternalEObject)finish).eInverseRemove(this, UML2Package.EVENT_OCCURRENCE__FINISH_EXEC, EventOccurrence.class, msgs); |
| if (newFinish != null) |
| msgs = ((InternalEObject)newFinish).eInverseAdd(this, UML2Package.EVENT_OCCURRENCE__FINISH_EXEC, EventOccurrence.class, msgs); |
| msgs = basicSetFinish(newFinish, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, UML2Package.EXECUTION_OCCURRENCE__FINISH, newFinish, newFinish)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList getBehaviors() { |
| if (behavior == null) { |
| behavior = new EObjectResolvingEList(Behavior.class, this, UML2Package.EXECUTION_OCCURRENCE__BEHAVIOR); |
| } |
| return behavior; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Behavior getBehavior(String unqualifiedName) { |
| for (Iterator i = getBehaviors().iterator(); i.hasNext(); ) { |
| Behavior namedBehavior = (Behavior) i.next(); |
| |
| if (unqualifiedName.equals(namedBehavior.getName())) { |
| return namedBehavior; |
| } |
| } |
| |
| return null; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { |
| if (featureID >= 0) { |
| switch (eDerivedStructuralFeatureID(featureID, baseClass)) { |
| case UML2Package.EXECUTION_OCCURRENCE__EANNOTATIONS: |
| return ((InternalEList)getEAnnotations()).basicAdd(otherEnd, msgs); |
| case UML2Package.EXECUTION_OCCURRENCE__TEMPLATE_BINDING: |
| return ((InternalEList)getTemplateBindings()).basicAdd(otherEnd, msgs); |
| case UML2Package.EXECUTION_OCCURRENCE__OWNED_TEMPLATE_SIGNATURE: |
| if (ownedTemplateSignature != null) |
| msgs = ((InternalEObject)ownedTemplateSignature).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UML2Package.EXECUTION_OCCURRENCE__OWNED_TEMPLATE_SIGNATURE, null, msgs); |
| return basicSetOwnedTemplateSignature((TemplateSignature)otherEnd, msgs); |
| case UML2Package.EXECUTION_OCCURRENCE__CLIENT_DEPENDENCY: |
| return ((InternalEList)getClientDependencies()).basicAdd(otherEnd, msgs); |
| case UML2Package.EXECUTION_OCCURRENCE__COVERED: |
| return ((InternalEList)getCovereds()).basicAdd(otherEnd, msgs); |
| case UML2Package.EXECUTION_OCCURRENCE__ENCLOSING_INTERACTION: |
| if (eContainer != null) |
| msgs = eBasicRemoveFromContainer(msgs); |
| return eBasicSetContainer(otherEnd, UML2Package.EXECUTION_OCCURRENCE__ENCLOSING_INTERACTION, msgs); |
| case UML2Package.EXECUTION_OCCURRENCE__ENCLOSING_OPERAND: |
| if (eContainer != null) |
| msgs = eBasicRemoveFromContainer(msgs); |
| return eBasicSetContainer(otherEnd, UML2Package.EXECUTION_OCCURRENCE__ENCLOSING_OPERAND, msgs); |
| case UML2Package.EXECUTION_OCCURRENCE__START: |
| if (start != null) |
| msgs = ((InternalEObject)start).eInverseRemove(this, UML2Package.EVENT_OCCURRENCE__START_EXEC, EventOccurrence.class, msgs); |
| return basicSetStart((EventOccurrence)otherEnd, msgs); |
| case UML2Package.EXECUTION_OCCURRENCE__FINISH: |
| if (finish != null) |
| msgs = ((InternalEObject)finish).eInverseRemove(this, UML2Package.EVENT_OCCURRENCE__FINISH_EXEC, EventOccurrence.class, msgs); |
| return basicSetFinish((EventOccurrence)otherEnd, msgs); |
| default: |
| return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); |
| } |
| } |
| if (eContainer != null) |
| msgs = eBasicRemoveFromContainer(msgs); |
| return eBasicSetContainer(otherEnd, featureID, msgs); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { |
| if (featureID >= 0) { |
| switch (eDerivedStructuralFeatureID(featureID, baseClass)) { |
| case UML2Package.EXECUTION_OCCURRENCE__EANNOTATIONS: |
| return ((InternalEList)getEAnnotations()).basicRemove(otherEnd, msgs); |
| case UML2Package.EXECUTION_OCCURRENCE__OWNED_COMMENT: |
| return ((InternalEList)getOwnedComments()).basicRemove(otherEnd, msgs); |
| case UML2Package.EXECUTION_OCCURRENCE__TEMPLATE_BINDING: |
| return ((InternalEList)getTemplateBindings()).basicRemove(otherEnd, msgs); |
| case UML2Package.EXECUTION_OCCURRENCE__OWNED_TEMPLATE_SIGNATURE: |
| return basicSetOwnedTemplateSignature(null, msgs); |
| case UML2Package.EXECUTION_OCCURRENCE__CLIENT_DEPENDENCY: |
| return ((InternalEList)getClientDependencies()).basicRemove(otherEnd, msgs); |
| case UML2Package.EXECUTION_OCCURRENCE__NAME_EXPRESSION: |
| return basicSetNameExpression(null, msgs); |
| case UML2Package.EXECUTION_OCCURRENCE__COVERED: |
| return ((InternalEList)getCovereds()).basicRemove(otherEnd, msgs); |
| case UML2Package.EXECUTION_OCCURRENCE__GENERAL_ORDERING: |
| return ((InternalEList)getGeneralOrderings()).basicRemove(otherEnd, msgs); |
| case UML2Package.EXECUTION_OCCURRENCE__ENCLOSING_INTERACTION: |
| return eBasicSetContainer(null, UML2Package.EXECUTION_OCCURRENCE__ENCLOSING_INTERACTION, msgs); |
| case UML2Package.EXECUTION_OCCURRENCE__ENCLOSING_OPERAND: |
| return eBasicSetContainer(null, UML2Package.EXECUTION_OCCURRENCE__ENCLOSING_OPERAND, msgs); |
| case UML2Package.EXECUTION_OCCURRENCE__START: |
| return basicSetStart(null, msgs); |
| case UML2Package.EXECUTION_OCCURRENCE__FINISH: |
| return basicSetFinish(null, msgs); |
| default: |
| return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); |
| } |
| } |
| return eBasicSetContainer(null, featureID, msgs); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { |
| if (eContainerFeatureID >= 0) { |
| switch (eContainerFeatureID) { |
| case UML2Package.EXECUTION_OCCURRENCE__ENCLOSING_INTERACTION: |
| return eContainer.eInverseRemove(this, UML2Package.INTERACTION__FRAGMENT, Interaction.class, msgs); |
| case UML2Package.EXECUTION_OCCURRENCE__ENCLOSING_OPERAND: |
| return eContainer.eInverseRemove(this, UML2Package.INTERACTION_OPERAND__FRAGMENT, InteractionOperand.class, msgs); |
| default: |
| return eDynamicBasicRemoveFromContainer(msgs); |
| } |
| } |
| return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Object eGet(EStructuralFeature eFeature, boolean resolve) { |
| switch (eDerivedStructuralFeatureID(eFeature)) { |
| case UML2Package.EXECUTION_OCCURRENCE__EANNOTATIONS: |
| return getEAnnotations(); |
| case UML2Package.EXECUTION_OCCURRENCE__OWNED_ELEMENT: |
| return getOwnedElements(); |
| case UML2Package.EXECUTION_OCCURRENCE__OWNER: |
| if (resolve) return getOwner(); |
| return basicGetOwner(); |
| case UML2Package.EXECUTION_OCCURRENCE__OWNED_COMMENT: |
| return getOwnedComments(); |
| case UML2Package.EXECUTION_OCCURRENCE__TEMPLATE_BINDING: |
| return getTemplateBindings(); |
| case UML2Package.EXECUTION_OCCURRENCE__OWNED_TEMPLATE_SIGNATURE: |
| return getOwnedTemplateSignature(); |
| case UML2Package.EXECUTION_OCCURRENCE__NAME: |
| return getName(); |
| case UML2Package.EXECUTION_OCCURRENCE__QUALIFIED_NAME: |
| return getQualifiedName(); |
| case UML2Package.EXECUTION_OCCURRENCE__VISIBILITY: |
| return getVisibility(); |
| case UML2Package.EXECUTION_OCCURRENCE__CLIENT_DEPENDENCY: |
| return getClientDependencies(); |
| case UML2Package.EXECUTION_OCCURRENCE__NAME_EXPRESSION: |
| return getNameExpression(); |
| case UML2Package.EXECUTION_OCCURRENCE__COVERED: |
| return getCovereds(); |
| case UML2Package.EXECUTION_OCCURRENCE__GENERAL_ORDERING: |
| return getGeneralOrderings(); |
| case UML2Package.EXECUTION_OCCURRENCE__ENCLOSING_INTERACTION: |
| return getEnclosingInteraction(); |
| case UML2Package.EXECUTION_OCCURRENCE__ENCLOSING_OPERAND: |
| return getEnclosingOperand(); |
| case UML2Package.EXECUTION_OCCURRENCE__START: |
| if (resolve) return getStart(); |
| return basicGetStart(); |
| case UML2Package.EXECUTION_OCCURRENCE__FINISH: |
| if (resolve) return getFinish(); |
| return basicGetFinish(); |
| case UML2Package.EXECUTION_OCCURRENCE__BEHAVIOR: |
| return getBehaviors(); |
| } |
| return eDynamicGet(eFeature, resolve); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void eSet(EStructuralFeature eFeature, Object newValue) { |
| switch (eDerivedStructuralFeatureID(eFeature)) { |
| case UML2Package.EXECUTION_OCCURRENCE__EANNOTATIONS: |
| getEAnnotations().clear(); |
| getEAnnotations().addAll((Collection)newValue); |
| return; |
| case UML2Package.EXECUTION_OCCURRENCE__OWNED_COMMENT: |
| getOwnedComments().clear(); |
| getOwnedComments().addAll((Collection)newValue); |
| return; |
| case UML2Package.EXECUTION_OCCURRENCE__TEMPLATE_BINDING: |
| getTemplateBindings().clear(); |
| getTemplateBindings().addAll((Collection)newValue); |
| return; |
| case UML2Package.EXECUTION_OCCURRENCE__OWNED_TEMPLATE_SIGNATURE: |
| setOwnedTemplateSignature((TemplateSignature)newValue); |
| return; |
| case UML2Package.EXECUTION_OCCURRENCE__NAME: |
| setName((String)newValue); |
| return; |
| case UML2Package.EXECUTION_OCCURRENCE__VISIBILITY: |
| setVisibility((VisibilityKind)newValue); |
| return; |
| case UML2Package.EXECUTION_OCCURRENCE__CLIENT_DEPENDENCY: |
| getClientDependencies().clear(); |
| getClientDependencies().addAll((Collection)newValue); |
| return; |
| case UML2Package.EXECUTION_OCCURRENCE__NAME_EXPRESSION: |
| setNameExpression((StringExpression)newValue); |
| return; |
| case UML2Package.EXECUTION_OCCURRENCE__COVERED: |
| getCovereds().clear(); |
| getCovereds().addAll((Collection)newValue); |
| return; |
| case UML2Package.EXECUTION_OCCURRENCE__GENERAL_ORDERING: |
| getGeneralOrderings().clear(); |
| getGeneralOrderings().addAll((Collection)newValue); |
| return; |
| case UML2Package.EXECUTION_OCCURRENCE__ENCLOSING_INTERACTION: |
| setEnclosingInteraction((Interaction)newValue); |
| return; |
| case UML2Package.EXECUTION_OCCURRENCE__ENCLOSING_OPERAND: |
| setEnclosingOperand((InteractionOperand)newValue); |
| return; |
| case UML2Package.EXECUTION_OCCURRENCE__START: |
| setStart((EventOccurrence)newValue); |
| return; |
| case UML2Package.EXECUTION_OCCURRENCE__FINISH: |
| setFinish((EventOccurrence)newValue); |
| return; |
| case UML2Package.EXECUTION_OCCURRENCE__BEHAVIOR: |
| getBehaviors().clear(); |
| getBehaviors().addAll((Collection)newValue); |
| return; |
| } |
| eDynamicSet(eFeature, newValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void eUnset(EStructuralFeature eFeature) { |
| switch (eDerivedStructuralFeatureID(eFeature)) { |
| case UML2Package.EXECUTION_OCCURRENCE__EANNOTATIONS: |
| getEAnnotations().clear(); |
| return; |
| case UML2Package.EXECUTION_OCCURRENCE__OWNED_COMMENT: |
| getOwnedComments().clear(); |
| return; |
| case UML2Package.EXECUTION_OCCURRENCE__TEMPLATE_BINDING: |
| getTemplateBindings().clear(); |
| return; |
| case UML2Package.EXECUTION_OCCURRENCE__OWNED_TEMPLATE_SIGNATURE: |
| setOwnedTemplateSignature((TemplateSignature)null); |
| return; |
| case UML2Package.EXECUTION_OCCURRENCE__NAME: |
| setName(NAME_EDEFAULT); |
| return; |
| case UML2Package.EXECUTION_OCCURRENCE__VISIBILITY: |
| setVisibility(VISIBILITY_EDEFAULT); |
| return; |
| case UML2Package.EXECUTION_OCCURRENCE__CLIENT_DEPENDENCY: |
| getClientDependencies().clear(); |
| return; |
| case UML2Package.EXECUTION_OCCURRENCE__NAME_EXPRESSION: |
| setNameExpression((StringExpression)null); |
| return; |
| case UML2Package.EXECUTION_OCCURRENCE__COVERED: |
| getCovereds().clear(); |
| return; |
| case UML2Package.EXECUTION_OCCURRENCE__GENERAL_ORDERING: |
| getGeneralOrderings().clear(); |
| return; |
| case UML2Package.EXECUTION_OCCURRENCE__ENCLOSING_INTERACTION: |
| setEnclosingInteraction((Interaction)null); |
| return; |
| case UML2Package.EXECUTION_OCCURRENCE__ENCLOSING_OPERAND: |
| setEnclosingOperand((InteractionOperand)null); |
| return; |
| case UML2Package.EXECUTION_OCCURRENCE__START: |
| setStart((EventOccurrence)null); |
| return; |
| case UML2Package.EXECUTION_OCCURRENCE__FINISH: |
| setFinish((EventOccurrence)null); |
| return; |
| case UML2Package.EXECUTION_OCCURRENCE__BEHAVIOR: |
| getBehaviors().clear(); |
| return; |
| } |
| eDynamicUnset(eFeature); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean eIsSet(EStructuralFeature eFeature) { |
| switch (eDerivedStructuralFeatureID(eFeature)) { |
| case UML2Package.EXECUTION_OCCURRENCE__EANNOTATIONS: |
| return eAnnotations != null && !eAnnotations.isEmpty(); |
| case UML2Package.EXECUTION_OCCURRENCE__OWNED_ELEMENT: |
| return !getOwnedElements().isEmpty(); |
| case UML2Package.EXECUTION_OCCURRENCE__OWNER: |
| return basicGetOwner() != null; |
| case UML2Package.EXECUTION_OCCURRENCE__OWNED_COMMENT: |
| return ownedComment != null && !ownedComment.isEmpty(); |
| case UML2Package.EXECUTION_OCCURRENCE__TEMPLATE_BINDING: |
| return templateBinding != null && !templateBinding.isEmpty(); |
| case UML2Package.EXECUTION_OCCURRENCE__OWNED_TEMPLATE_SIGNATURE: |
| return ownedTemplateSignature != null; |
| case UML2Package.EXECUTION_OCCURRENCE__NAME: |
| return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); |
| case UML2Package.EXECUTION_OCCURRENCE__QUALIFIED_NAME: |
| return QUALIFIED_NAME_EDEFAULT == null ? getQualifiedName() != null : !QUALIFIED_NAME_EDEFAULT.equals(getQualifiedName()); |
| case UML2Package.EXECUTION_OCCURRENCE__VISIBILITY: |
| return visibility != VISIBILITY_EDEFAULT; |
| case UML2Package.EXECUTION_OCCURRENCE__CLIENT_DEPENDENCY: |
| return clientDependency != null && !clientDependency.isEmpty(); |
| case UML2Package.EXECUTION_OCCURRENCE__NAME_EXPRESSION: |
| return nameExpression != null; |
| case UML2Package.EXECUTION_OCCURRENCE__COVERED: |
| return covered != null && !covered.isEmpty(); |
| case UML2Package.EXECUTION_OCCURRENCE__GENERAL_ORDERING: |
| return generalOrdering != null && !generalOrdering.isEmpty(); |
| case UML2Package.EXECUTION_OCCURRENCE__ENCLOSING_INTERACTION: |
| return getEnclosingInteraction() != null; |
| case UML2Package.EXECUTION_OCCURRENCE__ENCLOSING_OPERAND: |
| return getEnclosingOperand() != null; |
| case UML2Package.EXECUTION_OCCURRENCE__START: |
| return start != null; |
| case UML2Package.EXECUTION_OCCURRENCE__FINISH: |
| return finish != null; |
| case UML2Package.EXECUTION_OCCURRENCE__BEHAVIOR: |
| return behavior != null && !behavior.isEmpty(); |
| } |
| return eDynamicIsSet(eFeature); |
| } |
| |
| } //ExecutionOccurrenceImpl |