From b88c842ba625753ea185e6166cd967e694160798 Mon Sep 17 00:00:00 2001
From: Kristóf Marussy
Date: Sun, 27 Jun 2021 01:43:59 +0200
Subject: Add enum support
---
.../language/model/problem/impl/ArgumentImpl.java | 58 +++++++++++-----------
1 file changed, 29 insertions(+), 29 deletions(-)
(limited to 'org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ArgumentImpl.java')
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ArgumentImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ArgumentImpl.java
index 9f6bc7ae..f7d045ca 100644
--- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ArgumentImpl.java
+++ b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ArgumentImpl.java
@@ -14,7 +14,7 @@ import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
import org.eclipse.viatra.solver.language.model.problem.Argument;
import org.eclipse.viatra.solver.language.model.problem.ImplicitVariable;
import org.eclipse.viatra.solver.language.model.problem.ProblemPackage;
-import org.eclipse.viatra.solver.language.model.problem.Variable;
+import org.eclipse.viatra.solver.language.model.problem.VariableOrNode;
/**
*
@@ -24,7 +24,7 @@ import org.eclipse.viatra.solver.language.model.problem.Variable;
* The following features are implemented:
*
*
- * - {@link org.eclipse.viatra.solver.language.model.problem.impl.ArgumentImpl#getVariable Variable}
+ * - {@link org.eclipse.viatra.solver.language.model.problem.impl.ArgumentImpl#getVariableOrNode Variable Or Node}
* - {@link org.eclipse.viatra.solver.language.model.problem.impl.ArgumentImpl#getSingletonVariable Singleton Variable}
*
*
@@ -32,14 +32,14 @@ import org.eclipse.viatra.solver.language.model.problem.Variable;
*/
public class ArgumentImpl extends MinimalEObjectImpl.Container implements Argument {
/**
- * The cached value of the '{@link #getVariable() Variable}' reference.
+ * The cached value of the '{@link #getVariableOrNode() Variable Or Node}' reference.
*
*
- * @see #getVariable()
+ * @see #getVariableOrNode()
* @generated
* @ordered
*/
- protected Variable variable;
+ protected VariableOrNode variableOrNode;
/**
* The cached value of the '{@link #getSingletonVariable() Singleton Variable}' containment reference.
@@ -75,17 +75,17 @@ public class ArgumentImpl extends MinimalEObjectImpl.Container implements Argume
*
* @generated
*/
- public Variable getVariable() {
- if (variable != null && variable.eIsProxy()) {
- InternalEObject oldVariable = (InternalEObject) variable;
- variable = (Variable) eResolveProxy(oldVariable);
- if (variable != oldVariable) {
+ public VariableOrNode getVariableOrNode() {
+ if (variableOrNode != null && variableOrNode.eIsProxy()) {
+ InternalEObject oldVariableOrNode = (InternalEObject) variableOrNode;
+ variableOrNode = (VariableOrNode) eResolveProxy(oldVariableOrNode);
+ if (variableOrNode != oldVariableOrNode) {
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, ProblemPackage.ARGUMENT__VARIABLE,
- oldVariable, variable));
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, ProblemPackage.ARGUMENT__VARIABLE_OR_NODE,
+ oldVariableOrNode, variableOrNode));
}
}
- return variable;
+ return variableOrNode;
}
/**
@@ -93,8 +93,8 @@ public class ArgumentImpl extends MinimalEObjectImpl.Container implements Argume
*
* @generated
*/
- public Variable basicGetVariable() {
- return variable;
+ public VariableOrNode basicGetVariableOrNode() {
+ return variableOrNode;
}
/**
@@ -102,12 +102,12 @@ public class ArgumentImpl extends MinimalEObjectImpl.Container implements Argume
*
* @generated
*/
- public void setVariable(Variable newVariable) {
- Variable oldVariable = variable;
- variable = newVariable;
+ public void setVariableOrNode(VariableOrNode newVariableOrNode) {
+ VariableOrNode oldVariableOrNode = variableOrNode;
+ variableOrNode = newVariableOrNode;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.ARGUMENT__VARIABLE, oldVariable,
- variable));
+ eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.ARGUMENT__VARIABLE_OR_NODE,
+ oldVariableOrNode, variableOrNode));
}
/**
@@ -182,10 +182,10 @@ public class ArgumentImpl extends MinimalEObjectImpl.Container implements Argume
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case ProblemPackage.ARGUMENT__VARIABLE:
+ case ProblemPackage.ARGUMENT__VARIABLE_OR_NODE:
if (resolve)
- return getVariable();
- return basicGetVariable();
+ return getVariableOrNode();
+ return basicGetVariableOrNode();
case ProblemPackage.ARGUMENT__SINGLETON_VARIABLE:
return getSingletonVariable();
}
@@ -200,8 +200,8 @@ public class ArgumentImpl extends MinimalEObjectImpl.Container implements Argume
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case ProblemPackage.ARGUMENT__VARIABLE:
- setVariable((Variable) newValue);
+ case ProblemPackage.ARGUMENT__VARIABLE_OR_NODE:
+ setVariableOrNode((VariableOrNode) newValue);
return;
case ProblemPackage.ARGUMENT__SINGLETON_VARIABLE:
setSingletonVariable((ImplicitVariable) newValue);
@@ -218,8 +218,8 @@ public class ArgumentImpl extends MinimalEObjectImpl.Container implements Argume
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case ProblemPackage.ARGUMENT__VARIABLE:
- setVariable((Variable) null);
+ case ProblemPackage.ARGUMENT__VARIABLE_OR_NODE:
+ setVariableOrNode((VariableOrNode) null);
return;
case ProblemPackage.ARGUMENT__SINGLETON_VARIABLE:
setSingletonVariable((ImplicitVariable) null);
@@ -236,8 +236,8 @@ public class ArgumentImpl extends MinimalEObjectImpl.Container implements Argume
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case ProblemPackage.ARGUMENT__VARIABLE:
- return variable != null;
+ case ProblemPackage.ARGUMENT__VARIABLE_OR_NODE:
+ return variableOrNode != null;
case ProblemPackage.ARGUMENT__SINGLETON_VARIABLE:
return singletonVariable != null;
}
--
cgit v1.2.3-70-g09d2