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

org.openxma.dsl.ddl.ddlDsl.impl.TableCommentImpl 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.CreateTable;
import org.openxma.dsl.ddl.ddlDsl.DdlDslPackage;
import org.openxma.dsl.ddl.ddlDsl.TableComment;

/**
 * 
 * An implementation of the model object 'Table Comment'.
 * 
 * 

* The following features are implemented: *

    *
  • {@link org.openxma.dsl.ddl.ddlDsl.impl.TableCommentImpl#getTable Table}
  • *
*

* * @generated */ public class TableCommentImpl extends CommentImpl implements TableComment { /** * The cached value of the '{@link #getTable() Table}' reference. * * * @see #getTable() * @generated * @ordered */ protected CreateTable table; /** * * * @generated */ protected TableCommentImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return DdlDslPackage.Literals.TABLE_COMMENT; } /** * * * @generated */ public CreateTable getTable() { if (table != null && table.eIsProxy()) { InternalEObject oldTable = (InternalEObject)table; table = (CreateTable)eResolveProxy(oldTable); if (table != oldTable) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, DdlDslPackage.TABLE_COMMENT__TABLE, oldTable, table)); } } return table; } /** * * * @generated */ public CreateTable basicGetTable() { return table; } /** * * * @generated */ public void setTable(CreateTable newTable) { CreateTable oldTable = table; table = newTable; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DdlDslPackage.TABLE_COMMENT__TABLE, oldTable, table)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case DdlDslPackage.TABLE_COMMENT__TABLE: if (resolve) return getTable(); return basicGetTable(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case DdlDslPackage.TABLE_COMMENT__TABLE: setTable((CreateTable)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case DdlDslPackage.TABLE_COMMENT__TABLE: setTable((CreateTable)null); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case DdlDslPackage.TABLE_COMMENT__TABLE: return table != null; } return super.eIsSet(featureID); } } //TableCommentImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy