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/ReceptionCompartmentImpl.java')
-rw-r--r--extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/ReceptionCompartmentImpl.java99
1 files changed, 57 insertions, 42 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/ReceptionCompartmentImpl.java b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/ReceptionCompartmentImpl.java
index a7e61a28ced..dec44e2e606 100644
--- a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/ReceptionCompartmentImpl.java
+++ b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/ReceptionCompartmentImpl.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.ReceptionCompartmentImpl#getOwningUmlDiagramElement <em>Owning Uml Diagram Element</em>}</li>
- * <li>{@link org.eclipse.papyrus.umldi.impl.ReceptionCompartmentImpl#getClassifierWithReceptionShape <em>Classifier With Reception Shape</em>}</li>
+ * <li>{@link org.eclipse.papyrus.umldi.impl.ReceptionCompartmentImpl#getOwningUmlDiagramElement <em>Owning Uml Diagram Element</em>}</li>
+ * <li>{@link org.eclipse.papyrus.umldi.impl.ReceptionCompartmentImpl#getClassifierWithReceptionShape <em>Classifier With Reception Shape</em>}</li>
* </ul>
*
* @generated
*/
public class ReceptionCompartmentImpl extends ListCompartmentImpl implements ReceptionCompartment {
+
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ReceptionCompartmentImpl() {
@@ -53,6 +55,7 @@ public class ReceptionCompartmentImpl extends ListCompartmentImpl implements Rec
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -63,6 +66,7 @@ public class ReceptionCompartmentImpl extends ListCompartmentImpl implements Rec
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -74,12 +78,13 @@ public class ReceptionCompartmentImpl extends ListCompartmentImpl implements Rec
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public UmlDiagramElement basicGetOwningUmlDiagramElement() {
- ClassifierWithReceptionsShape classifierWithReceptionShape = getClassifierWithReceptionShape();
- if (classifierWithReceptionShape != null) {
+ ClassifierWithReceptionsShape classifierWithReceptionShape = getClassifierWithReceptionShape();
+ if(classifierWithReceptionShape != null) {
return classifierWithReceptionShape;
}
return super.basicGetOwningUmlDiagramElement();
@@ -88,16 +93,19 @@ public class ReceptionCompartmentImpl extends ListCompartmentImpl implements Rec
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ClassifierWithReceptionsShape getClassifierWithReceptionShape() {
- if (eContainerFeatureID() != UMLDIPackage.RECEPTION_COMPARTMENT__CLASSIFIER_WITH_RECEPTION_SHAPE) return null;
+ if(eContainerFeatureID() != UMLDIPackage.RECEPTION_COMPARTMENT__CLASSIFIER_WITH_RECEPTION_SHAPE)
+ return null;
return (ClassifierWithReceptionsShape)eInternalContainer();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public NotificationChain basicSetClassifierWithReceptionShape(ClassifierWithReceptionsShape newClassifierWithReceptionShape, NotificationChain msgs) {
@@ -108,36 +116,38 @@ public class ReceptionCompartmentImpl extends ListCompartmentImpl implements Rec
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setClassifierWithReceptionShape(ClassifierWithReceptionsShape newClassifierWithReceptionShape) {
- if (newClassifierWithReceptionShape != eInternalContainer() || (eContainerFeatureID() != UMLDIPackage.RECEPTION_COMPARTMENT__CLASSIFIER_WITH_RECEPTION_SHAPE && newClassifierWithReceptionShape != null)) {
- if (EcoreUtil.isAncestor(this, newClassifierWithReceptionShape))
+ if(newClassifierWithReceptionShape != eInternalContainer() || (eContainerFeatureID() != UMLDIPackage.RECEPTION_COMPARTMENT__CLASSIFIER_WITH_RECEPTION_SHAPE && newClassifierWithReceptionShape != null)) {
+ if(EcoreUtil.isAncestor(this, newClassifierWithReceptionShape))
throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
NotificationChain msgs = null;
- if (eInternalContainer() != null)
+ if(eInternalContainer() != null)
msgs = eBasicRemoveFromContainer(msgs);
- if (newClassifierWithReceptionShape != null)
+ if(newClassifierWithReceptionShape != null)
msgs = ((InternalEObject)newClassifierWithReceptionShape).eInverseAdd(this, UMLDIPackage.CLASSIFIER_WITH_RECEPTIONS_SHAPE__RECEPTION_COMPARTMENT, ClassifierWithReceptionsShape.class, msgs);
msgs = basicSetClassifierWithReceptionShape(newClassifierWithReceptionShape, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
+ if(msgs != null)
+ msgs.dispatch();
+ } else if(eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, UMLDIPackage.RECEPTION_COMPARTMENT__CLASSIFIER_WITH_RECEPTION_SHAPE, newClassifierWithReceptionShape, newClassifierWithReceptionShape));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case UMLDIPackage.RECEPTION_COMPARTMENT__CLASSIFIER_WITH_RECEPTION_SHAPE:
- if (eInternalContainer() != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return basicSetClassifierWithReceptionShape((ClassifierWithReceptionsShape)otherEnd, msgs);
+ switch(featureID) {
+ case UMLDIPackage.RECEPTION_COMPARTMENT__CLASSIFIER_WITH_RECEPTION_SHAPE:
+ if(eInternalContainer() != null)
+ msgs = eBasicRemoveFromContainer(msgs);
+ return basicSetClassifierWithReceptionShape((ClassifierWithReceptionsShape)otherEnd, msgs);
}
return super.eInverseAdd(otherEnd, featureID, msgs);
}
@@ -145,13 +155,14 @@ public class ReceptionCompartmentImpl extends ListCompartmentImpl implements Rec
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case UMLDIPackage.RECEPTION_COMPARTMENT__CLASSIFIER_WITH_RECEPTION_SHAPE:
- return basicSetClassifierWithReceptionShape(null, msgs);
+ switch(featureID) {
+ case UMLDIPackage.RECEPTION_COMPARTMENT__CLASSIFIER_WITH_RECEPTION_SHAPE:
+ return basicSetClassifierWithReceptionShape(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -159,13 +170,14 @@ public class ReceptionCompartmentImpl extends ListCompartmentImpl implements Rec
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
- switch (eContainerFeatureID()) {
- case UMLDIPackage.RECEPTION_COMPARTMENT__CLASSIFIER_WITH_RECEPTION_SHAPE:
- return eInternalContainer().eInverseRemove(this, UMLDIPackage.CLASSIFIER_WITH_RECEPTIONS_SHAPE__RECEPTION_COMPARTMENT, ClassifierWithReceptionsShape.class, msgs);
+ switch(eContainerFeatureID()) {
+ case UMLDIPackage.RECEPTION_COMPARTMENT__CLASSIFIER_WITH_RECEPTION_SHAPE:
+ return eInternalContainer().eInverseRemove(this, UMLDIPackage.CLASSIFIER_WITH_RECEPTIONS_SHAPE__RECEPTION_COMPARTMENT, ClassifierWithReceptionsShape.class, msgs);
}
return super.eBasicRemoveFromContainerFeature(msgs);
}
@@ -173,13 +185,14 @@ public class ReceptionCompartmentImpl extends ListCompartmentImpl implements Rec
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case UMLDIPackage.RECEPTION_COMPARTMENT__CLASSIFIER_WITH_RECEPTION_SHAPE:
- return getClassifierWithReceptionShape();
+ switch(featureID) {
+ case UMLDIPackage.RECEPTION_COMPARTMENT__CLASSIFIER_WITH_RECEPTION_SHAPE:
+ return getClassifierWithReceptionShape();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -187,14 +200,15 @@ public class ReceptionCompartmentImpl extends ListCompartmentImpl implements Rec
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case UMLDIPackage.RECEPTION_COMPARTMENT__CLASSIFIER_WITH_RECEPTION_SHAPE:
- setClassifierWithReceptionShape((ClassifierWithReceptionsShape)newValue);
- return;
+ switch(featureID) {
+ case UMLDIPackage.RECEPTION_COMPARTMENT__CLASSIFIER_WITH_RECEPTION_SHAPE:
+ setClassifierWithReceptionShape((ClassifierWithReceptionsShape)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -202,14 +216,15 @@ public class ReceptionCompartmentImpl extends ListCompartmentImpl implements Rec
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
- switch (featureID) {
- case UMLDIPackage.RECEPTION_COMPARTMENT__CLASSIFIER_WITH_RECEPTION_SHAPE:
- setClassifierWithReceptionShape((ClassifierWithReceptionsShape)null);
- return;
+ switch(featureID) {
+ case UMLDIPackage.RECEPTION_COMPARTMENT__CLASSIFIER_WITH_RECEPTION_SHAPE:
+ setClassifierWithReceptionShape((ClassifierWithReceptionsShape)null);
+ return;
}
super.eUnset(featureID);
}
@@ -217,15 +232,16 @@ public class ReceptionCompartmentImpl extends ListCompartmentImpl implements Rec
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch (featureID) {
- case UMLDIPackage.RECEPTION_COMPARTMENT__OWNING_UML_DIAGRAM_ELEMENT:
- return isSetOwningUmlDiagramElement();
- case UMLDIPackage.RECEPTION_COMPARTMENT__CLASSIFIER_WITH_RECEPTION_SHAPE:
- return getClassifierWithReceptionShape() != null;
+ switch(featureID) {
+ case UMLDIPackage.RECEPTION_COMPARTMENT__OWNING_UML_DIAGRAM_ELEMENT:
+ return isSetOwningUmlDiagramElement();
+ case UMLDIPackage.RECEPTION_COMPARTMENT__CLASSIFIER_WITH_RECEPTION_SHAPE:
+ return getClassifierWithReceptionShape() != null;
}
return super.eIsSet(featureID);
}
@@ -233,12 +249,11 @@ public class ReceptionCompartmentImpl extends ListCompartmentImpl implements Rec
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean isSetOwningUmlDiagramElement() {
- return super.isSetOwningUmlDiagramElement()
- || eIsSet(UMLDIPackage.RECEPTION_COMPARTMENT__CLASSIFIER_WITH_RECEPTION_SHAPE);
+ return super.isSetOwningUmlDiagramElement() || eIsSet(UMLDIPackage.RECEPTION_COMPARTMENT__CLASSIFIER_WITH_RECEPTION_SHAPE);
}
-
} //ReceptionCompartmentImpl

Back to the top