All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openxma.dsl.dom.model.impl.ManyToManyImpl Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version
/**
 * 
 * 
 *
 * $Id$
 */
package org.openxma.dsl.dom.model.impl;

import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.openxma.dsl.dom.DomPackage;
import org.openxma.dsl.dom.model.ManyToMany;

/**
 * 
 * An implementation of the model object 'Many To Many'.
 * 
 * 

* The following features are implemented: *

    *
  • {@link org.openxma.dsl.dom.model.impl.ManyToManyImpl#getTableName Table Name}
  • *
  • {@link org.openxma.dsl.dom.model.impl.ManyToManyImpl#getColumnName Column Name}
  • *
  • {@link org.openxma.dsl.dom.model.impl.ManyToManyImpl#isInverse Inverse}
  • *
*

* * @generated */ public class ManyToManyImpl extends DaoFeatureImpl implements ManyToMany { /** * The default value of the '{@link #getTableName() Table Name}' attribute. * * * @see #getTableName() * @generated * @ordered */ protected static final String TABLE_NAME_EDEFAULT = null; /** * The cached value of the '{@link #getTableName() Table Name}' attribute. * * * @see #getTableName() * @generated * @ordered */ protected String tableName = TABLE_NAME_EDEFAULT; /** * The default value of the '{@link #getColumnName() Column Name}' attribute. * * * @see #getColumnName() * @generated * @ordered */ protected static final String COLUMN_NAME_EDEFAULT = null; /** * The cached value of the '{@link #getColumnName() Column Name}' attribute. * * * @see #getColumnName() * @generated * @ordered */ protected String columnName = COLUMN_NAME_EDEFAULT; /** * The default value of the '{@link #isInverse() Inverse}' attribute. * * * @see #isInverse() * @generated * @ordered */ protected static final boolean INVERSE_EDEFAULT = false; /** * The cached value of the '{@link #isInverse() Inverse}' attribute. * * * @see #isInverse() * @generated * @ordered */ protected boolean inverse = INVERSE_EDEFAULT; /** * * * @generated */ protected ManyToManyImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return DomPackage.Literals.MANY_TO_MANY; } /** * * * @generated */ public String getTableName() { return tableName; } /** * * * @generated */ public void setTableName(String newTableName) { String oldTableName = tableName; tableName = newTableName; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.MANY_TO_MANY__TABLE_NAME, oldTableName, tableName)); } /** * * * @generated */ public String getColumnName() { return columnName; } /** * * * @generated */ public void setColumnName(String newColumnName) { String oldColumnName = columnName; columnName = newColumnName; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.MANY_TO_MANY__COLUMN_NAME, oldColumnName, columnName)); } /** * * * @generated */ public boolean isInverse() { return inverse; } /** * * * @generated */ public void setInverse(boolean newInverse) { boolean oldInverse = inverse; inverse = newInverse; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.MANY_TO_MANY__INVERSE, oldInverse, inverse)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case DomPackage.MANY_TO_MANY__TABLE_NAME: return getTableName(); case DomPackage.MANY_TO_MANY__COLUMN_NAME: return getColumnName(); case DomPackage.MANY_TO_MANY__INVERSE: return isInverse(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case DomPackage.MANY_TO_MANY__TABLE_NAME: setTableName((String)newValue); return; case DomPackage.MANY_TO_MANY__COLUMN_NAME: setColumnName((String)newValue); return; case DomPackage.MANY_TO_MANY__INVERSE: setInverse((Boolean)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case DomPackage.MANY_TO_MANY__TABLE_NAME: setTableName(TABLE_NAME_EDEFAULT); return; case DomPackage.MANY_TO_MANY__COLUMN_NAME: setColumnName(COLUMN_NAME_EDEFAULT); return; case DomPackage.MANY_TO_MANY__INVERSE: setInverse(INVERSE_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case DomPackage.MANY_TO_MANY__TABLE_NAME: return TABLE_NAME_EDEFAULT == null ? tableName != null : !TABLE_NAME_EDEFAULT.equals(tableName); case DomPackage.MANY_TO_MANY__COLUMN_NAME: return COLUMN_NAME_EDEFAULT == null ? columnName != null : !COLUMN_NAME_EDEFAULT.equals(columnName); case DomPackage.MANY_TO_MANY__INVERSE: return inverse != INVERSE_EDEFAULT; } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (tableName: "); result.append(tableName); result.append(", columnName: "); result.append(columnName); result.append(", inverse: "); result.append(inverse); result.append(')'); return result.toString(); } } //ManyToManyImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy