Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/GeneralizationSetEdgeImpl.java')
-rw-r--r--extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/GeneralizationSetEdgeImpl.java334
1 files changed, 0 insertions, 334 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/GeneralizationSetEdgeImpl.java b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/GeneralizationSetEdgeImpl.java
deleted file mode 100644
index 63d18fb9de7..00000000000
--- a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/GeneralizationSetEdgeImpl.java
+++ /dev/null
@@ -1,334 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * 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:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.umldi.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.papyrus.umldi.ConstraintLabel;
-import org.eclipse.papyrus.umldi.GeneralizationSetEdge;
-import org.eclipse.papyrus.umldi.PowerLabel;
-import org.eclipse.papyrus.umldi.UMLDIPackage;
-import org.eclipse.papyrus.umldi.UmlDiagramElement;
-
-import org.eclipse.uml2.common.util.DerivedUnionEObjectEList;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Generalization Set Edge</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * </p>
- * <ul>
- * <li>{@link org.eclipse.papyrus.umldi.impl.GeneralizationSetEdgeImpl#getOwnedUmlDiagramElement <em>Owned Uml Diagram Element</em>}</li>
- * <li>{@link org.eclipse.papyrus.umldi.impl.GeneralizationSetEdgeImpl#getPowerLabel <em>Power Label</em>}</li>
- * <li>{@link org.eclipse.papyrus.umldi.impl.GeneralizationSetEdgeImpl#getConstraintLabel <em>Constraint Label</em>}</li>
- * </ul>
- *
- * @generated
- */
-public class GeneralizationSetEdgeImpl extends ElementEdgeImpl implements GeneralizationSetEdge {
-
- /**
- * The cached value of the '{@link #getPowerLabel() <em>Power Label</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getPowerLabel()
- * @generated
- * @ordered
- */
- protected PowerLabel powerLabel;
-
- /**
- * The cached value of the '{@link #getConstraintLabel() <em>Constraint Label</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getConstraintLabel()
- * @generated
- * @ordered
- */
- protected ConstraintLabel constraintLabel;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected GeneralizationSetEdgeImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return UMLDIPackage.Literals.GENERALIZATION_SET_EDGE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EList<UmlDiagramElement> getOwnedUmlDiagramElement() {
- return new DerivedUnionEObjectEList<UmlDiagramElement>(UmlDiagramElement.class, this, UMLDIPackage.GENERALIZATION_SET_EDGE__OWNED_UML_DIAGRAM_ELEMENT, OWNED_UML_DIAGRAM_ELEMENT_ESUBSETS);
- }
-
- /**
- * The array of subset feature identifiers for the '{@link #getOwnedUmlDiagramElement() <em>Owned Uml Diagram Element</em>}' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getOwnedUmlDiagramElement()
- * @generated
- * @ordered
- */
- protected static final int[] OWNED_UML_DIAGRAM_ELEMENT_ESUBSETS = new int[]{ UMLDIPackage.GENERALIZATION_SET_EDGE__STEREOTYPE_LABEL, UMLDIPackage.GENERALIZATION_SET_EDGE__MAIN_LABEL, UMLDIPackage.GENERALIZATION_SET_EDGE__POWER_LABEL, UMLDIPackage.GENERALIZATION_SET_EDGE__CONSTRAINT_LABEL };
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public PowerLabel getPowerLabel() {
- return powerLabel;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetPowerLabel(PowerLabel newPowerLabel, NotificationChain msgs) {
- PowerLabel oldPowerLabel = powerLabel;
- powerLabel = newPowerLabel;
- if(eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UMLDIPackage.GENERALIZATION_SET_EDGE__POWER_LABEL, oldPowerLabel, newPowerLabel);
- if(msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setPowerLabel(PowerLabel newPowerLabel) {
- if(newPowerLabel != powerLabel) {
- NotificationChain msgs = null;
- if(powerLabel != null)
- msgs = ((InternalEObject)powerLabel).eInverseRemove(this, UMLDIPackage.POWER_LABEL__GENERALIZATION_SET_EDGE, PowerLabel.class, msgs);
- if(newPowerLabel != null)
- msgs = ((InternalEObject)newPowerLabel).eInverseAdd(this, UMLDIPackage.POWER_LABEL__GENERALIZATION_SET_EDGE, PowerLabel.class, msgs);
- msgs = basicSetPowerLabel(newPowerLabel, msgs);
- if(msgs != null)
- msgs.dispatch();
- } else if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, UMLDIPackage.GENERALIZATION_SET_EDGE__POWER_LABEL, newPowerLabel, newPowerLabel));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public ConstraintLabel getConstraintLabel() {
- return constraintLabel;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetConstraintLabel(ConstraintLabel newConstraintLabel, NotificationChain msgs) {
- ConstraintLabel oldConstraintLabel = constraintLabel;
- constraintLabel = newConstraintLabel;
- if(eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UMLDIPackage.GENERALIZATION_SET_EDGE__CONSTRAINT_LABEL, oldConstraintLabel, newConstraintLabel);
- if(msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setConstraintLabel(ConstraintLabel newConstraintLabel) {
- if(newConstraintLabel != constraintLabel) {
- NotificationChain msgs = null;
- if(constraintLabel != null)
- msgs = ((InternalEObject)constraintLabel).eInverseRemove(this, UMLDIPackage.CONSTRAINT_LABEL__GENERALIZATION_SET_EDGE, ConstraintLabel.class, msgs);
- if(newConstraintLabel != null)
- msgs = ((InternalEObject)newConstraintLabel).eInverseAdd(this, UMLDIPackage.CONSTRAINT_LABEL__GENERALIZATION_SET_EDGE, ConstraintLabel.class, msgs);
- msgs = basicSetConstraintLabel(newConstraintLabel, msgs);
- if(msgs != null)
- msgs.dispatch();
- } else if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, UMLDIPackage.GENERALIZATION_SET_EDGE__CONSTRAINT_LABEL, newConstraintLabel, newConstraintLabel));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch(featureID) {
- case UMLDIPackage.GENERALIZATION_SET_EDGE__POWER_LABEL:
- if(powerLabel != null)
- msgs = ((InternalEObject)powerLabel).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLDIPackage.GENERALIZATION_SET_EDGE__POWER_LABEL, null, msgs);
- return basicSetPowerLabel((PowerLabel)otherEnd, msgs);
- case UMLDIPackage.GENERALIZATION_SET_EDGE__CONSTRAINT_LABEL:
- if(constraintLabel != null)
- msgs = ((InternalEObject)constraintLabel).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLDIPackage.GENERALIZATION_SET_EDGE__CONSTRAINT_LABEL, null, msgs);
- return basicSetConstraintLabel((ConstraintLabel)otherEnd, msgs);
- }
- return super.eInverseAdd(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch(featureID) {
- case UMLDIPackage.GENERALIZATION_SET_EDGE__POWER_LABEL:
- return basicSetPowerLabel(null, msgs);
- case UMLDIPackage.GENERALIZATION_SET_EDGE__CONSTRAINT_LABEL:
- return basicSetConstraintLabel(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case UMLDIPackage.GENERALIZATION_SET_EDGE__POWER_LABEL:
- return getPowerLabel();
- case UMLDIPackage.GENERALIZATION_SET_EDGE__CONSTRAINT_LABEL:
- return getConstraintLabel();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case UMLDIPackage.GENERALIZATION_SET_EDGE__POWER_LABEL:
- setPowerLabel((PowerLabel)newValue);
- return;
- case UMLDIPackage.GENERALIZATION_SET_EDGE__CONSTRAINT_LABEL:
- setConstraintLabel((ConstraintLabel)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case UMLDIPackage.GENERALIZATION_SET_EDGE__POWER_LABEL:
- setPowerLabel((PowerLabel)null);
- return;
- case UMLDIPackage.GENERALIZATION_SET_EDGE__CONSTRAINT_LABEL:
- setConstraintLabel((ConstraintLabel)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case UMLDIPackage.GENERALIZATION_SET_EDGE__OWNED_UML_DIAGRAM_ELEMENT:
- return isSetOwnedUmlDiagramElement();
- case UMLDIPackage.GENERALIZATION_SET_EDGE__POWER_LABEL:
- return powerLabel != null;
- case UMLDIPackage.GENERALIZATION_SET_EDGE__CONSTRAINT_LABEL:
- return constraintLabel != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean isSetOwnedUmlDiagramElement() {
- return super.isSetOwnedUmlDiagramElement() || eIsSet(UMLDIPackage.GENERALIZATION_SET_EDGE__POWER_LABEL) || eIsSet(UMLDIPackage.GENERALIZATION_SET_EDGE__CONSTRAINT_LABEL);
- }
-} //GeneralizationSetEdgeImpl

Back to the top