Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/relation/relation1ton/impl/TwoNRImpl.java')
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/relation/relation1ton/impl/TwoNRImpl.java279
1 files changed, 0 insertions, 279 deletions
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/relation/relation1ton/impl/TwoNRImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/relation/relation1ton/impl/TwoNRImpl.java
deleted file mode 100644
index 67995db98..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/relation/relation1ton/impl/TwoNRImpl.java
+++ /dev/null
@@ -1,279 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: TwoNRImpl.java,v 1.3 2007/02/08 23:09:18 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.teneo.samples.emf.relation.relation1ton.Main;
-import org.eclipse.emf.teneo.samples.emf.relation.relation1ton.Relation1tonPackage;
-import org.eclipse.emf.teneo.samples.emf.relation.relation1ton.TwoNR;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Two NR</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl.TwoNRImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl.TwoNRImpl#getMain <em>Main</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class TwoNRImpl extends EObjectImpl implements TwoNR {
- /**
- * 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;
-
- /**
- * The cached value of the '{@link #getMain() <em>Main</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getMain()
- * @generated
- * @ordered
- */
- protected Main main = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected TwoNRImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Relation1tonPackage.Literals.TWO_NR;
- }
-
- /**
- * <!-- 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, Relation1tonPackage.TWO_NR__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Main getMain() {
- if (main != null && main.eIsProxy()) {
- InternalEObject oldMain = (InternalEObject)main;
- main = (Main)eResolveProxy(oldMain);
- if (main != oldMain) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, Relation1tonPackage.TWO_NR__MAIN, oldMain, main));
- }
- }
- return main;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Main basicGetMain() {
- return main;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetMain(Main newMain, NotificationChain msgs) {
- Main oldMain = main;
- main = newMain;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Relation1tonPackage.TWO_NR__MAIN, oldMain, newMain);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setMain(Main newMain) {
- if (newMain != main) {
- NotificationChain msgs = null;
- if (main != null)
- msgs = ((InternalEObject)main).eInverseRemove(this, Relation1tonPackage.MAIN__TWONR, Main.class, msgs);
- if (newMain != null)
- msgs = ((InternalEObject)newMain).eInverseAdd(this, Relation1tonPackage.MAIN__TWONR, Main.class, msgs);
- msgs = basicSetMain(newMain, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Relation1tonPackage.TWO_NR__MAIN, newMain, newMain));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case Relation1tonPackage.TWO_NR__MAIN:
- if (main != null)
- msgs = ((InternalEObject)main).eInverseRemove(this, Relation1tonPackage.MAIN__TWONR, Main.class, msgs);
- return basicSetMain((Main)otherEnd, msgs);
- }
- return super.eInverseAdd(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case Relation1tonPackage.TWO_NR__MAIN:
- return basicSetMain(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case Relation1tonPackage.TWO_NR__NAME:
- return getName();
- case Relation1tonPackage.TWO_NR__MAIN:
- if (resolve) return getMain();
- return basicGetMain();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case Relation1tonPackage.TWO_NR__NAME:
- setName((String)newValue);
- return;
- case Relation1tonPackage.TWO_NR__MAIN:
- setMain((Main)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case Relation1tonPackage.TWO_NR__NAME:
- setName(NAME_EDEFAULT);
- return;
- case Relation1tonPackage.TWO_NR__MAIN:
- setMain((Main)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case Relation1tonPackage.TWO_NR__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case Relation1tonPackage.TWO_NR__MAIN:
- return main != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- 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();
- }
-
-} //TwoNRImpl

Back to the top