| /** |
| * |
| * 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 |
| * |
| * Contributors: |
| * Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation |
| */ |
| package org.eclipse.osbp.infogrid.model.gridsource.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.emf.ecore.impl.MinimalEObjectImpl; |
| |
| import org.eclipse.osbp.infogrid.model.gridsource.CxGridNestedField; |
| import org.eclipse.osbp.infogrid.model.gridsource.CxGridSourceEQFilter; |
| import org.eclipse.osbp.infogrid.model.gridsource.CxGridSourcePackage; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model object '<em><b>EQ Filter</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * The following features are implemented: |
| * </p> |
| * <ul> |
| * <li>{@link org.eclipse.osbp.infogrid.model.gridsource.impl.CxGridSourceEQFilterImpl#getInputTypePropertyPath <em>Input Type Property Path</em>}</li> |
| * <li>{@link org.eclipse.osbp.infogrid.model.gridsource.impl.CxGridSourceEQFilterImpl#getRootTypePropertyPath <em>Root Type Property Path</em>}</li> |
| * </ul> |
| * |
| * @generated |
| */ |
| public class CxGridSourceEQFilterImpl extends MinimalEObjectImpl.Container implements CxGridSourceEQFilter { |
| /** |
| * The cached value of the '{@link #getInputTypePropertyPath() <em>Input Type Property Path</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getInputTypePropertyPath() |
| * @generated |
| * @ordered |
| */ |
| protected CxGridNestedField inputTypePropertyPath; |
| |
| /** |
| * The cached value of the '{@link #getRootTypePropertyPath() <em>Root Type Property Path</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getRootTypePropertyPath() |
| * @generated |
| * @ordered |
| */ |
| protected CxGridNestedField rootTypePropertyPath; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected CxGridSourceEQFilterImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| protected EClass eStaticClass() { |
| return CxGridSourcePackage.Literals.CX_GRID_SOURCE_EQ_FILTER; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public CxGridNestedField getInputTypePropertyPath() { |
| return inputTypePropertyPath; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetInputTypePropertyPath(CxGridNestedField newInputTypePropertyPath, NotificationChain msgs) { |
| CxGridNestedField oldInputTypePropertyPath = inputTypePropertyPath; |
| inputTypePropertyPath = newInputTypePropertyPath; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CxGridSourcePackage.CX_GRID_SOURCE_EQ_FILTER__INPUT_TYPE_PROPERTY_PATH, oldInputTypePropertyPath, newInputTypePropertyPath); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setInputTypePropertyPath(CxGridNestedField newInputTypePropertyPath) { |
| if (newInputTypePropertyPath != inputTypePropertyPath) { |
| NotificationChain msgs = null; |
| if (inputTypePropertyPath != null) |
| msgs = ((InternalEObject)inputTypePropertyPath).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CxGridSourcePackage.CX_GRID_SOURCE_EQ_FILTER__INPUT_TYPE_PROPERTY_PATH, null, msgs); |
| if (newInputTypePropertyPath != null) |
| msgs = ((InternalEObject)newInputTypePropertyPath).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CxGridSourcePackage.CX_GRID_SOURCE_EQ_FILTER__INPUT_TYPE_PROPERTY_PATH, null, msgs); |
| msgs = basicSetInputTypePropertyPath(newInputTypePropertyPath, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, CxGridSourcePackage.CX_GRID_SOURCE_EQ_FILTER__INPUT_TYPE_PROPERTY_PATH, newInputTypePropertyPath, newInputTypePropertyPath)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public CxGridNestedField getRootTypePropertyPath() { |
| return rootTypePropertyPath; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetRootTypePropertyPath(CxGridNestedField newRootTypePropertyPath, NotificationChain msgs) { |
| CxGridNestedField oldRootTypePropertyPath = rootTypePropertyPath; |
| rootTypePropertyPath = newRootTypePropertyPath; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CxGridSourcePackage.CX_GRID_SOURCE_EQ_FILTER__ROOT_TYPE_PROPERTY_PATH, oldRootTypePropertyPath, newRootTypePropertyPath); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setRootTypePropertyPath(CxGridNestedField newRootTypePropertyPath) { |
| if (newRootTypePropertyPath != rootTypePropertyPath) { |
| NotificationChain msgs = null; |
| if (rootTypePropertyPath != null) |
| msgs = ((InternalEObject)rootTypePropertyPath).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CxGridSourcePackage.CX_GRID_SOURCE_EQ_FILTER__ROOT_TYPE_PROPERTY_PATH, null, msgs); |
| if (newRootTypePropertyPath != null) |
| msgs = ((InternalEObject)newRootTypePropertyPath).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CxGridSourcePackage.CX_GRID_SOURCE_EQ_FILTER__ROOT_TYPE_PROPERTY_PATH, null, msgs); |
| msgs = basicSetRootTypePropertyPath(newRootTypePropertyPath, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, CxGridSourcePackage.CX_GRID_SOURCE_EQ_FILTER__ROOT_TYPE_PROPERTY_PATH, newRootTypePropertyPath, newRootTypePropertyPath)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
| switch (featureID) { |
| case CxGridSourcePackage.CX_GRID_SOURCE_EQ_FILTER__INPUT_TYPE_PROPERTY_PATH: |
| return basicSetInputTypePropertyPath(null, msgs); |
| case CxGridSourcePackage.CX_GRID_SOURCE_EQ_FILTER__ROOT_TYPE_PROPERTY_PATH: |
| return basicSetRootTypePropertyPath(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 CxGridSourcePackage.CX_GRID_SOURCE_EQ_FILTER__INPUT_TYPE_PROPERTY_PATH: |
| return getInputTypePropertyPath(); |
| case CxGridSourcePackage.CX_GRID_SOURCE_EQ_FILTER__ROOT_TYPE_PROPERTY_PATH: |
| return getRootTypePropertyPath(); |
| } |
| return super.eGet(featureID, resolve, coreType); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void eSet(int featureID, Object newValue) { |
| switch (featureID) { |
| case CxGridSourcePackage.CX_GRID_SOURCE_EQ_FILTER__INPUT_TYPE_PROPERTY_PATH: |
| setInputTypePropertyPath((CxGridNestedField)newValue); |
| return; |
| case CxGridSourcePackage.CX_GRID_SOURCE_EQ_FILTER__ROOT_TYPE_PROPERTY_PATH: |
| setRootTypePropertyPath((CxGridNestedField)newValue); |
| return; |
| } |
| super.eSet(featureID, newValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void eUnset(int featureID) { |
| switch (featureID) { |
| case CxGridSourcePackage.CX_GRID_SOURCE_EQ_FILTER__INPUT_TYPE_PROPERTY_PATH: |
| setInputTypePropertyPath((CxGridNestedField)null); |
| return; |
| case CxGridSourcePackage.CX_GRID_SOURCE_EQ_FILTER__ROOT_TYPE_PROPERTY_PATH: |
| setRootTypePropertyPath((CxGridNestedField)null); |
| return; |
| } |
| super.eUnset(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public boolean eIsSet(int featureID) { |
| switch (featureID) { |
| case CxGridSourcePackage.CX_GRID_SOURCE_EQ_FILTER__INPUT_TYPE_PROPERTY_PATH: |
| return inputTypePropertyPath != null; |
| case CxGridSourcePackage.CX_GRID_SOURCE_EQ_FILTER__ROOT_TYPE_PROPERTY_PATH: |
| return rootTypePropertyPath != null; |
| } |
| return super.eIsSet(featureID); |
| } |
| |
| } //CxGridSourceEQFilterImpl |