| /* |
| * Copyright (c) 2005, 2011 IBM Corporation, Embarcadero Technologies, CEA, 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 |
| * Kenn Hussey (Embarcadero Technologies) - 204200 |
| * Kenn Hussey - 286329, 323181 |
| * Kenn Hussey (CEA) - 327039, 351774 |
| * |
| */ |
| package org.eclipse.uml2.uml.internal.impl; |
| |
| import java.lang.reflect.InvocationTargetException; |
| 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.EAnnotation; |
| 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.ActivityEdge; |
| import org.eclipse.uml2.uml.ActivityNode; |
| import org.eclipse.uml2.uml.ActivityPartition; |
| import org.eclipse.uml2.uml.Behavior; |
| import org.eclipse.uml2.uml.Comment; |
| import org.eclipse.uml2.uml.Dependency; |
| import org.eclipse.uml2.uml.Element; |
| import org.eclipse.uml2.uml.InterruptibleActivityRegion; |
| import org.eclipse.uml2.uml.MultiplicityElement; |
| import org.eclipse.uml2.uml.NamedElement; |
| import org.eclipse.uml2.uml.Namespace; |
| import org.eclipse.uml2.uml.ObjectNodeOrderingKind; |
| import org.eclipse.uml2.uml.Pin; |
| import org.eclipse.uml2.uml.RedefinableElement; |
| import org.eclipse.uml2.uml.State; |
| import org.eclipse.uml2.uml.Stereotype; |
| 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.ValueSpecification; |
| import org.eclipse.uml2.uml.VisibilityKind; |
| |
| import org.eclipse.uml2.uml.internal.operations.MultiplicityElementOperations; |
| import org.eclipse.uml2.uml.internal.operations.PinOperations; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model object '<em><b>Pin</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * The following features are implemented: |
| * <ul> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PinImpl#getOwnedElements <em>Owned Element</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PinImpl#isOrdered <em>Is Ordered</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PinImpl#isUnique <em>Is Unique</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PinImpl#getLower <em>Lower</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PinImpl#getLowerValue <em>Lower Value</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PinImpl#getUpper <em>Upper</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PinImpl#getUpperValue <em>Upper Value</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PinImpl#isControl <em>Is Control</em>}</li> |
| * </ul> |
| * </p> |
| * |
| * @generated |
| */ |
| public abstract class PinImpl |
| extends ObjectNodeImpl |
| implements Pin { |
| |
| /** |
| * The default value of the '{@link #isOrdered() <em>Is Ordered</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isOrdered() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean IS_ORDERED_EDEFAULT = false; |
| |
| /** |
| * The flag representing the value of the '{@link #isOrdered() <em>Is Ordered</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isOrdered() |
| * @generated |
| * @ordered |
| */ |
| protected static final int IS_ORDERED_EFLAG = 1 << 16; |
| |
| /** |
| * The default value of the '{@link #isUnique() <em>Is Unique</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isUnique() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean IS_UNIQUE_EDEFAULT = true; |
| |
| /** |
| * The flag representing the value of the '{@link #isUnique() <em>Is Unique</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isUnique() |
| * @generated |
| * @ordered |
| */ |
| protected static final int IS_UNIQUE_EFLAG = 1 << 17; |
| |
| /** |
| * The default value of the '{@link #getLower() <em>Lower</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getLower() |
| * @generated |
| * @ordered |
| */ |
| protected static final int LOWER_EDEFAULT = 1; |
| |
| /** |
| * The cached value of the '{@link #getLowerValue() <em>Lower Value</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getLowerValue() |
| * @generated |
| * @ordered |
| */ |
| protected ValueSpecification lowerValue; |
| |
| /** |
| * The default value of the '{@link #getUpper() <em>Upper</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getUpper() |
| * @generated |
| * @ordered |
| */ |
| protected static final int UPPER_EDEFAULT = 1; |
| |
| /** |
| * The cached value of the '{@link #getUpperValue() <em>Upper Value</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getUpperValue() |
| * @generated |
| * @ordered |
| */ |
| protected ValueSpecification upperValue; |
| |
| /** |
| * The default value of the '{@link #isControl() <em>Is Control</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isControl() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean IS_CONTROL_EDEFAULT = false; |
| |
| /** |
| * The flag representing the value of the '{@link #isControl() <em>Is Control</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isControl() |
| * @generated |
| * @ordered |
| */ |
| protected static final int IS_CONTROL_EFLAG = 1 << 18; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected PinImpl() { |
| super(); |
| eFlags |= IS_UNIQUE_EFLAG; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| protected EClass eStaticClass() { |
| return UMLPackage.Literals.PIN; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public EList<Element> getOwnedElements() { |
| CacheAdapter cache = getCacheAdapter(); |
| if (cache != null) { |
| Resource eResource = eResource(); |
| @SuppressWarnings("unchecked") |
| EList<Element> ownedElements = (EList<Element>) cache.get( |
| eResource, this, UMLPackage.Literals.ELEMENT__OWNED_ELEMENT); |
| if (ownedElements == null) { |
| cache.put(eResource, this, |
| UMLPackage.Literals.ELEMENT__OWNED_ELEMENT, |
| ownedElements = new DerivedUnionEObjectEList<Element>( |
| Element.class, this, UMLPackage.PIN__OWNED_ELEMENT, |
| OWNED_ELEMENT_ESUBSETS)); |
| } |
| return ownedElements; |
| } |
| return new DerivedUnionEObjectEList<Element>(Element.class, this, |
| UMLPackage.PIN__OWNED_ELEMENT, OWNED_ELEMENT_ESUBSETS); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isOrdered() { |
| return (eFlags & IS_ORDERED_EFLAG) != 0; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setIsOrdered(boolean newIsOrdered) { |
| boolean oldIsOrdered = (eFlags & IS_ORDERED_EFLAG) != 0; |
| if (newIsOrdered) |
| eFlags |= IS_ORDERED_EFLAG; |
| else |
| eFlags &= ~IS_ORDERED_EFLAG; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, |
| UMLPackage.PIN__IS_ORDERED, oldIsOrdered, newIsOrdered)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isUnique() { |
| return (eFlags & IS_UNIQUE_EFLAG) != 0; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setIsUnique(boolean newIsUnique) { |
| boolean oldIsUnique = (eFlags & IS_UNIQUE_EFLAG) != 0; |
| if (newIsUnique) |
| eFlags |= IS_UNIQUE_EFLAG; |
| else |
| eFlags &= ~IS_UNIQUE_EFLAG; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, |
| UMLPackage.PIN__IS_UNIQUE, oldIsUnique, newIsUnique)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public int getUpper() { |
| return MultiplicityElementOperations.getUpper(this); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setUpper(int newUpper) { |
| MultiplicityElementOperations.setUpper(this, newUpper); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public int getLower() { |
| return MultiplicityElementOperations.getLower(this); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setLower(int newLower) { |
| MultiplicityElementOperations.setLower(this, newLower); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ValueSpecification getUpperValue() { |
| if (upperValue != null && upperValue.eIsProxy()) { |
| InternalEObject oldUpperValue = (InternalEObject) upperValue; |
| upperValue = (ValueSpecification) eResolveProxy(oldUpperValue); |
| if (upperValue != oldUpperValue) { |
| InternalEObject newUpperValue = (InternalEObject) upperValue; |
| NotificationChain msgs = oldUpperValue.eInverseRemove(this, |
| EOPPOSITE_FEATURE_BASE - UMLPackage.PIN__UPPER_VALUE, null, |
| null); |
| if (newUpperValue.eInternalContainer() == null) { |
| msgs = newUpperValue.eInverseAdd(this, |
| EOPPOSITE_FEATURE_BASE - UMLPackage.PIN__UPPER_VALUE, |
| null, msgs); |
| } |
| if (msgs != null) |
| msgs.dispatch(); |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, |
| UMLPackage.PIN__UPPER_VALUE, oldUpperValue, upperValue)); |
| } |
| } |
| return upperValue; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ValueSpecification basicGetUpperValue() { |
| return upperValue; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetUpperValue( |
| ValueSpecification newUpperValue, NotificationChain msgs) { |
| ValueSpecification oldUpperValue = upperValue; |
| upperValue = newUpperValue; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, |
| Notification.SET, UMLPackage.PIN__UPPER_VALUE, oldUpperValue, |
| newUpperValue); |
| if (msgs == null) |
| msgs = notification; |
| else |
| msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setUpperValue(ValueSpecification newUpperValue) { |
| if (newUpperValue != upperValue) { |
| NotificationChain msgs = null; |
| if (upperValue != null) |
| msgs = ((InternalEObject) upperValue).eInverseRemove(this, |
| EOPPOSITE_FEATURE_BASE - UMLPackage.PIN__UPPER_VALUE, null, |
| msgs); |
| if (newUpperValue != null) |
| msgs = ((InternalEObject) newUpperValue).eInverseAdd(this, |
| EOPPOSITE_FEATURE_BASE - UMLPackage.PIN__UPPER_VALUE, null, |
| msgs); |
| msgs = basicSetUpperValue(newUpperValue, msgs); |
| if (msgs != null) |
| msgs.dispatch(); |
| } else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, |
| UMLPackage.PIN__UPPER_VALUE, newUpperValue, newUpperValue)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ValueSpecification createUpperValue(String name, Type type, |
| EClass eClass) { |
| ValueSpecification newUpperValue = (ValueSpecification) create(eClass); |
| setUpperValue(newUpperValue); |
| if (name != null) |
| newUpperValue.setName(name); |
| if (type != null) |
| newUpperValue.setType(type); |
| return newUpperValue; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ValueSpecification getLowerValue() { |
| if (lowerValue != null && lowerValue.eIsProxy()) { |
| InternalEObject oldLowerValue = (InternalEObject) lowerValue; |
| lowerValue = (ValueSpecification) eResolveProxy(oldLowerValue); |
| if (lowerValue != oldLowerValue) { |
| InternalEObject newLowerValue = (InternalEObject) lowerValue; |
| NotificationChain msgs = oldLowerValue.eInverseRemove(this, |
| EOPPOSITE_FEATURE_BASE - UMLPackage.PIN__LOWER_VALUE, null, |
| null); |
| if (newLowerValue.eInternalContainer() == null) { |
| msgs = newLowerValue.eInverseAdd(this, |
| EOPPOSITE_FEATURE_BASE - UMLPackage.PIN__LOWER_VALUE, |
| null, msgs); |
| } |
| if (msgs != null) |
| msgs.dispatch(); |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, |
| UMLPackage.PIN__LOWER_VALUE, oldLowerValue, lowerValue)); |
| } |
| } |
| return lowerValue; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ValueSpecification basicGetLowerValue() { |
| return lowerValue; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetLowerValue( |
| ValueSpecification newLowerValue, NotificationChain msgs) { |
| ValueSpecification oldLowerValue = lowerValue; |
| lowerValue = newLowerValue; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, |
| Notification.SET, UMLPackage.PIN__LOWER_VALUE, oldLowerValue, |
| newLowerValue); |
| if (msgs == null) |
| msgs = notification; |
| else |
| msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setLowerValue(ValueSpecification newLowerValue) { |
| if (newLowerValue != lowerValue) { |
| NotificationChain msgs = null; |
| if (lowerValue != null) |
| msgs = ((InternalEObject) lowerValue).eInverseRemove(this, |
| EOPPOSITE_FEATURE_BASE - UMLPackage.PIN__LOWER_VALUE, null, |
| msgs); |
| if (newLowerValue != null) |
| msgs = ((InternalEObject) newLowerValue).eInverseAdd(this, |
| EOPPOSITE_FEATURE_BASE - UMLPackage.PIN__LOWER_VALUE, null, |
| msgs); |
| msgs = basicSetLowerValue(newLowerValue, msgs); |
| if (msgs != null) |
| msgs.dispatch(); |
| } else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, |
| UMLPackage.PIN__LOWER_VALUE, newLowerValue, newLowerValue)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ValueSpecification createLowerValue(String name, Type type, |
| EClass eClass) { |
| ValueSpecification newLowerValue = (ValueSpecification) create(eClass); |
| setLowerValue(newLowerValue); |
| if (name != null) |
| newLowerValue.setName(name); |
| if (type != null) |
| newLowerValue.setType(type); |
| return newLowerValue; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isControl() { |
| return (eFlags & IS_CONTROL_EFLAG) != 0; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setIsControl(boolean newIsControl) { |
| boolean oldIsControl = (eFlags & IS_CONTROL_EFLAG) != 0; |
| if (newIsControl) |
| eFlags |= IS_CONTROL_EFLAG; |
| else |
| eFlags &= ~IS_CONTROL_EFLAG; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, |
| UMLPackage.PIN__IS_CONTROL, oldIsControl, newIsControl)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean validateLowerGe0(DiagnosticChain diagnostics, |
| Map<Object, Object> context) { |
| return MultiplicityElementOperations.validateLowerGe0(this, |
| diagnostics, context); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean validateUpperGeLower(DiagnosticChain diagnostics, |
| Map<Object, Object> context) { |
| return MultiplicityElementOperations.validateUpperGeLower(this, |
| diagnostics, context); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean validateValueSpecificationNoSideEffects( |
| DiagnosticChain diagnostics, Map<Object, Object> context) { |
| return MultiplicityElementOperations |
| .validateValueSpecificationNoSideEffects(this, diagnostics, context); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean validateValueSpecificationConstant( |
| DiagnosticChain diagnostics, Map<Object, Object> context) { |
| return MultiplicityElementOperations |
| .validateValueSpecificationConstant(this, diagnostics, context); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isMultivalued() { |
| return MultiplicityElementOperations.isMultivalued(this); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean includesCardinality(int C) { |
| return MultiplicityElementOperations.includesCardinality(this, C); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean includesMultiplicity(MultiplicityElement M) { |
| return MultiplicityElementOperations.includesMultiplicity(this, M); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public int lowerBound() { |
| return MultiplicityElementOperations.lowerBound(this); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public int upperBound() { |
| return MultiplicityElementOperations.upperBound(this); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean compatibleWith(MultiplicityElement other) { |
| return MultiplicityElementOperations.compatibleWith(this, other); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean is(int lowerbound, int upperbound) { |
| return MultiplicityElementOperations.is(this, lowerbound, upperbound); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean validateControlPins(DiagnosticChain diagnostics, |
| Map<Object, Object> context) { |
| return PinOperations.validateControlPins(this, diagnostics, context); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public NotificationChain eInverseRemove(InternalEObject otherEnd, |
| int featureID, NotificationChain msgs) { |
| switch (featureID) { |
| case UMLPackage.PIN__EANNOTATIONS : |
| return ((InternalEList<?>) getEAnnotations()).basicRemove( |
| otherEnd, msgs); |
| case UMLPackage.PIN__OWNED_COMMENT : |
| return ((InternalEList<?>) getOwnedComments()).basicRemove( |
| otherEnd, msgs); |
| case UMLPackage.PIN__CLIENT_DEPENDENCY : |
| return ((InternalEList<?>) getClientDependencies()) |
| .basicRemove(otherEnd, msgs); |
| case UMLPackage.PIN__NAME_EXPRESSION : |
| return basicSetNameExpression(null, msgs); |
| case UMLPackage.PIN__IN_PARTITION : |
| return ((InternalEList<?>) getInPartitions()).basicRemove( |
| otherEnd, msgs); |
| case UMLPackage.PIN__IN_STRUCTURED_NODE : |
| return basicSetInStructuredNode(null, msgs); |
| case UMLPackage.PIN__IN_INTERRUPTIBLE_REGION : |
| return ((InternalEList<?>) getInInterruptibleRegions()) |
| .basicRemove(otherEnd, msgs); |
| case UMLPackage.PIN__OUTGOING : |
| return ((InternalEList<?>) getOutgoings()).basicRemove( |
| otherEnd, msgs); |
| case UMLPackage.PIN__INCOMING : |
| return ((InternalEList<?>) getIncomings()).basicRemove( |
| otherEnd, msgs); |
| case UMLPackage.PIN__UPPER_BOUND : |
| return basicSetUpperBound(null, msgs); |
| case UMLPackage.PIN__LOWER_VALUE : |
| return basicSetLowerValue(null, msgs); |
| case UMLPackage.PIN__UPPER_VALUE : |
| return basicSetUpperValue(null, msgs); |
| } |
| return eDynamicInverseRemove(otherEnd, featureID, msgs); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public Object eGet(int featureID, boolean resolve, boolean coreType) { |
| switch (featureID) { |
| case UMLPackage.PIN__EANNOTATIONS : |
| return getEAnnotations(); |
| case UMLPackage.PIN__OWNED_COMMENT : |
| return getOwnedComments(); |
| case UMLPackage.PIN__OWNED_ELEMENT : |
| return getOwnedElements(); |
| case UMLPackage.PIN__OWNER : |
| if (resolve) |
| return getOwner(); |
| return basicGetOwner(); |
| case UMLPackage.PIN__CLIENT_DEPENDENCY : |
| return getClientDependencies(); |
| case UMLPackage.PIN__NAME : |
| return getName(); |
| case UMLPackage.PIN__NAME_EXPRESSION : |
| if (resolve) |
| return getNameExpression(); |
| return basicGetNameExpression(); |
| case UMLPackage.PIN__NAMESPACE : |
| if (resolve) |
| return getNamespace(); |
| return basicGetNamespace(); |
| case UMLPackage.PIN__QUALIFIED_NAME : |
| return getQualifiedName(); |
| case UMLPackage.PIN__VISIBILITY : |
| return getVisibility(); |
| case UMLPackage.PIN__IS_LEAF : |
| return isLeaf(); |
| case UMLPackage.PIN__REDEFINED_ELEMENT : |
| return getRedefinedElements(); |
| case UMLPackage.PIN__REDEFINITION_CONTEXT : |
| return getRedefinitionContexts(); |
| case UMLPackage.PIN__ACTIVITY : |
| if (resolve) |
| return getActivity(); |
| return basicGetActivity(); |
| case UMLPackage.PIN__IN_PARTITION : |
| return getInPartitions(); |
| case UMLPackage.PIN__IN_STRUCTURED_NODE : |
| if (resolve) |
| return getInStructuredNode(); |
| return basicGetInStructuredNode(); |
| case UMLPackage.PIN__IN_INTERRUPTIBLE_REGION : |
| return getInInterruptibleRegions(); |
| case UMLPackage.PIN__OUTGOING : |
| return getOutgoings(); |
| case UMLPackage.PIN__INCOMING : |
| return getIncomings(); |
| case UMLPackage.PIN__IN_GROUP : |
| return getInGroups(); |
| case UMLPackage.PIN__REDEFINED_NODE : |
| return getRedefinedNodes(); |
| case UMLPackage.PIN__TYPE : |
| if (resolve) |
| return getType(); |
| return basicGetType(); |
| case UMLPackage.PIN__IN_STATE : |
| return getInStates(); |
| case UMLPackage.PIN__IS_CONTROL_TYPE : |
| return isControlType(); |
| case UMLPackage.PIN__ORDERING : |
| return getOrdering(); |
| case UMLPackage.PIN__SELECTION : |
| if (resolve) |
| return getSelection(); |
| return basicGetSelection(); |
| case UMLPackage.PIN__UPPER_BOUND : |
| if (resolve) |
| return getUpperBound(); |
| return basicGetUpperBound(); |
| case UMLPackage.PIN__IS_ORDERED : |
| return isOrdered(); |
| case UMLPackage.PIN__IS_UNIQUE : |
| return isUnique(); |
| case UMLPackage.PIN__LOWER : |
| return getLower(); |
| case UMLPackage.PIN__LOWER_VALUE : |
| if (resolve) |
| return getLowerValue(); |
| return basicGetLowerValue(); |
| case UMLPackage.PIN__UPPER : |
| return getUpper(); |
| case UMLPackage.PIN__UPPER_VALUE : |
| if (resolve) |
| return getUpperValue(); |
| return basicGetUpperValue(); |
| case UMLPackage.PIN__IS_CONTROL : |
| return isControl(); |
| } |
| return eDynamicGet(featureID, resolve, coreType); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @SuppressWarnings("unchecked") |
| @Override |
| public void eSet(int featureID, Object newValue) { |
| switch (featureID) { |
| case UMLPackage.PIN__EANNOTATIONS : |
| getEAnnotations().clear(); |
| getEAnnotations().addAll( |
| (Collection<? extends EAnnotation>) newValue); |
| return; |
| case UMLPackage.PIN__OWNED_COMMENT : |
| getOwnedComments().clear(); |
| getOwnedComments().addAll( |
| (Collection<? extends Comment>) newValue); |
| return; |
| case UMLPackage.PIN__CLIENT_DEPENDENCY : |
| getClientDependencies().clear(); |
| getClientDependencies().addAll( |
| (Collection<? extends Dependency>) newValue); |
| return; |
| case UMLPackage.PIN__NAME : |
| setName((String) newValue); |
| return; |
| case UMLPackage.PIN__NAME_EXPRESSION : |
| setNameExpression((StringExpression) newValue); |
| return; |
| case UMLPackage.PIN__VISIBILITY : |
| setVisibility((VisibilityKind) newValue); |
| return; |
| case UMLPackage.PIN__IS_LEAF : |
| setIsLeaf((Boolean) newValue); |
| return; |
| case UMLPackage.PIN__ACTIVITY : |
| setActivity((Activity) newValue); |
| return; |
| case UMLPackage.PIN__IN_PARTITION : |
| getInPartitions().clear(); |
| getInPartitions().addAll( |
| (Collection<? extends ActivityPartition>) newValue); |
| return; |
| case UMLPackage.PIN__IN_STRUCTURED_NODE : |
| setInStructuredNode((StructuredActivityNode) newValue); |
| return; |
| case UMLPackage.PIN__IN_INTERRUPTIBLE_REGION : |
| getInInterruptibleRegions().clear(); |
| getInInterruptibleRegions() |
| .addAll( |
| (Collection<? extends InterruptibleActivityRegion>) newValue); |
| return; |
| case UMLPackage.PIN__OUTGOING : |
| getOutgoings().clear(); |
| getOutgoings().addAll( |
| (Collection<? extends ActivityEdge>) newValue); |
| return; |
| case UMLPackage.PIN__INCOMING : |
| getIncomings().clear(); |
| getIncomings().addAll( |
| (Collection<? extends ActivityEdge>) newValue); |
| return; |
| case UMLPackage.PIN__REDEFINED_NODE : |
| getRedefinedNodes().clear(); |
| getRedefinedNodes().addAll( |
| (Collection<? extends ActivityNode>) newValue); |
| return; |
| case UMLPackage.PIN__TYPE : |
| setType((Type) newValue); |
| return; |
| case UMLPackage.PIN__IN_STATE : |
| getInStates().clear(); |
| getInStates().addAll((Collection<? extends State>) newValue); |
| return; |
| case UMLPackage.PIN__IS_CONTROL_TYPE : |
| setIsControlType((Boolean) newValue); |
| return; |
| case UMLPackage.PIN__ORDERING : |
| setOrdering((ObjectNodeOrderingKind) newValue); |
| return; |
| case UMLPackage.PIN__SELECTION : |
| setSelection((Behavior) newValue); |
| return; |
| case UMLPackage.PIN__UPPER_BOUND : |
| setUpperBound((ValueSpecification) newValue); |
| return; |
| case UMLPackage.PIN__IS_ORDERED : |
| setIsOrdered((Boolean) newValue); |
| return; |
| case UMLPackage.PIN__IS_UNIQUE : |
| setIsUnique((Boolean) newValue); |
| return; |
| case UMLPackage.PIN__LOWER : |
| setLower((Integer) newValue); |
| return; |
| case UMLPackage.PIN__LOWER_VALUE : |
| setLowerValue((ValueSpecification) newValue); |
| return; |
| case UMLPackage.PIN__UPPER : |
| setUpper((Integer) newValue); |
| return; |
| case UMLPackage.PIN__UPPER_VALUE : |
| setUpperValue((ValueSpecification) newValue); |
| return; |
| case UMLPackage.PIN__IS_CONTROL : |
| setIsControl((Boolean) newValue); |
| return; |
| } |
| eDynamicSet(featureID, newValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void eUnset(int featureID) { |
| switch (featureID) { |
| case UMLPackage.PIN__EANNOTATIONS : |
| getEAnnotations().clear(); |
| return; |
| case UMLPackage.PIN__OWNED_COMMENT : |
| getOwnedComments().clear(); |
| return; |
| case UMLPackage.PIN__CLIENT_DEPENDENCY : |
| getClientDependencies().clear(); |
| return; |
| case UMLPackage.PIN__NAME : |
| unsetName(); |
| return; |
| case UMLPackage.PIN__NAME_EXPRESSION : |
| setNameExpression((StringExpression) null); |
| return; |
| case UMLPackage.PIN__VISIBILITY : |
| unsetVisibility(); |
| return; |
| case UMLPackage.PIN__IS_LEAF : |
| setIsLeaf(IS_LEAF_EDEFAULT); |
| return; |
| case UMLPackage.PIN__ACTIVITY : |
| setActivity((Activity) null); |
| return; |
| case UMLPackage.PIN__IN_PARTITION : |
| getInPartitions().clear(); |
| return; |
| case UMLPackage.PIN__IN_STRUCTURED_NODE : |
| setInStructuredNode((StructuredActivityNode) null); |
| return; |
| case UMLPackage.PIN__IN_INTERRUPTIBLE_REGION : |
| getInInterruptibleRegions().clear(); |
| return; |
| case UMLPackage.PIN__OUTGOING : |
| getOutgoings().clear(); |
| return; |
| case UMLPackage.PIN__INCOMING : |
| getIncomings().clear(); |
| return; |
| case UMLPackage.PIN__REDEFINED_NODE : |
| getRedefinedNodes().clear(); |
| return; |
| case UMLPackage.PIN__TYPE : |
| setType((Type) null); |
| return; |
| case UMLPackage.PIN__IN_STATE : |
| getInStates().clear(); |
| return; |
| case UMLPackage.PIN__IS_CONTROL_TYPE : |
| setIsControlType(IS_CONTROL_TYPE_EDEFAULT); |
| return; |
| case UMLPackage.PIN__ORDERING : |
| setOrdering(ORDERING_EDEFAULT); |
| return; |
| case UMLPackage.PIN__SELECTION : |
| setSelection((Behavior) null); |
| return; |
| case UMLPackage.PIN__UPPER_BOUND : |
| setUpperBound((ValueSpecification) null); |
| return; |
| case UMLPackage.PIN__IS_ORDERED : |
| setIsOrdered(IS_ORDERED_EDEFAULT); |
| return; |
| case UMLPackage.PIN__IS_UNIQUE : |
| setIsUnique(IS_UNIQUE_EDEFAULT); |
| return; |
| case UMLPackage.PIN__LOWER : |
| setLower(LOWER_EDEFAULT); |
| return; |
| case UMLPackage.PIN__LOWER_VALUE : |
| setLowerValue((ValueSpecification) null); |
| return; |
| case UMLPackage.PIN__UPPER : |
| setUpper(UPPER_EDEFAULT); |
| return; |
| case UMLPackage.PIN__UPPER_VALUE : |
| setUpperValue((ValueSpecification) null); |
| return; |
| case UMLPackage.PIN__IS_CONTROL : |
| setIsControl(IS_CONTROL_EDEFAULT); |
| return; |
| } |
| eDynamicUnset(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public boolean eIsSet(int featureID) { |
| switch (featureID) { |
| case UMLPackage.PIN__EANNOTATIONS : |
| return eAnnotations != null && !eAnnotations.isEmpty(); |
| case UMLPackage.PIN__OWNED_COMMENT : |
| return ownedComments != null && !ownedComments.isEmpty(); |
| case UMLPackage.PIN__OWNED_ELEMENT : |
| return isSetOwnedElements(); |
| case UMLPackage.PIN__OWNER : |
| return isSetOwner(); |
| case UMLPackage.PIN__CLIENT_DEPENDENCY : |
| return clientDependencies != null |
| && !clientDependencies.isEmpty(); |
| case UMLPackage.PIN__NAME : |
| return isSetName(); |
| case UMLPackage.PIN__NAME_EXPRESSION : |
| return nameExpression != null; |
| case UMLPackage.PIN__NAMESPACE : |
| return isSetNamespace(); |
| case UMLPackage.PIN__QUALIFIED_NAME : |
| return QUALIFIED_NAME_EDEFAULT == null |
| ? getQualifiedName() != null |
| : !QUALIFIED_NAME_EDEFAULT.equals(getQualifiedName()); |
| case UMLPackage.PIN__VISIBILITY : |
| return isSetVisibility(); |
| case UMLPackage.PIN__IS_LEAF : |
| return ((eFlags & IS_LEAF_EFLAG) != 0) != IS_LEAF_EDEFAULT; |
| case UMLPackage.PIN__REDEFINED_ELEMENT : |
| return isSetRedefinedElements(); |
| case UMLPackage.PIN__REDEFINITION_CONTEXT : |
| return isSetRedefinitionContexts(); |
| case UMLPackage.PIN__ACTIVITY : |
| return basicGetActivity() != null; |
| case UMLPackage.PIN__IN_PARTITION : |
| return inPartitions != null && !inPartitions.isEmpty(); |
| case UMLPackage.PIN__IN_STRUCTURED_NODE : |
| return basicGetInStructuredNode() != null; |
| case UMLPackage.PIN__IN_INTERRUPTIBLE_REGION : |
| return inInterruptibleRegions != null |
| && !inInterruptibleRegions.isEmpty(); |
| case UMLPackage.PIN__OUTGOING : |
| return outgoings != null && !outgoings.isEmpty(); |
| case UMLPackage.PIN__INCOMING : |
| return incomings != null && !incomings.isEmpty(); |
| case UMLPackage.PIN__IN_GROUP : |
| return isSetInGroups(); |
| case UMLPackage.PIN__REDEFINED_NODE : |
| return redefinedNodes != null && !redefinedNodes.isEmpty(); |
| case UMLPackage.PIN__TYPE : |
| return type != null; |
| case UMLPackage.PIN__IN_STATE : |
| return inStates != null && !inStates.isEmpty(); |
| case UMLPackage.PIN__IS_CONTROL_TYPE : |
| return ((eFlags & IS_CONTROL_TYPE_EFLAG) != 0) != IS_CONTROL_TYPE_EDEFAULT; |
| case UMLPackage.PIN__ORDERING : |
| return (eFlags & ORDERING_EFLAG) != ORDERING_EFLAG_DEFAULT; |
| case UMLPackage.PIN__SELECTION : |
| return selection != null; |
| case UMLPackage.PIN__UPPER_BOUND : |
| return upperBound != null; |
| case UMLPackage.PIN__IS_ORDERED : |
| return ((eFlags & IS_ORDERED_EFLAG) != 0) != IS_ORDERED_EDEFAULT; |
| case UMLPackage.PIN__IS_UNIQUE : |
| return ((eFlags & IS_UNIQUE_EFLAG) != 0) != IS_UNIQUE_EDEFAULT; |
| case UMLPackage.PIN__LOWER : |
| return getLower() != LOWER_EDEFAULT; |
| case UMLPackage.PIN__LOWER_VALUE : |
| return lowerValue != null; |
| case UMLPackage.PIN__UPPER : |
| return getUpper() != UPPER_EDEFAULT; |
| case UMLPackage.PIN__UPPER_VALUE : |
| return upperValue != null; |
| case UMLPackage.PIN__IS_CONTROL : |
| return ((eFlags & IS_CONTROL_EFLAG) != 0) != IS_CONTROL_EDEFAULT; |
| } |
| return eDynamicIsSet(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) { |
| if (baseClass == MultiplicityElement.class) { |
| switch (derivedFeatureID) { |
| case UMLPackage.PIN__IS_ORDERED : |
| return UMLPackage.MULTIPLICITY_ELEMENT__IS_ORDERED; |
| case UMLPackage.PIN__IS_UNIQUE : |
| return UMLPackage.MULTIPLICITY_ELEMENT__IS_UNIQUE; |
| case UMLPackage.PIN__LOWER : |
| return UMLPackage.MULTIPLICITY_ELEMENT__LOWER; |
| case UMLPackage.PIN__LOWER_VALUE : |
| return UMLPackage.MULTIPLICITY_ELEMENT__LOWER_VALUE; |
| case UMLPackage.PIN__UPPER : |
| return UMLPackage.MULTIPLICITY_ELEMENT__UPPER; |
| case UMLPackage.PIN__UPPER_VALUE : |
| return UMLPackage.MULTIPLICITY_ELEMENT__UPPER_VALUE; |
| default : |
| return -1; |
| } |
| } |
| return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) { |
| if (baseClass == MultiplicityElement.class) { |
| switch (baseFeatureID) { |
| case UMLPackage.MULTIPLICITY_ELEMENT__IS_ORDERED : |
| return UMLPackage.PIN__IS_ORDERED; |
| case UMLPackage.MULTIPLICITY_ELEMENT__IS_UNIQUE : |
| return UMLPackage.PIN__IS_UNIQUE; |
| case UMLPackage.MULTIPLICITY_ELEMENT__LOWER : |
| return UMLPackage.PIN__LOWER; |
| case UMLPackage.MULTIPLICITY_ELEMENT__LOWER_VALUE : |
| return UMLPackage.PIN__LOWER_VALUE; |
| case UMLPackage.MULTIPLICITY_ELEMENT__UPPER : |
| return UMLPackage.PIN__UPPER; |
| case UMLPackage.MULTIPLICITY_ELEMENT__UPPER_VALUE : |
| return UMLPackage.PIN__UPPER_VALUE; |
| default : |
| return -1; |
| } |
| } |
| return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public int eDerivedOperationID(int baseOperationID, Class<?> baseClass) { |
| if (baseClass == MultiplicityElement.class) { |
| switch (baseOperationID) { |
| case UMLPackage.MULTIPLICITY_ELEMENT___VALIDATE_LOWER_GE0__DIAGNOSTICCHAIN_MAP : |
| return UMLPackage.PIN___VALIDATE_LOWER_GE0__DIAGNOSTICCHAIN_MAP; |
| case UMLPackage.MULTIPLICITY_ELEMENT___VALIDATE_UPPER_GE_LOWER__DIAGNOSTICCHAIN_MAP : |
| return UMLPackage.PIN___VALIDATE_UPPER_GE_LOWER__DIAGNOSTICCHAIN_MAP; |
| case UMLPackage.MULTIPLICITY_ELEMENT___VALIDATE_VALUE_SPECIFICATION_CONSTANT__DIAGNOSTICCHAIN_MAP : |
| return UMLPackage.PIN___VALIDATE_VALUE_SPECIFICATION_CONSTANT__DIAGNOSTICCHAIN_MAP; |
| case UMLPackage.MULTIPLICITY_ELEMENT___VALIDATE_VALUE_SPECIFICATION_NO_SIDE_EFFECTS__DIAGNOSTICCHAIN_MAP : |
| return UMLPackage.PIN___VALIDATE_VALUE_SPECIFICATION_NO_SIDE_EFFECTS__DIAGNOSTICCHAIN_MAP; |
| case UMLPackage.MULTIPLICITY_ELEMENT___SET_LOWER__INT : |
| return UMLPackage.PIN___SET_LOWER__INT; |
| case UMLPackage.MULTIPLICITY_ELEMENT___SET_UPPER__INT : |
| return UMLPackage.PIN___SET_UPPER__INT; |
| case UMLPackage.MULTIPLICITY_ELEMENT___COMPATIBLE_WITH__MULTIPLICITYELEMENT : |
| return UMLPackage.PIN___COMPATIBLE_WITH__MULTIPLICITYELEMENT; |
| case UMLPackage.MULTIPLICITY_ELEMENT___INCLUDES_CARDINALITY__INT : |
| return UMLPackage.PIN___INCLUDES_CARDINALITY__INT; |
| case UMLPackage.MULTIPLICITY_ELEMENT___INCLUDES_MULTIPLICITY__MULTIPLICITYELEMENT : |
| return UMLPackage.PIN___INCLUDES_MULTIPLICITY__MULTIPLICITYELEMENT; |
| case UMLPackage.MULTIPLICITY_ELEMENT___IS__INT_INT : |
| return UMLPackage.PIN___IS__INT_INT; |
| case UMLPackage.MULTIPLICITY_ELEMENT___IS_MULTIVALUED : |
| return UMLPackage.PIN___IS_MULTIVALUED; |
| case UMLPackage.MULTIPLICITY_ELEMENT___GET_LOWER : |
| return UMLPackage.PIN___GET_LOWER; |
| case UMLPackage.MULTIPLICITY_ELEMENT___LOWER_BOUND : |
| return UMLPackage.PIN___LOWER_BOUND; |
| case UMLPackage.MULTIPLICITY_ELEMENT___GET_UPPER : |
| return UMLPackage.PIN___GET_UPPER; |
| case UMLPackage.MULTIPLICITY_ELEMENT___UPPER_BOUND : |
| return UMLPackage.PIN___UPPER_BOUND; |
| default : |
| return -1; |
| } |
| } |
| return super.eDerivedOperationID(baseOperationID, baseClass); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| @SuppressWarnings("unchecked") |
| public Object eInvoke(int operationID, EList<?> arguments) |
| throws InvocationTargetException { |
| switch (operationID) { |
| case UMLPackage.PIN___GET_EANNOTATION__STRING : |
| return getEAnnotation((String) arguments.get(0)); |
| case UMLPackage.PIN___VALIDATE_HAS_OWNER__DIAGNOSTICCHAIN_MAP : |
| return validateHasOwner((DiagnosticChain) arguments.get(0), |
| (Map<Object, Object>) arguments.get(1)); |
| case UMLPackage.PIN___VALIDATE_NOT_OWN_SELF__DIAGNOSTICCHAIN_MAP : |
| return validateNotOwnSelf((DiagnosticChain) arguments.get(0), |
| (Map<Object, Object>) arguments.get(1)); |
| case UMLPackage.PIN___ADD_KEYWORD__STRING : |
| return addKeyword((String) arguments.get(0)); |
| case UMLPackage.PIN___APPLY_STEREOTYPE__STEREOTYPE : |
| return applyStereotype((Stereotype) arguments.get(0)); |
| case UMLPackage.PIN___CREATE_EANNOTATION__STRING : |
| return createEAnnotation((String) arguments.get(0)); |
| case UMLPackage.PIN___DESTROY : |
| destroy(); |
| return null; |
| case UMLPackage.PIN___GET_KEYWORDS : |
| return getKeywords(); |
| case UMLPackage.PIN___GET_APPLICABLE_STEREOTYPE__STRING : |
| return getApplicableStereotype((String) arguments.get(0)); |
| case UMLPackage.PIN___GET_APPLICABLE_STEREOTYPES : |
| return getApplicableStereotypes(); |
| case UMLPackage.PIN___GET_APPLIED_STEREOTYPE__STRING : |
| return getAppliedStereotype((String) arguments.get(0)); |
| case UMLPackage.PIN___GET_APPLIED_STEREOTYPES : |
| return getAppliedStereotypes(); |
| case UMLPackage.PIN___GET_APPLIED_SUBSTEREOTYPE__STEREOTYPE_STRING : |
| return getAppliedSubstereotype((Stereotype) arguments.get(0), |
| (String) arguments.get(1)); |
| case UMLPackage.PIN___GET_APPLIED_SUBSTEREOTYPES__STEREOTYPE : |
| return getAppliedSubstereotypes((Stereotype) arguments.get(0)); |
| case UMLPackage.PIN___GET_MODEL : |
| return getModel(); |
| case UMLPackage.PIN___GET_NEAREST_PACKAGE : |
| return getNearestPackage(); |
| case UMLPackage.PIN___GET_RELATIONSHIPS : |
| return getRelationships(); |
| case UMLPackage.PIN___GET_RELATIONSHIPS__ECLASS : |
| return getRelationships((EClass) arguments.get(0)); |
| case UMLPackage.PIN___GET_REQUIRED_STEREOTYPE__STRING : |
| return getRequiredStereotype((String) arguments.get(0)); |
| case UMLPackage.PIN___GET_REQUIRED_STEREOTYPES : |
| return getRequiredStereotypes(); |
| case UMLPackage.PIN___GET_SOURCE_DIRECTED_RELATIONSHIPS : |
| return getSourceDirectedRelationships(); |
| case UMLPackage.PIN___GET_SOURCE_DIRECTED_RELATIONSHIPS__ECLASS : |
| return getSourceDirectedRelationships((EClass) arguments.get(0)); |
| case UMLPackage.PIN___GET_STEREOTYPE_APPLICATION__STEREOTYPE : |
| return getStereotypeApplication((Stereotype) arguments.get(0)); |
| case UMLPackage.PIN___GET_STEREOTYPE_APPLICATIONS : |
| return getStereotypeApplications(); |
| case UMLPackage.PIN___GET_TARGET_DIRECTED_RELATIONSHIPS : |
| return getTargetDirectedRelationships(); |
| case UMLPackage.PIN___GET_TARGET_DIRECTED_RELATIONSHIPS__ECLASS : |
| return getTargetDirectedRelationships((EClass) arguments.get(0)); |
| case UMLPackage.PIN___GET_VALUE__STEREOTYPE_STRING : |
| return getValue((Stereotype) arguments.get(0), |
| (String) arguments.get(1)); |
| case UMLPackage.PIN___HAS_KEYWORD__STRING : |
| return hasKeyword((String) arguments.get(0)); |
| case UMLPackage.PIN___HAS_VALUE__STEREOTYPE_STRING : |
| return hasValue((Stereotype) arguments.get(0), |
| (String) arguments.get(1)); |
| case UMLPackage.PIN___IS_STEREOTYPE_APPLICABLE__STEREOTYPE : |
| return isStereotypeApplicable((Stereotype) arguments.get(0)); |
| case UMLPackage.PIN___IS_STEREOTYPE_APPLIED__STEREOTYPE : |
| return isStereotypeApplied((Stereotype) arguments.get(0)); |
| case UMLPackage.PIN___IS_STEREOTYPE_REQUIRED__STEREOTYPE : |
| return isStereotypeRequired((Stereotype) arguments.get(0)); |
| case UMLPackage.PIN___REMOVE_KEYWORD__STRING : |
| return removeKeyword((String) arguments.get(0)); |
| case UMLPackage.PIN___SET_VALUE__STEREOTYPE_STRING_OBJECT : |
| setValue((Stereotype) arguments.get(0), |
| (String) arguments.get(1), arguments.get(2)); |
| return null; |
| case UMLPackage.PIN___UNAPPLY_STEREOTYPE__STEREOTYPE : |
| return unapplyStereotype((Stereotype) arguments.get(0)); |
| case UMLPackage.PIN___ALL_OWNED_ELEMENTS : |
| return allOwnedElements(); |
| case UMLPackage.PIN___MUST_BE_OWNED : |
| return mustBeOwned(); |
| case UMLPackage.PIN___VALIDATE_HAS_QUALIFIED_NAME__DIAGNOSTICCHAIN_MAP : |
| return validateHasQualifiedName( |
| (DiagnosticChain) arguments.get(0), |
| (Map<Object, Object>) arguments.get(1)); |
| case UMLPackage.PIN___VALIDATE_HAS_NO_QUALIFIED_NAME__DIAGNOSTICCHAIN_MAP : |
| return validateHasNoQualifiedName( |
| (DiagnosticChain) arguments.get(0), |
| (Map<Object, Object>) arguments.get(1)); |
| case UMLPackage.PIN___VALIDATE_VISIBILITY_NEEDS_OWNERSHIP__DIAGNOSTICCHAIN_MAP : |
| return validateVisibilityNeedsOwnership( |
| (DiagnosticChain) arguments.get(0), |
| (Map<Object, Object>) arguments.get(1)); |
| case UMLPackage.PIN___CREATE_DEPENDENCY__NAMEDELEMENT : |
| return createDependency((NamedElement) arguments.get(0)); |
| case UMLPackage.PIN___CREATE_USAGE__NAMEDELEMENT : |
| return createUsage((NamedElement) arguments.get(0)); |
| case UMLPackage.PIN___GET_LABEL : |
| return getLabel(); |
| case UMLPackage.PIN___GET_LABEL__BOOLEAN : |
| return getLabel((Boolean) arguments.get(0)); |
| case UMLPackage.PIN___ALL_NAMESPACES : |
| return allNamespaces(); |
| case UMLPackage.PIN___ALL_OWNING_PACKAGES : |
| return allOwningPackages(); |
| case UMLPackage.PIN___IS_DISTINGUISHABLE_FROM__NAMEDELEMENT_NAMESPACE : |
| return isDistinguishableFrom((NamedElement) arguments.get(0), |
| (Namespace) arguments.get(1)); |
| case UMLPackage.PIN___GET_NAMESPACE : |
| return getNamespace(); |
| case UMLPackage.PIN___GET_QUALIFIED_NAME : |
| return getQualifiedName(); |
| case UMLPackage.PIN___SEPARATOR : |
| return separator(); |
| case UMLPackage.PIN___VALIDATE_REDEFINITION_CONSISTENT__DIAGNOSTICCHAIN_MAP : |
| return validateRedefinitionConsistent( |
| (DiagnosticChain) arguments.get(0), |
| (Map<Object, Object>) arguments.get(1)); |
| case UMLPackage.PIN___VALIDATE_NON_LEAF_REDEFINITION__DIAGNOSTICCHAIN_MAP : |
| return validateNonLeafRedefinition( |
| (DiagnosticChain) arguments.get(0), |
| (Map<Object, Object>) arguments.get(1)); |
| case UMLPackage.PIN___VALIDATE_REDEFINITION_CONTEXT_VALID__DIAGNOSTICCHAIN_MAP : |
| return validateRedefinitionContextValid( |
| (DiagnosticChain) arguments.get(0), |
| (Map<Object, Object>) arguments.get(1)); |
| case UMLPackage.PIN___IS_CONSISTENT_WITH__REDEFINABLEELEMENT : |
| return isConsistentWith((RedefinableElement) arguments.get(0)); |
| case UMLPackage.PIN___IS_REDEFINITION_CONTEXT_VALID__REDEFINABLEELEMENT : |
| return isRedefinitionContextValid((RedefinableElement) arguments |
| .get(0)); |
| case UMLPackage.PIN___VALIDATE_OWNED__DIAGNOSTICCHAIN_MAP : |
| return validateOwned((DiagnosticChain) arguments.get(0), |
| (Map<Object, Object>) arguments.get(1)); |
| case UMLPackage.PIN___VALIDATE_OWNED_STRUCTURED_NODE__DIAGNOSTICCHAIN_MAP : |
| return validateOwnedStructuredNode( |
| (DiagnosticChain) arguments.get(0), |
| (Map<Object, Object>) arguments.get(1)); |
| case UMLPackage.PIN___VALIDATE_OBJECT_FLOW_EDGES__DIAGNOSTICCHAIN_MAP : |
| return validateObjectFlowEdges( |
| (DiagnosticChain) arguments.get(0), |
| (Map<Object, Object>) arguments.get(1)); |
| case UMLPackage.PIN___VALIDATE_SELECTION_BEHAVIOR__DIAGNOSTICCHAIN_MAP : |
| return validateSelectionBehavior( |
| (DiagnosticChain) arguments.get(0), |
| (Map<Object, Object>) arguments.get(1)); |
| case UMLPackage.PIN___VALIDATE_INPUT_OUTPUT_PARAMETER__DIAGNOSTICCHAIN_MAP : |
| return validateInputOutputParameter( |
| (DiagnosticChain) arguments.get(0), |
| (Map<Object, Object>) arguments.get(1)); |
| case UMLPackage.PIN___VALIDATE_LOWER_GE0__DIAGNOSTICCHAIN_MAP : |
| return validateLowerGe0((DiagnosticChain) arguments.get(0), |
| (Map<Object, Object>) arguments.get(1)); |
| case UMLPackage.PIN___VALIDATE_UPPER_GE_LOWER__DIAGNOSTICCHAIN_MAP : |
| return validateUpperGeLower((DiagnosticChain) arguments.get(0), |
| (Map<Object, Object>) arguments.get(1)); |
| case UMLPackage.PIN___VALIDATE_VALUE_SPECIFICATION_CONSTANT__DIAGNOSTICCHAIN_MAP : |
| return validateValueSpecificationConstant( |
| (DiagnosticChain) arguments.get(0), |
| (Map<Object, Object>) arguments.get(1)); |
| case UMLPackage.PIN___VALIDATE_VALUE_SPECIFICATION_NO_SIDE_EFFECTS__DIAGNOSTICCHAIN_MAP : |
| return validateValueSpecificationNoSideEffects( |
| (DiagnosticChain) arguments.get(0), |
| (Map<Object, Object>) arguments.get(1)); |
| case UMLPackage.PIN___SET_LOWER__INT : |
| setLower((Integer) arguments.get(0)); |
| return null; |
| case UMLPackage.PIN___SET_UPPER__INT : |
| setUpper((Integer) arguments.get(0)); |
| return null; |
| case UMLPackage.PIN___COMPATIBLE_WITH__MULTIPLICITYELEMENT : |
| return compatibleWith((MultiplicityElement) arguments.get(0)); |
| case UMLPackage.PIN___INCLUDES_CARDINALITY__INT : |
| return includesCardinality((Integer) arguments.get(0)); |
| case UMLPackage.PIN___INCLUDES_MULTIPLICITY__MULTIPLICITYELEMENT : |
| return includesMultiplicity((MultiplicityElement) arguments |
| .get(0)); |
| case UMLPackage.PIN___IS__INT_INT : |
| return is((Integer) arguments.get(0), |
| (Integer) arguments.get(1)); |
| case UMLPackage.PIN___IS_MULTIVALUED : |
| return isMultivalued(); |
| case UMLPackage.PIN___GET_LOWER : |
| return getLower(); |
| case UMLPackage.PIN___LOWER_BOUND : |
| return lowerBound(); |
| case UMLPackage.PIN___GET_UPPER : |
| return getUpper(); |
| case UMLPackage.PIN___UPPER_BOUND : |
| return upperBound(); |
| case UMLPackage.PIN___VALIDATE_CONTROL_PINS__DIAGNOSTICCHAIN_MAP : |
| return validateControlPins((DiagnosticChain) arguments.get(0), |
| (Map<Object, Object>) arguments.get(1)); |
| } |
| return eDynamicInvoke(operationID, arguments); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public String toString() { |
| if (eIsProxy()) |
| return super.toString(); |
| |
| StringBuffer result = new StringBuffer(super.toString()); |
| result.append(" (isOrdered: "); //$NON-NLS-1$ |
| result.append((eFlags & IS_ORDERED_EFLAG) != 0); |
| result.append(", isUnique: "); //$NON-NLS-1$ |
| result.append((eFlags & IS_UNIQUE_EFLAG) != 0); |
| result.append(", isControl: "); //$NON-NLS-1$ |
| result.append((eFlags & IS_CONTROL_EFLAG) != 0); |
| result.append(')'); |
| return result.toString(); |
| } |
| |
| /** |
| * The array of subset feature identifiers for the '{@link #getOwnedElements() <em>Owned Element</em>}' reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getOwnedElements() |
| * @generated |
| * @ordered |
| */ |
| protected static final int[] OWNED_ELEMENT_ESUBSETS = new int[]{ |
| UMLPackage.PIN__OWNED_COMMENT, UMLPackage.PIN__NAME_EXPRESSION, |
| UMLPackage.PIN__UPPER_BOUND, UMLPackage.PIN__LOWER_VALUE, |
| UMLPackage.PIN__UPPER_VALUE}; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public boolean isSetOwnedElements() { |
| return super.isSetOwnedElements() |
| || eIsSet(UMLPackage.PIN__LOWER_VALUE) |
| || eIsSet(UMLPackage.PIN__UPPER_VALUE); |
| } |
| |
| } //PinImpl |