| /* |
| * Copyright (c) 2005, 2006 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * IBM - initial API and implementation |
| * |
| * $Id: CallOperationActionImpl.java,v 1.21 2006/05/24 20:54:28 khussey Exp $ |
| */ |
| package org.eclipse.uml2.uml.internal.impl; |
| |
| import java.util.Collection; |
| import java.util.Map; |
| |
| import org.eclipse.emf.common.notify.Notification; |
| import org.eclipse.emf.common.notify.NotificationChain; |
| |
| import org.eclipse.emf.common.util.DiagnosticChain; |
| |
| import org.eclipse.emf.common.util.EList; |
| |
| import org.eclipse.emf.ecore.EClass; |
| import org.eclipse.emf.ecore.InternalEObject; |
| |
| import org.eclipse.emf.ecore.impl.ENotificationImpl; |
| |
| import org.eclipse.emf.ecore.resource.Resource; |
| |
| import org.eclipse.emf.ecore.util.InternalEList; |
| |
| import org.eclipse.uml2.common.util.CacheAdapter; |
| import org.eclipse.uml2.common.util.DerivedUnionEObjectEList; |
| |
| import org.eclipse.uml2.uml.Activity; |
| import org.eclipse.uml2.uml.CallOperationAction; |
| import org.eclipse.uml2.uml.InputPin; |
| import org.eclipse.uml2.uml.Operation; |
| import org.eclipse.uml2.uml.Port; |
| import org.eclipse.uml2.uml.StringExpression; |
| import org.eclipse.uml2.uml.StructuredActivityNode; |
| import org.eclipse.uml2.uml.Type; |
| import org.eclipse.uml2.uml.UMLPackage; |
| import org.eclipse.uml2.uml.VisibilityKind; |
| |
| import org.eclipse.uml2.uml.internal.operations.CallOperationActionOperations; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model object '<em><b>Call Operation Action</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * The following features are implemented: |
| * <ul> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.CallOperationActionImpl#getInputs <em>Input</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.CallOperationActionImpl#getOperation <em>Operation</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.CallOperationActionImpl#getTarget <em>Target</em>}</li> |
| * </ul> |
| * </p> |
| * |
| * @generated |
| */ |
| public class CallOperationActionImpl |
| extends CallActionImpl |
| implements CallOperationAction { |
| |
| /** |
| * The cached value of the '{@link #getOperation() <em>Operation</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getOperation() |
| * @generated |
| * @ordered |
| */ |
| protected Operation operation = null; |
| |
| /** |
| * The cached value of the '{@link #getTarget() <em>Target</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getTarget() |
| * @generated |
| * @ordered |
| */ |
| protected InputPin target = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected CallOperationActionImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected EClass eStaticClass() { |
| return UMLPackage.Literals.CALL_OPERATION_ACTION; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList getInputs() { |
| CacheAdapter cache = getCacheAdapter(); |
| if (cache != null) { |
| Resource eResource = eResource(); |
| EList inputs = (EList) cache.get(eResource, this, |
| UMLPackage.Literals.ACTION__INPUT); |
| if (inputs == null) { |
| cache |
| .put(eResource, this, UMLPackage.Literals.ACTION__INPUT, |
| inputs = new DerivedUnionEObjectEList(InputPin.class, |
| this, UMLPackage.CALL_OPERATION_ACTION__INPUT, |
| INPUT_ESUBSETS)); |
| } |
| return inputs; |
| } |
| return new DerivedUnionEObjectEList(InputPin.class, this, |
| UMLPackage.CALL_OPERATION_ACTION__INPUT, INPUT_ESUBSETS); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Operation getOperation() { |
| if (operation != null && operation.eIsProxy()) { |
| InternalEObject oldOperation = (InternalEObject) operation; |
| operation = (Operation) eResolveProxy(oldOperation); |
| if (operation != oldOperation) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, |
| UMLPackage.CALL_OPERATION_ACTION__OPERATION, |
| oldOperation, operation)); |
| } |
| } |
| return operation; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Operation basicGetOperation() { |
| return operation; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setOperation(Operation newOperation) { |
| Operation oldOperation = operation; |
| operation = newOperation; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, |
| UMLPackage.CALL_OPERATION_ACTION__OPERATION, oldOperation, |
| operation)); |
| |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public InputPin getTarget() { |
| if (target != null && target.eIsProxy()) { |
| InternalEObject oldTarget = (InternalEObject) target; |
| target = (InputPin) eResolveProxy(oldTarget); |
| if (target != oldTarget) { |
| InternalEObject newTarget = (InternalEObject) target; |
| NotificationChain msgs = oldTarget.eInverseRemove(this, |
| EOPPOSITE_FEATURE_BASE |
| - UMLPackage.CALL_OPERATION_ACTION__TARGET, null, null); |
| if (newTarget.eInternalContainer() == null) { |
| msgs = newTarget.eInverseAdd(this, EOPPOSITE_FEATURE_BASE |
| - UMLPackage.CALL_OPERATION_ACTION__TARGET, null, msgs); |
| } |
| if (msgs != null) |
| msgs.dispatch(); |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, |
| UMLPackage.CALL_OPERATION_ACTION__TARGET, oldTarget, |
| target)); |
| } |
| } |
| return target; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public InputPin basicGetTarget() { |
| return target; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetTarget(InputPin newTarget, |
| NotificationChain msgs) { |
| InputPin oldTarget = target; |
| target = newTarget; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, |
| Notification.SET, UMLPackage.CALL_OPERATION_ACTION__TARGET, |
| oldTarget, newTarget); |
| if (msgs == null) |
| msgs = notification; |
| else |
| msgs.add(notification); |
| } |
| |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setTarget(InputPin newTarget) { |
| if (newTarget != target) { |
| NotificationChain msgs = null; |
| if (target != null) |
| msgs = ((InternalEObject) target).eInverseRemove(this, |
| EOPPOSITE_FEATURE_BASE |
| - UMLPackage.CALL_OPERATION_ACTION__TARGET, null, msgs); |
| if (newTarget != null) |
| msgs = ((InternalEObject) newTarget).eInverseAdd(this, |
| EOPPOSITE_FEATURE_BASE |
| - UMLPackage.CALL_OPERATION_ACTION__TARGET, null, msgs); |
| msgs = basicSetTarget(newTarget, msgs); |
| if (msgs != null) |
| msgs.dispatch(); |
| } else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, |
| UMLPackage.CALL_OPERATION_ACTION__TARGET, newTarget, newTarget)); |
| |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public InputPin createTarget(String name, Type type, EClass eClass) { |
| InputPin newTarget = (InputPin) create(eClass); |
| setTarget(newTarget); |
| if (name != null) |
| newTarget.setName(name); |
| if (type != null) |
| newTarget.setType(type); |
| return newTarget; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public InputPin createTarget(String name, Type type) { |
| return createTarget(name, type, UMLPackage.Literals.INPUT_PIN); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean validateArgumentPinEqualParameter( |
| DiagnosticChain diagnostics, Map context) { |
| return CallOperationActionOperations.validateArgumentPinEqualParameter( |
| this, diagnostics, context); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean validateResultPinEqualParameter(DiagnosticChain diagnostics, |
| Map context) { |
| return CallOperationActionOperations.validateResultPinEqualParameter( |
| this, diagnostics, context); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean validateTypeTargetPin(DiagnosticChain diagnostics, |
| Map context) { |
| return CallOperationActionOperations.validateTypeTargetPin(this, |
| diagnostics, context); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean validateTypeOrderingMultiplicity( |
| DiagnosticChain diagnostics, Map context) { |
| return CallOperationActionOperations.validateTypeOrderingMultiplicity( |
| this, diagnostics, context); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain eInverseRemove(InternalEObject otherEnd, |
| int featureID, NotificationChain msgs) { |
| switch (featureID) { |
| case UMLPackage.CALL_OPERATION_ACTION__EANNOTATIONS : |
| return ((InternalEList) getEAnnotations()).basicRemove( |
| otherEnd, msgs); |
| case UMLPackage.CALL_OPERATION_ACTION__OWNED_COMMENT : |
| return ((InternalEList) getOwnedComments()).basicRemove( |
| otherEnd, msgs); |
| case UMLPackage.CALL_OPERATION_ACTION__CLIENT_DEPENDENCY : |
| return ((InternalEList) getClientDependencies()).basicRemove( |
| otherEnd, msgs); |
| case UMLPackage.CALL_OPERATION_ACTION__NAME_EXPRESSION : |
| return basicSetNameExpression(null, msgs); |
| case UMLPackage.CALL_OPERATION_ACTION__IN_STRUCTURED_NODE : |
| return basicSetInStructuredNode(null, msgs); |
| case UMLPackage.CALL_OPERATION_ACTION__ACTIVITY : |
| return basicSetActivity(null, msgs); |
| case UMLPackage.CALL_OPERATION_ACTION__OUTGOING : |
| return ((InternalEList) getOutgoings()).basicRemove(otherEnd, |
| msgs); |
| case UMLPackage.CALL_OPERATION_ACTION__INCOMING : |
| return ((InternalEList) getIncomings()).basicRemove(otherEnd, |
| msgs); |
| case UMLPackage.CALL_OPERATION_ACTION__IN_PARTITION : |
| return ((InternalEList) getInPartitions()).basicRemove( |
| otherEnd, msgs); |
| case UMLPackage.CALL_OPERATION_ACTION__IN_INTERRUPTIBLE_REGION : |
| return ((InternalEList) getInInterruptibleRegions()) |
| .basicRemove(otherEnd, msgs); |
| case UMLPackage.CALL_OPERATION_ACTION__HANDLER : |
| return ((InternalEList) getHandlers()).basicRemove(otherEnd, |
| msgs); |
| case UMLPackage.CALL_OPERATION_ACTION__LOCAL_PRECONDITION : |
| return ((InternalEList) getLocalPreconditions()).basicRemove( |
| otherEnd, msgs); |
| case UMLPackage.CALL_OPERATION_ACTION__LOCAL_POSTCONDITION : |
| return ((InternalEList) getLocalPostconditions()).basicRemove( |
| otherEnd, msgs); |
| case UMLPackage.CALL_OPERATION_ACTION__ARGUMENT : |
| return ((InternalEList) getArguments()).basicRemove(otherEnd, |
| msgs); |
| case UMLPackage.CALL_OPERATION_ACTION__RESULT : |
| return ((InternalEList) getResults()).basicRemove(otherEnd, |
| msgs); |
| case UMLPackage.CALL_OPERATION_ACTION__TARGET : |
| return basicSetTarget(null, msgs); |
| } |
| return eDynamicInverseRemove(otherEnd, featureID, msgs); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Object eGet(int featureID, boolean resolve, boolean coreType) { |
| switch (featureID) { |
| case UMLPackage.CALL_OPERATION_ACTION__EANNOTATIONS : |
| return getEAnnotations(); |
| case UMLPackage.CALL_OPERATION_ACTION__OWNED_ELEMENT : |
| return getOwnedElements(); |
| case UMLPackage.CALL_OPERATION_ACTION__OWNER : |
| if (resolve) |
| return getOwner(); |
| return basicGetOwner(); |
| case UMLPackage.CALL_OPERATION_ACTION__OWNED_COMMENT : |
| return getOwnedComments(); |
| case UMLPackage.CALL_OPERATION_ACTION__NAME : |
| return getName(); |
| case UMLPackage.CALL_OPERATION_ACTION__VISIBILITY : |
| return getVisibility(); |
| case UMLPackage.CALL_OPERATION_ACTION__QUALIFIED_NAME : |
| return getQualifiedName(); |
| case UMLPackage.CALL_OPERATION_ACTION__CLIENT_DEPENDENCY : |
| return getClientDependencies(); |
| case UMLPackage.CALL_OPERATION_ACTION__NAMESPACE : |
| if (resolve) |
| return getNamespace(); |
| return basicGetNamespace(); |
| case UMLPackage.CALL_OPERATION_ACTION__NAME_EXPRESSION : |
| if (resolve) |
| return getNameExpression(); |
| return basicGetNameExpression(); |
| case UMLPackage.CALL_OPERATION_ACTION__IS_LEAF : |
| return isLeaf() |
| ? Boolean.TRUE |
| : Boolean.FALSE; |
| case UMLPackage.CALL_OPERATION_ACTION__REDEFINED_ELEMENT : |
| return getRedefinedElements(); |
| case UMLPackage.CALL_OPERATION_ACTION__REDEFINITION_CONTEXT : |
| return getRedefinitionContexts(); |
| case UMLPackage.CALL_OPERATION_ACTION__IN_STRUCTURED_NODE : |
| if (resolve) |
| return getInStructuredNode(); |
| return basicGetInStructuredNode(); |
| case UMLPackage.CALL_OPERATION_ACTION__ACTIVITY : |
| if (resolve) |
| return getActivity(); |
| return basicGetActivity(); |
| case UMLPackage.CALL_OPERATION_ACTION__OUTGOING : |
| return getOutgoings(); |
| case UMLPackage.CALL_OPERATION_ACTION__INCOMING : |
| return getIncomings(); |
| case UMLPackage.CALL_OPERATION_ACTION__IN_PARTITION : |
| return getInPartitions(); |
| case UMLPackage.CALL_OPERATION_ACTION__IN_INTERRUPTIBLE_REGION : |
| return getInInterruptibleRegions(); |
| case UMLPackage.CALL_OPERATION_ACTION__IN_GROUP : |
| return getInGroups(); |
| case UMLPackage.CALL_OPERATION_ACTION__REDEFINED_NODE : |
| return getRedefinedNodes(); |
| case UMLPackage.CALL_OPERATION_ACTION__HANDLER : |
| return getHandlers(); |
| case UMLPackage.CALL_OPERATION_ACTION__OUTPUT : |
| return getOutputs(); |
| case UMLPackage.CALL_OPERATION_ACTION__INPUT : |
| return getInputs(); |
| case UMLPackage.CALL_OPERATION_ACTION__CONTEXT : |
| if (resolve) |
| return getContext(); |
| return basicGetContext(); |
| case UMLPackage.CALL_OPERATION_ACTION__LOCAL_PRECONDITION : |
| return getLocalPreconditions(); |
| case UMLPackage.CALL_OPERATION_ACTION__LOCAL_POSTCONDITION : |
| return getLocalPostconditions(); |
| case UMLPackage.CALL_OPERATION_ACTION__ARGUMENT : |
| return getArguments(); |
| case UMLPackage.CALL_OPERATION_ACTION__ON_PORT : |
| if (resolve) |
| return getOnPort(); |
| return basicGetOnPort(); |
| case UMLPackage.CALL_OPERATION_ACTION__IS_SYNCHRONOUS : |
| return isSynchronous() |
| ? Boolean.TRUE |
| : Boolean.FALSE; |
| case UMLPackage.CALL_OPERATION_ACTION__RESULT : |
| return getResults(); |
| case UMLPackage.CALL_OPERATION_ACTION__OPERATION : |
| if (resolve) |
| return getOperation(); |
| return basicGetOperation(); |
| case UMLPackage.CALL_OPERATION_ACTION__TARGET : |
| if (resolve) |
| return getTarget(); |
| return basicGetTarget(); |
| } |
| return eDynamicGet(featureID, resolve, coreType); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void eSet(int featureID, Object newValue) { |
| switch (featureID) { |
| case UMLPackage.CALL_OPERATION_ACTION__EANNOTATIONS : |
| getEAnnotations().clear(); |
| getEAnnotations().addAll((Collection) newValue); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__OWNED_COMMENT : |
| getOwnedComments().clear(); |
| getOwnedComments().addAll((Collection) newValue); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__NAME : |
| setName((String) newValue); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__VISIBILITY : |
| setVisibility((VisibilityKind) newValue); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__CLIENT_DEPENDENCY : |
| getClientDependencies().clear(); |
| getClientDependencies().addAll((Collection) newValue); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__NAME_EXPRESSION : |
| setNameExpression((StringExpression) newValue); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__IS_LEAF : |
| setIsLeaf(((Boolean) newValue).booleanValue()); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__IN_STRUCTURED_NODE : |
| setInStructuredNode((StructuredActivityNode) newValue); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__ACTIVITY : |
| setActivity((Activity) newValue); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__OUTGOING : |
| getOutgoings().clear(); |
| getOutgoings().addAll((Collection) newValue); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__INCOMING : |
| getIncomings().clear(); |
| getIncomings().addAll((Collection) newValue); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__IN_PARTITION : |
| getInPartitions().clear(); |
| getInPartitions().addAll((Collection) newValue); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__IN_INTERRUPTIBLE_REGION : |
| getInInterruptibleRegions().clear(); |
| getInInterruptibleRegions().addAll((Collection) newValue); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__REDEFINED_NODE : |
| getRedefinedNodes().clear(); |
| getRedefinedNodes().addAll((Collection) newValue); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__HANDLER : |
| getHandlers().clear(); |
| getHandlers().addAll((Collection) newValue); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__LOCAL_PRECONDITION : |
| getLocalPreconditions().clear(); |
| getLocalPreconditions().addAll((Collection) newValue); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__LOCAL_POSTCONDITION : |
| getLocalPostconditions().clear(); |
| getLocalPostconditions().addAll((Collection) newValue); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__ARGUMENT : |
| getArguments().clear(); |
| getArguments().addAll((Collection) newValue); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__ON_PORT : |
| setOnPort((Port) newValue); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__IS_SYNCHRONOUS : |
| setIsSynchronous(((Boolean) newValue).booleanValue()); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__RESULT : |
| getResults().clear(); |
| getResults().addAll((Collection) newValue); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__OPERATION : |
| setOperation((Operation) newValue); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__TARGET : |
| setTarget((InputPin) newValue); |
| return; |
| } |
| eDynamicSet(featureID, newValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void eUnset(int featureID) { |
| switch (featureID) { |
| case UMLPackage.CALL_OPERATION_ACTION__EANNOTATIONS : |
| getEAnnotations().clear(); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__OWNED_COMMENT : |
| getOwnedComments().clear(); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__NAME : |
| unsetName(); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__VISIBILITY : |
| unsetVisibility(); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__CLIENT_DEPENDENCY : |
| getClientDependencies().clear(); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__NAME_EXPRESSION : |
| setNameExpression((StringExpression) null); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__IS_LEAF : |
| setIsLeaf(IS_LEAF_EDEFAULT); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__IN_STRUCTURED_NODE : |
| setInStructuredNode((StructuredActivityNode) null); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__ACTIVITY : |
| setActivity((Activity) null); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__OUTGOING : |
| getOutgoings().clear(); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__INCOMING : |
| getIncomings().clear(); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__IN_PARTITION : |
| getInPartitions().clear(); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__IN_INTERRUPTIBLE_REGION : |
| getInInterruptibleRegions().clear(); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__REDEFINED_NODE : |
| getRedefinedNodes().clear(); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__HANDLER : |
| getHandlers().clear(); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__LOCAL_PRECONDITION : |
| getLocalPreconditions().clear(); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__LOCAL_POSTCONDITION : |
| getLocalPostconditions().clear(); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__ARGUMENT : |
| getArguments().clear(); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__ON_PORT : |
| setOnPort((Port) null); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__IS_SYNCHRONOUS : |
| setIsSynchronous(IS_SYNCHRONOUS_EDEFAULT); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__RESULT : |
| getResults().clear(); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__OPERATION : |
| setOperation((Operation) null); |
| return; |
| case UMLPackage.CALL_OPERATION_ACTION__TARGET : |
| setTarget((InputPin) null); |
| return; |
| } |
| eDynamicUnset(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean eIsSet(int featureID) { |
| switch (featureID) { |
| case UMLPackage.CALL_OPERATION_ACTION__EANNOTATIONS : |
| return eAnnotations != null && !eAnnotations.isEmpty(); |
| case UMLPackage.CALL_OPERATION_ACTION__OWNED_ELEMENT : |
| return isSetOwnedElements(); |
| case UMLPackage.CALL_OPERATION_ACTION__OWNER : |
| return isSetOwner(); |
| case UMLPackage.CALL_OPERATION_ACTION__OWNED_COMMENT : |
| return ownedComments != null && !ownedComments.isEmpty(); |
| case UMLPackage.CALL_OPERATION_ACTION__NAME : |
| return isSetName(); |
| case UMLPackage.CALL_OPERATION_ACTION__VISIBILITY : |
| return isSetVisibility(); |
| case UMLPackage.CALL_OPERATION_ACTION__QUALIFIED_NAME : |
| return QUALIFIED_NAME_EDEFAULT == null |
| ? getQualifiedName() != null |
| : !QUALIFIED_NAME_EDEFAULT.equals(getQualifiedName()); |
| case UMLPackage.CALL_OPERATION_ACTION__CLIENT_DEPENDENCY : |
| return clientDependencies != null |
| && !clientDependencies.isEmpty(); |
| case UMLPackage.CALL_OPERATION_ACTION__NAMESPACE : |
| return isSetNamespace(); |
| case UMLPackage.CALL_OPERATION_ACTION__NAME_EXPRESSION : |
| return nameExpression != null; |
| case UMLPackage.CALL_OPERATION_ACTION__IS_LEAF : |
| return ((eFlags & IS_LEAF_EFLAG) != 0) != IS_LEAF_EDEFAULT; |
| case UMLPackage.CALL_OPERATION_ACTION__REDEFINED_ELEMENT : |
| return isSetRedefinedElements(); |
| case UMLPackage.CALL_OPERATION_ACTION__REDEFINITION_CONTEXT : |
| return isSetRedefinitionContexts(); |
| case UMLPackage.CALL_OPERATION_ACTION__IN_STRUCTURED_NODE : |
| return basicGetInStructuredNode() != null; |
| case UMLPackage.CALL_OPERATION_ACTION__ACTIVITY : |
| return basicGetActivity() != null; |
| case UMLPackage.CALL_OPERATION_ACTION__OUTGOING : |
| return outgoings != null && !outgoings.isEmpty(); |
| case UMLPackage.CALL_OPERATION_ACTION__INCOMING : |
| return incomings != null && !incomings.isEmpty(); |
| case UMLPackage.CALL_OPERATION_ACTION__IN_PARTITION : |
| return inPartitions != null && !inPartitions.isEmpty(); |
| case UMLPackage.CALL_OPERATION_ACTION__IN_INTERRUPTIBLE_REGION : |
| return inInterruptibleRegions != null |
| && !inInterruptibleRegions.isEmpty(); |
| case UMLPackage.CALL_OPERATION_ACTION__IN_GROUP : |
| return isSetInGroups(); |
| case UMLPackage.CALL_OPERATION_ACTION__REDEFINED_NODE : |
| return redefinedNodes != null && !redefinedNodes.isEmpty(); |
| case UMLPackage.CALL_OPERATION_ACTION__HANDLER : |
| return handlers != null && !handlers.isEmpty(); |
| case UMLPackage.CALL_OPERATION_ACTION__OUTPUT : |
| return isSetOutputs(); |
| case UMLPackage.CALL_OPERATION_ACTION__INPUT : |
| return isSetInputs(); |
| case UMLPackage.CALL_OPERATION_ACTION__CONTEXT : |
| return basicGetContext() != null; |
| case UMLPackage.CALL_OPERATION_ACTION__LOCAL_PRECONDITION : |
| return localPreconditions != null |
| && !localPreconditions.isEmpty(); |
| case UMLPackage.CALL_OPERATION_ACTION__LOCAL_POSTCONDITION : |
| return localPostconditions != null |
| && !localPostconditions.isEmpty(); |
| case UMLPackage.CALL_OPERATION_ACTION__ARGUMENT : |
| return arguments != null && !arguments.isEmpty(); |
| case UMLPackage.CALL_OPERATION_ACTION__ON_PORT : |
| return onPort != null; |
| case UMLPackage.CALL_OPERATION_ACTION__IS_SYNCHRONOUS : |
| return ((eFlags & IS_SYNCHRONOUS_EFLAG) != 0) != IS_SYNCHRONOUS_EDEFAULT; |
| case UMLPackage.CALL_OPERATION_ACTION__RESULT : |
| return results != null && !results.isEmpty(); |
| case UMLPackage.CALL_OPERATION_ACTION__OPERATION : |
| return operation != null; |
| case UMLPackage.CALL_OPERATION_ACTION__TARGET : |
| return target != null; |
| } |
| return eDynamicIsSet(featureID); |
| } |
| |
| /** |
| * The array of subset feature identifiers for the '{@link #getInputs() <em>Input</em>}' reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getInputs() |
| * @generated |
| * @ordered |
| */ |
| protected static final int[] INPUT_ESUBSETS = new int[]{ |
| UMLPackage.CALL_OPERATION_ACTION__ARGUMENT, |
| UMLPackage.CALL_OPERATION_ACTION__TARGET}; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isSetInputs() { |
| return super.isSetInputs() |
| || eIsSet(UMLPackage.CALL_OPERATION_ACTION__TARGET); |
| } |
| |
| } //CallOperationActionImpl |