diff options
author | 2021-06-29 18:29:13 +0200 | |
---|---|---|
committer | 2021-06-29 18:31:07 +0200 | |
commit | ad35e53fa23be5312f1e4b8d830a73e8ade1f08c (patch) | |
tree | b48aeb3034358e0a02a6d17221428522ad879b77 /language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemImpl.java | |
parent | Remove Xtext generated Javascript file (diff) | |
download | refinery-ad35e53fa23be5312f1e4b8d830a73e8ade1f08c.tar.gz refinery-ad35e53fa23be5312f1e4b8d830a73e8ade1f08c.tar.zst refinery-ad35e53fa23be5312f1e4b8d830a73e8ade1f08c.zip |
Generate all files on build
Diffstat (limited to 'language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemImpl.java')
-rw-r--r-- | language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemImpl.java | 188 |
1 files changed, 0 insertions, 188 deletions
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemImpl.java deleted file mode 100644 index 191021c4..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemImpl.java +++ /dev/null | |||
@@ -1,188 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import java.util.Collection; | ||
6 | |||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.common.util.EList; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | import org.eclipse.emf.ecore.InternalEObject; | ||
13 | |||
14 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
15 | import org.eclipse.emf.ecore.util.InternalEList; | ||
16 | |||
17 | import org.eclipse.viatra.solver.language.model.problem.Node; | ||
18 | import org.eclipse.viatra.solver.language.model.problem.Problem; | ||
19 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
20 | import org.eclipse.viatra.solver.language.model.problem.Statement; | ||
21 | |||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * An implementation of the model object '<em><b>Problem</b></em>'. | ||
25 | * <!-- end-user-doc --> | ||
26 | * <p> | ||
27 | * The following features are implemented: | ||
28 | * </p> | ||
29 | * <ul> | ||
30 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ProblemImpl#getNodes <em>Nodes</em>}</li> | ||
31 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ProblemImpl#getStatements <em>Statements</em>}</li> | ||
32 | * </ul> | ||
33 | * | ||
34 | * @generated | ||
35 | */ | ||
36 | public class ProblemImpl extends NamedElementImpl implements Problem { | ||
37 | /** | ||
38 | * The cached value of the '{@link #getNodes() <em>Nodes</em>}' containment reference list. | ||
39 | * <!-- begin-user-doc --> | ||
40 | * <!-- end-user-doc --> | ||
41 | * @see #getNodes() | ||
42 | * @generated | ||
43 | * @ordered | ||
44 | */ | ||
45 | protected EList<Node> nodes; | ||
46 | |||
47 | /** | ||
48 | * The cached value of the '{@link #getStatements() <em>Statements</em>}' containment reference list. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @see #getStatements() | ||
52 | * @generated | ||
53 | * @ordered | ||
54 | */ | ||
55 | protected EList<Statement> statements; | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | protected ProblemImpl() { | ||
63 | super(); | ||
64 | } | ||
65 | |||
66 | /** | ||
67 | * <!-- begin-user-doc --> | ||
68 | * <!-- end-user-doc --> | ||
69 | * @generated | ||
70 | */ | ||
71 | @Override | ||
72 | protected EClass eStaticClass() { | ||
73 | return ProblemPackage.Literals.PROBLEM; | ||
74 | } | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | public EList<Node> getNodes() { | ||
82 | if (nodes == null) { | ||
83 | nodes = new EObjectContainmentEList<Node>(Node.class, this, ProblemPackage.PROBLEM__NODES); | ||
84 | } | ||
85 | return nodes; | ||
86 | } | ||
87 | |||
88 | /** | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @generated | ||
92 | */ | ||
93 | public EList<Statement> getStatements() { | ||
94 | if (statements == null) { | ||
95 | statements = new EObjectContainmentEList<Statement>(Statement.class, this, | ||
96 | ProblemPackage.PROBLEM__STATEMENTS); | ||
97 | } | ||
98 | return statements; | ||
99 | } | ||
100 | |||
101 | /** | ||
102 | * <!-- begin-user-doc --> | ||
103 | * <!-- end-user-doc --> | ||
104 | * @generated | ||
105 | */ | ||
106 | @Override | ||
107 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
108 | switch (featureID) { | ||
109 | case ProblemPackage.PROBLEM__NODES: | ||
110 | return ((InternalEList<?>) getNodes()).basicRemove(otherEnd, msgs); | ||
111 | case ProblemPackage.PROBLEM__STATEMENTS: | ||
112 | return ((InternalEList<?>) getStatements()).basicRemove(otherEnd, msgs); | ||
113 | } | ||
114 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
115 | } | ||
116 | |||
117 | /** | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | */ | ||
122 | @Override | ||
123 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
124 | switch (featureID) { | ||
125 | case ProblemPackage.PROBLEM__NODES: | ||
126 | return getNodes(); | ||
127 | case ProblemPackage.PROBLEM__STATEMENTS: | ||
128 | return getStatements(); | ||
129 | } | ||
130 | return super.eGet(featureID, resolve, coreType); | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | @SuppressWarnings("unchecked") | ||
139 | @Override | ||
140 | public void eSet(int featureID, Object newValue) { | ||
141 | switch (featureID) { | ||
142 | case ProblemPackage.PROBLEM__NODES: | ||
143 | getNodes().clear(); | ||
144 | getNodes().addAll((Collection<? extends Node>) newValue); | ||
145 | return; | ||
146 | case ProblemPackage.PROBLEM__STATEMENTS: | ||
147 | getStatements().clear(); | ||
148 | getStatements().addAll((Collection<? extends Statement>) newValue); | ||
149 | return; | ||
150 | } | ||
151 | super.eSet(featureID, newValue); | ||
152 | } | ||
153 | |||
154 | /** | ||
155 | * <!-- begin-user-doc --> | ||
156 | * <!-- end-user-doc --> | ||
157 | * @generated | ||
158 | */ | ||
159 | @Override | ||
160 | public void eUnset(int featureID) { | ||
161 | switch (featureID) { | ||
162 | case ProblemPackage.PROBLEM__NODES: | ||
163 | getNodes().clear(); | ||
164 | return; | ||
165 | case ProblemPackage.PROBLEM__STATEMENTS: | ||
166 | getStatements().clear(); | ||
167 | return; | ||
168 | } | ||
169 | super.eUnset(featureID); | ||
170 | } | ||
171 | |||
172 | /** | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | */ | ||
177 | @Override | ||
178 | public boolean eIsSet(int featureID) { | ||
179 | switch (featureID) { | ||
180 | case ProblemPackage.PROBLEM__NODES: | ||
181 | return nodes != null && !nodes.isEmpty(); | ||
182 | case ProblemPackage.PROBLEM__STATEMENTS: | ||
183 | return statements != null && !statements.isEmpty(); | ||
184 | } | ||
185 | return super.eIsSet(featureID); | ||
186 | } | ||
187 | |||
188 | } //ProblemImpl | ||