diff options
Diffstat (limited to 'tests/org.eclipse.emf.teneo.samples/src/testinheritance/impl/Child2Impl.java')
-rwxr-xr-x | tests/org.eclipse.emf.teneo.samples/src/testinheritance/impl/Child2Impl.java | 258 |
1 files changed, 137 insertions, 121 deletions
diff --git a/tests/org.eclipse.emf.teneo.samples/src/testinheritance/impl/Child2Impl.java b/tests/org.eclipse.emf.teneo.samples/src/testinheritance/impl/Child2Impl.java index 3261df9bd..66ae614d4 100755 --- a/tests/org.eclipse.emf.teneo.samples/src/testinheritance/impl/Child2Impl.java +++ b/tests/org.eclipse.emf.teneo.samples/src/testinheritance/impl/Child2Impl.java @@ -20,26 +20,25 @@ import testinheritance.SomeReference; import testinheritance.TestinheritancePackage; /** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Child2</b></em>'. - * <!-- end-user-doc --> + * <!-- begin-user-doc --> An implementation of the model object '<em><b>Child2</b></em>'. <!-- + * end-user-doc --> * <p> * The following features are implemented: * <ul> - * <li>{@link testinheritance.impl.Child2Impl#getAnotherProperty <em>Another Property</em>}</li> - * <li>{@link testinheritance.impl.Child2Impl#getTestId <em>Test Id</em>}</li> - * <li>{@link testinheritance.impl.Child2Impl#getSomeReference <em>Some Reference</em>}</li> - * <li>{@link testinheritance.impl.Child2Impl#getAge <em>Age</em>}</li> + * <li>{@link testinheritance.impl.Child2Impl#getAnotherProperty <em>Another Property</em>}</li> + * <li>{@link testinheritance.impl.Child2Impl#getTestId <em>Test Id</em>}</li> + * <li>{@link testinheritance.impl.Child2Impl#getSomeReference <em>Some Reference</em>}</li> + * <li>{@link testinheritance.impl.Child2Impl#getAge <em>Age</em>}</li> * </ul> * </p> - * + * * @generated */ public class Child2Impl extends ParentZeroImpl implements Child2 { /** * The default value of the '{@link #getAnotherProperty() <em>Another Property</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @see #getAnotherProperty() * @generated * @ordered @@ -48,8 +47,8 @@ public class Child2Impl extends ParentZeroImpl implements Child2 { /** * The cached value of the '{@link #getAnotherProperty() <em>Another Property</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @see #getAnotherProperty() * @generated * @ordered @@ -57,9 +56,9 @@ public class Child2Impl extends ParentZeroImpl implements Child2 { protected long anotherProperty = ANOTHER_PROPERTY_EDEFAULT; /** - * The default value of the '{@link #getTestId() <em>Test Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * The default value of the '{@link #getTestId() <em>Test Id</em>}' attribute. <!-- begin-user-doc + * --> <!-- end-user-doc --> + * * @see #getTestId() * @generated * @ordered @@ -67,9 +66,9 @@ public class Child2Impl extends ParentZeroImpl implements Child2 { protected static final long TEST_ID_EDEFAULT = 0L; /** - * The cached value of the '{@link #getTestId() <em>Test Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * The cached value of the '{@link #getTestId() <em>Test Id</em>}' attribute. <!-- begin-user-doc + * --> <!-- end-user-doc --> + * * @see #getTestId() * @generated * @ordered @@ -77,9 +76,9 @@ public class Child2Impl extends ParentZeroImpl implements Child2 { protected long testId = TEST_ID_EDEFAULT; /** - * The cached value of the '{@link #getSomeReference() <em>Some Reference</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * The cached value of the '{@link #getSomeReference() <em>Some Reference</em>}' reference. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * * @see #getSomeReference() * @generated * @ordered @@ -87,9 +86,9 @@ public class Child2Impl extends ParentZeroImpl implements Child2 { protected SomeReference someReference; /** - * The default value of the '{@link #getAge() <em>Age</em>}' attribute. - * <!-- begin-user-doc --> + * The default value of the '{@link #getAge() <em>Age</em>}' attribute. <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @see #getAge() * @generated * @ordered @@ -97,9 +96,9 @@ public class Child2Impl extends ParentZeroImpl implements Child2 { protected static final long AGE_EDEFAULT = 0L; /** - * The cached value of the '{@link #getAge() <em>Age</em>}' attribute. - * <!-- begin-user-doc --> + * The cached value of the '{@link #getAge() <em>Age</em>}' attribute. <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @see #getAge() * @generated * @ordered @@ -107,8 +106,8 @@ public class Child2Impl extends ParentZeroImpl implements Child2 { protected long age = AGE_EDEFAULT; /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ protected Child2Impl() { @@ -116,8 +115,8 @@ public class Child2Impl extends ParentZeroImpl implements Child2 { } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override @@ -126,8 +125,8 @@ public class Child2Impl extends ParentZeroImpl implements Child2 { } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public long getAnotherProperty() { @@ -135,20 +134,21 @@ public class Child2Impl extends ParentZeroImpl implements Child2 { } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public void setAnotherProperty(long newAnotherProperty) { long oldAnotherProperty = anotherProperty; anotherProperty = newAnotherProperty; if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TestinheritancePackage.CHILD2__ANOTHER_PROPERTY, oldAnotherProperty, anotherProperty)); + eNotify(new ENotificationImpl(this, Notification.SET, + TestinheritancePackage.CHILD2__ANOTHER_PROPERTY, oldAnotherProperty, anotherProperty)); } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public long getTestId() { @@ -156,37 +156,39 @@ public class Child2Impl extends ParentZeroImpl implements Child2 { } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public void setTestId(long newTestId) { long oldTestId = testId; testId = newTestId; if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TestinheritancePackage.CHILD2__TEST_ID, oldTestId, testId)); + eNotify(new ENotificationImpl(this, Notification.SET, TestinheritancePackage.CHILD2__TEST_ID, + oldTestId, testId)); } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public SomeReference getSomeReference() { if (someReference != null && someReference.eIsProxy()) { - InternalEObject oldSomeReference = (InternalEObject)someReference; - someReference = (SomeReference)eResolveProxy(oldSomeReference); + InternalEObject oldSomeReference = (InternalEObject) someReference; + someReference = (SomeReference) eResolveProxy(oldSomeReference); if (someReference != oldSomeReference) { if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, TestinheritancePackage.CHILD2__SOME_REFERENCE, oldSomeReference, someReference)); + eNotify(new ENotificationImpl(this, Notification.RESOLVE, + TestinheritancePackage.CHILD2__SOME_REFERENCE, oldSomeReference, someReference)); } } return someReference; } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public SomeReference basicGetSomeReference() { @@ -194,20 +196,21 @@ public class Child2Impl extends ParentZeroImpl implements Child2 { } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public void setSomeReference(SomeReference newSomeReference) { SomeReference oldSomeReference = someReference; someReference = newSomeReference; if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TestinheritancePackage.CHILD2__SOME_REFERENCE, oldSomeReference, someReference)); + eNotify(new ENotificationImpl(this, Notification.SET, + TestinheritancePackage.CHILD2__SOME_REFERENCE, oldSomeReference, someReference)); } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public long getAge() { @@ -215,160 +218,173 @@ public class Child2Impl extends ParentZeroImpl implements Child2 { } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public void setAge(long newAge) { long oldAge = age; age = newAge; if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TestinheritancePackage.CHILD2__AGE, oldAge, age)); + eNotify(new ENotificationImpl(this, Notification.SET, TestinheritancePackage.CHILD2__AGE, + oldAge, age)); } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { - case TestinheritancePackage.CHILD2__ANOTHER_PROPERTY: - return new Long(getAnotherProperty()); - case TestinheritancePackage.CHILD2__TEST_ID: - return new Long(getTestId()); - case TestinheritancePackage.CHILD2__SOME_REFERENCE: - if (resolve) return getSomeReference(); - return basicGetSomeReference(); - case TestinheritancePackage.CHILD2__AGE: - return new Long(getAge()); + case TestinheritancePackage.CHILD2__ANOTHER_PROPERTY: + return new Long(getAnotherProperty()); + case TestinheritancePackage.CHILD2__TEST_ID: + return new Long(getTestId()); + case TestinheritancePackage.CHILD2__SOME_REFERENCE: + if (resolve) + return getSomeReference(); + return basicGetSomeReference(); + case TestinheritancePackage.CHILD2__AGE: + return new Long(getAge()); } return super.eGet(featureID, resolve, coreType); } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { - case TestinheritancePackage.CHILD2__ANOTHER_PROPERTY: - setAnotherProperty(((Long)newValue).longValue()); - return; - case TestinheritancePackage.CHILD2__TEST_ID: - setTestId(((Long)newValue).longValue()); - return; - case TestinheritancePackage.CHILD2__SOME_REFERENCE: - setSomeReference((SomeReference)newValue); - return; - case TestinheritancePackage.CHILD2__AGE: - setAge(((Long)newValue).longValue()); - return; + case TestinheritancePackage.CHILD2__ANOTHER_PROPERTY: + setAnotherProperty(((Long) newValue).longValue()); + return; + case TestinheritancePackage.CHILD2__TEST_ID: + setTestId(((Long) newValue).longValue()); + return; + case TestinheritancePackage.CHILD2__SOME_REFERENCE: + setSomeReference((SomeReference) newValue); + return; + case TestinheritancePackage.CHILD2__AGE: + setAge(((Long) newValue).longValue()); + return; } super.eSet(featureID, newValue); } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { - case TestinheritancePackage.CHILD2__ANOTHER_PROPERTY: - setAnotherProperty(ANOTHER_PROPERTY_EDEFAULT); - return; - case TestinheritancePackage.CHILD2__TEST_ID: - setTestId(TEST_ID_EDEFAULT); - return; - case TestinheritancePackage.CHILD2__SOME_REFERENCE: - setSomeReference((SomeReference)null); - return; - case TestinheritancePackage.CHILD2__AGE: - setAge(AGE_EDEFAULT); - return; + case TestinheritancePackage.CHILD2__ANOTHER_PROPERTY: + setAnotherProperty(ANOTHER_PROPERTY_EDEFAULT); + return; + case TestinheritancePackage.CHILD2__TEST_ID: + setTestId(TEST_ID_EDEFAULT); + return; + case TestinheritancePackage.CHILD2__SOME_REFERENCE: + setSomeReference((SomeReference) null); + return; + case TestinheritancePackage.CHILD2__AGE: + setAge(AGE_EDEFAULT); + return; } super.eUnset(featureID); } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { - case TestinheritancePackage.CHILD2__ANOTHER_PROPERTY: - return anotherProperty != ANOTHER_PROPERTY_EDEFAULT; - case TestinheritancePackage.CHILD2__TEST_ID: - return testId != TEST_ID_EDEFAULT; - case TestinheritancePackage.CHILD2__SOME_REFERENCE: - return someReference != null; - case TestinheritancePackage.CHILD2__AGE: - return age != AGE_EDEFAULT; + case TestinheritancePackage.CHILD2__ANOTHER_PROPERTY: + return anotherProperty != ANOTHER_PROPERTY_EDEFAULT; + case TestinheritancePackage.CHILD2__TEST_ID: + return testId != TEST_ID_EDEFAULT; + case TestinheritancePackage.CHILD2__SOME_REFERENCE: + return someReference != null; + case TestinheritancePackage.CHILD2__AGE: + return age != AGE_EDEFAULT; } return super.eIsSet(featureID); } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) { if (baseClass == ParentOne.class) { switch (derivedFeatureID) { - case TestinheritancePackage.CHILD2__ANOTHER_PROPERTY: return TestinheritancePackage.PARENT_ONE__ANOTHER_PROPERTY; - default: return -1; + case TestinheritancePackage.CHILD2__ANOTHER_PROPERTY: + return TestinheritancePackage.PARENT_ONE__ANOTHER_PROPERTY; + default: + return -1; } } if (baseClass == ParentTwo.class) { switch (derivedFeatureID) { - case TestinheritancePackage.CHILD2__TEST_ID: return TestinheritancePackage.PARENT_TWO__TEST_ID; - case TestinheritancePackage.CHILD2__SOME_REFERENCE: return TestinheritancePackage.PARENT_TWO__SOME_REFERENCE; - default: return -1; + case TestinheritancePackage.CHILD2__TEST_ID: + return TestinheritancePackage.PARENT_TWO__TEST_ID; + case TestinheritancePackage.CHILD2__SOME_REFERENCE: + return TestinheritancePackage.PARENT_TWO__SOME_REFERENCE; + default: + return -1; } } return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) { if (baseClass == ParentOne.class) { switch (baseFeatureID) { - case TestinheritancePackage.PARENT_ONE__ANOTHER_PROPERTY: return TestinheritancePackage.CHILD2__ANOTHER_PROPERTY; - default: return -1; + case TestinheritancePackage.PARENT_ONE__ANOTHER_PROPERTY: + return TestinheritancePackage.CHILD2__ANOTHER_PROPERTY; + default: + return -1; } } if (baseClass == ParentTwo.class) { switch (baseFeatureID) { - case TestinheritancePackage.PARENT_TWO__TEST_ID: return TestinheritancePackage.CHILD2__TEST_ID; - case TestinheritancePackage.PARENT_TWO__SOME_REFERENCE: return TestinheritancePackage.CHILD2__SOME_REFERENCE; - default: return -1; + case TestinheritancePackage.PARENT_TWO__TEST_ID: + return TestinheritancePackage.CHILD2__TEST_ID; + case TestinheritancePackage.PARENT_TWO__SOME_REFERENCE: + return TestinheritancePackage.CHILD2__SOME_REFERENCE; + default: + return -1; } } return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public String toString() { - if (eIsProxy()) return super.toString(); + if (eIsProxy()) + return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (anotherProperty: "); @@ -381,4 +397,4 @@ public class Child2Impl extends ParentZeroImpl implements Child2 { return result.toString(); } -} //Child2Impl +} // Child2Impl |