diff options
Diffstat (limited to 'extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/PowerLabelImpl.java')
-rw-r--r-- | extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/PowerLabelImpl.java | 99 |
1 files changed, 57 insertions, 42 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/PowerLabelImpl.java b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/PowerLabelImpl.java index fd6036e2908..6537ab584dd 100644 --- a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/PowerLabelImpl.java +++ b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/PowerLabelImpl.java @@ -34,16 +34,18 @@ import org.eclipse.papyrus.umldi.UmlDiagramElement; * The following features are implemented: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.umldi.impl.PowerLabelImpl#getOwningUmlDiagramElement <em>Owning Uml Diagram Element</em>}</li> - * <li>{@link org.eclipse.papyrus.umldi.impl.PowerLabelImpl#getGeneralizationSetEdge <em>Generalization Set Edge</em>}</li> + * <li>{@link org.eclipse.papyrus.umldi.impl.PowerLabelImpl#getOwningUmlDiagramElement <em>Owning Uml Diagram Element</em>}</li> + * <li>{@link org.eclipse.papyrus.umldi.impl.PowerLabelImpl#getGeneralizationSetEdge <em>Generalization Set Edge</em>}</li> * </ul> * * @generated */ public class PowerLabelImpl extends UmlLabelImpl implements PowerLabel { + /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ protected PowerLabelImpl() { @@ -53,6 +55,7 @@ public class PowerLabelImpl extends UmlLabelImpl implements PowerLabel { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override @@ -63,6 +66,7 @@ public class PowerLabelImpl extends UmlLabelImpl implements PowerLabel { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override @@ -74,12 +78,13 @@ public class PowerLabelImpl extends UmlLabelImpl implements PowerLabel { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public UmlDiagramElement basicGetOwningUmlDiagramElement() { - GeneralizationSetEdge generalizationSetEdge = getGeneralizationSetEdge(); - if (generalizationSetEdge != null) { + GeneralizationSetEdge generalizationSetEdge = getGeneralizationSetEdge(); + if(generalizationSetEdge != null) { return generalizationSetEdge; } return super.basicGetOwningUmlDiagramElement(); @@ -88,16 +93,19 @@ public class PowerLabelImpl extends UmlLabelImpl implements PowerLabel { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public GeneralizationSetEdge getGeneralizationSetEdge() { - if (eContainerFeatureID() != UMLDIPackage.POWER_LABEL__GENERALIZATION_SET_EDGE) return null; + if(eContainerFeatureID() != UMLDIPackage.POWER_LABEL__GENERALIZATION_SET_EDGE) + return null; return (GeneralizationSetEdge)eInternalContainer(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public NotificationChain basicSetGeneralizationSetEdge(GeneralizationSetEdge newGeneralizationSetEdge, NotificationChain msgs) { @@ -108,36 +116,38 @@ public class PowerLabelImpl extends UmlLabelImpl implements PowerLabel { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public void setGeneralizationSetEdge(GeneralizationSetEdge newGeneralizationSetEdge) { - if (newGeneralizationSetEdge != eInternalContainer() || (eContainerFeatureID() != UMLDIPackage.POWER_LABEL__GENERALIZATION_SET_EDGE && newGeneralizationSetEdge != null)) { - if (EcoreUtil.isAncestor(this, newGeneralizationSetEdge)) + if(newGeneralizationSetEdge != eInternalContainer() || (eContainerFeatureID() != UMLDIPackage.POWER_LABEL__GENERALIZATION_SET_EDGE && newGeneralizationSetEdge != null)) { + if(EcoreUtil.isAncestor(this, newGeneralizationSetEdge)) throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); NotificationChain msgs = null; - if (eInternalContainer() != null) + if(eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); - if (newGeneralizationSetEdge != null) + if(newGeneralizationSetEdge != null) msgs = ((InternalEObject)newGeneralizationSetEdge).eInverseAdd(this, UMLDIPackage.GENERALIZATION_SET_EDGE__POWER_LABEL, GeneralizationSetEdge.class, msgs); msgs = basicSetGeneralizationSetEdge(newGeneralizationSetEdge, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) + if(msgs != null) + msgs.dispatch(); + } else if(eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, UMLDIPackage.POWER_LABEL__GENERALIZATION_SET_EDGE, newGeneralizationSetEdge, newGeneralizationSetEdge)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case UMLDIPackage.POWER_LABEL__GENERALIZATION_SET_EDGE: - if (eInternalContainer() != null) - msgs = eBasicRemoveFromContainer(msgs); - return basicSetGeneralizationSetEdge((GeneralizationSetEdge)otherEnd, msgs); + switch(featureID) { + case UMLDIPackage.POWER_LABEL__GENERALIZATION_SET_EDGE: + if(eInternalContainer() != null) + msgs = eBasicRemoveFromContainer(msgs); + return basicSetGeneralizationSetEdge((GeneralizationSetEdge)otherEnd, msgs); } return super.eInverseAdd(otherEnd, featureID, msgs); } @@ -145,13 +155,14 @@ public class PowerLabelImpl extends UmlLabelImpl implements PowerLabel { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case UMLDIPackage.POWER_LABEL__GENERALIZATION_SET_EDGE: - return basicSetGeneralizationSetEdge(null, msgs); + switch(featureID) { + case UMLDIPackage.POWER_LABEL__GENERALIZATION_SET_EDGE: + return basicSetGeneralizationSetEdge(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } @@ -159,13 +170,14 @@ public class PowerLabelImpl extends UmlLabelImpl implements PowerLabel { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { - switch (eContainerFeatureID()) { - case UMLDIPackage.POWER_LABEL__GENERALIZATION_SET_EDGE: - return eInternalContainer().eInverseRemove(this, UMLDIPackage.GENERALIZATION_SET_EDGE__POWER_LABEL, GeneralizationSetEdge.class, msgs); + switch(eContainerFeatureID()) { + case UMLDIPackage.POWER_LABEL__GENERALIZATION_SET_EDGE: + return eInternalContainer().eInverseRemove(this, UMLDIPackage.GENERALIZATION_SET_EDGE__POWER_LABEL, GeneralizationSetEdge.class, msgs); } return super.eBasicRemoveFromContainerFeature(msgs); } @@ -173,13 +185,14 @@ public class PowerLabelImpl extends UmlLabelImpl implements PowerLabel { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case UMLDIPackage.POWER_LABEL__GENERALIZATION_SET_EDGE: - return getGeneralizationSetEdge(); + switch(featureID) { + case UMLDIPackage.POWER_LABEL__GENERALIZATION_SET_EDGE: + return getGeneralizationSetEdge(); } return super.eGet(featureID, resolve, coreType); } @@ -187,14 +200,15 @@ public class PowerLabelImpl extends UmlLabelImpl implements PowerLabel { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public void eSet(int featureID, Object newValue) { - switch (featureID) { - case UMLDIPackage.POWER_LABEL__GENERALIZATION_SET_EDGE: - setGeneralizationSetEdge((GeneralizationSetEdge)newValue); - return; + switch(featureID) { + case UMLDIPackage.POWER_LABEL__GENERALIZATION_SET_EDGE: + setGeneralizationSetEdge((GeneralizationSetEdge)newValue); + return; } super.eSet(featureID, newValue); } @@ -202,14 +216,15 @@ public class PowerLabelImpl extends UmlLabelImpl implements PowerLabel { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public void eUnset(int featureID) { - switch (featureID) { - case UMLDIPackage.POWER_LABEL__GENERALIZATION_SET_EDGE: - setGeneralizationSetEdge((GeneralizationSetEdge)null); - return; + switch(featureID) { + case UMLDIPackage.POWER_LABEL__GENERALIZATION_SET_EDGE: + setGeneralizationSetEdge((GeneralizationSetEdge)null); + return; } super.eUnset(featureID); } @@ -217,15 +232,16 @@ public class PowerLabelImpl extends UmlLabelImpl implements PowerLabel { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public boolean eIsSet(int featureID) { - switch (featureID) { - case UMLDIPackage.POWER_LABEL__OWNING_UML_DIAGRAM_ELEMENT: - return isSetOwningUmlDiagramElement(); - case UMLDIPackage.POWER_LABEL__GENERALIZATION_SET_EDGE: - return getGeneralizationSetEdge() != null; + switch(featureID) { + case UMLDIPackage.POWER_LABEL__OWNING_UML_DIAGRAM_ELEMENT: + return isSetOwningUmlDiagramElement(); + case UMLDIPackage.POWER_LABEL__GENERALIZATION_SET_EDGE: + return getGeneralizationSetEdge() != null; } return super.eIsSet(featureID); } @@ -233,12 +249,11 @@ public class PowerLabelImpl extends UmlLabelImpl implements PowerLabel { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public boolean isSetOwningUmlDiagramElement() { - return super.isSetOwningUmlDiagramElement() - || eIsSet(UMLDIPackage.POWER_LABEL__GENERALIZATION_SET_EDGE); + return super.isSetOwningUmlDiagramElement() || eIsSet(UMLDIPackage.POWER_LABEL__GENERALIZATION_SET_EDGE); } - } //PowerLabelImpl |