Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/impl/AllocatedElementInstanceRefImpl.java')
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/impl/AllocatedElementInstanceRefImpl.java77
1 files changed, 48 insertions, 29 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/impl/AllocatedElementInstanceRefImpl.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/impl/AllocatedElementInstanceRefImpl.java
index 98a6fb09379..1476df975d7 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/impl/AllocatedElementInstanceRefImpl.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/impl/AllocatedElementInstanceRefImpl.java
@@ -21,8 +21,8 @@ import org.eclipse.papyrus.eastadl.structure.functionmodeling.AllocateableElemen
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.impl.AllocatedElementInstanceRefImpl#getAllocateableElement <em>Allocateable Element</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.impl.AllocatedElementInstanceRefImpl#getAllocateableElement_context <em>Allocateable Element context</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.impl.AllocatedElementInstanceRefImpl#getAllocateableElement <em>Allocateable Element</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.impl.AllocatedElementInstanceRefImpl#getAllocateableElement_context <em>Allocateable Element context</em>}</li>
* </ul>
* </p>
*
@@ -33,6 +33,7 @@ public class AllocatedElementInstanceRefImpl extends InstanceRefImpl implements
* The cached value of the '{@link #getAllocateableElement() <em>Allocateable Element</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getAllocateableElement()
* @generated
* @ordered
@@ -43,6 +44,7 @@ public class AllocatedElementInstanceRefImpl extends InstanceRefImpl implements
* The cached value of the '{@link #getAllocateableElement_context() <em>Allocateable Element context</em>}' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getAllocateableElement_context()
* @generated
* @ordered
@@ -52,6 +54,7 @@ public class AllocatedElementInstanceRefImpl extends InstanceRefImpl implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected AllocatedElementInstanceRefImpl() {
@@ -61,6 +64,7 @@ public class AllocatedElementInstanceRefImpl extends InstanceRefImpl implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -71,15 +75,18 @@ public class AllocatedElementInstanceRefImpl extends InstanceRefImpl implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public AllocateableElement getAllocateableElement() {
if (allocateableElement != null && allocateableElement.eIsProxy()) {
- InternalEObject oldAllocateableElement = (InternalEObject)allocateableElement;
- allocateableElement = (AllocateableElement)eResolveProxy(oldAllocateableElement);
+ InternalEObject oldAllocateableElement = (InternalEObject) allocateableElement;
+ allocateableElement = (AllocateableElement) eResolveProxy(oldAllocateableElement);
if (allocateableElement != oldAllocateableElement) {
- if (eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.RESOLVE, InfrastructurePackage.ALLOCATED_ELEMENT_INSTANCE_REF__ALLOCATEABLE_ELEMENT, oldAllocateableElement, allocateableElement));
+ }
}
}
return allocateableElement;
@@ -88,6 +95,7 @@ public class AllocatedElementInstanceRefImpl extends InstanceRefImpl implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public AllocateableElement basicGetAllocateableElement() {
@@ -97,20 +105,25 @@ public class AllocatedElementInstanceRefImpl extends InstanceRefImpl implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void setAllocateableElement(AllocateableElement newAllocateableElement) {
AllocateableElement oldAllocateableElement = allocateableElement;
allocateableElement = newAllocateableElement;
- if (eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, InfrastructurePackage.ALLOCATED_ELEMENT_INSTANCE_REF__ALLOCATEABLE_ELEMENT, oldAllocateableElement, allocateableElement));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public EList<AllocateableElement> getAllocateableElement_context() {
if (allocateableElement_context == null) {
allocateableElement_context = new EObjectResolvingEList<AllocateableElement>(AllocateableElement.class, this, InfrastructurePackage.ALLOCATED_ELEMENT_INSTANCE_REF__ALLOCATEABLE_ELEMENT_CONTEXT);
@@ -121,16 +134,19 @@ public class AllocatedElementInstanceRefImpl extends InstanceRefImpl implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case InfrastructurePackage.ALLOCATED_ELEMENT_INSTANCE_REF__ALLOCATEABLE_ELEMENT:
- if (resolve) return getAllocateableElement();
- return basicGetAllocateableElement();
- case InfrastructurePackage.ALLOCATED_ELEMENT_INSTANCE_REF__ALLOCATEABLE_ELEMENT_CONTEXT:
- return getAllocateableElement_context();
+ case InfrastructurePackage.ALLOCATED_ELEMENT_INSTANCE_REF__ALLOCATEABLE_ELEMENT:
+ if (resolve) {
+ return getAllocateableElement();
+ }
+ return basicGetAllocateableElement();
+ case InfrastructurePackage.ALLOCATED_ELEMENT_INSTANCE_REF__ALLOCATEABLE_ELEMENT_CONTEXT:
+ return getAllocateableElement_context();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -138,19 +154,20 @@ public class AllocatedElementInstanceRefImpl extends InstanceRefImpl implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case InfrastructurePackage.ALLOCATED_ELEMENT_INSTANCE_REF__ALLOCATEABLE_ELEMENT:
- setAllocateableElement((AllocateableElement)newValue);
- return;
- case InfrastructurePackage.ALLOCATED_ELEMENT_INSTANCE_REF__ALLOCATEABLE_ELEMENT_CONTEXT:
- getAllocateableElement_context().clear();
- getAllocateableElement_context().addAll((Collection<? extends AllocateableElement>)newValue);
- return;
+ case InfrastructurePackage.ALLOCATED_ELEMENT_INSTANCE_REF__ALLOCATEABLE_ELEMENT:
+ setAllocateableElement((AllocateableElement) newValue);
+ return;
+ case InfrastructurePackage.ALLOCATED_ELEMENT_INSTANCE_REF__ALLOCATEABLE_ELEMENT_CONTEXT:
+ getAllocateableElement_context().clear();
+ getAllocateableElement_context().addAll((Collection<? extends AllocateableElement>) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -158,17 +175,18 @@ public class AllocatedElementInstanceRefImpl extends InstanceRefImpl implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case InfrastructurePackage.ALLOCATED_ELEMENT_INSTANCE_REF__ALLOCATEABLE_ELEMENT:
- setAllocateableElement((AllocateableElement)null);
- return;
- case InfrastructurePackage.ALLOCATED_ELEMENT_INSTANCE_REF__ALLOCATEABLE_ELEMENT_CONTEXT:
- getAllocateableElement_context().clear();
- return;
+ case InfrastructurePackage.ALLOCATED_ELEMENT_INSTANCE_REF__ALLOCATEABLE_ELEMENT:
+ setAllocateableElement((AllocateableElement) null);
+ return;
+ case InfrastructurePackage.ALLOCATED_ELEMENT_INSTANCE_REF__ALLOCATEABLE_ELEMENT_CONTEXT:
+ getAllocateableElement_context().clear();
+ return;
}
super.eUnset(featureID);
}
@@ -176,17 +194,18 @@ public class AllocatedElementInstanceRefImpl extends InstanceRefImpl implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case InfrastructurePackage.ALLOCATED_ELEMENT_INSTANCE_REF__ALLOCATEABLE_ELEMENT:
- return allocateableElement != null;
- case InfrastructurePackage.ALLOCATED_ELEMENT_INSTANCE_REF__ALLOCATEABLE_ELEMENT_CONTEXT:
- return allocateableElement_context != null && !allocateableElement_context.isEmpty();
+ case InfrastructurePackage.ALLOCATED_ELEMENT_INSTANCE_REF__ALLOCATEABLE_ELEMENT:
+ return allocateableElement != null;
+ case InfrastructurePackage.ALLOCATED_ELEMENT_INSTANCE_REF__ALLOCATEABLE_ELEMENT_CONTEXT:
+ return allocateableElement_context != null && !allocateableElement_context.isEmpty();
}
return super.eIsSet(featureID);
}
-} //AllocatedElementInstanceRefImpl
+} // AllocatedElementInstanceRefImpl

Back to the top