| /** |
| * Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany) |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Based on ideas from Xtext, Xtend, Xcore |
| * |
| * Contributors: |
| * Christophe Loetz (Loetz GmbH&Co.KG) - Initial implementation |
| * |
| */ |
| package org.eclipse.osbp.xtext.datamartdsl.impl; |
| |
| import org.eclipse.emf.common.notify.Notification; |
| import org.eclipse.emf.common.notify.NotificationChain; |
| |
| import org.eclipse.emf.ecore.EClass; |
| import org.eclipse.emf.ecore.InternalEObject; |
| |
| import org.eclipse.emf.ecore.impl.ENotificationImpl; |
| |
| import org.eclipse.osbp.xtext.datamartdsl.DatamartAggregationFunctionInterface; |
| import org.eclipse.osbp.xtext.datamartdsl.DatamartDSLPackage; |
| import org.eclipse.osbp.xtext.datamartdsl.DatamartFunctionInterface; |
| import org.eclipse.osbp.xtext.datamartdsl.DatamartHierarchy; |
| import org.eclipse.osbp.xtext.datamartdsl.DatamartSetFunctionInterface; |
| import org.eclipse.osbp.xtext.datamartdsl.Expression; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model object '<em><b>Expression</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * The following features are implemented: |
| * <ul> |
| * <li>{@link org.eclipse.osbp.xtext.datamartdsl.impl.ExpressionImpl#isFiltered <em>Filtered</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.datamartdsl.impl.ExpressionImpl#isSelected <em>Selected</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.datamartdsl.impl.ExpressionImpl#isOptional <em>Optional</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.datamartdsl.impl.ExpressionImpl#getNumberValue <em>Number Value</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.datamartdsl.impl.ExpressionImpl#getStringValue <em>String Value</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.datamartdsl.impl.ExpressionImpl#getValue <em>Value</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.datamartdsl.impl.ExpressionImpl#getHierarchy <em>Hierarchy</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.datamartdsl.impl.ExpressionImpl#getAggregation <em>Aggregation</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.datamartdsl.impl.ExpressionImpl#getFunction <em>Function</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.datamartdsl.impl.ExpressionImpl#getSet <em>Set</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.datamartdsl.impl.ExpressionImpl#getSetFunction <em>Set Function</em>}</li> |
| * </ul> |
| * </p> |
| * |
| * @generated |
| */ |
| public class ExpressionImpl extends DatamartLazyResolverImpl implements Expression { |
| /** |
| * The default value of the '{@link #isFiltered() <em>Filtered</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isFiltered() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean FILTERED_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isFiltered() <em>Filtered</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isFiltered() |
| * @generated |
| * @ordered |
| */ |
| protected boolean filtered = FILTERED_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #isSelected() <em>Selected</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isSelected() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean SELECTED_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isSelected() <em>Selected</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isSelected() |
| * @generated |
| * @ordered |
| */ |
| protected boolean selected = SELECTED_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #isOptional() <em>Optional</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isOptional() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean OPTIONAL_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isOptional() <em>Optional</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isOptional() |
| * @generated |
| * @ordered |
| */ |
| protected boolean optional = OPTIONAL_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getNumberValue() <em>Number Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getNumberValue() |
| * @generated |
| * @ordered |
| */ |
| protected static final String NUMBER_VALUE_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getNumberValue() <em>Number Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getNumberValue() |
| * @generated |
| * @ordered |
| */ |
| protected String numberValue = NUMBER_VALUE_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getStringValue() <em>String Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getStringValue() |
| * @generated |
| * @ordered |
| */ |
| protected static final String STRING_VALUE_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getStringValue() <em>String Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getStringValue() |
| * @generated |
| * @ordered |
| */ |
| protected String stringValue = STRING_VALUE_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getValue() <em>Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getValue() |
| * @generated |
| * @ordered |
| */ |
| protected static final String VALUE_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getValue() |
| * @generated |
| * @ordered |
| */ |
| protected String value = VALUE_EDEFAULT; |
| |
| /** |
| * The cached value of the '{@link #getHierarchy() <em>Hierarchy</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getHierarchy() |
| * @generated |
| * @ordered |
| */ |
| protected DatamartHierarchy hierarchy; |
| |
| /** |
| * The cached value of the '{@link #getAggregation() <em>Aggregation</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getAggregation() |
| * @generated |
| * @ordered |
| */ |
| protected DatamartAggregationFunctionInterface aggregation; |
| |
| /** |
| * The cached value of the '{@link #getFunction() <em>Function</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getFunction() |
| * @generated |
| * @ordered |
| */ |
| protected DatamartFunctionInterface function; |
| |
| /** |
| * The cached value of the '{@link #getSet() <em>Set</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getSet() |
| * @generated |
| * @ordered |
| */ |
| protected Expression set; |
| |
| /** |
| * The cached value of the '{@link #getSetFunction() <em>Set Function</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getSetFunction() |
| * @generated |
| * @ordered |
| */ |
| protected DatamartSetFunctionInterface setFunction; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected ExpressionImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| protected EClass eStaticClass() { |
| return DatamartDSLPackage.Literals.EXPRESSION; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isFiltered() { |
| return filtered; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setFiltered(boolean newFiltered) { |
| boolean oldFiltered = filtered; |
| filtered = newFiltered; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, DatamartDSLPackage.EXPRESSION__FILTERED, oldFiltered, filtered)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isSelected() { |
| return selected; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setSelected(boolean newSelected) { |
| boolean oldSelected = selected; |
| selected = newSelected; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, DatamartDSLPackage.EXPRESSION__SELECTED, oldSelected, selected)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isOptional() { |
| return optional; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setOptional(boolean newOptional) { |
| boolean oldOptional = optional; |
| optional = newOptional; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, DatamartDSLPackage.EXPRESSION__OPTIONAL, oldOptional, optional)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getNumberValue() { |
| return numberValue; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setNumberValue(String newNumberValue) { |
| String oldNumberValue = numberValue; |
| numberValue = newNumberValue; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, DatamartDSLPackage.EXPRESSION__NUMBER_VALUE, oldNumberValue, numberValue)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getStringValue() { |
| return stringValue; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setStringValue(String newStringValue) { |
| String oldStringValue = stringValue; |
| stringValue = newStringValue; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, DatamartDSLPackage.EXPRESSION__STRING_VALUE, oldStringValue, stringValue)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getValue() { |
| return value; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setValue(String newValue) { |
| String oldValue = value; |
| value = newValue; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, DatamartDSLPackage.EXPRESSION__VALUE, oldValue, value)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public DatamartHierarchy getHierarchy() { |
| return hierarchy; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetHierarchy(DatamartHierarchy newHierarchy, NotificationChain msgs) { |
| DatamartHierarchy oldHierarchy = hierarchy; |
| hierarchy = newHierarchy; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DatamartDSLPackage.EXPRESSION__HIERARCHY, oldHierarchy, newHierarchy); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setHierarchy(DatamartHierarchy newHierarchy) { |
| if (newHierarchy != hierarchy) { |
| NotificationChain msgs = null; |
| if (hierarchy != null) |
| msgs = ((InternalEObject)hierarchy).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DatamartDSLPackage.EXPRESSION__HIERARCHY, null, msgs); |
| if (newHierarchy != null) |
| msgs = ((InternalEObject)newHierarchy).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DatamartDSLPackage.EXPRESSION__HIERARCHY, null, msgs); |
| msgs = basicSetHierarchy(newHierarchy, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, DatamartDSLPackage.EXPRESSION__HIERARCHY, newHierarchy, newHierarchy)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public DatamartAggregationFunctionInterface getAggregation() { |
| return aggregation; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetAggregation(DatamartAggregationFunctionInterface newAggregation, NotificationChain msgs) { |
| DatamartAggregationFunctionInterface oldAggregation = aggregation; |
| aggregation = newAggregation; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DatamartDSLPackage.EXPRESSION__AGGREGATION, oldAggregation, newAggregation); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setAggregation(DatamartAggregationFunctionInterface newAggregation) { |
| if (newAggregation != aggregation) { |
| NotificationChain msgs = null; |
| if (aggregation != null) |
| msgs = ((InternalEObject)aggregation).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DatamartDSLPackage.EXPRESSION__AGGREGATION, null, msgs); |
| if (newAggregation != null) |
| msgs = ((InternalEObject)newAggregation).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DatamartDSLPackage.EXPRESSION__AGGREGATION, null, msgs); |
| msgs = basicSetAggregation(newAggregation, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, DatamartDSLPackage.EXPRESSION__AGGREGATION, newAggregation, newAggregation)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public DatamartFunctionInterface getFunction() { |
| return function; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetFunction(DatamartFunctionInterface newFunction, NotificationChain msgs) { |
| DatamartFunctionInterface oldFunction = function; |
| function = newFunction; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DatamartDSLPackage.EXPRESSION__FUNCTION, oldFunction, newFunction); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setFunction(DatamartFunctionInterface newFunction) { |
| if (newFunction != function) { |
| NotificationChain msgs = null; |
| if (function != null) |
| msgs = ((InternalEObject)function).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DatamartDSLPackage.EXPRESSION__FUNCTION, null, msgs); |
| if (newFunction != null) |
| msgs = ((InternalEObject)newFunction).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DatamartDSLPackage.EXPRESSION__FUNCTION, null, msgs); |
| msgs = basicSetFunction(newFunction, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, DatamartDSLPackage.EXPRESSION__FUNCTION, newFunction, newFunction)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Expression getSet() { |
| return set; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetSet(Expression newSet, NotificationChain msgs) { |
| Expression oldSet = set; |
| set = newSet; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DatamartDSLPackage.EXPRESSION__SET, oldSet, newSet); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setSet(Expression newSet) { |
| if (newSet != set) { |
| NotificationChain msgs = null; |
| if (set != null) |
| msgs = ((InternalEObject)set).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DatamartDSLPackage.EXPRESSION__SET, null, msgs); |
| if (newSet != null) |
| msgs = ((InternalEObject)newSet).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DatamartDSLPackage.EXPRESSION__SET, null, msgs); |
| msgs = basicSetSet(newSet, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, DatamartDSLPackage.EXPRESSION__SET, newSet, newSet)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public DatamartSetFunctionInterface getSetFunction() { |
| return setFunction; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetSetFunction(DatamartSetFunctionInterface newSetFunction, NotificationChain msgs) { |
| DatamartSetFunctionInterface oldSetFunction = setFunction; |
| setFunction = newSetFunction; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DatamartDSLPackage.EXPRESSION__SET_FUNCTION, oldSetFunction, newSetFunction); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setSetFunction(DatamartSetFunctionInterface newSetFunction) { |
| if (newSetFunction != setFunction) { |
| NotificationChain msgs = null; |
| if (setFunction != null) |
| msgs = ((InternalEObject)setFunction).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DatamartDSLPackage.EXPRESSION__SET_FUNCTION, null, msgs); |
| if (newSetFunction != null) |
| msgs = ((InternalEObject)newSetFunction).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DatamartDSLPackage.EXPRESSION__SET_FUNCTION, null, msgs); |
| msgs = basicSetSetFunction(newSetFunction, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, DatamartDSLPackage.EXPRESSION__SET_FUNCTION, newSetFunction, newSetFunction)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
| switch (featureID) { |
| case DatamartDSLPackage.EXPRESSION__HIERARCHY: |
| return basicSetHierarchy(null, msgs); |
| case DatamartDSLPackage.EXPRESSION__AGGREGATION: |
| return basicSetAggregation(null, msgs); |
| case DatamartDSLPackage.EXPRESSION__FUNCTION: |
| return basicSetFunction(null, msgs); |
| case DatamartDSLPackage.EXPRESSION__SET: |
| return basicSetSet(null, msgs); |
| case DatamartDSLPackage.EXPRESSION__SET_FUNCTION: |
| return basicSetSetFunction(null, msgs); |
| } |
| return super.eInverseRemove(otherEnd, featureID, msgs); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public Object eGet(int featureID, boolean resolve, boolean coreType) { |
| switch (featureID) { |
| case DatamartDSLPackage.EXPRESSION__FILTERED: |
| return isFiltered(); |
| case DatamartDSLPackage.EXPRESSION__SELECTED: |
| return isSelected(); |
| case DatamartDSLPackage.EXPRESSION__OPTIONAL: |
| return isOptional(); |
| case DatamartDSLPackage.EXPRESSION__NUMBER_VALUE: |
| return getNumberValue(); |
| case DatamartDSLPackage.EXPRESSION__STRING_VALUE: |
| return getStringValue(); |
| case DatamartDSLPackage.EXPRESSION__VALUE: |
| return getValue(); |
| case DatamartDSLPackage.EXPRESSION__HIERARCHY: |
| return getHierarchy(); |
| case DatamartDSLPackage.EXPRESSION__AGGREGATION: |
| return getAggregation(); |
| case DatamartDSLPackage.EXPRESSION__FUNCTION: |
| return getFunction(); |
| case DatamartDSLPackage.EXPRESSION__SET: |
| return getSet(); |
| case DatamartDSLPackage.EXPRESSION__SET_FUNCTION: |
| return getSetFunction(); |
| } |
| return super.eGet(featureID, resolve, coreType); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void eSet(int featureID, Object newValue) { |
| switch (featureID) { |
| case DatamartDSLPackage.EXPRESSION__FILTERED: |
| setFiltered((Boolean)newValue); |
| return; |
| case DatamartDSLPackage.EXPRESSION__SELECTED: |
| setSelected((Boolean)newValue); |
| return; |
| case DatamartDSLPackage.EXPRESSION__OPTIONAL: |
| setOptional((Boolean)newValue); |
| return; |
| case DatamartDSLPackage.EXPRESSION__NUMBER_VALUE: |
| setNumberValue((String)newValue); |
| return; |
| case DatamartDSLPackage.EXPRESSION__STRING_VALUE: |
| setStringValue((String)newValue); |
| return; |
| case DatamartDSLPackage.EXPRESSION__VALUE: |
| setValue((String)newValue); |
| return; |
| case DatamartDSLPackage.EXPRESSION__HIERARCHY: |
| setHierarchy((DatamartHierarchy)newValue); |
| return; |
| case DatamartDSLPackage.EXPRESSION__AGGREGATION: |
| setAggregation((DatamartAggregationFunctionInterface)newValue); |
| return; |
| case DatamartDSLPackage.EXPRESSION__FUNCTION: |
| setFunction((DatamartFunctionInterface)newValue); |
| return; |
| case DatamartDSLPackage.EXPRESSION__SET: |
| setSet((Expression)newValue); |
| return; |
| case DatamartDSLPackage.EXPRESSION__SET_FUNCTION: |
| setSetFunction((DatamartSetFunctionInterface)newValue); |
| return; |
| } |
| super.eSet(featureID, newValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void eUnset(int featureID) { |
| switch (featureID) { |
| case DatamartDSLPackage.EXPRESSION__FILTERED: |
| setFiltered(FILTERED_EDEFAULT); |
| return; |
| case DatamartDSLPackage.EXPRESSION__SELECTED: |
| setSelected(SELECTED_EDEFAULT); |
| return; |
| case DatamartDSLPackage.EXPRESSION__OPTIONAL: |
| setOptional(OPTIONAL_EDEFAULT); |
| return; |
| case DatamartDSLPackage.EXPRESSION__NUMBER_VALUE: |
| setNumberValue(NUMBER_VALUE_EDEFAULT); |
| return; |
| case DatamartDSLPackage.EXPRESSION__STRING_VALUE: |
| setStringValue(STRING_VALUE_EDEFAULT); |
| return; |
| case DatamartDSLPackage.EXPRESSION__VALUE: |
| setValue(VALUE_EDEFAULT); |
| return; |
| case DatamartDSLPackage.EXPRESSION__HIERARCHY: |
| setHierarchy((DatamartHierarchy)null); |
| return; |
| case DatamartDSLPackage.EXPRESSION__AGGREGATION: |
| setAggregation((DatamartAggregationFunctionInterface)null); |
| return; |
| case DatamartDSLPackage.EXPRESSION__FUNCTION: |
| setFunction((DatamartFunctionInterface)null); |
| return; |
| case DatamartDSLPackage.EXPRESSION__SET: |
| setSet((Expression)null); |
| return; |
| case DatamartDSLPackage.EXPRESSION__SET_FUNCTION: |
| setSetFunction((DatamartSetFunctionInterface)null); |
| return; |
| } |
| super.eUnset(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public boolean eIsSet(int featureID) { |
| switch (featureID) { |
| case DatamartDSLPackage.EXPRESSION__FILTERED: |
| return filtered != FILTERED_EDEFAULT; |
| case DatamartDSLPackage.EXPRESSION__SELECTED: |
| return selected != SELECTED_EDEFAULT; |
| case DatamartDSLPackage.EXPRESSION__OPTIONAL: |
| return optional != OPTIONAL_EDEFAULT; |
| case DatamartDSLPackage.EXPRESSION__NUMBER_VALUE: |
| return NUMBER_VALUE_EDEFAULT == null ? numberValue != null : !NUMBER_VALUE_EDEFAULT.equals(numberValue); |
| case DatamartDSLPackage.EXPRESSION__STRING_VALUE: |
| return STRING_VALUE_EDEFAULT == null ? stringValue != null : !STRING_VALUE_EDEFAULT.equals(stringValue); |
| case DatamartDSLPackage.EXPRESSION__VALUE: |
| return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); |
| case DatamartDSLPackage.EXPRESSION__HIERARCHY: |
| return hierarchy != null; |
| case DatamartDSLPackage.EXPRESSION__AGGREGATION: |
| return aggregation != null; |
| case DatamartDSLPackage.EXPRESSION__FUNCTION: |
| return function != null; |
| case DatamartDSLPackage.EXPRESSION__SET: |
| return set != null; |
| case DatamartDSLPackage.EXPRESSION__SET_FUNCTION: |
| return setFunction != null; |
| } |
| return super.eIsSet(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public String toString() { |
| if (eIsProxy()) return super.toString(); |
| |
| StringBuffer result = new StringBuffer(super.toString()); |
| result.append(" (filtered: "); |
| result.append(filtered); |
| result.append(", selected: "); |
| result.append(selected); |
| result.append(", optional: "); |
| result.append(optional); |
| result.append(", numberValue: "); |
| result.append(numberValue); |
| result.append(", stringValue: "); |
| result.append(stringValue); |
| result.append(", value: "); |
| result.append(value); |
| result.append(')'); |
| return result.toString(); |
| } |
| |
| } //ExpressionImpl |