Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/qompass-designer/org.eclipse.papyrus.fcm.profile/src/org/eclipse/papyrus/FCM/impl/CopyAttributeValueImpl.java')
-rw-r--r--extraplugins/qompass-designer/org.eclipse.papyrus.fcm.profile/src/org/eclipse/papyrus/FCM/impl/CopyAttributeValueImpl.java88
1 files changed, 33 insertions, 55 deletions
diff --git a/extraplugins/qompass-designer/org.eclipse.papyrus.fcm.profile/src/org/eclipse/papyrus/FCM/impl/CopyAttributeValueImpl.java b/extraplugins/qompass-designer/org.eclipse.papyrus.fcm.profile/src/org/eclipse/papyrus/FCM/impl/CopyAttributeValueImpl.java
index 8467748db87..bc73efb61af 100644
--- a/extraplugins/qompass-designer/org.eclipse.papyrus.fcm.profile/src/org/eclipse/papyrus/FCM/impl/CopyAttributeValueImpl.java
+++ b/extraplugins/qompass-designer/org.eclipse.papyrus.fcm.profile/src/org/eclipse/papyrus/FCM/impl/CopyAttributeValueImpl.java
@@ -27,11 +27,11 @@ import org.eclipse.uml2.uml.Property;
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
+ * </p>
* <ul>
- * <li>{@link org.eclipse.papyrus.FCM.impl.CopyAttributeValueImpl#getSource <em>Source</em>}</li>
- * <li>{@link org.eclipse.papyrus.FCM.impl.CopyAttributeValueImpl#getBase_Property <em>Base Property</em>}</li>
+ * <li>{@link org.eclipse.papyrus.FCM.impl.CopyAttributeValueImpl#getSource <em>Source</em>}</li>
+ * <li>{@link org.eclipse.papyrus.FCM.impl.CopyAttributeValueImpl#getBase_Property <em>Base Property</em>}</li>
* </ul>
- * </p>
*
* @generated
*/
@@ -40,7 +40,6 @@ public class CopyAttributeValueImpl extends EObjectImpl implements CopyAttribute
* The cached value of the '{@link #getSource() <em>Source</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getSource()
* @generated
* @ordered
@@ -51,7 +50,6 @@ public class CopyAttributeValueImpl extends EObjectImpl implements CopyAttribute
* The cached value of the '{@link #getBase_Property() <em>Base Property</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getBase_Property()
* @generated
* @ordered
@@ -61,7 +59,6 @@ public class CopyAttributeValueImpl extends EObjectImpl implements CopyAttribute
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
protected CopyAttributeValueImpl() {
@@ -71,7 +68,6 @@ public class CopyAttributeValueImpl extends EObjectImpl implements CopyAttribute
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
@@ -82,18 +78,16 @@ public class CopyAttributeValueImpl extends EObjectImpl implements CopyAttribute
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public Property getSource() {
if (source != null && source.eIsProxy()) {
- InternalEObject oldSource = (InternalEObject) source;
- source = (Property) eResolveProxy(oldSource);
+ InternalEObject oldSource = (InternalEObject)source;
+ source = (Property)eResolveProxy(oldSource);
if (source != oldSource) {
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FCMPackage.COPY_ATTRIBUTE_VALUE__SOURCE, oldSource, source));
- }
}
}
return source;
@@ -102,7 +96,6 @@ public class CopyAttributeValueImpl extends EObjectImpl implements CopyAttribute
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public Property basicGetSource() {
@@ -112,33 +105,29 @@ public class CopyAttributeValueImpl extends EObjectImpl implements CopyAttribute
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void setSource(Property newSource) {
Property oldSource = source;
source = newSource;
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FCMPackage.COPY_ATTRIBUTE_VALUE__SOURCE, oldSource, source));
- }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public Property getBase_Property() {
if (base_Property != null && base_Property.eIsProxy()) {
- InternalEObject oldBase_Property = (InternalEObject) base_Property;
- base_Property = (Property) eResolveProxy(oldBase_Property);
+ InternalEObject oldBase_Property = (InternalEObject)base_Property;
+ base_Property = (Property)eResolveProxy(oldBase_Property);
if (base_Property != oldBase_Property) {
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FCMPackage.COPY_ATTRIBUTE_VALUE__BASE_PROPERTY, oldBase_Property, base_Property));
- }
}
}
return base_Property;
@@ -147,7 +136,6 @@ public class CopyAttributeValueImpl extends EObjectImpl implements CopyAttribute
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public Property basicGetBase_Property() {
@@ -157,37 +145,30 @@ public class CopyAttributeValueImpl extends EObjectImpl implements CopyAttribute
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void setBase_Property(Property newBase_Property) {
Property oldBase_Property = base_Property;
base_Property = newBase_Property;
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FCMPackage.COPY_ATTRIBUTE_VALUE__BASE_PROPERTY, oldBase_Property, base_Property));
- }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case FCMPackage.COPY_ATTRIBUTE_VALUE__SOURCE:
- if (resolve) {
- return getSource();
- }
- return basicGetSource();
- case FCMPackage.COPY_ATTRIBUTE_VALUE__BASE_PROPERTY:
- if (resolve) {
- return getBase_Property();
- }
- return basicGetBase_Property();
+ case FCMPackage.COPY_ATTRIBUTE_VALUE__SOURCE:
+ if (resolve) return getSource();
+ return basicGetSource();
+ case FCMPackage.COPY_ATTRIBUTE_VALUE__BASE_PROPERTY:
+ if (resolve) return getBase_Property();
+ return basicGetBase_Property();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -195,18 +176,17 @@ public class CopyAttributeValueImpl extends EObjectImpl implements CopyAttribute
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case FCMPackage.COPY_ATTRIBUTE_VALUE__SOURCE:
- setSource((Property) newValue);
- return;
- case FCMPackage.COPY_ATTRIBUTE_VALUE__BASE_PROPERTY:
- setBase_Property((Property) newValue);
- return;
+ case FCMPackage.COPY_ATTRIBUTE_VALUE__SOURCE:
+ setSource((Property)newValue);
+ return;
+ case FCMPackage.COPY_ATTRIBUTE_VALUE__BASE_PROPERTY:
+ setBase_Property((Property)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -214,18 +194,17 @@ public class CopyAttributeValueImpl extends EObjectImpl implements CopyAttribute
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case FCMPackage.COPY_ATTRIBUTE_VALUE__SOURCE:
- setSource((Property) null);
- return;
- case FCMPackage.COPY_ATTRIBUTE_VALUE__BASE_PROPERTY:
- setBase_Property((Property) null);
- return;
+ case FCMPackage.COPY_ATTRIBUTE_VALUE__SOURCE:
+ setSource((Property)null);
+ return;
+ case FCMPackage.COPY_ATTRIBUTE_VALUE__BASE_PROPERTY:
+ setBase_Property((Property)null);
+ return;
}
super.eUnset(featureID);
}
@@ -233,16 +212,15 @@ public class CopyAttributeValueImpl extends EObjectImpl implements CopyAttribute
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case FCMPackage.COPY_ATTRIBUTE_VALUE__SOURCE:
- return source != null;
- case FCMPackage.COPY_ATTRIBUTE_VALUE__BASE_PROPERTY:
- return base_Property != null;
+ case FCMPackage.COPY_ATTRIBUTE_VALUE__SOURCE:
+ return source != null;
+ case FCMPackage.COPY_ATTRIBUTE_VALUE__BASE_PROPERTY:
+ return base_Property != null;
}
return super.eIsSet(featureID);
}

Back to the top