diff options
author | 2020-05-19 21:18:06 +0200 | |
---|---|---|
committer | 2020-05-19 21:18:06 +0200 | |
commit | b3c1c5b30ae8ea7ebad391c9250b4509d5a4cc9b (patch) | |
tree | ad3222182065b8fac7d9b3d528c4efabf2aa0dd2 /Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExactMultiplicityImpl.java | |
parent | Merge branch 'master' of github.com:viatra/VIATRA-Generator (diff) | |
download | VIATRA-Generator-b3c1c5b30ae8ea7ebad391c9250b4509d5a4cc9b.tar.gz VIATRA-Generator-b3c1c5b30ae8ea7ebad391c9250b4509d5a4cc9b.tar.zst VIATRA-Generator-b3c1c5b30ae8ea7ebad391c9250b4509d5a4cc9b.zip |
Config language WIP
Diffstat (limited to 'Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExactMultiplicityImpl.java')
-rw-r--r-- | Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExactMultiplicityImpl.java | 179 |
1 files changed, 0 insertions, 179 deletions
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExactMultiplicityImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExactMultiplicityImpl.java deleted file mode 100644 index 3751de39..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExactMultiplicityImpl.java +++ /dev/null | |||
@@ -1,179 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | |||
12 | import org.eclipse.viatra.solver.language.solverLanguage.ExactMultiplicity; | ||
13 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Exact Multiplicity</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ExactMultiplicityImpl#getMultiplicity <em>Multiplicity</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class ExactMultiplicityImpl extends MultiplicityImpl implements ExactMultiplicity | ||
29 | { | ||
30 | /** | ||
31 | * The default value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' attribute. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #getMultiplicity() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected static final int MULTIPLICITY_EDEFAULT = 0; | ||
39 | |||
40 | /** | ||
41 | * The cached value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getMultiplicity() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected int multiplicity = MULTIPLICITY_EDEFAULT; | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | protected ExactMultiplicityImpl() | ||
56 | { | ||
57 | super(); | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | protected EClass eStaticClass() | ||
67 | { | ||
68 | return SolverLanguagePackage.Literals.EXACT_MULTIPLICITY; | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | @Override | ||
77 | public int getMultiplicity() | ||
78 | { | ||
79 | return multiplicity; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | public void setMultiplicity(int newMultiplicity) | ||
89 | { | ||
90 | int oldMultiplicity = multiplicity; | ||
91 | multiplicity = newMultiplicity; | ||
92 | if (eNotificationRequired()) | ||
93 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXACT_MULTIPLICITY__MULTIPLICITY, oldMultiplicity, multiplicity)); | ||
94 | } | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | @Override | ||
102 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
103 | { | ||
104 | switch (featureID) | ||
105 | { | ||
106 | case SolverLanguagePackage.EXACT_MULTIPLICITY__MULTIPLICITY: | ||
107 | return getMultiplicity(); | ||
108 | } | ||
109 | return super.eGet(featureID, resolve, coreType); | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | public void eSet(int featureID, Object newValue) | ||
119 | { | ||
120 | switch (featureID) | ||
121 | { | ||
122 | case SolverLanguagePackage.EXACT_MULTIPLICITY__MULTIPLICITY: | ||
123 | setMultiplicity((Integer)newValue); | ||
124 | return; | ||
125 | } | ||
126 | super.eSet(featureID, newValue); | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public void eUnset(int featureID) | ||
136 | { | ||
137 | switch (featureID) | ||
138 | { | ||
139 | case SolverLanguagePackage.EXACT_MULTIPLICITY__MULTIPLICITY: | ||
140 | setMultiplicity(MULTIPLICITY_EDEFAULT); | ||
141 | return; | ||
142 | } | ||
143 | super.eUnset(featureID); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public boolean eIsSet(int featureID) | ||
153 | { | ||
154 | switch (featureID) | ||
155 | { | ||
156 | case SolverLanguagePackage.EXACT_MULTIPLICITY__MULTIPLICITY: | ||
157 | return multiplicity != MULTIPLICITY_EDEFAULT; | ||
158 | } | ||
159 | return super.eIsSet(featureID); | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | @Override | ||
168 | public String toString() | ||
169 | { | ||
170 | if (eIsProxy()) return super.toString(); | ||
171 | |||
172 | StringBuilder result = new StringBuilder(super.toString()); | ||
173 | result.append(" (multiplicity: "); | ||
174 | result.append(multiplicity); | ||
175 | result.append(')'); | ||
176 | return result.toString(); | ||
177 | } | ||
178 | |||
179 | } //ExactMultiplicityImpl | ||