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