aboutsummaryrefslogtreecommitdiffstats
path: root/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSigScopeImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSigScopeImpl.java')
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSigScopeImpl.java243
1 files changed, 0 insertions, 243 deletions
diff --git a/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSigScopeImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSigScopeImpl.java
deleted file mode 100644
index 18f22c3f..00000000
--- a/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSigScopeImpl.java
+++ /dev/null
@@ -1,243 +0,0 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSSigScope;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSSignatureDeclaration;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10
11import org.eclipse.emf.ecore.EClass;
12import org.eclipse.emf.ecore.InternalEObject;
13
14import org.eclipse.emf.ecore.impl.ENotificationImpl;
15
16/**
17 * <!-- begin-user-doc -->
18 * An implementation of the model object '<em><b>ALS Sig Scope</b></em>'.
19 * <!-- end-user-doc -->
20 * <p>
21 * The following features are implemented:
22 * </p>
23 * <ul>
24 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSSigScopeImpl#isExactly <em>Exactly</em>}</li>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSSigScopeImpl#getType <em>Type</em>}</li>
26 * </ul>
27 *
28 * @generated
29 */
30public class ALSSigScopeImpl extends ALSTypeScopeImpl implements ALSSigScope
31{
32 /**
33 * The default value of the '{@link #isExactly() <em>Exactly</em>}' attribute.
34 * <!-- begin-user-doc -->
35 * <!-- end-user-doc -->
36 * @see #isExactly()
37 * @generated
38 * @ordered
39 */
40 protected static final boolean EXACTLY_EDEFAULT = false;
41
42 /**
43 * The cached value of the '{@link #isExactly() <em>Exactly</em>}' attribute.
44 * <!-- begin-user-doc -->
45 * <!-- end-user-doc -->
46 * @see #isExactly()
47 * @generated
48 * @ordered
49 */
50 protected boolean exactly = EXACTLY_EDEFAULT;
51
52 /**
53 * The cached value of the '{@link #getType() <em>Type</em>}' reference.
54 * <!-- begin-user-doc -->
55 * <!-- end-user-doc -->
56 * @see #getType()
57 * @generated
58 * @ordered
59 */
60 protected ALSSignatureDeclaration type;
61
62 /**
63 * <!-- begin-user-doc -->
64 * <!-- end-user-doc -->
65 * @generated
66 */
67 protected ALSSigScopeImpl()
68 {
69 super();
70 }
71
72 /**
73 * <!-- begin-user-doc -->
74 * <!-- end-user-doc -->
75 * @generated
76 */
77 @Override
78 protected EClass eStaticClass()
79 {
80 return AlloyLanguagePackage.Literals.ALS_SIG_SCOPE;
81 }
82
83 /**
84 * <!-- begin-user-doc -->
85 * <!-- end-user-doc -->
86 * @generated
87 */
88 public boolean isExactly()
89 {
90 return exactly;
91 }
92
93 /**
94 * <!-- begin-user-doc -->
95 * <!-- end-user-doc -->
96 * @generated
97 */
98 public void setExactly(boolean newExactly)
99 {
100 boolean oldExactly = exactly;
101 exactly = newExactly;
102 if (eNotificationRequired())
103 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_SIG_SCOPE__EXACTLY, oldExactly, exactly));
104 }
105
106 /**
107 * <!-- begin-user-doc -->
108 * <!-- end-user-doc -->
109 * @generated
110 */
111 public ALSSignatureDeclaration getType()
112 {
113 if (type != null && type.eIsProxy())
114 {
115 InternalEObject oldType = (InternalEObject)type;
116 type = (ALSSignatureDeclaration)eResolveProxy(oldType);
117 if (type != oldType)
118 {
119 if (eNotificationRequired())
120 eNotify(new ENotificationImpl(this, Notification.RESOLVE, AlloyLanguagePackage.ALS_SIG_SCOPE__TYPE, oldType, type));
121 }
122 }
123 return type;
124 }
125
126 /**
127 * <!-- begin-user-doc -->
128 * <!-- end-user-doc -->
129 * @generated
130 */
131 public ALSSignatureDeclaration basicGetType()
132 {
133 return type;
134 }
135
136 /**
137 * <!-- begin-user-doc -->
138 * <!-- end-user-doc -->
139 * @generated
140 */
141 public void setType(ALSSignatureDeclaration newType)
142 {
143 ALSSignatureDeclaration oldType = type;
144 type = newType;
145 if (eNotificationRequired())
146 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_SIG_SCOPE__TYPE, oldType, type));
147 }
148
149 /**
150 * <!-- begin-user-doc -->
151 * <!-- end-user-doc -->
152 * @generated
153 */
154 @Override
155 public Object eGet(int featureID, boolean resolve, boolean coreType)
156 {
157 switch (featureID)
158 {
159 case AlloyLanguagePackage.ALS_SIG_SCOPE__EXACTLY:
160 return isExactly();
161 case AlloyLanguagePackage.ALS_SIG_SCOPE__TYPE:
162 if (resolve) return getType();
163 return basicGetType();
164 }
165 return super.eGet(featureID, resolve, coreType);
166 }
167
168 /**
169 * <!-- begin-user-doc -->
170 * <!-- end-user-doc -->
171 * @generated
172 */
173 @Override
174 public void eSet(int featureID, Object newValue)
175 {
176 switch (featureID)
177 {
178 case AlloyLanguagePackage.ALS_SIG_SCOPE__EXACTLY:
179 setExactly((Boolean)newValue);
180 return;
181 case AlloyLanguagePackage.ALS_SIG_SCOPE__TYPE:
182 setType((ALSSignatureDeclaration)newValue);
183 return;
184 }
185 super.eSet(featureID, newValue);
186 }
187
188 /**
189 * <!-- begin-user-doc -->
190 * <!-- end-user-doc -->
191 * @generated
192 */
193 @Override
194 public void eUnset(int featureID)
195 {
196 switch (featureID)
197 {
198 case AlloyLanguagePackage.ALS_SIG_SCOPE__EXACTLY:
199 setExactly(EXACTLY_EDEFAULT);
200 return;
201 case AlloyLanguagePackage.ALS_SIG_SCOPE__TYPE:
202 setType((ALSSignatureDeclaration)null);
203 return;
204 }
205 super.eUnset(featureID);
206 }
207
208 /**
209 * <!-- begin-user-doc -->
210 * <!-- end-user-doc -->
211 * @generated
212 */
213 @Override
214 public boolean eIsSet(int featureID)
215 {
216 switch (featureID)
217 {
218 case AlloyLanguagePackage.ALS_SIG_SCOPE__EXACTLY:
219 return exactly != EXACTLY_EDEFAULT;
220 case AlloyLanguagePackage.ALS_SIG_SCOPE__TYPE:
221 return type != null;
222 }
223 return super.eIsSet(featureID);
224 }
225
226 /**
227 * <!-- begin-user-doc -->
228 * <!-- end-user-doc -->
229 * @generated
230 */
231 @Override
232 public String toString()
233 {
234 if (eIsProxy()) return super.toString();
235
236 StringBuffer result = new StringBuffer(super.toString());
237 result.append(" (exactly: ");
238 result.append(exactly);
239 result.append(')');
240 return result.toString();
241 }
242
243} //ALSSigScopeImpl