| /* |
| * 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: LoopNodeImpl.java,v 1.18 2006/03/01 17:56:38 khussey Exp $ |
| */ |
| package org.eclipse.uml2.uml.internal.impl; |
| |
| import java.util.Collection; |
| import java.util.Iterator; |
| 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.util.EObjectContainmentEList; |
| import org.eclipse.emf.ecore.util.EObjectResolvingEList; |
| import org.eclipse.emf.ecore.util.EcoreUtil; |
| import org.eclipse.emf.ecore.util.InternalEList; |
| |
| import org.eclipse.uml2.common.util.DerivedUnionEObjectEList; |
| |
| import org.eclipse.uml2.uml.Activity; |
| import org.eclipse.uml2.uml.ExecutableNode; |
| import org.eclipse.uml2.uml.InputPin; |
| import org.eclipse.uml2.uml.LoopNode; |
| import org.eclipse.uml2.uml.OutputPin; |
| import org.eclipse.uml2.uml.StringExpression; |
| import org.eclipse.uml2.uml.StructuredActivityNode; |
| import org.eclipse.uml2.uml.Type; |
| import org.eclipse.uml2.uml.UMLFactory; |
| import org.eclipse.uml2.uml.UMLPackage; |
| import org.eclipse.uml2.uml.VisibilityKind; |
| |
| import org.eclipse.uml2.uml.internal.operations.LoopNodeOperations; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model object '<em><b>Loop Node</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * The following features are implemented: |
| * <ul> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.LoopNodeImpl#getOutputs <em>Output</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.LoopNodeImpl#getInputs <em>Input</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.LoopNodeImpl#isTestedFirst <em>Is Tested First</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.LoopNodeImpl#getBodyParts <em>Body Part</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.LoopNodeImpl#getSetupParts <em>Setup Part</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.LoopNodeImpl#getDecider <em>Decider</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.LoopNodeImpl#getTests <em>Test</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.LoopNodeImpl#getResults <em>Result</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.LoopNodeImpl#getLoopVariables <em>Loop Variable</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.LoopNodeImpl#getBodyOutputs <em>Body Output</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.LoopNodeImpl#getLoopVariableInputs <em>Loop Variable Input</em>}</li> |
| * </ul> |
| * </p> |
| * |
| * @generated |
| */ |
| public class LoopNodeImpl |
| extends StructuredActivityNodeImpl |
| implements LoopNode { |
| |
| /** |
| * The default value of the '{@link #isTestedFirst() <em>Is Tested First</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isTestedFirst() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean IS_TESTED_FIRST_EDEFAULT = false; |
| |
| /** |
| * The flag representing the value of the '{@link #isTestedFirst() <em>Is Tested First</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isTestedFirst() |
| * @generated |
| * @ordered |
| */ |
| protected static final int IS_TESTED_FIRST_EFLAG = 1 << 10; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected LoopNodeImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected EClass eStaticClass() { |
| return UMLPackage.Literals.LOOP_NODE; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList getOutputs() { |
| EList output = (EList) eVirtualGet(UMLPackage.LOOP_NODE__OUTPUT); |
| if (output == null) { |
| eVirtualSet(UMLPackage.LOOP_NODE__OUTPUT, |
| output = new DerivedUnionEObjectEList(OutputPin.class, this, |
| UMLPackage.LOOP_NODE__OUTPUT, |
| new int[]{UMLPackage.LOOP_NODE__RESULT})); |
| } |
| return output; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList getInputs() { |
| EList input = (EList) eVirtualGet(UMLPackage.LOOP_NODE__INPUT); |
| if (input == null) { |
| eVirtualSet(UMLPackage.LOOP_NODE__INPUT, |
| input = new DerivedUnionEObjectEList(InputPin.class, this, |
| UMLPackage.LOOP_NODE__INPUT, |
| new int[]{UMLPackage.LOOP_NODE__LOOP_VARIABLE_INPUT})); |
| } |
| return input; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isTestedFirst() { |
| return (eFlags & IS_TESTED_FIRST_EFLAG) != 0; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setIsTestedFirst(boolean newIsTestedFirst) { |
| boolean oldIsTestedFirst = (eFlags & IS_TESTED_FIRST_EFLAG) != 0; |
| if (newIsTestedFirst) |
| eFlags |= IS_TESTED_FIRST_EFLAG; |
| else |
| eFlags &= ~IS_TESTED_FIRST_EFLAG; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, |
| UMLPackage.LOOP_NODE__IS_TESTED_FIRST, oldIsTestedFirst, |
| newIsTestedFirst)); |
| |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList getBodyParts() { |
| EList bodyPart = (EList) eVirtualGet(UMLPackage.LOOP_NODE__BODY_PART); |
| if (bodyPart == null) { |
| eVirtualSet(UMLPackage.LOOP_NODE__BODY_PART, |
| bodyPart = new EObjectResolvingEList(ExecutableNode.class, |
| this, UMLPackage.LOOP_NODE__BODY_PART)); |
| } |
| return bodyPart; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ExecutableNode getBodyPart(String name) { |
| return getBodyPart(name, false, null); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ExecutableNode getBodyPart(String name, boolean ignoreCase, |
| EClass eClass) { |
| bodyPartLoop : for (Iterator i = getBodyParts().iterator(); i.hasNext();) { |
| ExecutableNode bodyPart = (ExecutableNode) i.next(); |
| if (eClass != null && !eClass.isInstance(bodyPart)) |
| continue bodyPartLoop; |
| if (name != null && !(ignoreCase |
| ? name.equalsIgnoreCase(bodyPart.getName()) |
| : name.equals(bodyPart.getName()))) |
| continue bodyPartLoop; |
| return bodyPart; |
| } |
| return null; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList getSetupParts() { |
| EList setupPart = (EList) eVirtualGet(UMLPackage.LOOP_NODE__SETUP_PART); |
| if (setupPart == null) { |
| eVirtualSet(UMLPackage.LOOP_NODE__SETUP_PART, |
| setupPart = new EObjectResolvingEList(ExecutableNode.class, |
| this, UMLPackage.LOOP_NODE__SETUP_PART)); |
| } |
| return setupPart; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ExecutableNode getSetupPart(String name) { |
| return getSetupPart(name, false, null); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ExecutableNode getSetupPart(String name, boolean ignoreCase, |
| EClass eClass) { |
| setupPartLoop : for (Iterator i = getSetupParts().iterator(); i |
| .hasNext();) { |
| ExecutableNode setupPart = (ExecutableNode) i.next(); |
| if (eClass != null && !eClass.isInstance(setupPart)) |
| continue setupPartLoop; |
| if (name != null && !(ignoreCase |
| ? name.equalsIgnoreCase(setupPart.getName()) |
| : name.equals(setupPart.getName()))) |
| continue setupPartLoop; |
| return setupPart; |
| } |
| return null; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public OutputPin getDecider() { |
| OutputPin decider = (OutputPin) eVirtualGet(UMLPackage.LOOP_NODE__DECIDER); |
| if (decider != null && decider.eIsProxy()) { |
| InternalEObject oldDecider = (InternalEObject) decider; |
| decider = (OutputPin) eResolveProxy(oldDecider); |
| if (decider != oldDecider) { |
| eVirtualSet(UMLPackage.LOOP_NODE__DECIDER, decider); |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, |
| UMLPackage.LOOP_NODE__DECIDER, oldDecider, decider)); |
| } |
| } |
| return decider; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public OutputPin basicGetDecider() { |
| return (OutputPin) eVirtualGet(UMLPackage.LOOP_NODE__DECIDER); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setDecider(OutputPin newDecider) { |
| OutputPin decider = newDecider; |
| Object oldDecider = eVirtualSet(UMLPackage.LOOP_NODE__DECIDER, decider); |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, |
| UMLPackage.LOOP_NODE__DECIDER, oldDecider == EVIRTUAL_NO_VALUE |
| ? null |
| : oldDecider, decider)); |
| |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList getTests() { |
| EList test = (EList) eVirtualGet(UMLPackage.LOOP_NODE__TEST); |
| if (test == null) { |
| eVirtualSet(UMLPackage.LOOP_NODE__TEST, |
| test = new EObjectResolvingEList(ExecutableNode.class, this, |
| UMLPackage.LOOP_NODE__TEST)); |
| } |
| return test; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ExecutableNode getTest(String name) { |
| return getTest(name, false, null); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ExecutableNode getTest(String name, boolean ignoreCase, EClass eClass) { |
| testLoop : for (Iterator i = getTests().iterator(); i.hasNext();) { |
| ExecutableNode test = (ExecutableNode) i.next(); |
| if (eClass != null && !eClass.isInstance(test)) |
| continue testLoop; |
| if (name != null && !(ignoreCase |
| ? name.equalsIgnoreCase(test.getName()) |
| : name.equals(test.getName()))) |
| continue testLoop; |
| return test; |
| } |
| return null; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList getResults() { |
| EList result = (EList) eVirtualGet(UMLPackage.LOOP_NODE__RESULT); |
| if (result == null) { |
| eVirtualSet(UMLPackage.LOOP_NODE__RESULT, |
| result = new EObjectContainmentEList.Resolving(OutputPin.class, |
| this, UMLPackage.LOOP_NODE__RESULT)); |
| } |
| return result; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public OutputPin createResult(String name, Type type) { |
| OutputPin newResult = UMLFactory.eINSTANCE.createOutputPin(); |
| if (name != null) |
| newResult.setName(name); |
| if (type != null) |
| newResult.setType(type); |
| getResults().add(newResult); |
| return newResult; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public OutputPin getResult(String name, Type type) { |
| return getResult(name, type, false, false); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public OutputPin getResult(String name, Type type, boolean ignoreCase, |
| boolean createOnDemand) { |
| resultLoop : for (Iterator i = getResults().iterator(); i.hasNext();) { |
| OutputPin result = (OutputPin) i.next(); |
| if (name != null && !(ignoreCase |
| ? name.equalsIgnoreCase(result.getName()) |
| : name.equals(result.getName()))) |
| continue resultLoop; |
| if (type != null && !type.equals(result.getType())) |
| continue resultLoop; |
| return result; |
| } |
| return createOnDemand |
| ? createResult(name, type) |
| : null; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList getLoopVariables() { |
| EList loopVariable = (EList) eVirtualGet(UMLPackage.LOOP_NODE__LOOP_VARIABLE); |
| if (loopVariable == null) { |
| eVirtualSet(UMLPackage.LOOP_NODE__LOOP_VARIABLE, |
| loopVariable = new EObjectResolvingEList(OutputPin.class, this, |
| UMLPackage.LOOP_NODE__LOOP_VARIABLE)); |
| } |
| return loopVariable; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public OutputPin getLoopVariable(String name, Type type) { |
| return getLoopVariable(name, type, false); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public OutputPin getLoopVariable(String name, Type type, boolean ignoreCase) { |
| loopVariableLoop : for (Iterator i = getLoopVariables().iterator(); i |
| .hasNext();) { |
| OutputPin loopVariable = (OutputPin) i.next(); |
| if (name != null && !(ignoreCase |
| ? name.equalsIgnoreCase(loopVariable.getName()) |
| : name.equals(loopVariable.getName()))) |
| continue loopVariableLoop; |
| if (type != null && !type.equals(loopVariable.getType())) |
| continue loopVariableLoop; |
| return loopVariable; |
| } |
| return null; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList getBodyOutputs() { |
| EList bodyOutput = (EList) eVirtualGet(UMLPackage.LOOP_NODE__BODY_OUTPUT); |
| if (bodyOutput == null) { |
| eVirtualSet(UMLPackage.LOOP_NODE__BODY_OUTPUT, |
| bodyOutput = new EObjectResolvingEList(OutputPin.class, this, |
| UMLPackage.LOOP_NODE__BODY_OUTPUT)); |
| } |
| return bodyOutput; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public OutputPin getBodyOutput(String name, Type type) { |
| return getBodyOutput(name, type, false); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public OutputPin getBodyOutput(String name, Type type, boolean ignoreCase) { |
| bodyOutputLoop : for (Iterator i = getBodyOutputs().iterator(); i |
| .hasNext();) { |
| OutputPin bodyOutput = (OutputPin) i.next(); |
| if (name != null && !(ignoreCase |
| ? name.equalsIgnoreCase(bodyOutput.getName()) |
| : name.equals(bodyOutput.getName()))) |
| continue bodyOutputLoop; |
| if (type != null && !type.equals(bodyOutput.getType())) |
| continue bodyOutputLoop; |
| return bodyOutput; |
| } |
| return null; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList getLoopVariableInputs() { |
| EList loopVariableInput = (EList) eVirtualGet(UMLPackage.LOOP_NODE__LOOP_VARIABLE_INPUT); |
| if (loopVariableInput == null) { |
| eVirtualSet(UMLPackage.LOOP_NODE__LOOP_VARIABLE_INPUT, |
| loopVariableInput = new EObjectContainmentEList.Resolving( |
| InputPin.class, this, |
| UMLPackage.LOOP_NODE__LOOP_VARIABLE_INPUT)); |
| } |
| return loopVariableInput; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public InputPin createLoopVariableInput(String name, Type type, |
| EClass eClass) { |
| InputPin newLoopVariableInput = (InputPin) EcoreUtil.create(eClass); |
| if (name != null) |
| newLoopVariableInput.setName(name); |
| if (type != null) |
| newLoopVariableInput.setType(type); |
| getLoopVariableInputs().add(newLoopVariableInput); |
| return newLoopVariableInput; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public InputPin createLoopVariableInput(String name, Type type) { |
| InputPin newLoopVariableInput = UMLFactory.eINSTANCE.createInputPin(); |
| if (name != null) |
| newLoopVariableInput.setName(name); |
| if (type != null) |
| newLoopVariableInput.setType(type); |
| getLoopVariableInputs().add(newLoopVariableInput); |
| return newLoopVariableInput; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public InputPin getLoopVariableInput(String name, Type type) { |
| return getLoopVariableInput(name, type, false, null, false); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public InputPin getLoopVariableInput(String name, Type type, |
| boolean ignoreCase, EClass eClass, boolean createOnDemand) { |
| loopVariableInputLoop : for (Iterator i = getLoopVariableInputs() |
| .iterator(); i.hasNext();) { |
| InputPin loopVariableInput = (InputPin) i.next(); |
| if (eClass != null && !eClass.isInstance(loopVariableInput)) |
| continue loopVariableInputLoop; |
| if (name != null && !(ignoreCase |
| ? name.equalsIgnoreCase(loopVariableInput.getName()) |
| : name.equals(loopVariableInput.getName()))) |
| continue loopVariableInputLoop; |
| if (type != null && !type.equals(loopVariableInput.getType())) |
| continue loopVariableInputLoop; |
| return loopVariableInput; |
| } |
| return createOnDemand && eClass != null |
| ? createLoopVariableInput(name, type, eClass) |
| : null; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean validateInputEdges(DiagnosticChain diagnostics, Map context) { |
| return LoopNodeOperations |
| .validateInputEdges(this, diagnostics, context); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean validateBodyOutputPins(DiagnosticChain diagnostics, |
| Map context) { |
| return LoopNodeOperations.validateBodyOutputPins(this, diagnostics, |
| context); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean validateResultNoIncoming(DiagnosticChain diagnostics, |
| Map context) { |
| return LoopNodeOperations.validateResultNoIncoming(this, diagnostics, |
| context); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain eInverseRemove(InternalEObject otherEnd, |
| int featureID, NotificationChain msgs) { |
| switch (featureID) { |
| case UMLPackage.LOOP_NODE__EANNOTATIONS : |
| return ((InternalEList) getEAnnotations()).basicRemove( |
| otherEnd, msgs); |
| case UMLPackage.LOOP_NODE__OWNED_COMMENT : |
| return ((InternalEList) getOwnedComments()).basicRemove( |
| otherEnd, msgs); |
| case UMLPackage.LOOP_NODE__CLIENT_DEPENDENCY : |
| return ((InternalEList) getClientDependencies()).basicRemove( |
| otherEnd, msgs); |
| case UMLPackage.LOOP_NODE__NAME_EXPRESSION : |
| return basicSetNameExpression(null, msgs); |
| case UMLPackage.LOOP_NODE__IN_STRUCTURED_NODE : |
| return basicSetInStructuredNode(null, msgs); |
| case UMLPackage.LOOP_NODE__ACTIVITY : |
| return basicSetActivity(null, msgs); |
| case UMLPackage.LOOP_NODE__OUTGOING : |
| return ((InternalEList) getOutgoings()).basicRemove(otherEnd, |
| msgs); |
| case UMLPackage.LOOP_NODE__INCOMING : |
| return ((InternalEList) getIncomings()).basicRemove(otherEnd, |
| msgs); |
| case UMLPackage.LOOP_NODE__IN_PARTITION : |
| return ((InternalEList) getInPartitions()).basicRemove( |
| otherEnd, msgs); |
| case UMLPackage.LOOP_NODE__IN_INTERRUPTIBLE_REGION : |
| return ((InternalEList) getInInterruptibleRegions()) |
| .basicRemove(otherEnd, msgs); |
| case UMLPackage.LOOP_NODE__HANDLER : |
| return ((InternalEList) getHandlers()).basicRemove(otherEnd, |
| msgs); |
| case UMLPackage.LOOP_NODE__LOCAL_PRECONDITION : |
| return ((InternalEList) getLocalPreconditions()).basicRemove( |
| otherEnd, msgs); |
| case UMLPackage.LOOP_NODE__LOCAL_POSTCONDITION : |
| return ((InternalEList) getLocalPostconditions()).basicRemove( |
| otherEnd, msgs); |
| case UMLPackage.LOOP_NODE__ELEMENT_IMPORT : |
| return ((InternalEList) getElementImports()).basicRemove( |
| otherEnd, msgs); |
| case UMLPackage.LOOP_NODE__PACKAGE_IMPORT : |
| return ((InternalEList) getPackageImports()).basicRemove( |
| otherEnd, msgs); |
| case UMLPackage.LOOP_NODE__OWNED_RULE : |
| return ((InternalEList) getOwnedRules()).basicRemove(otherEnd, |
| msgs); |
| case UMLPackage.LOOP_NODE__IN_ACTIVITY : |
| return basicSetInActivity(null, msgs); |
| case UMLPackage.LOOP_NODE__VARIABLE : |
| return ((InternalEList) getVariables()).basicRemove(otherEnd, |
| msgs); |
| case UMLPackage.LOOP_NODE__EDGE : |
| return ((InternalEList) getEdges()).basicRemove(otherEnd, msgs); |
| case UMLPackage.LOOP_NODE__NODE : |
| return ((InternalEList) getNodes()).basicRemove(otherEnd, msgs); |
| case UMLPackage.LOOP_NODE__RESULT : |
| return ((InternalEList) getResults()).basicRemove(otherEnd, |
| msgs); |
| case UMLPackage.LOOP_NODE__LOOP_VARIABLE_INPUT : |
| return ((InternalEList) getLoopVariableInputs()).basicRemove( |
| otherEnd, 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.LOOP_NODE__EANNOTATIONS : |
| return getEAnnotations(); |
| case UMLPackage.LOOP_NODE__OWNED_ELEMENT : |
| return getOwnedElements(); |
| case UMLPackage.LOOP_NODE__OWNER : |
| if (resolve) |
| return getOwner(); |
| return basicGetOwner(); |
| case UMLPackage.LOOP_NODE__OWNED_COMMENT : |
| return getOwnedComments(); |
| case UMLPackage.LOOP_NODE__NAME : |
| return getName(); |
| case UMLPackage.LOOP_NODE__VISIBILITY : |
| return getVisibility(); |
| case UMLPackage.LOOP_NODE__QUALIFIED_NAME : |
| return getQualifiedName(); |
| case UMLPackage.LOOP_NODE__CLIENT_DEPENDENCY : |
| return getClientDependencies(); |
| case UMLPackage.LOOP_NODE__NAMESPACE : |
| if (resolve) |
| return getNamespace(); |
| return basicGetNamespace(); |
| case UMLPackage.LOOP_NODE__NAME_EXPRESSION : |
| if (resolve) |
| return getNameExpression(); |
| return basicGetNameExpression(); |
| case UMLPackage.LOOP_NODE__IS_LEAF : |
| return isLeaf() |
| ? Boolean.TRUE |
| : Boolean.FALSE; |
| case UMLPackage.LOOP_NODE__REDEFINED_ELEMENT : |
| return getRedefinedElements(); |
| case UMLPackage.LOOP_NODE__REDEFINITION_CONTEXT : |
| return getRedefinitionContexts(); |
| case UMLPackage.LOOP_NODE__IN_STRUCTURED_NODE : |
| return getInStructuredNode(); |
| case UMLPackage.LOOP_NODE__ACTIVITY : |
| return getActivity(); |
| case UMLPackage.LOOP_NODE__OUTGOING : |
| return getOutgoings(); |
| case UMLPackage.LOOP_NODE__INCOMING : |
| return getIncomings(); |
| case UMLPackage.LOOP_NODE__IN_PARTITION : |
| return getInPartitions(); |
| case UMLPackage.LOOP_NODE__IN_INTERRUPTIBLE_REGION : |
| return getInInterruptibleRegions(); |
| case UMLPackage.LOOP_NODE__IN_GROUP : |
| return getInGroups(); |
| case UMLPackage.LOOP_NODE__REDEFINED_NODE : |
| return getRedefinedNodes(); |
| case UMLPackage.LOOP_NODE__HANDLER : |
| return getHandlers(); |
| case UMLPackage.LOOP_NODE__OUTPUT : |
| return getOutputs(); |
| case UMLPackage.LOOP_NODE__INPUT : |
| return getInputs(); |
| case UMLPackage.LOOP_NODE__CONTEXT : |
| return getContext(); |
| case UMLPackage.LOOP_NODE__LOCAL_PRECONDITION : |
| return getLocalPreconditions(); |
| case UMLPackage.LOOP_NODE__LOCAL_POSTCONDITION : |
| return getLocalPostconditions(); |
| case UMLPackage.LOOP_NODE__ELEMENT_IMPORT : |
| return getElementImports(); |
| case UMLPackage.LOOP_NODE__PACKAGE_IMPORT : |
| return getPackageImports(); |
| case UMLPackage.LOOP_NODE__OWNED_RULE : |
| return getOwnedRules(); |
| case UMLPackage.LOOP_NODE__MEMBER : |
| return getMembers(); |
| case UMLPackage.LOOP_NODE__IMPORTED_MEMBER : |
| return getImportedMembers(); |
| case UMLPackage.LOOP_NODE__OWNED_MEMBER : |
| return getOwnedMembers(); |
| case UMLPackage.LOOP_NODE__SUBGROUP : |
| return getSubgroups(); |
| case UMLPackage.LOOP_NODE__SUPER_GROUP : |
| return getSuperGroup(); |
| case UMLPackage.LOOP_NODE__IN_ACTIVITY : |
| return getInActivity(); |
| case UMLPackage.LOOP_NODE__CONTAINED_EDGE : |
| return getContainedEdges(); |
| case UMLPackage.LOOP_NODE__CONTAINED_NODE : |
| return getContainedNodes(); |
| case UMLPackage.LOOP_NODE__VARIABLE : |
| return getVariables(); |
| case UMLPackage.LOOP_NODE__EDGE : |
| return getEdges(); |
| case UMLPackage.LOOP_NODE__MUST_ISOLATE : |
| return isMustIsolate() |
| ? Boolean.TRUE |
| : Boolean.FALSE; |
| case UMLPackage.LOOP_NODE__NODE : |
| return getNodes(); |
| case UMLPackage.LOOP_NODE__IS_TESTED_FIRST : |
| return isTestedFirst() |
| ? Boolean.TRUE |
| : Boolean.FALSE; |
| case UMLPackage.LOOP_NODE__BODY_PART : |
| return getBodyParts(); |
| case UMLPackage.LOOP_NODE__SETUP_PART : |
| return getSetupParts(); |
| case UMLPackage.LOOP_NODE__DECIDER : |
| if (resolve) |
| return getDecider(); |
| return basicGetDecider(); |
| case UMLPackage.LOOP_NODE__TEST : |
| return getTests(); |
| case UMLPackage.LOOP_NODE__RESULT : |
| return getResults(); |
| case UMLPackage.LOOP_NODE__LOOP_VARIABLE : |
| return getLoopVariables(); |
| case UMLPackage.LOOP_NODE__BODY_OUTPUT : |
| return getBodyOutputs(); |
| case UMLPackage.LOOP_NODE__LOOP_VARIABLE_INPUT : |
| return getLoopVariableInputs(); |
| } |
| return eDynamicGet(featureID, resolve, coreType); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void eSet(int featureID, Object newValue) { |
| switch (featureID) { |
| case UMLPackage.LOOP_NODE__EANNOTATIONS : |
| getEAnnotations().clear(); |
| getEAnnotations().addAll((Collection) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__OWNED_COMMENT : |
| getOwnedComments().clear(); |
| getOwnedComments().addAll((Collection) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__NAME : |
| setName((String) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__VISIBILITY : |
| setVisibility((VisibilityKind) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__CLIENT_DEPENDENCY : |
| getClientDependencies().clear(); |
| getClientDependencies().addAll((Collection) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__NAME_EXPRESSION : |
| setNameExpression((StringExpression) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__IS_LEAF : |
| setIsLeaf(((Boolean) newValue).booleanValue()); |
| return; |
| case UMLPackage.LOOP_NODE__IN_STRUCTURED_NODE : |
| setInStructuredNode((StructuredActivityNode) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__ACTIVITY : |
| setActivity((Activity) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__OUTGOING : |
| getOutgoings().clear(); |
| getOutgoings().addAll((Collection) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__INCOMING : |
| getIncomings().clear(); |
| getIncomings().addAll((Collection) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__IN_PARTITION : |
| getInPartitions().clear(); |
| getInPartitions().addAll((Collection) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__IN_INTERRUPTIBLE_REGION : |
| getInInterruptibleRegions().clear(); |
| getInInterruptibleRegions().addAll((Collection) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__REDEFINED_NODE : |
| getRedefinedNodes().clear(); |
| getRedefinedNodes().addAll((Collection) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__HANDLER : |
| getHandlers().clear(); |
| getHandlers().addAll((Collection) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__LOCAL_PRECONDITION : |
| getLocalPreconditions().clear(); |
| getLocalPreconditions().addAll((Collection) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__LOCAL_POSTCONDITION : |
| getLocalPostconditions().clear(); |
| getLocalPostconditions().addAll((Collection) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__ELEMENT_IMPORT : |
| getElementImports().clear(); |
| getElementImports().addAll((Collection) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__PACKAGE_IMPORT : |
| getPackageImports().clear(); |
| getPackageImports().addAll((Collection) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__OWNED_RULE : |
| getOwnedRules().clear(); |
| getOwnedRules().addAll((Collection) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__IN_ACTIVITY : |
| setInActivity((Activity) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__VARIABLE : |
| getVariables().clear(); |
| getVariables().addAll((Collection) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__EDGE : |
| getEdges().clear(); |
| getEdges().addAll((Collection) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__MUST_ISOLATE : |
| setMustIsolate(((Boolean) newValue).booleanValue()); |
| return; |
| case UMLPackage.LOOP_NODE__NODE : |
| getNodes().clear(); |
| getNodes().addAll((Collection) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__IS_TESTED_FIRST : |
| setIsTestedFirst(((Boolean) newValue).booleanValue()); |
| return; |
| case UMLPackage.LOOP_NODE__BODY_PART : |
| getBodyParts().clear(); |
| getBodyParts().addAll((Collection) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__SETUP_PART : |
| getSetupParts().clear(); |
| getSetupParts().addAll((Collection) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__DECIDER : |
| setDecider((OutputPin) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__TEST : |
| getTests().clear(); |
| getTests().addAll((Collection) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__RESULT : |
| getResults().clear(); |
| getResults().addAll((Collection) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__LOOP_VARIABLE : |
| getLoopVariables().clear(); |
| getLoopVariables().addAll((Collection) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__BODY_OUTPUT : |
| getBodyOutputs().clear(); |
| getBodyOutputs().addAll((Collection) newValue); |
| return; |
| case UMLPackage.LOOP_NODE__LOOP_VARIABLE_INPUT : |
| getLoopVariableInputs().clear(); |
| getLoopVariableInputs().addAll((Collection) newValue); |
| return; |
| } |
| eDynamicSet(featureID, newValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void eUnset(int featureID) { |
| switch (featureID) { |
| case UMLPackage.LOOP_NODE__EANNOTATIONS : |
| getEAnnotations().clear(); |
| return; |
| case UMLPackage.LOOP_NODE__OWNED_COMMENT : |
| getOwnedComments().clear(); |
| return; |
| case UMLPackage.LOOP_NODE__NAME : |
| unsetName(); |
| return; |
| case UMLPackage.LOOP_NODE__VISIBILITY : |
| unsetVisibility(); |
| return; |
| case UMLPackage.LOOP_NODE__CLIENT_DEPENDENCY : |
| getClientDependencies().clear(); |
| return; |
| case UMLPackage.LOOP_NODE__NAME_EXPRESSION : |
| setNameExpression((StringExpression) null); |
| return; |
| case UMLPackage.LOOP_NODE__IS_LEAF : |
| setIsLeaf(IS_LEAF_EDEFAULT); |
| return; |
| case UMLPackage.LOOP_NODE__IN_STRUCTURED_NODE : |
| setInStructuredNode((StructuredActivityNode) null); |
| return; |
| case UMLPackage.LOOP_NODE__ACTIVITY : |
| setActivity((Activity) null); |
| return; |
| case UMLPackage.LOOP_NODE__OUTGOING : |
| getOutgoings().clear(); |
| return; |
| case UMLPackage.LOOP_NODE__INCOMING : |
| getIncomings().clear(); |
| return; |
| case UMLPackage.LOOP_NODE__IN_PARTITION : |
| getInPartitions().clear(); |
| return; |
| case UMLPackage.LOOP_NODE__IN_INTERRUPTIBLE_REGION : |
| getInInterruptibleRegions().clear(); |
| return; |
| case UMLPackage.LOOP_NODE__REDEFINED_NODE : |
| getRedefinedNodes().clear(); |
| return; |
| case UMLPackage.LOOP_NODE__HANDLER : |
| getHandlers().clear(); |
| return; |
| case UMLPackage.LOOP_NODE__LOCAL_PRECONDITION : |
| getLocalPreconditions().clear(); |
| return; |
| case UMLPackage.LOOP_NODE__LOCAL_POSTCONDITION : |
| getLocalPostconditions().clear(); |
| return; |
| case UMLPackage.LOOP_NODE__ELEMENT_IMPORT : |
| getElementImports().clear(); |
| return; |
| case UMLPackage.LOOP_NODE__PACKAGE_IMPORT : |
| getPackageImports().clear(); |
| return; |
| case UMLPackage.LOOP_NODE__OWNED_RULE : |
| getOwnedRules().clear(); |
| return; |
| case UMLPackage.LOOP_NODE__IN_ACTIVITY : |
| setInActivity((Activity) null); |
| return; |
| case UMLPackage.LOOP_NODE__VARIABLE : |
| getVariables().clear(); |
| return; |
| case UMLPackage.LOOP_NODE__EDGE : |
| getEdges().clear(); |
| return; |
| case UMLPackage.LOOP_NODE__MUST_ISOLATE : |
| setMustIsolate(MUST_ISOLATE_EDEFAULT); |
| return; |
| case UMLPackage.LOOP_NODE__NODE : |
| getNodes().clear(); |
| return; |
| case UMLPackage.LOOP_NODE__IS_TESTED_FIRST : |
| setIsTestedFirst(IS_TESTED_FIRST_EDEFAULT); |
| return; |
| case UMLPackage.LOOP_NODE__BODY_PART : |
| getBodyParts().clear(); |
| return; |
| case UMLPackage.LOOP_NODE__SETUP_PART : |
| getSetupParts().clear(); |
| return; |
| case UMLPackage.LOOP_NODE__DECIDER : |
| setDecider((OutputPin) null); |
| return; |
| case UMLPackage.LOOP_NODE__TEST : |
| getTests().clear(); |
| return; |
| case UMLPackage.LOOP_NODE__RESULT : |
| getResults().clear(); |
| return; |
| case UMLPackage.LOOP_NODE__LOOP_VARIABLE : |
| getLoopVariables().clear(); |
| return; |
| case UMLPackage.LOOP_NODE__BODY_OUTPUT : |
| getBodyOutputs().clear(); |
| return; |
| case UMLPackage.LOOP_NODE__LOOP_VARIABLE_INPUT : |
| getLoopVariableInputs().clear(); |
| return; |
| } |
| eDynamicUnset(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean eIsSet(int featureID) { |
| switch (featureID) { |
| case UMLPackage.LOOP_NODE__EANNOTATIONS : |
| EList eAnnotations = (EList) eVirtualGet(UMLPackage.LOOP_NODE__EANNOTATIONS); |
| return eAnnotations != null && !eAnnotations.isEmpty(); |
| case UMLPackage.LOOP_NODE__OWNED_ELEMENT : |
| return isSetOwnedElements(); |
| case UMLPackage.LOOP_NODE__OWNER : |
| return isSetOwner(); |
| case UMLPackage.LOOP_NODE__OWNED_COMMENT : |
| EList ownedComment = (EList) eVirtualGet(UMLPackage.LOOP_NODE__OWNED_COMMENT); |
| return ownedComment != null && !ownedComment.isEmpty(); |
| case UMLPackage.LOOP_NODE__NAME : |
| return isSetName(); |
| case UMLPackage.LOOP_NODE__VISIBILITY : |
| return isSetVisibility(); |
| case UMLPackage.LOOP_NODE__QUALIFIED_NAME : |
| return QUALIFIED_NAME_EDEFAULT == null |
| ? getQualifiedName() != null |
| : !QUALIFIED_NAME_EDEFAULT.equals(getQualifiedName()); |
| case UMLPackage.LOOP_NODE__CLIENT_DEPENDENCY : |
| EList clientDependency = (EList) eVirtualGet(UMLPackage.LOOP_NODE__CLIENT_DEPENDENCY); |
| return clientDependency != null && !clientDependency.isEmpty(); |
| case UMLPackage.LOOP_NODE__NAMESPACE : |
| return isSetNamespace(); |
| case UMLPackage.LOOP_NODE__NAME_EXPRESSION : |
| return eVirtualGet(UMLPackage.LOOP_NODE__NAME_EXPRESSION) != null; |
| case UMLPackage.LOOP_NODE__IS_LEAF : |
| return ((eFlags & IS_LEAF_EFLAG) != 0) != IS_LEAF_EDEFAULT; |
| case UMLPackage.LOOP_NODE__REDEFINED_ELEMENT : |
| return isSetRedefinedElements(); |
| case UMLPackage.LOOP_NODE__REDEFINITION_CONTEXT : |
| return isSetRedefinitionContexts(); |
| case UMLPackage.LOOP_NODE__IN_STRUCTURED_NODE : |
| return getInStructuredNode() != null; |
| case UMLPackage.LOOP_NODE__ACTIVITY : |
| return isSetActivity(); |
| case UMLPackage.LOOP_NODE__OUTGOING : |
| EList outgoing = (EList) eVirtualGet(UMLPackage.LOOP_NODE__OUTGOING); |
| return outgoing != null && !outgoing.isEmpty(); |
| case UMLPackage.LOOP_NODE__INCOMING : |
| EList incoming = (EList) eVirtualGet(UMLPackage.LOOP_NODE__INCOMING); |
| return incoming != null && !incoming.isEmpty(); |
| case UMLPackage.LOOP_NODE__IN_PARTITION : |
| EList inPartition = (EList) eVirtualGet(UMLPackage.LOOP_NODE__IN_PARTITION); |
| return inPartition != null && !inPartition.isEmpty(); |
| case UMLPackage.LOOP_NODE__IN_INTERRUPTIBLE_REGION : |
| EList inInterruptibleRegion = (EList) eVirtualGet(UMLPackage.LOOP_NODE__IN_INTERRUPTIBLE_REGION); |
| return inInterruptibleRegion != null |
| && !inInterruptibleRegion.isEmpty(); |
| case UMLPackage.LOOP_NODE__IN_GROUP : |
| return isSetInGroups(); |
| case UMLPackage.LOOP_NODE__REDEFINED_NODE : |
| EList redefinedNode = (EList) eVirtualGet(UMLPackage.LOOP_NODE__REDEFINED_NODE); |
| return redefinedNode != null && !redefinedNode.isEmpty(); |
| case UMLPackage.LOOP_NODE__HANDLER : |
| EList handler = (EList) eVirtualGet(UMLPackage.LOOP_NODE__HANDLER); |
| return handler != null && !handler.isEmpty(); |
| case UMLPackage.LOOP_NODE__OUTPUT : |
| return isSetOutputs(); |
| case UMLPackage.LOOP_NODE__INPUT : |
| return isSetInputs(); |
| case UMLPackage.LOOP_NODE__CONTEXT : |
| return getContext() != null; |
| case UMLPackage.LOOP_NODE__LOCAL_PRECONDITION : |
| EList localPrecondition = (EList) eVirtualGet(UMLPackage.LOOP_NODE__LOCAL_PRECONDITION); |
| return localPrecondition != null |
| && !localPrecondition.isEmpty(); |
| case UMLPackage.LOOP_NODE__LOCAL_POSTCONDITION : |
| EList localPostcondition = (EList) eVirtualGet(UMLPackage.LOOP_NODE__LOCAL_POSTCONDITION); |
| return localPostcondition != null |
| && !localPostcondition.isEmpty(); |
| case UMLPackage.LOOP_NODE__ELEMENT_IMPORT : |
| EList elementImport = (EList) eVirtualGet(UMLPackage.LOOP_NODE__ELEMENT_IMPORT); |
| return elementImport != null && !elementImport.isEmpty(); |
| case UMLPackage.LOOP_NODE__PACKAGE_IMPORT : |
| EList packageImport = (EList) eVirtualGet(UMLPackage.LOOP_NODE__PACKAGE_IMPORT); |
| return packageImport != null && !packageImport.isEmpty(); |
| case UMLPackage.LOOP_NODE__OWNED_RULE : |
| EList ownedRule = (EList) eVirtualGet(UMLPackage.LOOP_NODE__OWNED_RULE); |
| return ownedRule != null && !ownedRule.isEmpty(); |
| case UMLPackage.LOOP_NODE__MEMBER : |
| return isSetMembers(); |
| case UMLPackage.LOOP_NODE__IMPORTED_MEMBER : |
| return !getImportedMembers().isEmpty(); |
| case UMLPackage.LOOP_NODE__OWNED_MEMBER : |
| return isSetOwnedMembers(); |
| case UMLPackage.LOOP_NODE__SUBGROUP : |
| return isSetSubgroups(); |
| case UMLPackage.LOOP_NODE__SUPER_GROUP : |
| return isSetSuperGroup(); |
| case UMLPackage.LOOP_NODE__IN_ACTIVITY : |
| return isSetInActivity(); |
| case UMLPackage.LOOP_NODE__CONTAINED_EDGE : |
| return isSetContainedEdges(); |
| case UMLPackage.LOOP_NODE__CONTAINED_NODE : |
| return isSetContainedNodes(); |
| case UMLPackage.LOOP_NODE__VARIABLE : |
| EList variable = (EList) eVirtualGet(UMLPackage.LOOP_NODE__VARIABLE); |
| return variable != null && !variable.isEmpty(); |
| case UMLPackage.LOOP_NODE__EDGE : |
| EList edge = (EList) eVirtualGet(UMLPackage.LOOP_NODE__EDGE); |
| return edge != null && !edge.isEmpty(); |
| case UMLPackage.LOOP_NODE__MUST_ISOLATE : |
| return ((eFlags & MUST_ISOLATE_EFLAG) != 0) != MUST_ISOLATE_EDEFAULT; |
| case UMLPackage.LOOP_NODE__NODE : |
| EList node = (EList) eVirtualGet(UMLPackage.LOOP_NODE__NODE); |
| return node != null && !node.isEmpty(); |
| case UMLPackage.LOOP_NODE__IS_TESTED_FIRST : |
| return ((eFlags & IS_TESTED_FIRST_EFLAG) != 0) != IS_TESTED_FIRST_EDEFAULT; |
| case UMLPackage.LOOP_NODE__BODY_PART : |
| EList bodyPart = (EList) eVirtualGet(UMLPackage.LOOP_NODE__BODY_PART); |
| return bodyPart != null && !bodyPart.isEmpty(); |
| case UMLPackage.LOOP_NODE__SETUP_PART : |
| EList setupPart = (EList) eVirtualGet(UMLPackage.LOOP_NODE__SETUP_PART); |
| return setupPart != null && !setupPart.isEmpty(); |
| case UMLPackage.LOOP_NODE__DECIDER : |
| return eVirtualGet(UMLPackage.LOOP_NODE__DECIDER) != null; |
| case UMLPackage.LOOP_NODE__TEST : |
| EList test = (EList) eVirtualGet(UMLPackage.LOOP_NODE__TEST); |
| return test != null && !test.isEmpty(); |
| case UMLPackage.LOOP_NODE__RESULT : |
| EList result = (EList) eVirtualGet(UMLPackage.LOOP_NODE__RESULT); |
| return result != null && !result.isEmpty(); |
| case UMLPackage.LOOP_NODE__LOOP_VARIABLE : |
| EList loopVariable = (EList) eVirtualGet(UMLPackage.LOOP_NODE__LOOP_VARIABLE); |
| return loopVariable != null && !loopVariable.isEmpty(); |
| case UMLPackage.LOOP_NODE__BODY_OUTPUT : |
| EList bodyOutput = (EList) eVirtualGet(UMLPackage.LOOP_NODE__BODY_OUTPUT); |
| return bodyOutput != null && !bodyOutput.isEmpty(); |
| case UMLPackage.LOOP_NODE__LOOP_VARIABLE_INPUT : |
| EList loopVariableInput = (EList) eVirtualGet(UMLPackage.LOOP_NODE__LOOP_VARIABLE_INPUT); |
| return loopVariableInput != null |
| && !loopVariableInput.isEmpty(); |
| } |
| return eDynamicIsSet(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String toString() { |
| if (eIsProxy()) |
| return super.toString(); |
| |
| StringBuffer result = new StringBuffer(super.toString()); |
| result.append(" (isTestedFirst: "); //$NON-NLS-1$ |
| result.append((eFlags & IS_TESTED_FIRST_EFLAG) != 0); |
| result.append(')'); |
| return result.toString(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isSetOutputs() { |
| return super.isSetOutputs() || eIsSet(UMLPackage.LOOP_NODE__RESULT); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isSetInputs() { |
| return super.isSetInputs() |
| || eIsSet(UMLPackage.LOOP_NODE__LOOP_VARIABLE_INPUT); |
| } |
| |
| } //LoopNodeImpl |