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

org.openxma.dsl.dom.model.impl.ParenthesizedExpressionImpl 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.Expression;
import org.openxma.dsl.dom.model.ParenthesizedExpression;

/**
 * 
 * An implementation of the model object 'Parenthesized Expression'.
 * 
 * 

* The following features are implemented: *

    *
  • {@link org.openxma.dsl.dom.model.impl.ParenthesizedExpressionImpl#getExpressions Expressions}
  • *
*

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy