diff options
Diffstat (limited to 'examples/org.eclipse.emf.teneo.samples/src/testinheritance/impl/ParentZeroImpl.java')
-rw-r--r-- | examples/org.eclipse.emf.teneo.samples/src/testinheritance/impl/ParentZeroImpl.java | 161 |
1 files changed, 161 insertions, 0 deletions
diff --git a/examples/org.eclipse.emf.teneo.samples/src/testinheritance/impl/ParentZeroImpl.java b/examples/org.eclipse.emf.teneo.samples/src/testinheritance/impl/ParentZeroImpl.java new file mode 100644 index 000000000..b8abfdff4 --- /dev/null +++ b/examples/org.eclipse.emf.teneo.samples/src/testinheritance/impl/ParentZeroImpl.java @@ -0,0 +1,161 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ParentZeroImpl.java,v 1.1.2.2 2007/03/21 16:09:27 mtaal Exp $ + */ +package testinheritance.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import testinheritance.ParentZero; +import testinheritance.TestinheritancePackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Parent Zero</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link testinheritance.impl.ParentZeroImpl#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ParentZeroImpl extends EObjectImpl implements ParentZero { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ParentZeroImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected EClass eStaticClass() { + return TestinheritancePackage.Literals.PARENT_ZERO; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TestinheritancePackage.PARENT_ZERO__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case TestinheritancePackage.PARENT_ZERO__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case TestinheritancePackage.PARENT_ZERO__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void eUnset(int featureID) { + switch (featureID) { + case TestinheritancePackage.PARENT_ZERO__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean eIsSet(int featureID) { + switch (featureID) { + case TestinheritancePackage.PARENT_ZERO__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //ParentZeroImpl
\ No newline at end of file |