diff options
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.java | 151 |
1 files changed, 87 insertions, 64 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 index 527aa79df16..63d18fb9de7 100644 --- 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 @@ -37,18 +37,20 @@ import org.eclipse.uml2.common.util.DerivedUnionEObjectEList; * 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> + * <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 @@ -59,6 +61,7 @@ public class GeneralizationSetEdgeImpl extends ElementEdgeImpl implements Genera * The cached value of the '{@link #getConstraintLabel() <em>Constraint Label</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @see #getConstraintLabel() * @generated * @ordered @@ -68,6 +71,7 @@ public class GeneralizationSetEdgeImpl extends ElementEdgeImpl implements Genera /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ protected GeneralizationSetEdgeImpl() { @@ -77,6 +81,7 @@ public class GeneralizationSetEdgeImpl extends ElementEdgeImpl implements Genera /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override @@ -87,6 +92,7 @@ public class GeneralizationSetEdgeImpl extends ElementEdgeImpl implements Genera /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override @@ -98,15 +104,17 @@ public class GeneralizationSetEdgeImpl extends ElementEdgeImpl implements Genera * 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__MAIN_LABEL, UMLDIPackage.GENERALIZATION_SET_EDGE__POWER_LABEL, UMLDIPackage.GENERALIZATION_SET_EDGE__CONSTRAINT_LABEL}; + 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() { @@ -116,14 +124,18 @@ public class GeneralizationSetEdgeImpl extends ElementEdgeImpl implements Genera /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public NotificationChain basicSetPowerLabel(PowerLabel newPowerLabel, NotificationChain msgs) { PowerLabel oldPowerLabel = powerLabel; powerLabel = newPowerLabel; - if (eNotificationRequired()) { + 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); + if(msgs == null) + msgs = notification; + else + msgs.add(notification); } return msgs; } @@ -131,25 +143,27 @@ public class GeneralizationSetEdgeImpl extends ElementEdgeImpl implements Genera /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public void setPowerLabel(PowerLabel newPowerLabel) { - if (newPowerLabel != powerLabel) { + if(newPowerLabel != powerLabel) { NotificationChain msgs = null; - if (powerLabel != null) + if(powerLabel != null) msgs = ((InternalEObject)powerLabel).eInverseRemove(this, UMLDIPackage.POWER_LABEL__GENERALIZATION_SET_EDGE, PowerLabel.class, msgs); - if (newPowerLabel != null) + 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()) + 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() { @@ -159,14 +173,18 @@ public class GeneralizationSetEdgeImpl extends ElementEdgeImpl implements Genera /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public NotificationChain basicSetConstraintLabel(ConstraintLabel newConstraintLabel, NotificationChain msgs) { ConstraintLabel oldConstraintLabel = constraintLabel; constraintLabel = newConstraintLabel; - if (eNotificationRequired()) { + 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); + if(msgs == null) + msgs = notification; + else + msgs.add(notification); } return msgs; } @@ -174,38 +192,40 @@ public class GeneralizationSetEdgeImpl extends ElementEdgeImpl implements Genera /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public void setConstraintLabel(ConstraintLabel newConstraintLabel) { - if (newConstraintLabel != constraintLabel) { + if(newConstraintLabel != constraintLabel) { NotificationChain msgs = null; - if (constraintLabel != null) + if(constraintLabel != null) msgs = ((InternalEObject)constraintLabel).eInverseRemove(this, UMLDIPackage.CONSTRAINT_LABEL__GENERALIZATION_SET_EDGE, ConstraintLabel.class, msgs); - if (newConstraintLabel != null) + 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()) + 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); + 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); } @@ -213,15 +233,16 @@ public class GeneralizationSetEdgeImpl extends ElementEdgeImpl implements Genera /** * <!-- 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); + 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); } @@ -229,15 +250,16 @@ public class GeneralizationSetEdgeImpl extends ElementEdgeImpl implements Genera /** * <!-- 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(); + 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); } @@ -245,17 +267,18 @@ public class GeneralizationSetEdgeImpl extends ElementEdgeImpl implements Genera /** * <!-- 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; + 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); } @@ -263,17 +286,18 @@ public class GeneralizationSetEdgeImpl extends ElementEdgeImpl implements Genera /** * <!-- 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; + 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); } @@ -281,17 +305,18 @@ public class GeneralizationSetEdgeImpl extends ElementEdgeImpl implements Genera /** * <!-- 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; + 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); } @@ -299,13 +324,11 @@ public class GeneralizationSetEdgeImpl extends ElementEdgeImpl implements Genera /** * <!-- 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); + return super.isSetOwnedUmlDiagramElement() || eIsSet(UMLDIPackage.GENERALIZATION_SET_EDGE__POWER_LABEL) || eIsSet(UMLDIPackage.GENERALIZATION_SET_EDGE__CONSTRAINT_LABEL); } - } //GeneralizationSetEdgeImpl |