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/InstanceSpecificationShapeImpl.java')
-rw-r--r--extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/InstanceSpecificationShapeImpl.java93
1 files changed, 55 insertions, 38 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/InstanceSpecificationShapeImpl.java b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/InstanceSpecificationShapeImpl.java
index 7b3f9bb712b..f5b378a0041 100644
--- a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/InstanceSpecificationShapeImpl.java
+++ b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/InstanceSpecificationShapeImpl.java
@@ -36,17 +36,19 @@ import org.eclipse.uml2.common.util.DerivedUnionEObjectEList;
* The following features are implemented:
* </p>
* <ul>
- * <li>{@link org.eclipse.papyrus.umldi.impl.InstanceSpecificationShapeImpl#getOwnedUmlDiagramElement <em>Owned Uml Diagram Element</em>}</li>
- * <li>{@link org.eclipse.papyrus.umldi.impl.InstanceSpecificationShapeImpl#getSlotCompartment <em>Slot Compartment</em>}</li>
+ * <li>{@link org.eclipse.papyrus.umldi.impl.InstanceSpecificationShapeImpl#getOwnedUmlDiagramElement <em>Owned Uml Diagram Element</em>}</li>
+ * <li>{@link org.eclipse.papyrus.umldi.impl.InstanceSpecificationShapeImpl#getSlotCompartment <em>Slot Compartment</em>}</li>
* </ul>
*
* @generated
*/
public class InstanceSpecificationShapeImpl extends DeploymentTargetShapeImpl implements InstanceSpecificationShape {
+
/**
* The cached value of the '{@link #getSlotCompartment() <em>Slot Compartment</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getSlotCompartment()
* @generated
* @ordered
@@ -56,6 +58,7 @@ public class InstanceSpecificationShapeImpl extends DeploymentTargetShapeImpl im
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected InstanceSpecificationShapeImpl() {
@@ -65,6 +68,7 @@ public class InstanceSpecificationShapeImpl extends DeploymentTargetShapeImpl im
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -75,6 +79,7 @@ public class InstanceSpecificationShapeImpl extends DeploymentTargetShapeImpl im
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -86,15 +91,17 @@ public class InstanceSpecificationShapeImpl extends DeploymentTargetShapeImpl im
* 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.INSTANCE_SPECIFICATION_SHAPE__MAIN_LABEL, UMLDIPackage.INSTANCE_SPECIFICATION_SHAPE__DEPLOYED_ARTIFACT_COMPARTMENT, UMLDIPackage.INSTANCE_SPECIFICATION_SHAPE__SLOT_COMPARTMENT};
+ protected static final int[] OWNED_UML_DIAGRAM_ELEMENT_ESUBSETS = new int[]{ UMLDIPackage.INSTANCE_SPECIFICATION_SHAPE__STEREOTYPE_LABEL, UMLDIPackage.INSTANCE_SPECIFICATION_SHAPE__MAIN_LABEL, UMLDIPackage.INSTANCE_SPECIFICATION_SHAPE__STEREOTYPE_COMPARTMENT, UMLDIPackage.INSTANCE_SPECIFICATION_SHAPE__DEPLOYED_ARTIFACT_COMPARTMENT, UMLDIPackage.INSTANCE_SPECIFICATION_SHAPE__SLOT_COMPARTMENT };
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public SlotCompartment getSlotCompartment() {
@@ -104,14 +111,18 @@ public class InstanceSpecificationShapeImpl extends DeploymentTargetShapeImpl im
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public NotificationChain basicSetSlotCompartment(SlotCompartment newSlotCompartment, NotificationChain msgs) {
SlotCompartment oldSlotCompartment = slotCompartment;
slotCompartment = newSlotCompartment;
- if (eNotificationRequired()) {
+ if(eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UMLDIPackage.INSTANCE_SPECIFICATION_SHAPE__SLOT_COMPARTMENT, oldSlotCompartment, newSlotCompartment);
- if (msgs == null) msgs = notification; else msgs.add(notification);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
}
return msgs;
}
@@ -119,34 +130,36 @@ public class InstanceSpecificationShapeImpl extends DeploymentTargetShapeImpl im
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setSlotCompartment(SlotCompartment newSlotCompartment) {
- if (newSlotCompartment != slotCompartment) {
+ if(newSlotCompartment != slotCompartment) {
NotificationChain msgs = null;
- if (slotCompartment != null)
+ if(slotCompartment != null)
msgs = ((InternalEObject)slotCompartment).eInverseRemove(this, UMLDIPackage.SLOT_COMPARTMENT__INSTANCE_SPECIFICATION_SHAPE, SlotCompartment.class, msgs);
- if (newSlotCompartment != null)
+ if(newSlotCompartment != null)
msgs = ((InternalEObject)newSlotCompartment).eInverseAdd(this, UMLDIPackage.SLOT_COMPARTMENT__INSTANCE_SPECIFICATION_SHAPE, SlotCompartment.class, msgs);
msgs = basicSetSlotCompartment(newSlotCompartment, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
+ if(msgs != null)
+ msgs.dispatch();
+ } else if(eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, UMLDIPackage.INSTANCE_SPECIFICATION_SHAPE__SLOT_COMPARTMENT, newSlotCompartment, newSlotCompartment));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case UMLDIPackage.INSTANCE_SPECIFICATION_SHAPE__SLOT_COMPARTMENT:
- if (slotCompartment != null)
- msgs = ((InternalEObject)slotCompartment).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLDIPackage.INSTANCE_SPECIFICATION_SHAPE__SLOT_COMPARTMENT, null, msgs);
- return basicSetSlotCompartment((SlotCompartment)otherEnd, msgs);
+ switch(featureID) {
+ case UMLDIPackage.INSTANCE_SPECIFICATION_SHAPE__SLOT_COMPARTMENT:
+ if(slotCompartment != null)
+ msgs = ((InternalEObject)slotCompartment).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLDIPackage.INSTANCE_SPECIFICATION_SHAPE__SLOT_COMPARTMENT, null, msgs);
+ return basicSetSlotCompartment((SlotCompartment)otherEnd, msgs);
}
return super.eInverseAdd(otherEnd, featureID, msgs);
}
@@ -154,13 +167,14 @@ public class InstanceSpecificationShapeImpl extends DeploymentTargetShapeImpl im
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case UMLDIPackage.INSTANCE_SPECIFICATION_SHAPE__SLOT_COMPARTMENT:
- return basicSetSlotCompartment(null, msgs);
+ switch(featureID) {
+ case UMLDIPackage.INSTANCE_SPECIFICATION_SHAPE__SLOT_COMPARTMENT:
+ return basicSetSlotCompartment(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -168,13 +182,14 @@ public class InstanceSpecificationShapeImpl extends DeploymentTargetShapeImpl im
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case UMLDIPackage.INSTANCE_SPECIFICATION_SHAPE__SLOT_COMPARTMENT:
- return getSlotCompartment();
+ switch(featureID) {
+ case UMLDIPackage.INSTANCE_SPECIFICATION_SHAPE__SLOT_COMPARTMENT:
+ return getSlotCompartment();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -182,14 +197,15 @@ public class InstanceSpecificationShapeImpl extends DeploymentTargetShapeImpl im
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case UMLDIPackage.INSTANCE_SPECIFICATION_SHAPE__SLOT_COMPARTMENT:
- setSlotCompartment((SlotCompartment)newValue);
- return;
+ switch(featureID) {
+ case UMLDIPackage.INSTANCE_SPECIFICATION_SHAPE__SLOT_COMPARTMENT:
+ setSlotCompartment((SlotCompartment)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -197,14 +213,15 @@ public class InstanceSpecificationShapeImpl extends DeploymentTargetShapeImpl im
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
- switch (featureID) {
- case UMLDIPackage.INSTANCE_SPECIFICATION_SHAPE__SLOT_COMPARTMENT:
- setSlotCompartment((SlotCompartment)null);
- return;
+ switch(featureID) {
+ case UMLDIPackage.INSTANCE_SPECIFICATION_SHAPE__SLOT_COMPARTMENT:
+ setSlotCompartment((SlotCompartment)null);
+ return;
}
super.eUnset(featureID);
}
@@ -212,15 +229,16 @@ public class InstanceSpecificationShapeImpl extends DeploymentTargetShapeImpl im
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch (featureID) {
- case UMLDIPackage.INSTANCE_SPECIFICATION_SHAPE__OWNED_UML_DIAGRAM_ELEMENT:
- return isSetOwnedUmlDiagramElement();
- case UMLDIPackage.INSTANCE_SPECIFICATION_SHAPE__SLOT_COMPARTMENT:
- return slotCompartment != null;
+ switch(featureID) {
+ case UMLDIPackage.INSTANCE_SPECIFICATION_SHAPE__OWNED_UML_DIAGRAM_ELEMENT:
+ return isSetOwnedUmlDiagramElement();
+ case UMLDIPackage.INSTANCE_SPECIFICATION_SHAPE__SLOT_COMPARTMENT:
+ return slotCompartment != null;
}
return super.eIsSet(featureID);
}
@@ -228,12 +246,11 @@ public class InstanceSpecificationShapeImpl extends DeploymentTargetShapeImpl im
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean isSetOwnedUmlDiagramElement() {
- return super.isSetOwnedUmlDiagramElement()
- || eIsSet(UMLDIPackage.INSTANCE_SPECIFICATION_SHAPE__SLOT_COMPARTMENT);
+ return super.isSetOwnedUmlDiagramElement() || eIsSet(UMLDIPackage.INSTANCE_SPECIFICATION_SHAPE__SLOT_COMPARTMENT);
}
-
} //InstanceSpecificationShapeImpl

Back to the top