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

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

/**
 * 
 * 
 *
 */
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.UniqueKeyConstraint;

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

* The following features are implemented: *

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

* * @generated */ public class UniqueKeyConstraintImpl extends ConstraintImpl implements UniqueKeyConstraint { /** * The cached value of the '{@link #getColumns() Columns}' reference list. * * * @see #getColumns() * @generated * @ordered */ protected EList columns; /** * * * @generated */ protected UniqueKeyConstraintImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return DdlDslPackage.Literals.UNIQUE_KEY_CONSTRAINT; } /** * * * @generated */ public EList getColumns() { if (columns == null) { columns = new EObjectResolvingEList(Column.class, this, DdlDslPackage.UNIQUE_KEY_CONSTRAINT__COLUMNS); } return columns; } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case DdlDslPackage.UNIQUE_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.UNIQUE_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.UNIQUE_KEY_CONSTRAINT__COLUMNS: getColumns().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case DdlDslPackage.UNIQUE_KEY_CONSTRAINT__COLUMNS: return columns != null && !columns.isEmpty(); } return super.eIsSet(featureID); } } //UniqueKeyConstraintImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy