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/VVCaseInstanceRefImpl.java')
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/impl/VVCaseInstanceRefImpl.java77
1 files changed, 48 insertions, 29 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/impl/VVCaseInstanceRefImpl.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/impl/VVCaseInstanceRefImpl.java
index b89628eef58..07d19099230 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/impl/VVCaseInstanceRefImpl.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/impl/VVCaseInstanceRefImpl.java
@@ -21,8 +21,8 @@ import org.eclipse.uml2.uml.NamedElement;
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.impl.VVCaseInstanceRefImpl#getIdentifiable_target <em>Identifiable target</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.impl.VVCaseInstanceRefImpl#getIdentifiable_context <em>Identifiable context</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.impl.VVCaseInstanceRefImpl#getIdentifiable_target <em>Identifiable target</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.impl.VVCaseInstanceRefImpl#getIdentifiable_context <em>Identifiable context</em>}</li>
* </ul>
* </p>
*
@@ -33,6 +33,7 @@ public class VVCaseInstanceRefImpl extends InstanceRefImpl implements VVCaseInst
* The cached value of the '{@link #getIdentifiable_target() <em>Identifiable target</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getIdentifiable_target()
* @generated
* @ordered
@@ -43,6 +44,7 @@ public class VVCaseInstanceRefImpl extends InstanceRefImpl implements VVCaseInst
* The cached value of the '{@link #getIdentifiable_context() <em>Identifiable context</em>}' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getIdentifiable_context()
* @generated
* @ordered
@@ -52,6 +54,7 @@ public class VVCaseInstanceRefImpl extends InstanceRefImpl implements VVCaseInst
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected VVCaseInstanceRefImpl() {
@@ -61,6 +64,7 @@ public class VVCaseInstanceRefImpl extends InstanceRefImpl implements VVCaseInst
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -71,15 +75,18 @@ public class VVCaseInstanceRefImpl extends InstanceRefImpl implements VVCaseInst
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public NamedElement getIdentifiable_target() {
if (identifiable_target != null && identifiable_target.eIsProxy()) {
- InternalEObject oldIdentifiable_target = (InternalEObject)identifiable_target;
- identifiable_target = (NamedElement)eResolveProxy(oldIdentifiable_target);
+ InternalEObject oldIdentifiable_target = (InternalEObject) identifiable_target;
+ identifiable_target = (NamedElement) eResolveProxy(oldIdentifiable_target);
if (identifiable_target != oldIdentifiable_target) {
- if (eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.RESOLVE, InfrastructurePackage.VV_CASE_INSTANCE_REF__IDENTIFIABLE_TARGET, oldIdentifiable_target, identifiable_target));
+ }
}
}
return identifiable_target;
@@ -88,6 +95,7 @@ public class VVCaseInstanceRefImpl extends InstanceRefImpl implements VVCaseInst
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public NamedElement basicGetIdentifiable_target() {
@@ -97,20 +105,25 @@ public class VVCaseInstanceRefImpl extends InstanceRefImpl implements VVCaseInst
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void setIdentifiable_target(NamedElement newIdentifiable_target) {
NamedElement oldIdentifiable_target = identifiable_target;
identifiable_target = newIdentifiable_target;
- if (eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, InfrastructurePackage.VV_CASE_INSTANCE_REF__IDENTIFIABLE_TARGET, oldIdentifiable_target, identifiable_target));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public EList<NamedElement> getIdentifiable_context() {
if (identifiable_context == null) {
identifiable_context = new EObjectResolvingEList<NamedElement>(NamedElement.class, this, InfrastructurePackage.VV_CASE_INSTANCE_REF__IDENTIFIABLE_CONTEXT);
@@ -121,16 +134,19 @@ public class VVCaseInstanceRefImpl extends InstanceRefImpl implements VVCaseInst
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case InfrastructurePackage.VV_CASE_INSTANCE_REF__IDENTIFIABLE_TARGET:
- if (resolve) return getIdentifiable_target();
- return basicGetIdentifiable_target();
- case InfrastructurePackage.VV_CASE_INSTANCE_REF__IDENTIFIABLE_CONTEXT:
- return getIdentifiable_context();
+ case InfrastructurePackage.VV_CASE_INSTANCE_REF__IDENTIFIABLE_TARGET:
+ if (resolve) {
+ return getIdentifiable_target();
+ }
+ return basicGetIdentifiable_target();
+ case InfrastructurePackage.VV_CASE_INSTANCE_REF__IDENTIFIABLE_CONTEXT:
+ return getIdentifiable_context();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -138,19 +154,20 @@ public class VVCaseInstanceRefImpl extends InstanceRefImpl implements VVCaseInst
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case InfrastructurePackage.VV_CASE_INSTANCE_REF__IDENTIFIABLE_TARGET:
- setIdentifiable_target((NamedElement)newValue);
- return;
- case InfrastructurePackage.VV_CASE_INSTANCE_REF__IDENTIFIABLE_CONTEXT:
- getIdentifiable_context().clear();
- getIdentifiable_context().addAll((Collection<? extends NamedElement>)newValue);
- return;
+ case InfrastructurePackage.VV_CASE_INSTANCE_REF__IDENTIFIABLE_TARGET:
+ setIdentifiable_target((NamedElement) newValue);
+ return;
+ case InfrastructurePackage.VV_CASE_INSTANCE_REF__IDENTIFIABLE_CONTEXT:
+ getIdentifiable_context().clear();
+ getIdentifiable_context().addAll((Collection<? extends NamedElement>) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -158,17 +175,18 @@ public class VVCaseInstanceRefImpl extends InstanceRefImpl implements VVCaseInst
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case InfrastructurePackage.VV_CASE_INSTANCE_REF__IDENTIFIABLE_TARGET:
- setIdentifiable_target((NamedElement)null);
- return;
- case InfrastructurePackage.VV_CASE_INSTANCE_REF__IDENTIFIABLE_CONTEXT:
- getIdentifiable_context().clear();
- return;
+ case InfrastructurePackage.VV_CASE_INSTANCE_REF__IDENTIFIABLE_TARGET:
+ setIdentifiable_target((NamedElement) null);
+ return;
+ case InfrastructurePackage.VV_CASE_INSTANCE_REF__IDENTIFIABLE_CONTEXT:
+ getIdentifiable_context().clear();
+ return;
}
super.eUnset(featureID);
}
@@ -176,17 +194,18 @@ public class VVCaseInstanceRefImpl extends InstanceRefImpl implements VVCaseInst
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case InfrastructurePackage.VV_CASE_INSTANCE_REF__IDENTIFIABLE_TARGET:
- return identifiable_target != null;
- case InfrastructurePackage.VV_CASE_INSTANCE_REF__IDENTIFIABLE_CONTEXT:
- return identifiable_context != null && !identifiable_context.isEmpty();
+ case InfrastructurePackage.VV_CASE_INSTANCE_REF__IDENTIFIABLE_TARGET:
+ return identifiable_target != null;
+ case InfrastructurePackage.VV_CASE_INSTANCE_REF__IDENTIFIABLE_CONTEXT:
+ return identifiable_context != null && !identifiable_context.isEmpty();
}
return super.eIsSet(featureID);
}
-} //VVCaseInstanceRefImpl
+} // VVCaseInstanceRefImpl

Back to the top