org.openxma.dsl.ddl.ddlDsl.impl.ColumnCommentImpl Maven / Gradle / Ivy
/**
*
*
*
*/
package org.openxma.dsl.ddl.ddlDsl.impl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.openxma.dsl.ddl.ddlDsl.Column;
import org.openxma.dsl.ddl.ddlDsl.ColumnComment;
import org.openxma.dsl.ddl.ddlDsl.DdlDslPackage;
/**
*
* An implementation of the model object 'Column Comment'.
*
*
* The following features are implemented:
*
* - {@link org.openxma.dsl.ddl.ddlDsl.impl.ColumnCommentImpl#getColumn Column}
*
*
*
* @generated
*/
public class ColumnCommentImpl extends CommentImpl implements ColumnComment
{
/**
* The cached value of the '{@link #getColumn() Column}' reference.
*
*
* @see #getColumn()
* @generated
* @ordered
*/
protected Column column;
/**
*
*
* @generated
*/
protected ColumnCommentImpl()
{
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass()
{
return DdlDslPackage.Literals.COLUMN_COMMENT;
}
/**
*
*
* @generated
*/
public Column getColumn()
{
if (column != null && column.eIsProxy()) {
InternalEObject oldColumn = (InternalEObject)column;
column = (Column)eResolveProxy(oldColumn);
if (column != oldColumn) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, DdlDslPackage.COLUMN_COMMENT__COLUMN, oldColumn, column));
}
}
return column;
}
/**
*
*
* @generated
*/
public Column basicGetColumn()
{
return column;
}
/**
*
*
* @generated
*/
public void setColumn(Column newColumn)
{
Column oldColumn = column;
column = newColumn;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DdlDslPackage.COLUMN_COMMENT__COLUMN, oldColumn, column));
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
switch (featureID) {
case DdlDslPackage.COLUMN_COMMENT__COLUMN:
if (resolve) return getColumn();
return basicGetColumn();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue)
{
switch (featureID) {
case DdlDslPackage.COLUMN_COMMENT__COLUMN:
setColumn((Column)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID)
{
switch (featureID) {
case DdlDslPackage.COLUMN_COMMENT__COLUMN:
setColumn((Column)null);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID)
{
switch (featureID) {
case DdlDslPackage.COLUMN_COMMENT__COLUMN:
return column != null;
}
return super.eIsSet(featureID);
}
} //ColumnCommentImpl