|
Added
Link Here
|
| 1 |
/** |
| 2 |
* <copyright> |
| 3 |
* </copyright> |
| 4 |
* |
| 5 |
* $Id$ |
| 6 |
*/ |
| 7 |
package org.eclipse.emf.test.models.dynamicDelegation.impl.none; |
| 8 |
|
| 9 |
import org.eclipse.emf.common.notify.Notification; |
| 10 |
import org.eclipse.emf.common.notify.NotificationChain; |
| 11 |
|
| 12 |
import org.eclipse.emf.ecore.EClass; |
| 13 |
import org.eclipse.emf.ecore.InternalEObject; |
| 14 |
|
| 15 |
import org.eclipse.emf.ecore.impl.ENotificationImpl; |
| 16 |
import org.eclipse.emf.ecore.impl.EObjectImpl; |
| 17 |
|
| 18 |
import org.eclipse.emf.test.models.dynamicDelegation.Class0; |
| 19 |
import org.eclipse.emf.test.models.dynamicDelegation.Class1; |
| 20 |
import org.eclipse.emf.test.models.dynamicDelegation.DynamicDelegationPackage; |
| 21 |
|
| 22 |
/** |
| 23 |
* <!-- begin-user-doc --> |
| 24 |
* An implementation of the model object '<em><b>Class0</b></em>'. |
| 25 |
* <!-- end-user-doc --> |
| 26 |
* <p> |
| 27 |
* The following features are implemented: |
| 28 |
* <ul> |
| 29 |
* <li>{@link org.eclipse.emf.test.models.dynamicDelegation.impl.none.Class0Impl#isTestBoolean <em>Test Boolean</em>}</li> |
| 30 |
* <li>{@link org.eclipse.emf.test.models.dynamicDelegation.impl.none.Class0Impl#getTestByte <em>Test Byte</em>}</li> |
| 31 |
* <li>{@link org.eclipse.emf.test.models.dynamicDelegation.impl.none.Class0Impl#getTestChar <em>Test Char</em>}</li> |
| 32 |
* <li>{@link org.eclipse.emf.test.models.dynamicDelegation.impl.none.Class0Impl#getTestDouble <em>Test Double</em>}</li> |
| 33 |
* <li>{@link org.eclipse.emf.test.models.dynamicDelegation.impl.none.Class0Impl#getTestFloat <em>Test Float</em>}</li> |
| 34 |
* <li>{@link org.eclipse.emf.test.models.dynamicDelegation.impl.none.Class0Impl#getTestInt <em>Test Int</em>}</li> |
| 35 |
* <li>{@link org.eclipse.emf.test.models.dynamicDelegation.impl.none.Class0Impl#getTestLong <em>Test Long</em>}</li> |
| 36 |
* <li>{@link org.eclipse.emf.test.models.dynamicDelegation.impl.none.Class0Impl#getTestShort <em>Test Short</em>}</li> |
| 37 |
* <li>{@link org.eclipse.emf.test.models.dynamicDelegation.impl.none.Class0Impl#getClass1 <em>Class1</em>}</li> |
| 38 |
* </ul> |
| 39 |
* </p> |
| 40 |
* |
| 41 |
* @generated |
| 42 |
*/ |
| 43 |
public class Class0Impl extends EObjectImpl implements Class0 { |
| 44 |
/** |
| 45 |
* The default value of the '{@link #isTestBoolean() <em>Test Boolean</em>}' attribute. |
| 46 |
* <!-- begin-user-doc --> |
| 47 |
* <!-- end-user-doc --> |
| 48 |
* @see #isTestBoolean() |
| 49 |
* @generated |
| 50 |
* @ordered |
| 51 |
*/ |
| 52 |
protected static final boolean TEST_BOOLEAN_EDEFAULT = false; |
| 53 |
/** |
| 54 |
* The cached value of the '{@link #isTestBoolean() <em>Test Boolean</em>}' attribute. |
| 55 |
* <!-- begin-user-doc --> |
| 56 |
* <!-- end-user-doc --> |
| 57 |
* @see #isTestBoolean() |
| 58 |
* @generated |
| 59 |
* @ordered |
| 60 |
*/ |
| 61 |
protected boolean testBoolean = TEST_BOOLEAN_EDEFAULT; |
| 62 |
/** |
| 63 |
* The default value of the '{@link #getTestByte() <em>Test Byte</em>}' attribute. |
| 64 |
* <!-- begin-user-doc --> |
| 65 |
* <!-- end-user-doc --> |
| 66 |
* @see #getTestByte() |
| 67 |
* @generated |
| 68 |
* @ordered |
| 69 |
*/ |
| 70 |
protected static final byte TEST_BYTE_EDEFAULT = 0x00; |
| 71 |
/** |
| 72 |
* The cached value of the '{@link #getTestByte() <em>Test Byte</em>}' attribute. |
| 73 |
* <!-- begin-user-doc --> |
| 74 |
* <!-- end-user-doc --> |
| 75 |
* @see #getTestByte() |
| 76 |
* @generated |
| 77 |
* @ordered |
| 78 |
*/ |
| 79 |
protected byte testByte = TEST_BYTE_EDEFAULT; |
| 80 |
/** |
| 81 |
* The default value of the '{@link #getTestChar() <em>Test Char</em>}' attribute. |
| 82 |
* <!-- begin-user-doc --> |
| 83 |
* <!-- end-user-doc --> |
| 84 |
* @see #getTestChar() |
| 85 |
* @generated |
| 86 |
* @ordered |
| 87 |
*/ |
| 88 |
protected static final char TEST_CHAR_EDEFAULT = '\u0000'; |
| 89 |
/** |
| 90 |
* The cached value of the '{@link #getTestChar() <em>Test Char</em>}' attribute. |
| 91 |
* <!-- begin-user-doc --> |
| 92 |
* <!-- end-user-doc --> |
| 93 |
* @see #getTestChar() |
| 94 |
* @generated |
| 95 |
* @ordered |
| 96 |
*/ |
| 97 |
protected char testChar = TEST_CHAR_EDEFAULT; |
| 98 |
/** |
| 99 |
* The default value of the '{@link #getTestDouble() <em>Test Double</em>}' attribute. |
| 100 |
* <!-- begin-user-doc --> |
| 101 |
* <!-- end-user-doc --> |
| 102 |
* @see #getTestDouble() |
| 103 |
* @generated |
| 104 |
* @ordered |
| 105 |
*/ |
| 106 |
protected static final double TEST_DOUBLE_EDEFAULT = 0.0; |
| 107 |
/** |
| 108 |
* The cached value of the '{@link #getTestDouble() <em>Test Double</em>}' attribute. |
| 109 |
* <!-- begin-user-doc --> |
| 110 |
* <!-- end-user-doc --> |
| 111 |
* @see #getTestDouble() |
| 112 |
* @generated |
| 113 |
* @ordered |
| 114 |
*/ |
| 115 |
protected double testDouble = TEST_DOUBLE_EDEFAULT; |
| 116 |
/** |
| 117 |
* The default value of the '{@link #getTestFloat() <em>Test Float</em>}' attribute. |
| 118 |
* <!-- begin-user-doc --> |
| 119 |
* <!-- end-user-doc --> |
| 120 |
* @see #getTestFloat() |
| 121 |
* @generated |
| 122 |
* @ordered |
| 123 |
*/ |
| 124 |
protected static final float TEST_FLOAT_EDEFAULT = 0.0F; |
| 125 |
/** |
| 126 |
* The cached value of the '{@link #getTestFloat() <em>Test Float</em>}' attribute. |
| 127 |
* <!-- begin-user-doc --> |
| 128 |
* <!-- end-user-doc --> |
| 129 |
* @see #getTestFloat() |
| 130 |
* @generated |
| 131 |
* @ordered |
| 132 |
*/ |
| 133 |
protected float testFloat = TEST_FLOAT_EDEFAULT; |
| 134 |
/** |
| 135 |
* The default value of the '{@link #getTestInt() <em>Test Int</em>}' attribute. |
| 136 |
* <!-- begin-user-doc --> |
| 137 |
* <!-- end-user-doc --> |
| 138 |
* @see #getTestInt() |
| 139 |
* @generated |
| 140 |
* @ordered |
| 141 |
*/ |
| 142 |
protected static final int TEST_INT_EDEFAULT = 0; |
| 143 |
/** |
| 144 |
* The cached value of the '{@link #getTestInt() <em>Test Int</em>}' attribute. |
| 145 |
* <!-- begin-user-doc --> |
| 146 |
* <!-- end-user-doc --> |
| 147 |
* @see #getTestInt() |
| 148 |
* @generated |
| 149 |
* @ordered |
| 150 |
*/ |
| 151 |
protected int testInt = TEST_INT_EDEFAULT; |
| 152 |
/** |
| 153 |
* The default value of the '{@link #getTestLong() <em>Test Long</em>}' attribute. |
| 154 |
* <!-- begin-user-doc --> |
| 155 |
* <!-- end-user-doc --> |
| 156 |
* @see #getTestLong() |
| 157 |
* @generated |
| 158 |
* @ordered |
| 159 |
*/ |
| 160 |
protected static final long TEST_LONG_EDEFAULT = 0L; |
| 161 |
/** |
| 162 |
* The cached value of the '{@link #getTestLong() <em>Test Long</em>}' attribute. |
| 163 |
* <!-- begin-user-doc --> |
| 164 |
* <!-- end-user-doc --> |
| 165 |
* @see #getTestLong() |
| 166 |
* @generated |
| 167 |
* @ordered |
| 168 |
*/ |
| 169 |
protected long testLong = TEST_LONG_EDEFAULT; |
| 170 |
/** |
| 171 |
* The default value of the '{@link #getTestShort() <em>Test Short</em>}' attribute. |
| 172 |
* <!-- begin-user-doc --> |
| 173 |
* <!-- end-user-doc --> |
| 174 |
* @see #getTestShort() |
| 175 |
* @generated |
| 176 |
* @ordered |
| 177 |
*/ |
| 178 |
protected static final short TEST_SHORT_EDEFAULT = 0; |
| 179 |
/** |
| 180 |
* The cached value of the '{@link #getTestShort() <em>Test Short</em>}' attribute. |
| 181 |
* <!-- begin-user-doc --> |
| 182 |
* <!-- end-user-doc --> |
| 183 |
* @see #getTestShort() |
| 184 |
* @generated |
| 185 |
* @ordered |
| 186 |
*/ |
| 187 |
protected short testShort = TEST_SHORT_EDEFAULT; |
| 188 |
/** |
| 189 |
* The cached value of the '{@link #getClass1() <em>Class1</em>}' containment reference. |
| 190 |
* <!-- begin-user-doc --> |
| 191 |
* <!-- end-user-doc --> |
| 192 |
* @see #getClass1() |
| 193 |
* @generated |
| 194 |
* @ordered |
| 195 |
*/ |
| 196 |
protected Class1 class1; |
| 197 |
/** |
| 198 |
* <!-- begin-user-doc --> |
| 199 |
* <!-- end-user-doc --> |
| 200 |
* @generated |
| 201 |
*/ |
| 202 |
protected Class0Impl() { |
| 203 |
super(); |
| 204 |
} |
| 205 |
|
| 206 |
/** |
| 207 |
* <!-- begin-user-doc --> |
| 208 |
* <!-- end-user-doc --> |
| 209 |
* @generated |
| 210 |
*/ |
| 211 |
@Override |
| 212 |
protected EClass eStaticClass() { |
| 213 |
return DynamicDelegationPackage.Literals.CLASS0; |
| 214 |
} |
| 215 |
|
| 216 |
/** |
| 217 |
* <!-- begin-user-doc --> |
| 218 |
* <!-- end-user-doc --> |
| 219 |
* @generated |
| 220 |
*/ |
| 221 |
public boolean isTestBoolean() { |
| 222 |
return testBoolean; |
| 223 |
} |
| 224 |
|
| 225 |
/** |
| 226 |
* <!-- begin-user-doc --> |
| 227 |
* <!-- end-user-doc --> |
| 228 |
* @generated |
| 229 |
*/ |
| 230 |
public void setTestBoolean(boolean newTestBoolean) { |
| 231 |
boolean oldTestBoolean = testBoolean; |
| 232 |
testBoolean = newTestBoolean; |
| 233 |
if (eNotificationRequired()) |
| 234 |
eNotify(new ENotificationImpl(this, Notification.SET, DynamicDelegationPackage.CLASS0__TEST_BOOLEAN, oldTestBoolean, testBoolean)); |
| 235 |
} |
| 236 |
|
| 237 |
/** |
| 238 |
* <!-- begin-user-doc --> |
| 239 |
* <!-- end-user-doc --> |
| 240 |
* @generated |
| 241 |
*/ |
| 242 |
public byte getTestByte() { |
| 243 |
return testByte; |
| 244 |
} |
| 245 |
|
| 246 |
/** |
| 247 |
* <!-- begin-user-doc --> |
| 248 |
* <!-- end-user-doc --> |
| 249 |
* @generated |
| 250 |
*/ |
| 251 |
public void setTestByte(byte newTestByte) { |
| 252 |
byte oldTestByte = testByte; |
| 253 |
testByte = newTestByte; |
| 254 |
if (eNotificationRequired()) |
| 255 |
eNotify(new ENotificationImpl(this, Notification.SET, DynamicDelegationPackage.CLASS0__TEST_BYTE, oldTestByte, testByte)); |
| 256 |
} |
| 257 |
|
| 258 |
/** |
| 259 |
* <!-- begin-user-doc --> |
| 260 |
* <!-- end-user-doc --> |
| 261 |
* @generated |
| 262 |
*/ |
| 263 |
public char getTestChar() { |
| 264 |
return testChar; |
| 265 |
} |
| 266 |
|
| 267 |
/** |
| 268 |
* <!-- begin-user-doc --> |
| 269 |
* <!-- end-user-doc --> |
| 270 |
* @generated |
| 271 |
*/ |
| 272 |
public void setTestChar(char newTestChar) { |
| 273 |
char oldTestChar = testChar; |
| 274 |
testChar = newTestChar; |
| 275 |
if (eNotificationRequired()) |
| 276 |
eNotify(new ENotificationImpl(this, Notification.SET, DynamicDelegationPackage.CLASS0__TEST_CHAR, oldTestChar, testChar)); |
| 277 |
} |
| 278 |
|
| 279 |
/** |
| 280 |
* <!-- begin-user-doc --> |
| 281 |
* <!-- end-user-doc --> |
| 282 |
* @generated |
| 283 |
*/ |
| 284 |
public double getTestDouble() { |
| 285 |
return testDouble; |
| 286 |
} |
| 287 |
|
| 288 |
/** |
| 289 |
* <!-- begin-user-doc --> |
| 290 |
* <!-- end-user-doc --> |
| 291 |
* @generated |
| 292 |
*/ |
| 293 |
public void setTestDouble(double newTestDouble) { |
| 294 |
double oldTestDouble = testDouble; |
| 295 |
testDouble = newTestDouble; |
| 296 |
if (eNotificationRequired()) |
| 297 |
eNotify(new ENotificationImpl(this, Notification.SET, DynamicDelegationPackage.CLASS0__TEST_DOUBLE, oldTestDouble, testDouble)); |
| 298 |
} |
| 299 |
|
| 300 |
/** |
| 301 |
* <!-- begin-user-doc --> |
| 302 |
* <!-- end-user-doc --> |
| 303 |
* @generated |
| 304 |
*/ |
| 305 |
public float getTestFloat() { |
| 306 |
return testFloat; |
| 307 |
} |
| 308 |
|
| 309 |
/** |
| 310 |
* <!-- begin-user-doc --> |
| 311 |
* <!-- end-user-doc --> |
| 312 |
* @generated |
| 313 |
*/ |
| 314 |
public void setTestFloat(float newTestFloat) { |
| 315 |
float oldTestFloat = testFloat; |
| 316 |
testFloat = newTestFloat; |
| 317 |
if (eNotificationRequired()) |
| 318 |
eNotify(new ENotificationImpl(this, Notification.SET, DynamicDelegationPackage.CLASS0__TEST_FLOAT, oldTestFloat, testFloat)); |
| 319 |
} |
| 320 |
|
| 321 |
/** |
| 322 |
* <!-- begin-user-doc --> |
| 323 |
* <!-- end-user-doc --> |
| 324 |
* @generated |
| 325 |
*/ |
| 326 |
public int getTestInt() { |
| 327 |
return testInt; |
| 328 |
} |
| 329 |
|
| 330 |
/** |
| 331 |
* <!-- begin-user-doc --> |
| 332 |
* <!-- end-user-doc --> |
| 333 |
* @generated |
| 334 |
*/ |
| 335 |
public void setTestInt(int newTestInt) { |
| 336 |
int oldTestInt = testInt; |
| 337 |
testInt = newTestInt; |
| 338 |
if (eNotificationRequired()) |
| 339 |
eNotify(new ENotificationImpl(this, Notification.SET, DynamicDelegationPackage.CLASS0__TEST_INT, oldTestInt, testInt)); |
| 340 |
} |
| 341 |
|
| 342 |
/** |
| 343 |
* <!-- begin-user-doc --> |
| 344 |
* <!-- end-user-doc --> |
| 345 |
* @generated |
| 346 |
*/ |
| 347 |
public long getTestLong() { |
| 348 |
return testLong; |
| 349 |
} |
| 350 |
|
| 351 |
/** |
| 352 |
* <!-- begin-user-doc --> |
| 353 |
* <!-- end-user-doc --> |
| 354 |
* @generated |
| 355 |
*/ |
| 356 |
public void setTestLong(long newTestLong) { |
| 357 |
long oldTestLong = testLong; |
| 358 |
testLong = newTestLong; |
| 359 |
if (eNotificationRequired()) |
| 360 |
eNotify(new ENotificationImpl(this, Notification.SET, DynamicDelegationPackage.CLASS0__TEST_LONG, oldTestLong, testLong)); |
| 361 |
} |
| 362 |
|
| 363 |
/** |
| 364 |
* <!-- begin-user-doc --> |
| 365 |
* <!-- end-user-doc --> |
| 366 |
* @generated |
| 367 |
*/ |
| 368 |
public short getTestShort() { |
| 369 |
return testShort; |
| 370 |
} |
| 371 |
|
| 372 |
/** |
| 373 |
* <!-- begin-user-doc --> |
| 374 |
* <!-- end-user-doc --> |
| 375 |
* @generated |
| 376 |
*/ |
| 377 |
public void setTestShort(short newTestShort) { |
| 378 |
short oldTestShort = testShort; |
| 379 |
testShort = newTestShort; |
| 380 |
if (eNotificationRequired()) |
| 381 |
eNotify(new ENotificationImpl(this, Notification.SET, DynamicDelegationPackage.CLASS0__TEST_SHORT, oldTestShort, testShort)); |
| 382 |
} |
| 383 |
|
| 384 |
/** |
| 385 |
* <!-- begin-user-doc --> |
| 386 |
* <!-- end-user-doc --> |
| 387 |
* @generated |
| 388 |
*/ |
| 389 |
public Class1 getClass1() { |
| 390 |
return class1; |
| 391 |
} |
| 392 |
|
| 393 |
/** |
| 394 |
* <!-- begin-user-doc --> |
| 395 |
* <!-- end-user-doc --> |
| 396 |
* @generated |
| 397 |
*/ |
| 398 |
public NotificationChain basicSetClass1(Class1 newClass1, NotificationChain msgs) { |
| 399 |
Class1 oldClass1 = class1; |
| 400 |
class1 = newClass1; |
| 401 |
if (eNotificationRequired()) { |
| 402 |
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DynamicDelegationPackage.CLASS0__CLASS1, oldClass1, newClass1); |
| 403 |
if (msgs == null) msgs = notification; else msgs.add(notification); |
| 404 |
} |
| 405 |
return msgs; |
| 406 |
} |
| 407 |
|
| 408 |
/** |
| 409 |
* <!-- begin-user-doc --> |
| 410 |
* <!-- end-user-doc --> |
| 411 |
* @generated |
| 412 |
*/ |
| 413 |
public void setClass1(Class1 newClass1) { |
| 414 |
if (newClass1 != class1) { |
| 415 |
NotificationChain msgs = null; |
| 416 |
if (class1 != null) |
| 417 |
msgs = ((InternalEObject)class1).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DynamicDelegationPackage.CLASS0__CLASS1, null, msgs); |
| 418 |
if (newClass1 != null) |
| 419 |
msgs = ((InternalEObject)newClass1).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DynamicDelegationPackage.CLASS0__CLASS1, null, msgs); |
| 420 |
msgs = basicSetClass1(newClass1, msgs); |
| 421 |
if (msgs != null) msgs.dispatch(); |
| 422 |
} |
| 423 |
else if (eNotificationRequired()) |
| 424 |
eNotify(new ENotificationImpl(this, Notification.SET, DynamicDelegationPackage.CLASS0__CLASS1, newClass1, newClass1)); |
| 425 |
} |
| 426 |
|
| 427 |
/** |
| 428 |
* <!-- begin-user-doc --> |
| 429 |
* <!-- end-user-doc --> |
| 430 |
* @generated |
| 431 |
*/ |
| 432 |
@Override |
| 433 |
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
| 434 |
switch (featureID) { |
| 435 |
case DynamicDelegationPackage.CLASS0__CLASS1: |
| 436 |
return basicSetClass1(null, msgs); |
| 437 |
} |
| 438 |
return super.eInverseRemove(otherEnd, featureID, msgs); |
| 439 |
} |
| 440 |
|
| 441 |
/** |
| 442 |
* <!-- begin-user-doc --> |
| 443 |
* <!-- end-user-doc --> |
| 444 |
* @generated |
| 445 |
*/ |
| 446 |
@Override |
| 447 |
public Object eGet(int featureID, boolean resolve, boolean coreType) { |
| 448 |
switch (featureID) { |
| 449 |
case DynamicDelegationPackage.CLASS0__TEST_BOOLEAN: |
| 450 |
return isTestBoolean(); |
| 451 |
case DynamicDelegationPackage.CLASS0__TEST_BYTE: |
| 452 |
return getTestByte(); |
| 453 |
case DynamicDelegationPackage.CLASS0__TEST_CHAR: |
| 454 |
return getTestChar(); |
| 455 |
case DynamicDelegationPackage.CLASS0__TEST_DOUBLE: |
| 456 |
return getTestDouble(); |
| 457 |
case DynamicDelegationPackage.CLASS0__TEST_FLOAT: |
| 458 |
return getTestFloat(); |
| 459 |
case DynamicDelegationPackage.CLASS0__TEST_INT: |
| 460 |
return getTestInt(); |
| 461 |
case DynamicDelegationPackage.CLASS0__TEST_LONG: |
| 462 |
return getTestLong(); |
| 463 |
case DynamicDelegationPackage.CLASS0__TEST_SHORT: |
| 464 |
return getTestShort(); |
| 465 |
case DynamicDelegationPackage.CLASS0__CLASS1: |
| 466 |
return getClass1(); |
| 467 |
} |
| 468 |
return super.eGet(featureID, resolve, coreType); |
| 469 |
} |
| 470 |
|
| 471 |
/** |
| 472 |
* <!-- begin-user-doc --> |
| 473 |
* <!-- end-user-doc --> |
| 474 |
* @generated |
| 475 |
*/ |
| 476 |
@Override |
| 477 |
public void eSet(int featureID, Object newValue) { |
| 478 |
switch (featureID) { |
| 479 |
case DynamicDelegationPackage.CLASS0__TEST_BOOLEAN: |
| 480 |
setTestBoolean((Boolean)newValue); |
| 481 |
return; |
| 482 |
case DynamicDelegationPackage.CLASS0__TEST_BYTE: |
| 483 |
setTestByte((Byte)newValue); |
| 484 |
return; |
| 485 |
case DynamicDelegationPackage.CLASS0__TEST_CHAR: |
| 486 |
setTestChar((Character)newValue); |
| 487 |
return; |
| 488 |
case DynamicDelegationPackage.CLASS0__TEST_DOUBLE: |
| 489 |
setTestDouble((Double)newValue); |
| 490 |
return; |
| 491 |
case DynamicDelegationPackage.CLASS0__TEST_FLOAT: |
| 492 |
setTestFloat((Float)newValue); |
| 493 |
return; |
| 494 |
case DynamicDelegationPackage.CLASS0__TEST_INT: |
| 495 |
setTestInt((Integer)newValue); |
| 496 |
return; |
| 497 |
case DynamicDelegationPackage.CLASS0__TEST_LONG: |
| 498 |
setTestLong((Long)newValue); |
| 499 |
return; |
| 500 |
case DynamicDelegationPackage.CLASS0__TEST_SHORT: |
| 501 |
setTestShort((Short)newValue); |
| 502 |
return; |
| 503 |
case DynamicDelegationPackage.CLASS0__CLASS1: |
| 504 |
setClass1((Class1)newValue); |
| 505 |
return; |
| 506 |
} |
| 507 |
super.eSet(featureID, newValue); |
| 508 |
} |
| 509 |
|
| 510 |
/** |
| 511 |
* <!-- begin-user-doc --> |
| 512 |
* <!-- end-user-doc --> |
| 513 |
* @generated |
| 514 |
*/ |
| 515 |
@Override |
| 516 |
public void eUnset(int featureID) { |
| 517 |
switch (featureID) { |
| 518 |
case DynamicDelegationPackage.CLASS0__TEST_BOOLEAN: |
| 519 |
setTestBoolean(TEST_BOOLEAN_EDEFAULT); |
| 520 |
return; |
| 521 |
case DynamicDelegationPackage.CLASS0__TEST_BYTE: |
| 522 |
setTestByte(TEST_BYTE_EDEFAULT); |
| 523 |
return; |
| 524 |
case DynamicDelegationPackage.CLASS0__TEST_CHAR: |
| 525 |
setTestChar(TEST_CHAR_EDEFAULT); |
| 526 |
return; |
| 527 |
case DynamicDelegationPackage.CLASS0__TEST_DOUBLE: |
| 528 |
setTestDouble(TEST_DOUBLE_EDEFAULT); |
| 529 |
return; |
| 530 |
case DynamicDelegationPackage.CLASS0__TEST_FLOAT: |
| 531 |
setTestFloat(TEST_FLOAT_EDEFAULT); |
| 532 |
return; |
| 533 |
case DynamicDelegationPackage.CLASS0__TEST_INT: |
| 534 |
setTestInt(TEST_INT_EDEFAULT); |
| 535 |
return; |
| 536 |
case DynamicDelegationPackage.CLASS0__TEST_LONG: |
| 537 |
setTestLong(TEST_LONG_EDEFAULT); |
| 538 |
return; |
| 539 |
case DynamicDelegationPackage.CLASS0__TEST_SHORT: |
| 540 |
setTestShort(TEST_SHORT_EDEFAULT); |
| 541 |
return; |
| 542 |
case DynamicDelegationPackage.CLASS0__CLASS1: |
| 543 |
setClass1((Class1)null); |
| 544 |
return; |
| 545 |
} |
| 546 |
super.eUnset(featureID); |
| 547 |
} |
| 548 |
|
| 549 |
/** |
| 550 |
* <!-- begin-user-doc --> |
| 551 |
* <!-- end-user-doc --> |
| 552 |
* @generated |
| 553 |
*/ |
| 554 |
@Override |
| 555 |
public boolean eIsSet(int featureID) { |
| 556 |
switch (featureID) { |
| 557 |
case DynamicDelegationPackage.CLASS0__TEST_BOOLEAN: |
| 558 |
return testBoolean != TEST_BOOLEAN_EDEFAULT; |
| 559 |
case DynamicDelegationPackage.CLASS0__TEST_BYTE: |
| 560 |
return testByte != TEST_BYTE_EDEFAULT; |
| 561 |
case DynamicDelegationPackage.CLASS0__TEST_CHAR: |
| 562 |
return testChar != TEST_CHAR_EDEFAULT; |
| 563 |
case DynamicDelegationPackage.CLASS0__TEST_DOUBLE: |
| 564 |
return testDouble != TEST_DOUBLE_EDEFAULT; |
| 565 |
case DynamicDelegationPackage.CLASS0__TEST_FLOAT: |
| 566 |
return testFloat != TEST_FLOAT_EDEFAULT; |
| 567 |
case DynamicDelegationPackage.CLASS0__TEST_INT: |
| 568 |
return testInt != TEST_INT_EDEFAULT; |
| 569 |
case DynamicDelegationPackage.CLASS0__TEST_LONG: |
| 570 |
return testLong != TEST_LONG_EDEFAULT; |
| 571 |
case DynamicDelegationPackage.CLASS0__TEST_SHORT: |
| 572 |
return testShort != TEST_SHORT_EDEFAULT; |
| 573 |
case DynamicDelegationPackage.CLASS0__CLASS1: |
| 574 |
return class1 != null; |
| 575 |
} |
| 576 |
return super.eIsSet(featureID); |
| 577 |
} |
| 578 |
|
| 579 |
/** |
| 580 |
* <!-- begin-user-doc --> |
| 581 |
* <!-- end-user-doc --> |
| 582 |
* @generated |
| 583 |
*/ |
| 584 |
@Override |
| 585 |
public String toString() { |
| 586 |
if (eIsProxy()) return super.toString(); |
| 587 |
|
| 588 |
StringBuffer result = new StringBuffer(super.toString()); |
| 589 |
result.append(" (testBoolean: "); |
| 590 |
result.append(testBoolean); |
| 591 |
result.append(", testByte: "); |
| 592 |
result.append(testByte); |
| 593 |
result.append(", testChar: "); |
| 594 |
result.append(testChar); |
| 595 |
result.append(", testDouble: "); |
| 596 |
result.append(testDouble); |
| 597 |
result.append(", testFloat: "); |
| 598 |
result.append(testFloat); |
| 599 |
result.append(", testInt: "); |
| 600 |
result.append(testInt); |
| 601 |
result.append(", testLong: "); |
| 602 |
result.append(testLong); |
| 603 |
result.append(", testShort: "); |
| 604 |
result.append(testShort); |
| 605 |
result.append(')'); |
| 606 |
return result.toString(); |
| 607 |
} |
| 608 |
|
| 609 |
} //Class0Impl |