aboutsummaryrefslogtreecommitdiffstats
path: root/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigEntryImpl.java
diff options
context:
space:
mode:
authorLibravatar OszkarSemerath <oszkar.semerath@gmail.com>2018-01-24 01:06:37 +0100
committerLibravatar OszkarSemerath <oszkar.semerath@gmail.com>2018-01-24 01:06:37 +0100
commite55fc0c91990c1de9cfdc02b5859b7419735abd3 (patch)
treeb0f879a78dad307b5f786f0bdee2107ece8b2444 /Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigEntryImpl.java
parentRemoved PQuery from API, IQuerySpecification is used instead (diff)
downloadVIATRA-Generator-e55fc0c91990c1de9cfdc02b5859b7419735abd3.tar.gz
VIATRA-Generator-e55fc0c91990c1de9cfdc02b5859b7419735abd3.tar.zst
VIATRA-Generator-e55fc0c91990c1de9cfdc02b5859b7419735abd3.zip
New Scope format: #String += 2..*
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigEntryImpl.java')
-rw-r--r--Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigEntryImpl.java234
1 files changed, 234 insertions, 0 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigEntryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigEntryImpl.java
new file mode 100644
index 00000000..3ab3d587
--- /dev/null
+++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigEntryImpl.java
@@ -0,0 +1,234 @@
1/**
2 * generated by Xtext 2.10.0
3 */
4package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl;
5
6import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage;
7import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigEntry;
8
9import org.eclipse.emf.common.notify.Notification;
10
11import org.eclipse.emf.ecore.EClass;
12
13import org.eclipse.emf.ecore.impl.ENotificationImpl;
14import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
15
16/**
17 * <!-- begin-user-doc -->
18 * An implementation of the model object '<em><b>Config Entry</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.application.applicationConfiguration.impl.ConfigEntryImpl#getKey <em>Key</em>}</li>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ConfigEntryImpl#getValue <em>Value</em>}</li>
26 * </ul>
27 *
28 * @generated
29 */
30public class ConfigEntryImpl extends MinimalEObjectImpl.Container implements ConfigEntry
31{
32 /**
33 * The default value of the '{@link #getKey() <em>Key</em>}' attribute.
34 * <!-- begin-user-doc -->
35 * <!-- end-user-doc -->
36 * @see #getKey()
37 * @generated
38 * @ordered
39 */
40 protected static final String KEY_EDEFAULT = null;
41
42 /**
43 * The cached value of the '{@link #getKey() <em>Key</em>}' attribute.
44 * <!-- begin-user-doc -->
45 * <!-- end-user-doc -->
46 * @see #getKey()
47 * @generated
48 * @ordered
49 */
50 protected String key = KEY_EDEFAULT;
51
52 /**
53 * The default value of the '{@link #getValue() <em>Value</em>}' attribute.
54 * <!-- begin-user-doc -->
55 * <!-- end-user-doc -->
56 * @see #getValue()
57 * @generated
58 * @ordered
59 */
60 protected static final String VALUE_EDEFAULT = null;
61
62 /**
63 * The cached value of the '{@link #getValue() <em>Value</em>}' attribute.
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @see #getValue()
67 * @generated
68 * @ordered
69 */
70 protected String value = VALUE_EDEFAULT;
71
72 /**
73 * <!-- begin-user-doc -->
74 * <!-- end-user-doc -->
75 * @generated
76 */
77 protected ConfigEntryImpl()
78 {
79 super();
80 }
81
82 /**
83 * <!-- begin-user-doc -->
84 * <!-- end-user-doc -->
85 * @generated
86 */
87 @Override
88 protected EClass eStaticClass()
89 {
90 return ApplicationConfigurationPackage.Literals.CONFIG_ENTRY;
91 }
92
93 /**
94 * <!-- begin-user-doc -->
95 * <!-- end-user-doc -->
96 * @generated
97 */
98 public String getKey()
99 {
100 return key;
101 }
102
103 /**
104 * <!-- begin-user-doc -->
105 * <!-- end-user-doc -->
106 * @generated
107 */
108 public void setKey(String newKey)
109 {
110 String oldKey = key;
111 key = newKey;
112 if (eNotificationRequired())
113 eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.CONFIG_ENTRY__KEY, oldKey, key));
114 }
115
116 /**
117 * <!-- begin-user-doc -->
118 * <!-- end-user-doc -->
119 * @generated
120 */
121 public String getValue()
122 {
123 return value;
124 }
125
126 /**
127 * <!-- begin-user-doc -->
128 * <!-- end-user-doc -->
129 * @generated
130 */
131 public void setValue(String newValue)
132 {
133 String oldValue = value;
134 value = newValue;
135 if (eNotificationRequired())
136 eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.CONFIG_ENTRY__VALUE, oldValue, value));
137 }
138
139 /**
140 * <!-- begin-user-doc -->
141 * <!-- end-user-doc -->
142 * @generated
143 */
144 @Override
145 public Object eGet(int featureID, boolean resolve, boolean coreType)
146 {
147 switch (featureID)
148 {
149 case ApplicationConfigurationPackage.CONFIG_ENTRY__KEY:
150 return getKey();
151 case ApplicationConfigurationPackage.CONFIG_ENTRY__VALUE:
152 return getValue();
153 }
154 return super.eGet(featureID, resolve, coreType);
155 }
156
157 /**
158 * <!-- begin-user-doc -->
159 * <!-- end-user-doc -->
160 * @generated
161 */
162 @Override
163 public void eSet(int featureID, Object newValue)
164 {
165 switch (featureID)
166 {
167 case ApplicationConfigurationPackage.CONFIG_ENTRY__KEY:
168 setKey((String)newValue);
169 return;
170 case ApplicationConfigurationPackage.CONFIG_ENTRY__VALUE:
171 setValue((String)newValue);
172 return;
173 }
174 super.eSet(featureID, newValue);
175 }
176
177 /**
178 * <!-- begin-user-doc -->
179 * <!-- end-user-doc -->
180 * @generated
181 */
182 @Override
183 public void eUnset(int featureID)
184 {
185 switch (featureID)
186 {
187 case ApplicationConfigurationPackage.CONFIG_ENTRY__KEY:
188 setKey(KEY_EDEFAULT);
189 return;
190 case ApplicationConfigurationPackage.CONFIG_ENTRY__VALUE:
191 setValue(VALUE_EDEFAULT);
192 return;
193 }
194 super.eUnset(featureID);
195 }
196
197 /**
198 * <!-- begin-user-doc -->
199 * <!-- end-user-doc -->
200 * @generated
201 */
202 @Override
203 public boolean eIsSet(int featureID)
204 {
205 switch (featureID)
206 {
207 case ApplicationConfigurationPackage.CONFIG_ENTRY__KEY:
208 return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key);
209 case ApplicationConfigurationPackage.CONFIG_ENTRY__VALUE:
210 return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
211 }
212 return super.eIsSet(featureID);
213 }
214
215 /**
216 * <!-- begin-user-doc -->
217 * <!-- end-user-doc -->
218 * @generated
219 */
220 @Override
221 public String toString()
222 {
223 if (eIsProxy()) return super.toString();
224
225 StringBuffer result = new StringBuffer(super.toString());
226 result.append(" (key: ");
227 result.append(key);
228 result.append(", value: ");
229 result.append(value);
230 result.append(')');
231 return result.toString();
232 }
233
234} //ConfigEntryImpl