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

org.openxma.dsl.dom.model.impl.SubQueryImpl Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version
/**
 * 
 * 
 *
 * $Id$
 */
package org.openxma.dsl.dom.model.impl;

import java.util.Collection;

import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
import org.openxma.dsl.dom.DomPackage;
import org.openxma.dsl.dom.model.SelectStatement;
import org.openxma.dsl.dom.model.SubQuery;

/**
 * 
 * An implementation of the model object 'Sub Query'.
 * 
 * 

* The following features are implemented: *

    *
  • {@link org.openxma.dsl.dom.model.impl.SubQueryImpl#getQueries Queries}
  • *
*

* * @generated */ public class SubQueryImpl extends ExpressionImpl implements SubQuery { /** * The cached value of the '{@link #getQueries() Queries}' containment reference list. * * * @see #getQueries() * @generated * @ordered */ protected EList queries; /** * * * @generated */ protected SubQueryImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return DomPackage.Literals.SUB_QUERY; } /** * * * @generated */ public EList getQueries() { if (queries == null) { queries = new EObjectContainmentEList(SelectStatement.class, this, DomPackage.SUB_QUERY__QUERIES); } return queries; } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case DomPackage.SUB_QUERY__QUERIES: return ((InternalEList)getQueries()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case DomPackage.SUB_QUERY__QUERIES: return getQueries(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case DomPackage.SUB_QUERY__QUERIES: getQueries().clear(); getQueries().addAll((Collection)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case DomPackage.SUB_QUERY__QUERIES: getQueries().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case DomPackage.SUB_QUERY__QUERIES: return queries != null && !queries.isEmpty(); } return super.eIsSet(featureID); } } //SubQueryImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy