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

de.opitzconsulting.orcasDsl.impl.HashSubPartsImpl Maven / Gradle / Ivy

/**
 */
package de.opitzconsulting.orcasDsl.impl;

import de.opitzconsulting.orcasDsl.ColumnRef;
import de.opitzconsulting.orcasDsl.HashSubParts;
import de.opitzconsulting.orcasDsl.OrcasDslPackage;

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;

/**
 * 
 * An implementation of the model object 'Hash Sub Parts'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link de.opitzconsulting.orcasDsl.impl.HashSubPartsImpl#getColumn Column}
  • *
* * @generated */ public class HashSubPartsImpl extends TableSubPartImpl implements HashSubParts { /** * The cached value of the '{@link #getColumn() Column}' containment reference. * * * @see #getColumn() * @generated * @ordered */ public ColumnRef column; /** * * * @generated */ public HashSubPartsImpl() { super(); } /** * * * @generated */ @Override public EClass eStaticClass() { return OrcasDslPackage.Literals.HASH_SUB_PARTS; } /** * * * @generated */ public ColumnRef getColumn() { return column; } /** * * * @generated */ public NotificationChain basicSetColumn(ColumnRef newColumn, NotificationChain msgs) { ColumnRef oldColumn = column; column = newColumn; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrcasDslPackage.HASH_SUB_PARTS__COLUMN, oldColumn, newColumn); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * * * @generated */ public void setColumn(ColumnRef newColumn) { if (newColumn != column) { NotificationChain msgs = null; if (column != null) msgs = ((InternalEObject)column).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrcasDslPackage.HASH_SUB_PARTS__COLUMN, null, msgs); if (newColumn != null) msgs = ((InternalEObject)newColumn).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrcasDslPackage.HASH_SUB_PARTS__COLUMN, null, msgs); msgs = basicSetColumn(newColumn, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.HASH_SUB_PARTS__COLUMN, newColumn, newColumn)); } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case OrcasDslPackage.HASH_SUB_PARTS__COLUMN: return basicSetColumn(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case OrcasDslPackage.HASH_SUB_PARTS__COLUMN: return getColumn(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case OrcasDslPackage.HASH_SUB_PARTS__COLUMN: setColumn((ColumnRef)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case OrcasDslPackage.HASH_SUB_PARTS__COLUMN: setColumn((ColumnRef)null); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case OrcasDslPackage.HASH_SUB_PARTS__COLUMN: return column != null; } return super.eIsSet(featureID); } } //HashSubPartsImpl




© 2015 - 2025 Weber Informatics LLC | Privacy Policy