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

org.openxma.dsl.ddl.ddlDsl.impl.PrimaryKeyConstraintImpl Maven / Gradle / Ivy

The newest version!
/**
 * 
 * 
 *
 */
package org.openxma.dsl.ddl.ddlDsl.impl;

import java.util.Collection;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EClass;

import org.eclipse.emf.ecore.util.EObjectResolvingEList;

import org.openxma.dsl.ddl.ddlDsl.Column;
import org.openxma.dsl.ddl.ddlDsl.DdlDslPackage;
import org.openxma.dsl.ddl.ddlDsl.PrimaryKeyConstraint;

/**
 * 
 * An implementation of the model object 'Primary Key Constraint'.
 * 
 * 

* The following features are implemented: *

    *
  • {@link org.openxma.dsl.ddl.ddlDsl.impl.PrimaryKeyConstraintImpl#getColumns Columns}
  • *
*

* * @generated */ public class PrimaryKeyConstraintImpl extends ConstraintImpl implements PrimaryKeyConstraint { /** * The cached value of the '{@link #getColumns() Columns}' reference list. * * * @see #getColumns() * @generated * @ordered */ protected EList columns; /** * * * @generated */ protected PrimaryKeyConstraintImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return DdlDslPackage.Literals.PRIMARY_KEY_CONSTRAINT; } /** * * * @generated */ public EList getColumns() { if (columns == null) { columns = new EObjectResolvingEList(Column.class, this, DdlDslPackage.PRIMARY_KEY_CONSTRAINT__COLUMNS); } return columns; } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case DdlDslPackage.PRIMARY_KEY_CONSTRAINT__COLUMNS: return getColumns(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case DdlDslPackage.PRIMARY_KEY_CONSTRAINT__COLUMNS: getColumns().clear(); getColumns().addAll((Collection)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case DdlDslPackage.PRIMARY_KEY_CONSTRAINT__COLUMNS: getColumns().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case DdlDslPackage.PRIMARY_KEY_CONSTRAINT__COLUMNS: return columns != null && !columns.isEmpty(); } return super.eIsSet(featureID); } } //PrimaryKeyConstraintImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy