Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/featuremodeling/impl/FeatureLinkImpl.java')
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/featuremodeling/impl/FeatureLinkImpl.java322
1 files changed, 136 insertions, 186 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/featuremodeling/impl/FeatureLinkImpl.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/featuremodeling/impl/FeatureLinkImpl.java
index 9129d96b704..487e51c6372 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/featuremodeling/impl/FeatureLinkImpl.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/featuremodeling/impl/FeatureLinkImpl.java
@@ -15,6 +15,8 @@
*****************************************************************************/
package org.eclipse.papyrus.eastadl.structure.featuremodeling.impl;
+import java.util.Iterator;
+
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
@@ -26,6 +28,8 @@ import org.eclipse.papyrus.eastadl.structure.featuremodeling.FeaturemodelingPack
import org.eclipse.papyrus.eastadl.structure.featuremodeling.VariabilityDependencyKind;
import org.eclipse.uml2.uml.AssociationClass;
import org.eclipse.uml2.uml.Dependency;
+import org.eclipse.uml2.uml.Element;
+import org.eclipse.uml2.uml.util.UMLUtil;
/**
@@ -34,16 +38,16 @@ import org.eclipse.uml2.uml.Dependency;
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.eastadl.structure.featuremodeling.impl.FeatureLinkImpl#isIsBidirectional <em>Is Bidirectional</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.structure.featuremodeling.impl.FeatureLinkImpl#getCustomType <em>Custom Type</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.structure.featuremodeling.impl.FeatureLinkImpl#getBase_Dependency <em>Base Dependency</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.structure.featuremodeling.impl.FeatureLinkImpl#getStart <em>Start</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.structure.featuremodeling.impl.FeatureLinkImpl#getEnd <em>End</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.structure.featuremodeling.impl.FeatureLinkImpl#getBase_AssociationClass <em>Base Association Class</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.structure.featuremodeling.impl.FeatureLinkImpl#getKind <em>Kind</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.structure.featuremodeling.impl.FeatureLinkImpl#isIsBidirectional <em>Is Bidirectional</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.structure.featuremodeling.impl.FeatureLinkImpl#getCustomType <em>Custom Type</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.structure.featuremodeling.impl.FeatureLinkImpl#getBase_Dependency <em>Base Dependency</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.structure.featuremodeling.impl.FeatureLinkImpl#getStart <em>Start</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.structure.featuremodeling.impl.FeatureLinkImpl#getEnd <em>End</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.structure.featuremodeling.impl.FeatureLinkImpl#getBase_AssociationClass <em>Base Association Class</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.structure.featuremodeling.impl.FeatureLinkImpl#getKind <em>Kind</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class FeatureLinkImpl extends RelationshipImpl implements FeatureLink {
@@ -51,7 +55,6 @@ public class FeatureLinkImpl extends RelationshipImpl implements FeatureLink {
/**
* The default value of the '{@link #isIsBidirectional() <em>Is Bidirectional</em>}' attribute.
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @see #isIsBidirectional()
* @generated
* @ordered
@@ -61,7 +64,6 @@ public class FeatureLinkImpl extends RelationshipImpl implements FeatureLink {
/**
* The cached value of the '{@link #isIsBidirectional() <em>Is Bidirectional</em>}' attribute.
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @see #isIsBidirectional()
* @generated
* @ordered
@@ -92,7 +94,6 @@ public class FeatureLinkImpl extends RelationshipImpl implements FeatureLink {
* The cached value of the '{@link #getBase_Dependency() <em>Base Dependency</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getBase_Dependency()
* @generated
* @ordered
@@ -100,32 +101,9 @@ public class FeatureLinkImpl extends RelationshipImpl implements FeatureLink {
protected Dependency base_Dependency;
/**
- * The cached value of the '{@link #getStart() <em>Start</em>}' reference.
- * <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @see #getStart()
- * @generated
- * @ordered
- */
- protected Feature start;
-
- /**
- * The cached value of the '{@link #getEnd() <em>End</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getEnd()
- * @generated
- * @ordered
- */
- protected Feature end;
-
- /**
* The cached value of the '{@link #getBase_AssociationClass() <em>Base Association Class</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getBase_AssociationClass()
* @generated
* @ordered
@@ -136,7 +114,6 @@ public class FeatureLinkImpl extends RelationshipImpl implements FeatureLink {
* The default value of the '{@link #getKind() <em>Kind</em>}' attribute.
* <!-- begin-user-doc
* --> <!-- end-user-doc -->
- *
* @see #getKind()
* @generated
* @ordered
@@ -147,7 +124,6 @@ public class FeatureLinkImpl extends RelationshipImpl implements FeatureLink {
* The cached value of the '{@link #getKind() <em>Kind</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getKind()
* @generated
* @ordered
@@ -156,7 +132,6 @@ public class FeatureLinkImpl extends RelationshipImpl implements FeatureLink {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
protected FeatureLinkImpl() {
@@ -165,118 +140,128 @@ public class FeatureLinkImpl extends RelationshipImpl implements FeatureLink {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
+ * @generated NOT
*/
public Feature basicGetEnd() {
- return end;
+ Feature adlFeature = null;
+ if (getBase_Dependency() != null) {
+ Iterator<Element> it = getBase_Dependency().getTargets().iterator();
+ while (it.hasNext()) {
+ Element element = it.next();
+ adlFeature = (Feature) UMLUtil.getStereotypeApplication(element, Feature.class);
+ if (adlFeature!=null)
+ return adlFeature;
+ }
+ }
+ return null;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
+ * @generated NOT
*/
public Feature basicGetStart() {
- return start;
+ Feature adlFeature = null;
+ if (getBase_Dependency() != null) {
+ Iterator<Element> it = getBase_Dependency().getSources().iterator();
+ while (it.hasNext()) {
+ Element element = it.next();
+ adlFeature = (Feature) UMLUtil.getStereotypeApplication(element, Feature.class);
+ if (adlFeature!=null)
+ return adlFeature;
+ }
+ }
+ return null;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case FeaturemodelingPackage.FEATURE_LINK__IS_BIDIRECTIONAL:
- return isIsBidirectional();
- case FeaturemodelingPackage.FEATURE_LINK__CUSTOM_TYPE:
- return getCustomType();
- case FeaturemodelingPackage.FEATURE_LINK__BASE_DEPENDENCY:
- if(resolve)
- return getBase_Dependency();
- return basicGetBase_Dependency();
- case FeaturemodelingPackage.FEATURE_LINK__START:
- if(resolve)
- return getStart();
- return basicGetStart();
- case FeaturemodelingPackage.FEATURE_LINK__END:
- if(resolve)
- return getEnd();
- return basicGetEnd();
- case FeaturemodelingPackage.FEATURE_LINK__BASE_ASSOCIATION_CLASS:
- if(resolve)
- return getBase_AssociationClass();
- return basicGetBase_AssociationClass();
- case FeaturemodelingPackage.FEATURE_LINK__KIND:
- return getKind();
+ switch (featureID) {
+ case FeaturemodelingPackage.FEATURE_LINK__IS_BIDIRECTIONAL:
+ return isIsBidirectional();
+ case FeaturemodelingPackage.FEATURE_LINK__CUSTOM_TYPE:
+ return getCustomType();
+ case FeaturemodelingPackage.FEATURE_LINK__BASE_DEPENDENCY:
+ if (resolve) return getBase_Dependency();
+ return basicGetBase_Dependency();
+ case FeaturemodelingPackage.FEATURE_LINK__START:
+ if (resolve) return getStart();
+ return basicGetStart();
+ case FeaturemodelingPackage.FEATURE_LINK__END:
+ if (resolve) return getEnd();
+ return basicGetEnd();
+ case FeaturemodelingPackage.FEATURE_LINK__BASE_ASSOCIATION_CLASS:
+ if (resolve) return getBase_AssociationClass();
+ return basicGetBase_AssociationClass();
+ case FeaturemodelingPackage.FEATURE_LINK__KIND:
+ return getKind();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch(featureID) {
- case FeaturemodelingPackage.FEATURE_LINK__IS_BIDIRECTIONAL:
- return isBidirectional != IS_BIDIRECTIONAL_EDEFAULT;
- case FeaturemodelingPackage.FEATURE_LINK__CUSTOM_TYPE:
- return CUSTOM_TYPE_EDEFAULT == null ? customType != null : !CUSTOM_TYPE_EDEFAULT.equals(customType);
- case FeaturemodelingPackage.FEATURE_LINK__BASE_DEPENDENCY:
- return base_Dependency != null;
- case FeaturemodelingPackage.FEATURE_LINK__START:
- return start != null;
- case FeaturemodelingPackage.FEATURE_LINK__END:
- return end != null;
- case FeaturemodelingPackage.FEATURE_LINK__BASE_ASSOCIATION_CLASS:
- return base_AssociationClass != null;
- case FeaturemodelingPackage.FEATURE_LINK__KIND:
- return kind != KIND_EDEFAULT;
+ switch (featureID) {
+ case FeaturemodelingPackage.FEATURE_LINK__IS_BIDIRECTIONAL:
+ return isBidirectional != IS_BIDIRECTIONAL_EDEFAULT;
+ case FeaturemodelingPackage.FEATURE_LINK__CUSTOM_TYPE:
+ return CUSTOM_TYPE_EDEFAULT == null ? customType != null : !CUSTOM_TYPE_EDEFAULT.equals(customType);
+ case FeaturemodelingPackage.FEATURE_LINK__BASE_DEPENDENCY:
+ return base_Dependency != null;
+ case FeaturemodelingPackage.FEATURE_LINK__START:
+ return basicGetStart() != null;
+ case FeaturemodelingPackage.FEATURE_LINK__END:
+ return basicGetEnd() != null;
+ case FeaturemodelingPackage.FEATURE_LINK__BASE_ASSOCIATION_CLASS:
+ return base_AssociationClass != null;
+ case FeaturemodelingPackage.FEATURE_LINK__KIND:
+ return kind != KIND_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case FeaturemodelingPackage.FEATURE_LINK__IS_BIDIRECTIONAL:
- setIsBidirectional((Boolean)newValue);
- return;
- case FeaturemodelingPackage.FEATURE_LINK__CUSTOM_TYPE:
- setCustomType((String)newValue);
- return;
- case FeaturemodelingPackage.FEATURE_LINK__BASE_DEPENDENCY:
- setBase_Dependency((Dependency)newValue);
- return;
- case FeaturemodelingPackage.FEATURE_LINK__START:
- setStart((Feature)newValue);
- return;
- case FeaturemodelingPackage.FEATURE_LINK__END:
- setEnd((Feature)newValue);
- return;
- case FeaturemodelingPackage.FEATURE_LINK__BASE_ASSOCIATION_CLASS:
- setBase_AssociationClass((AssociationClass)newValue);
- return;
- case FeaturemodelingPackage.FEATURE_LINK__KIND:
- setKind((VariabilityDependencyKind)newValue);
- return;
+ switch (featureID) {
+ case FeaturemodelingPackage.FEATURE_LINK__IS_BIDIRECTIONAL:
+ setIsBidirectional((Boolean)newValue);
+ return;
+ case FeaturemodelingPackage.FEATURE_LINK__CUSTOM_TYPE:
+ setCustomType((String)newValue);
+ return;
+ case FeaturemodelingPackage.FEATURE_LINK__BASE_DEPENDENCY:
+ setBase_Dependency((Dependency)newValue);
+ return;
+ case FeaturemodelingPackage.FEATURE_LINK__START:
+ setStart((Feature)newValue);
+ return;
+ case FeaturemodelingPackage.FEATURE_LINK__END:
+ setEnd((Feature)newValue);
+ return;
+ case FeaturemodelingPackage.FEATURE_LINK__BASE_ASSOCIATION_CLASS:
+ setBase_AssociationClass((AssociationClass)newValue);
+ return;
+ case FeaturemodelingPackage.FEATURE_LINK__KIND:
+ setKind((VariabilityDependencyKind)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
@Override
@@ -286,40 +271,38 @@ public class FeatureLinkImpl extends RelationshipImpl implements FeatureLink {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void eUnset(int featureID) {
- switch(featureID) {
- case FeaturemodelingPackage.FEATURE_LINK__IS_BIDIRECTIONAL:
- setIsBidirectional(IS_BIDIRECTIONAL_EDEFAULT);
- return;
- case FeaturemodelingPackage.FEATURE_LINK__CUSTOM_TYPE:
- setCustomType(CUSTOM_TYPE_EDEFAULT);
- return;
- case FeaturemodelingPackage.FEATURE_LINK__BASE_DEPENDENCY:
- setBase_Dependency((Dependency)null);
- return;
- case FeaturemodelingPackage.FEATURE_LINK__START:
- setStart((Feature)null);
- return;
- case FeaturemodelingPackage.FEATURE_LINK__END:
- setEnd((Feature)null);
- return;
- case FeaturemodelingPackage.FEATURE_LINK__BASE_ASSOCIATION_CLASS:
- setBase_AssociationClass((AssociationClass)null);
- return;
- case FeaturemodelingPackage.FEATURE_LINK__KIND:
- setKind(KIND_EDEFAULT);
- return;
+ switch (featureID) {
+ case FeaturemodelingPackage.FEATURE_LINK__IS_BIDIRECTIONAL:
+ setIsBidirectional(IS_BIDIRECTIONAL_EDEFAULT);
+ return;
+ case FeaturemodelingPackage.FEATURE_LINK__CUSTOM_TYPE:
+ setCustomType(CUSTOM_TYPE_EDEFAULT);
+ return;
+ case FeaturemodelingPackage.FEATURE_LINK__BASE_DEPENDENCY:
+ setBase_Dependency((Dependency)null);
+ return;
+ case FeaturemodelingPackage.FEATURE_LINK__START:
+ setStart((Feature)null);
+ return;
+ case FeaturemodelingPackage.FEATURE_LINK__END:
+ setEnd((Feature)null);
+ return;
+ case FeaturemodelingPackage.FEATURE_LINK__BASE_ASSOCIATION_CLASS:
+ setBase_AssociationClass((AssociationClass)null);
+ return;
+ case FeaturemodelingPackage.FEATURE_LINK__KIND:
+ setKind(KIND_EDEFAULT);
+ return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public String getCustomType() {
@@ -328,24 +311,15 @@ public class FeatureLinkImpl extends RelationshipImpl implements FeatureLink {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public Feature getEnd() {
- if(end != null && end.eIsProxy()) {
- InternalEObject oldEnd = (InternalEObject)end;
- end = (Feature)eResolveProxy(oldEnd);
- if(end != oldEnd) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, FeaturemodelingPackage.FEATURE_LINK__END, oldEnd, end));
- }
- }
- return end;
+ Feature end = basicGetEnd();
+ return end != null && end.eIsProxy() ? (Feature)eResolveProxy((InternalEObject)end) : end;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public VariabilityDependencyKind getKind() {
@@ -354,24 +328,15 @@ public class FeatureLinkImpl extends RelationshipImpl implements FeatureLink {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public Feature getStart() {
- if(start != null && start.eIsProxy()) {
- InternalEObject oldStart = (InternalEObject)start;
- start = (Feature)eResolveProxy(oldStart);
- if(start != oldStart) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, FeaturemodelingPackage.FEATURE_LINK__START, oldStart, start));
- }
- }
- return start;
+ Feature start = basicGetStart();
+ return start != null && start.eIsProxy() ? (Feature)eResolveProxy((InternalEObject)start) : start;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public boolean isIsBidirectional() {
@@ -380,28 +345,26 @@ public class FeatureLinkImpl extends RelationshipImpl implements FeatureLink {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public void setCustomType(String newCustomType) {
String oldCustomType = customType;
customType = newCustomType;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FeaturemodelingPackage.FEATURE_LINK__CUSTOM_TYPE, oldCustomType, customType));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public Dependency getBase_Dependency() {
- if(base_Dependency != null && base_Dependency.eIsProxy()) {
+ if (base_Dependency != null && base_Dependency.eIsProxy()) {
InternalEObject oldBase_Dependency = (InternalEObject)base_Dependency;
base_Dependency = (Dependency)eResolveProxy(oldBase_Dependency);
- if(base_Dependency != oldBase_Dependency) {
- if(eNotificationRequired())
+ if (base_Dependency != oldBase_Dependency) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FeaturemodelingPackage.FEATURE_LINK__BASE_DEPENDENCY, oldBase_Dependency, base_Dependency));
}
}
@@ -411,7 +374,6 @@ public class FeatureLinkImpl extends RelationshipImpl implements FeatureLink {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public Dependency basicGetBase_Dependency() {
@@ -421,40 +383,36 @@ public class FeatureLinkImpl extends RelationshipImpl implements FeatureLink {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setBase_Dependency(Dependency newBase_Dependency) {
Dependency oldBase_Dependency = base_Dependency;
base_Dependency = newBase_Dependency;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FeaturemodelingPackage.FEATURE_LINK__BASE_DEPENDENCY, oldBase_Dependency, base_Dependency));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public void setEnd(Feature newEnd) {
- Feature oldEnd = end;
- end = newEnd;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, FeaturemodelingPackage.FEATURE_LINK__END, oldEnd, end));
+ // TODO: implement this method to set the 'End' reference
+ // Ensure that you remove @generated or mark it @generated NOT
+ throw new UnsupportedOperationException();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public AssociationClass getBase_AssociationClass() {
- if(base_AssociationClass != null && base_AssociationClass.eIsProxy()) {
+ if (base_AssociationClass != null && base_AssociationClass.eIsProxy()) {
InternalEObject oldBase_AssociationClass = (InternalEObject)base_AssociationClass;
base_AssociationClass = (AssociationClass)eResolveProxy(oldBase_AssociationClass);
- if(base_AssociationClass != oldBase_AssociationClass) {
- if(eNotificationRequired())
+ if (base_AssociationClass != oldBase_AssociationClass) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FeaturemodelingPackage.FEATURE_LINK__BASE_ASSOCIATION_CLASS, oldBase_AssociationClass, base_AssociationClass));
}
}
@@ -464,7 +422,6 @@ public class FeatureLinkImpl extends RelationshipImpl implements FeatureLink {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public AssociationClass basicGetBase_AssociationClass() {
@@ -474,61 +431,54 @@ public class FeatureLinkImpl extends RelationshipImpl implements FeatureLink {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setBase_AssociationClass(AssociationClass newBase_AssociationClass) {
AssociationClass oldBase_AssociationClass = base_AssociationClass;
base_AssociationClass = newBase_AssociationClass;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FeaturemodelingPackage.FEATURE_LINK__BASE_ASSOCIATION_CLASS, oldBase_AssociationClass, base_AssociationClass));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public void setIsBidirectional(boolean newIsBidirectional) {
boolean oldIsBidirectional = isBidirectional;
isBidirectional = newIsBidirectional;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FeaturemodelingPackage.FEATURE_LINK__IS_BIDIRECTIONAL, oldIsBidirectional, isBidirectional));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public void setKind(VariabilityDependencyKind newKind) {
VariabilityDependencyKind oldKind = kind;
kind = newKind == null ? KIND_EDEFAULT : newKind;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FeaturemodelingPackage.FEATURE_LINK__KIND, oldKind, kind));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public void setStart(Feature newStart) {
- Feature oldStart = start;
- start = newStart;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, FeaturemodelingPackage.FEATURE_LINK__START, oldStart, start));
+ // TODO: implement this method to set the 'Start' reference
+ // Ensure that you remove @generated or mark it @generated NOT
+ throw new UnsupportedOperationException();
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
@Override
public String toString() {
- if(eIsProxy())
- return super.toString();
+ if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (isBidirectional: ");

Back to the top