diff options
Diffstat (limited to 'extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/DeployedArtifactCompartmentImpl.java')
-rw-r--r-- | extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/DeployedArtifactCompartmentImpl.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/DeployedArtifactCompartmentImpl.java b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/DeployedArtifactCompartmentImpl.java index 5ce40b813c1..248d3ce6b9e 100644 --- a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/DeployedArtifactCompartmentImpl.java +++ b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/DeployedArtifactCompartmentImpl.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.DeployedArtifactCompartmentImpl#getOwningUmlDiagramElement <em>Owning Uml Diagram Element</em>}</li> - * <li>{@link org.eclipse.papyrus.umldi.impl.DeployedArtifactCompartmentImpl#getDeploymentTargetShape <em>Deployment Target Shape</em>}</li> + * <li>{@link org.eclipse.papyrus.umldi.impl.DeployedArtifactCompartmentImpl#getOwningUmlDiagramElement <em>Owning Uml Diagram Element</em>}</li> + * <li>{@link org.eclipse.papyrus.umldi.impl.DeployedArtifactCompartmentImpl#getDeploymentTargetShape <em>Deployment Target Shape</em>}</li> * </ul> * * @generated */ public class DeployedArtifactCompartmentImpl extends ClassifierCompartmentImpl implements DeployedArtifactCompartment { + /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ protected DeployedArtifactCompartmentImpl() { @@ -53,6 +55,7 @@ public class DeployedArtifactCompartmentImpl extends ClassifierCompartmentImpl i /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override @@ -63,6 +66,7 @@ public class DeployedArtifactCompartmentImpl extends ClassifierCompartmentImpl i /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override @@ -74,12 +78,13 @@ public class DeployedArtifactCompartmentImpl extends ClassifierCompartmentImpl i /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public UmlDiagramElement basicGetOwningUmlDiagramElement() { - DeploymentTargetShape deploymentTargetShape = getDeploymentTargetShape(); - if (deploymentTargetShape != null) { + DeploymentTargetShape deploymentTargetShape = getDeploymentTargetShape(); + if(deploymentTargetShape != null) { return deploymentTargetShape; } return super.basicGetOwningUmlDiagramElement(); @@ -88,16 +93,19 @@ public class DeployedArtifactCompartmentImpl extends ClassifierCompartmentImpl i /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public DeploymentTargetShape getDeploymentTargetShape() { - if (eContainerFeatureID() != UMLDIPackage.DEPLOYED_ARTIFACT_COMPARTMENT__DEPLOYMENT_TARGET_SHAPE) return null; + if(eContainerFeatureID() != UMLDIPackage.DEPLOYED_ARTIFACT_COMPARTMENT__DEPLOYMENT_TARGET_SHAPE) + return null; return (DeploymentTargetShape)eInternalContainer(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public NotificationChain basicSetDeploymentTargetShape(DeploymentTargetShape newDeploymentTargetShape, NotificationChain msgs) { @@ -108,36 +116,38 @@ public class DeployedArtifactCompartmentImpl extends ClassifierCompartmentImpl i /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public void setDeploymentTargetShape(DeploymentTargetShape newDeploymentTargetShape) { - if (newDeploymentTargetShape != eInternalContainer() || (eContainerFeatureID() != UMLDIPackage.DEPLOYED_ARTIFACT_COMPARTMENT__DEPLOYMENT_TARGET_SHAPE && newDeploymentTargetShape != null)) { - if (EcoreUtil.isAncestor(this, newDeploymentTargetShape)) + if(newDeploymentTargetShape != eInternalContainer() || (eContainerFeatureID() != UMLDIPackage.DEPLOYED_ARTIFACT_COMPARTMENT__DEPLOYMENT_TARGET_SHAPE && newDeploymentTargetShape != null)) { + if(EcoreUtil.isAncestor(this, newDeploymentTargetShape)) throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); NotificationChain msgs = null; - if (eInternalContainer() != null) + if(eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); - if (newDeploymentTargetShape != null) + if(newDeploymentTargetShape != null) msgs = ((InternalEObject)newDeploymentTargetShape).eInverseAdd(this, UMLDIPackage.DEPLOYMENT_TARGET_SHAPE__DEPLOYED_ARTIFACT_COMPARTMENT, DeploymentTargetShape.class, msgs); msgs = basicSetDeploymentTargetShape(newDeploymentTargetShape, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) + if(msgs != null) + msgs.dispatch(); + } else if(eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, UMLDIPackage.DEPLOYED_ARTIFACT_COMPARTMENT__DEPLOYMENT_TARGET_SHAPE, newDeploymentTargetShape, newDeploymentTargetShape)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case UMLDIPackage.DEPLOYED_ARTIFACT_COMPARTMENT__DEPLOYMENT_TARGET_SHAPE: - if (eInternalContainer() != null) - msgs = eBasicRemoveFromContainer(msgs); - return basicSetDeploymentTargetShape((DeploymentTargetShape)otherEnd, msgs); + switch(featureID) { + case UMLDIPackage.DEPLOYED_ARTIFACT_COMPARTMENT__DEPLOYMENT_TARGET_SHAPE: + if(eInternalContainer() != null) + msgs = eBasicRemoveFromContainer(msgs); + return basicSetDeploymentTargetShape((DeploymentTargetShape)otherEnd, msgs); } return super.eInverseAdd(otherEnd, featureID, msgs); } @@ -145,13 +155,14 @@ public class DeployedArtifactCompartmentImpl extends ClassifierCompartmentImpl i /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case UMLDIPackage.DEPLOYED_ARTIFACT_COMPARTMENT__DEPLOYMENT_TARGET_SHAPE: - return basicSetDeploymentTargetShape(null, msgs); + switch(featureID) { + case UMLDIPackage.DEPLOYED_ARTIFACT_COMPARTMENT__DEPLOYMENT_TARGET_SHAPE: + return basicSetDeploymentTargetShape(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } @@ -159,13 +170,14 @@ public class DeployedArtifactCompartmentImpl extends ClassifierCompartmentImpl i /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { - switch (eContainerFeatureID()) { - case UMLDIPackage.DEPLOYED_ARTIFACT_COMPARTMENT__DEPLOYMENT_TARGET_SHAPE: - return eInternalContainer().eInverseRemove(this, UMLDIPackage.DEPLOYMENT_TARGET_SHAPE__DEPLOYED_ARTIFACT_COMPARTMENT, DeploymentTargetShape.class, msgs); + switch(eContainerFeatureID()) { + case UMLDIPackage.DEPLOYED_ARTIFACT_COMPARTMENT__DEPLOYMENT_TARGET_SHAPE: + return eInternalContainer().eInverseRemove(this, UMLDIPackage.DEPLOYMENT_TARGET_SHAPE__DEPLOYED_ARTIFACT_COMPARTMENT, DeploymentTargetShape.class, msgs); } return super.eBasicRemoveFromContainerFeature(msgs); } @@ -173,13 +185,14 @@ public class DeployedArtifactCompartmentImpl extends ClassifierCompartmentImpl i /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case UMLDIPackage.DEPLOYED_ARTIFACT_COMPARTMENT__DEPLOYMENT_TARGET_SHAPE: - return getDeploymentTargetShape(); + switch(featureID) { + case UMLDIPackage.DEPLOYED_ARTIFACT_COMPARTMENT__DEPLOYMENT_TARGET_SHAPE: + return getDeploymentTargetShape(); } return super.eGet(featureID, resolve, coreType); } @@ -187,14 +200,15 @@ public class DeployedArtifactCompartmentImpl extends ClassifierCompartmentImpl i /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public void eSet(int featureID, Object newValue) { - switch (featureID) { - case UMLDIPackage.DEPLOYED_ARTIFACT_COMPARTMENT__DEPLOYMENT_TARGET_SHAPE: - setDeploymentTargetShape((DeploymentTargetShape)newValue); - return; + switch(featureID) { + case UMLDIPackage.DEPLOYED_ARTIFACT_COMPARTMENT__DEPLOYMENT_TARGET_SHAPE: + setDeploymentTargetShape((DeploymentTargetShape)newValue); + return; } super.eSet(featureID, newValue); } @@ -202,14 +216,15 @@ public class DeployedArtifactCompartmentImpl extends ClassifierCompartmentImpl i /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public void eUnset(int featureID) { - switch (featureID) { - case UMLDIPackage.DEPLOYED_ARTIFACT_COMPARTMENT__DEPLOYMENT_TARGET_SHAPE: - setDeploymentTargetShape((DeploymentTargetShape)null); - return; + switch(featureID) { + case UMLDIPackage.DEPLOYED_ARTIFACT_COMPARTMENT__DEPLOYMENT_TARGET_SHAPE: + setDeploymentTargetShape((DeploymentTargetShape)null); + return; } super.eUnset(featureID); } @@ -217,15 +232,16 @@ public class DeployedArtifactCompartmentImpl extends ClassifierCompartmentImpl i /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public boolean eIsSet(int featureID) { - switch (featureID) { - case UMLDIPackage.DEPLOYED_ARTIFACT_COMPARTMENT__OWNING_UML_DIAGRAM_ELEMENT: - return isSetOwningUmlDiagramElement(); - case UMLDIPackage.DEPLOYED_ARTIFACT_COMPARTMENT__DEPLOYMENT_TARGET_SHAPE: - return getDeploymentTargetShape() != null; + switch(featureID) { + case UMLDIPackage.DEPLOYED_ARTIFACT_COMPARTMENT__OWNING_UML_DIAGRAM_ELEMENT: + return isSetOwningUmlDiagramElement(); + case UMLDIPackage.DEPLOYED_ARTIFACT_COMPARTMENT__DEPLOYMENT_TARGET_SHAPE: + return getDeploymentTargetShape() != null; } return super.eIsSet(featureID); } @@ -233,12 +249,11 @@ public class DeployedArtifactCompartmentImpl extends ClassifierCompartmentImpl i /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public boolean isSetOwningUmlDiagramElement() { - return super.isSetOwningUmlDiagramElement() - || eIsSet(UMLDIPackage.DEPLOYED_ARTIFACT_COMPARTMENT__DEPLOYMENT_TARGET_SHAPE); + return super.isSetOwningUmlDiagramElement() || eIsSet(UMLDIPackage.DEPLOYED_ARTIFACT_COMPARTMENT__DEPLOYMENT_TARGET_SHAPE); } - } //DeployedArtifactCompartmentImpl |