aboutsummaryrefslogtreecommitdiffstats
path: root/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSInverseRelationImpl.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/ALSInverseRelationImpl.java')
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSInverseRelationImpl.java193
1 files changed, 0 insertions, 193 deletions
diff --git a/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSInverseRelationImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSInverseRelationImpl.java
deleted file mode 100644
index 916ba94f..00000000
--- a/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSInverseRelationImpl.java
+++ /dev/null
@@ -1,193 +0,0 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSInverseRelation;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>ALS Inverse Relation</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSInverseRelationImpl#getOperand <em>Operand</em>}</li>
26 * </ul>
27 *
28 * @generated
29 */
30public class ALSInverseRelationImpl extends ALSTermImpl implements ALSInverseRelation
31{
32 /**
33 * The cached value of the '{@link #getOperand() <em>Operand</em>}' containment reference.
34 * <!-- begin-user-doc -->
35 * <!-- end-user-doc -->
36 * @see #getOperand()
37 * @generated
38 * @ordered
39 */
40 protected ALSTerm operand;
41
42 /**
43 * <!-- begin-user-doc -->
44 * <!-- end-user-doc -->
45 * @generated
46 */
47 protected ALSInverseRelationImpl()
48 {
49 super();
50 }
51
52 /**
53 * <!-- begin-user-doc -->
54 * <!-- end-user-doc -->
55 * @generated
56 */
57 @Override
58 protected EClass eStaticClass()
59 {
60 return AlloyLanguagePackage.Literals.ALS_INVERSE_RELATION;
61 }
62
63 /**
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 public ALSTerm getOperand()
69 {
70 return operand;
71 }
72
73 /**
74 * <!-- begin-user-doc -->
75 * <!-- end-user-doc -->
76 * @generated
77 */
78 public NotificationChain basicSetOperand(ALSTerm newOperand, NotificationChain msgs)
79 {
80 ALSTerm oldOperand = operand;
81 operand = newOperand;
82 if (eNotificationRequired())
83 {
84 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_INVERSE_RELATION__OPERAND, oldOperand, newOperand);
85 if (msgs == null) msgs = notification; else msgs.add(notification);
86 }
87 return msgs;
88 }
89
90 /**
91 * <!-- begin-user-doc -->
92 * <!-- end-user-doc -->
93 * @generated
94 */
95 public void setOperand(ALSTerm newOperand)
96 {
97 if (newOperand != operand)
98 {
99 NotificationChain msgs = null;
100 if (operand != null)
101 msgs = ((InternalEObject)operand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_INVERSE_RELATION__OPERAND, null, msgs);
102 if (newOperand != null)
103 msgs = ((InternalEObject)newOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_INVERSE_RELATION__OPERAND, null, msgs);
104 msgs = basicSetOperand(newOperand, msgs);
105 if (msgs != null) msgs.dispatch();
106 }
107 else if (eNotificationRequired())
108 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_INVERSE_RELATION__OPERAND, newOperand, newOperand));
109 }
110
111 /**
112 * <!-- begin-user-doc -->
113 * <!-- end-user-doc -->
114 * @generated
115 */
116 @Override
117 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
118 {
119 switch (featureID)
120 {
121 case AlloyLanguagePackage.ALS_INVERSE_RELATION__OPERAND:
122 return basicSetOperand(null, msgs);
123 }
124 return super.eInverseRemove(otherEnd, featureID, msgs);
125 }
126
127 /**
128 * <!-- begin-user-doc -->
129 * <!-- end-user-doc -->
130 * @generated
131 */
132 @Override
133 public Object eGet(int featureID, boolean resolve, boolean coreType)
134 {
135 switch (featureID)
136 {
137 case AlloyLanguagePackage.ALS_INVERSE_RELATION__OPERAND:
138 return getOperand();
139 }
140 return super.eGet(featureID, resolve, coreType);
141 }
142
143 /**
144 * <!-- begin-user-doc -->
145 * <!-- end-user-doc -->
146 * @generated
147 */
148 @Override
149 public void eSet(int featureID, Object newValue)
150 {
151 switch (featureID)
152 {
153 case AlloyLanguagePackage.ALS_INVERSE_RELATION__OPERAND:
154 setOperand((ALSTerm)newValue);
155 return;
156 }
157 super.eSet(featureID, newValue);
158 }
159
160 /**
161 * <!-- begin-user-doc -->
162 * <!-- end-user-doc -->
163 * @generated
164 */
165 @Override
166 public void eUnset(int featureID)
167 {
168 switch (featureID)
169 {
170 case AlloyLanguagePackage.ALS_INVERSE_RELATION__OPERAND:
171 setOperand((ALSTerm)null);
172 return;
173 }
174 super.eUnset(featureID);
175 }
176
177 /**
178 * <!-- begin-user-doc -->
179 * <!-- end-user-doc -->
180 * @generated
181 */
182 @Override
183 public boolean eIsSet(int featureID)
184 {
185 switch (featureID)
186 {
187 case AlloyLanguagePackage.ALS_INVERSE_RELATION__OPERAND:
188 return operand != null;
189 }
190 return super.eIsSet(featureID);
191 }
192
193} //ALSInverseRelationImpl