| /* |
| * Copyright (c) 2005 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: InteractionConstraintImpl.java,v 1.1 2005/11/14 22:26:05 khussey Exp $ |
| */ |
| package org.eclipse.uml2.uml.internal.impl; |
| |
| import java.util.Collection; |
| import java.util.List; |
| 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.ecore.EClass; |
| import org.eclipse.emf.ecore.EStructuralFeature; |
| import org.eclipse.emf.ecore.InternalEObject; |
| |
| import org.eclipse.emf.ecore.impl.ENotificationImpl; |
| |
| import org.eclipse.emf.ecore.util.InternalEList; |
| |
| import org.eclipse.uml2.common.util.DerivedUnionEObjectEList; |
| |
| import org.eclipse.uml2.uml.Element; |
| import org.eclipse.uml2.uml.InteractionConstraint; |
| import org.eclipse.uml2.uml.Namespace; |
| import org.eclipse.uml2.uml.StringExpression; |
| import org.eclipse.uml2.uml.TemplateParameter; |
| 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.InteractionConstraintOperations; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model object '<em><b>Interaction Constraint</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * The following features are implemented: |
| * <ul> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.InteractionConstraintImpl#getOwnedElements <em>Owned Element</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.InteractionConstraintImpl#getMinint <em>Minint</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.InteractionConstraintImpl#getMaxint <em>Maxint</em>}</li> |
| * </ul> |
| * </p> |
| * |
| * @generated |
| */ |
| public class InteractionConstraintImpl |
| extends ConstraintImpl |
| implements InteractionConstraint { |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected InteractionConstraintImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected EClass eStaticClass() { |
| return UMLPackage.eINSTANCE.getInteractionConstraint(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public List getOwnedElements() { |
| List ownedElement = (List) eVirtualGet(UMLPackage.INTERACTION_CONSTRAINT__OWNED_ELEMENT); |
| if (ownedElement == null) { |
| eVirtualSet( |
| UMLPackage.INTERACTION_CONSTRAINT__OWNED_ELEMENT, |
| ownedElement = new DerivedUnionEObjectEList(Element.class, |
| this, UMLPackage.INTERACTION_CONSTRAINT__OWNED_ELEMENT, |
| new EStructuralFeature[]{ |
| UMLPackage.eINSTANCE.getElement_OwnedComment(), |
| UMLPackage.eINSTANCE.getNamedElement_NameExpression(), |
| UMLPackage.eINSTANCE.getConstraint_Specification(), |
| UMLPackage.eINSTANCE.getInteractionConstraint_Minint(), |
| UMLPackage.eINSTANCE.getInteractionConstraint_Maxint()})); |
| } |
| return ownedElement; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ValueSpecification getMinint() { |
| ValueSpecification minint = (ValueSpecification) eVirtualGet(UMLPackage.INTERACTION_CONSTRAINT__MININT); |
| return minint; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetMinint(ValueSpecification newMinint, |
| NotificationChain msgs) { |
| Object oldMinint = eVirtualSet( |
| UMLPackage.INTERACTION_CONSTRAINT__MININT, newMinint); |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, |
| Notification.SET, UMLPackage.INTERACTION_CONSTRAINT__MININT, |
| oldMinint == EVIRTUAL_NO_VALUE |
| ? null |
| : oldMinint, newMinint); |
| if (msgs == null) |
| msgs = notification; |
| else |
| msgs.add(notification); |
| } |
| |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setMinint(ValueSpecification newMinint) { |
| ValueSpecification minint = (ValueSpecification) eVirtualGet(UMLPackage.INTERACTION_CONSTRAINT__MININT); |
| if (newMinint != minint) { |
| NotificationChain msgs = null; |
| if (minint != null) |
| msgs = ((InternalEObject) minint) |
| .eInverseRemove(this, EOPPOSITE_FEATURE_BASE |
| - UMLPackage.INTERACTION_CONSTRAINT__MININT, null, msgs); |
| if (newMinint != null) |
| msgs = ((InternalEObject) newMinint) |
| .eInverseAdd(this, EOPPOSITE_FEATURE_BASE |
| - UMLPackage.INTERACTION_CONSTRAINT__MININT, null, msgs); |
| msgs = basicSetMinint(newMinint, msgs); |
| if (msgs != null) |
| msgs.dispatch(); |
| } else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, |
| UMLPackage.INTERACTION_CONSTRAINT__MININT, newMinint, newMinint)); |
| |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ValueSpecification createMinint(EClass eClass) { |
| ValueSpecification newMinint = (ValueSpecification) eClass |
| .getEPackage().getEFactoryInstance().create(eClass); |
| setMinint(newMinint); |
| return newMinint; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ValueSpecification getMaxint() { |
| ValueSpecification maxint = (ValueSpecification) eVirtualGet(UMLPackage.INTERACTION_CONSTRAINT__MAXINT); |
| return maxint; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetMaxint(ValueSpecification newMaxint, |
| NotificationChain msgs) { |
| Object oldMaxint = eVirtualSet( |
| UMLPackage.INTERACTION_CONSTRAINT__MAXINT, newMaxint); |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, |
| Notification.SET, UMLPackage.INTERACTION_CONSTRAINT__MAXINT, |
| oldMaxint == EVIRTUAL_NO_VALUE |
| ? null |
| : oldMaxint, newMaxint); |
| if (msgs == null) |
| msgs = notification; |
| else |
| msgs.add(notification); |
| } |
| |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setMaxint(ValueSpecification newMaxint) { |
| ValueSpecification maxint = (ValueSpecification) eVirtualGet(UMLPackage.INTERACTION_CONSTRAINT__MAXINT); |
| if (newMaxint != maxint) { |
| NotificationChain msgs = null; |
| if (maxint != null) |
| msgs = ((InternalEObject) maxint) |
| .eInverseRemove(this, EOPPOSITE_FEATURE_BASE |
| - UMLPackage.INTERACTION_CONSTRAINT__MAXINT, null, msgs); |
| if (newMaxint != null) |
| msgs = ((InternalEObject) newMaxint) |
| .eInverseAdd(this, EOPPOSITE_FEATURE_BASE |
| - UMLPackage.INTERACTION_CONSTRAINT__MAXINT, null, msgs); |
| msgs = basicSetMaxint(newMaxint, msgs); |
| if (msgs != null) |
| msgs.dispatch(); |
| } else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, |
| UMLPackage.INTERACTION_CONSTRAINT__MAXINT, newMaxint, newMaxint)); |
| |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ValueSpecification createMaxint(EClass eClass) { |
| ValueSpecification newMaxint = (ValueSpecification) eClass |
| .getEPackage().getEFactoryInstance().create(eClass); |
| setMaxint(newMaxint); |
| return newMaxint; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean validateDynamicVariables(DiagnosticChain diagnostics, |
| Map context) { |
| return InteractionConstraintOperations.validateDynamicVariables(this, |
| diagnostics, context); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean validateGlobalData(DiagnosticChain diagnostics, Map context) { |
| return InteractionConstraintOperations.validateGlobalData(this, |
| diagnostics, context); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean validateMinintMaxint(DiagnosticChain diagnostics, Map context) { |
| return InteractionConstraintOperations.validateMinintMaxint(this, |
| diagnostics, context); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean validateMinint(DiagnosticChain diagnostics, Map context) { |
| return InteractionConstraintOperations.validateMinint(this, |
| diagnostics, context); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean validateMaxint(DiagnosticChain diagnostics, Map context) { |
| return InteractionConstraintOperations.validateMaxint(this, |
| diagnostics, context); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean validateMaxintGreaterEqualMinint( |
| DiagnosticChain diagnostics, Map context) { |
| return InteractionConstraintOperations |
| .validateMaxintGreaterEqualMinint(this, diagnostics, context); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain eInverseRemove(InternalEObject otherEnd, |
| int featureID, Class baseClass, NotificationChain msgs) { |
| if (featureID >= 0) { |
| switch (eDerivedStructuralFeatureID(featureID, baseClass)) { |
| case UMLPackage.INTERACTION_CONSTRAINT__EANNOTATIONS : |
| return ((InternalEList) getEAnnotations()).basicRemove( |
| otherEnd, msgs); |
| case UMLPackage.INTERACTION_CONSTRAINT__OWNED_COMMENT : |
| return ((InternalEList) getOwnedComments()).basicRemove( |
| otherEnd, msgs); |
| case UMLPackage.INTERACTION_CONSTRAINT__CLIENT_DEPENDENCY : |
| return ((InternalEList) getClientDependencies()) |
| .basicRemove(otherEnd, msgs); |
| case UMLPackage.INTERACTION_CONSTRAINT__NAME_EXPRESSION : |
| return basicSetNameExpression(null, msgs); |
| case UMLPackage.INTERACTION_CONSTRAINT__TEMPLATE_PARAMETER : |
| return basicSetTemplateParameter(null, msgs); |
| case UMLPackage.INTERACTION_CONSTRAINT__OWNING_TEMPLATE_PARAMETER : |
| return eBasicSetContainer( |
| null, |
| UMLPackage.INTERACTION_CONSTRAINT__OWNING_TEMPLATE_PARAMETER, |
| msgs); |
| case UMLPackage.INTERACTION_CONSTRAINT__SPECIFICATION : |
| return basicSetSpecification(null, msgs); |
| case UMLPackage.INTERACTION_CONSTRAINT__CONTEXT : |
| return eBasicSetContainer(null, |
| UMLPackage.INTERACTION_CONSTRAINT__CONTEXT, msgs); |
| case UMLPackage.INTERACTION_CONSTRAINT__MININT : |
| return basicSetMinint(null, msgs); |
| case UMLPackage.INTERACTION_CONSTRAINT__MAXINT : |
| return basicSetMaxint(null, msgs); |
| default : |
| return eDynamicInverseRemove(otherEnd, featureID, |
| baseClass, msgs); |
| } |
| } |
| return eBasicSetContainer(null, featureID, msgs); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Object eGet(EStructuralFeature eFeature, boolean resolve) { |
| switch (eDerivedStructuralFeatureID(eFeature)) { |
| case UMLPackage.INTERACTION_CONSTRAINT__EANNOTATIONS : |
| return getEAnnotations(); |
| case UMLPackage.INTERACTION_CONSTRAINT__OWNED_ELEMENT : |
| return getOwnedElements(); |
| case UMLPackage.INTERACTION_CONSTRAINT__OWNER : |
| if (resolve) |
| return getOwner(); |
| return basicGetOwner(); |
| case UMLPackage.INTERACTION_CONSTRAINT__OWNED_COMMENT : |
| return getOwnedComments(); |
| case UMLPackage.INTERACTION_CONSTRAINT__NAME : |
| return getName(); |
| case UMLPackage.INTERACTION_CONSTRAINT__VISIBILITY : |
| return getVisibility(); |
| case UMLPackage.INTERACTION_CONSTRAINT__QUALIFIED_NAME : |
| return getQualifiedName(); |
| case UMLPackage.INTERACTION_CONSTRAINT__CLIENT_DEPENDENCY : |
| return getClientDependencies(); |
| case UMLPackage.INTERACTION_CONSTRAINT__NAMESPACE : |
| if (resolve) |
| return getNamespace(); |
| return basicGetNamespace(); |
| case UMLPackage.INTERACTION_CONSTRAINT__NAME_EXPRESSION : |
| return getNameExpression(); |
| case UMLPackage.INTERACTION_CONSTRAINT__TEMPLATE_PARAMETER : |
| if (resolve) |
| return getTemplateParameter(); |
| return basicGetTemplateParameter(); |
| case UMLPackage.INTERACTION_CONSTRAINT__OWNING_TEMPLATE_PARAMETER : |
| return getOwningTemplateParameter(); |
| case UMLPackage.INTERACTION_CONSTRAINT__CONSTRAINED_ELEMENT : |
| return getConstrainedElements(); |
| case UMLPackage.INTERACTION_CONSTRAINT__SPECIFICATION : |
| return getSpecification(); |
| case UMLPackage.INTERACTION_CONSTRAINT__CONTEXT : |
| return getContext(); |
| case UMLPackage.INTERACTION_CONSTRAINT__MININT : |
| return getMinint(); |
| case UMLPackage.INTERACTION_CONSTRAINT__MAXINT : |
| return getMaxint(); |
| } |
| return eDynamicGet(eFeature, resolve); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void eSet(EStructuralFeature eFeature, Object newValue) { |
| switch (eDerivedStructuralFeatureID(eFeature)) { |
| case UMLPackage.INTERACTION_CONSTRAINT__EANNOTATIONS : |
| getEAnnotations().clear(); |
| getEAnnotations().addAll((Collection) newValue); |
| return; |
| case UMLPackage.INTERACTION_CONSTRAINT__OWNED_COMMENT : |
| getOwnedComments().clear(); |
| getOwnedComments().addAll((Collection) newValue); |
| return; |
| case UMLPackage.INTERACTION_CONSTRAINT__NAME : |
| setName((String) newValue); |
| return; |
| case UMLPackage.INTERACTION_CONSTRAINT__VISIBILITY : |
| setVisibility((VisibilityKind) newValue); |
| return; |
| case UMLPackage.INTERACTION_CONSTRAINT__CLIENT_DEPENDENCY : |
| getClientDependencies().clear(); |
| getClientDependencies().addAll((Collection) newValue); |
| return; |
| case UMLPackage.INTERACTION_CONSTRAINT__NAME_EXPRESSION : |
| setNameExpression((StringExpression) newValue); |
| return; |
| case UMLPackage.INTERACTION_CONSTRAINT__TEMPLATE_PARAMETER : |
| setTemplateParameter((TemplateParameter) newValue); |
| return; |
| case UMLPackage.INTERACTION_CONSTRAINT__OWNING_TEMPLATE_PARAMETER : |
| setOwningTemplateParameter((TemplateParameter) newValue); |
| return; |
| case UMLPackage.INTERACTION_CONSTRAINT__CONSTRAINED_ELEMENT : |
| getConstrainedElements().clear(); |
| getConstrainedElements().addAll((Collection) newValue); |
| return; |
| case UMLPackage.INTERACTION_CONSTRAINT__SPECIFICATION : |
| setSpecification((ValueSpecification) newValue); |
| return; |
| case UMLPackage.INTERACTION_CONSTRAINT__CONTEXT : |
| setContext((Namespace) newValue); |
| return; |
| case UMLPackage.INTERACTION_CONSTRAINT__MININT : |
| setMinint((ValueSpecification) newValue); |
| return; |
| case UMLPackage.INTERACTION_CONSTRAINT__MAXINT : |
| setMaxint((ValueSpecification) newValue); |
| return; |
| } |
| eDynamicSet(eFeature, newValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void eUnset(EStructuralFeature eFeature) { |
| switch (eDerivedStructuralFeatureID(eFeature)) { |
| case UMLPackage.INTERACTION_CONSTRAINT__EANNOTATIONS : |
| getEAnnotations().clear(); |
| return; |
| case UMLPackage.INTERACTION_CONSTRAINT__OWNED_COMMENT : |
| getOwnedComments().clear(); |
| return; |
| case UMLPackage.INTERACTION_CONSTRAINT__NAME : |
| setName(NAME_EDEFAULT); |
| return; |
| case UMLPackage.INTERACTION_CONSTRAINT__VISIBILITY : |
| setVisibility(VISIBILITY_EDEFAULT); |
| return; |
| case UMLPackage.INTERACTION_CONSTRAINT__CLIENT_DEPENDENCY : |
| getClientDependencies().clear(); |
| return; |
| case UMLPackage.INTERACTION_CONSTRAINT__NAME_EXPRESSION : |
| setNameExpression((StringExpression) null); |
| return; |
| case UMLPackage.INTERACTION_CONSTRAINT__TEMPLATE_PARAMETER : |
| setTemplateParameter((TemplateParameter) null); |
| return; |
| case UMLPackage.INTERACTION_CONSTRAINT__OWNING_TEMPLATE_PARAMETER : |
| setOwningTemplateParameter((TemplateParameter) null); |
| return; |
| case UMLPackage.INTERACTION_CONSTRAINT__CONSTRAINED_ELEMENT : |
| getConstrainedElements().clear(); |
| return; |
| case UMLPackage.INTERACTION_CONSTRAINT__SPECIFICATION : |
| setSpecification((ValueSpecification) null); |
| return; |
| case UMLPackage.INTERACTION_CONSTRAINT__CONTEXT : |
| setContext((Namespace) null); |
| return; |
| case UMLPackage.INTERACTION_CONSTRAINT__MININT : |
| setMinint((ValueSpecification) null); |
| return; |
| case UMLPackage.INTERACTION_CONSTRAINT__MAXINT : |
| setMaxint((ValueSpecification) null); |
| return; |
| } |
| eDynamicUnset(eFeature); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean eIsSet(EStructuralFeature eFeature) { |
| switch (eDerivedStructuralFeatureID(eFeature)) { |
| case UMLPackage.INTERACTION_CONSTRAINT__EANNOTATIONS : |
| return eAnnotations != null && !eAnnotations.isEmpty(); |
| case UMLPackage.INTERACTION_CONSTRAINT__OWNED_ELEMENT : |
| return isSetOwnedElements(); |
| case UMLPackage.INTERACTION_CONSTRAINT__OWNER : |
| return isSetOwner(); |
| case UMLPackage.INTERACTION_CONSTRAINT__OWNED_COMMENT : |
| List ownedComment = (List) eVirtualGet(UMLPackage.INTERACTION_CONSTRAINT__OWNED_COMMENT); |
| return ownedComment != null && !ownedComment.isEmpty(); |
| case UMLPackage.INTERACTION_CONSTRAINT__NAME : |
| String name = eVirtualIsSet(UMLPackage.INTERACTION_CONSTRAINT__NAME) |
| ? (String) eVirtualGet(UMLPackage.INTERACTION_CONSTRAINT__NAME) |
| : NAME_EDEFAULT; |
| return NAME_EDEFAULT == null |
| ? name != null |
| : !NAME_EDEFAULT.equals(name); |
| case UMLPackage.INTERACTION_CONSTRAINT__VISIBILITY : |
| return eVirtualIsSet(UMLPackage.INTERACTION_CONSTRAINT__VISIBILITY) |
| && eVirtualGet(UMLPackage.INTERACTION_CONSTRAINT__VISIBILITY) != VISIBILITY_EDEFAULT; |
| case UMLPackage.INTERACTION_CONSTRAINT__QUALIFIED_NAME : |
| return QUALIFIED_NAME_EDEFAULT == null |
| ? getQualifiedName() != null |
| : !QUALIFIED_NAME_EDEFAULT.equals(getQualifiedName()); |
| case UMLPackage.INTERACTION_CONSTRAINT__CLIENT_DEPENDENCY : |
| List clientDependency = (List) eVirtualGet(UMLPackage.INTERACTION_CONSTRAINT__CLIENT_DEPENDENCY); |
| return clientDependency != null && !clientDependency.isEmpty(); |
| case UMLPackage.INTERACTION_CONSTRAINT__NAMESPACE : |
| return isSetNamespace(); |
| case UMLPackage.INTERACTION_CONSTRAINT__NAME_EXPRESSION : |
| return eVirtualGet(UMLPackage.INTERACTION_CONSTRAINT__NAME_EXPRESSION) != null; |
| case UMLPackage.INTERACTION_CONSTRAINT__TEMPLATE_PARAMETER : |
| return eVirtualGet(UMLPackage.INTERACTION_CONSTRAINT__TEMPLATE_PARAMETER) != null; |
| case UMLPackage.INTERACTION_CONSTRAINT__OWNING_TEMPLATE_PARAMETER : |
| return getOwningTemplateParameter() != null; |
| case UMLPackage.INTERACTION_CONSTRAINT__CONSTRAINED_ELEMENT : |
| List constrainedElement = (List) eVirtualGet(UMLPackage.INTERACTION_CONSTRAINT__CONSTRAINED_ELEMENT); |
| return constrainedElement != null |
| && !constrainedElement.isEmpty(); |
| case UMLPackage.INTERACTION_CONSTRAINT__SPECIFICATION : |
| return eVirtualGet(UMLPackage.INTERACTION_CONSTRAINT__SPECIFICATION) != null; |
| case UMLPackage.INTERACTION_CONSTRAINT__CONTEXT : |
| return getContext() != null; |
| case UMLPackage.INTERACTION_CONSTRAINT__MININT : |
| return eVirtualGet(UMLPackage.INTERACTION_CONSTRAINT__MININT) != null; |
| case UMLPackage.INTERACTION_CONSTRAINT__MAXINT : |
| return eVirtualGet(UMLPackage.INTERACTION_CONSTRAINT__MAXINT) != null; |
| } |
| return eDynamicIsSet(eFeature); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isSetOwnedElements() { |
| return super.isSetOwnedElements() |
| || eIsSet(UMLPackage.eINSTANCE.getInteractionConstraint_Minint()) |
| || eIsSet(UMLPackage.eINSTANCE.getInteractionConstraint_Maxint()); |
| } |
| |
| } //InteractionConstraintImpl |