| /******************************************************************************* |
| * Copyright (c) 2016 David Carlson and others. |
| * 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: |
| * David Carlson (Clinical Cloud Solutions, LLC) - initial API and implementation |
| *******************************************************************************/ |
| /** |
| */ |
| package org.eclipse.mdht.uml.fhir.core.resource.impl; |
| |
| import org.eclipse.emf.common.notify.Notification; |
| |
| import org.eclipse.emf.ecore.EClass; |
| import org.eclipse.emf.ecore.InternalEObject; |
| |
| import org.eclipse.emf.ecore.impl.ENotificationImpl; |
| |
| import org.eclipse.mdht.uml.fhir.core.datatype.DataType; |
| |
| import org.eclipse.mdht.uml.fhir.core.datatype.impl.BackboneElementImpl; |
| |
| import org.eclipse.mdht.uml.fhir.core.resource.DecisionSupportServiceModuleParameterDateFilter; |
| import org.eclipse.mdht.uml.fhir.core.resource.FhirResourcePackage; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model object '<em><b>Decision Support Service Module Parameter Date Filter</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * The following features are implemented: |
| * </p> |
| * <ul> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.DecisionSupportServiceModuleParameterDateFilterImpl#getPath <em>Path</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.DecisionSupportServiceModuleParameterDateFilterImpl#getValuex <em>Valuex</em>}</li> |
| * </ul> |
| * |
| * @generated |
| */ |
| public class DecisionSupportServiceModuleParameterDateFilterImpl extends BackboneElementImpl implements DecisionSupportServiceModuleParameterDateFilter { |
| /** |
| * The cached value of the '{@link #getPath() <em>Path</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPath() |
| * @generated |
| * @ordered |
| */ |
| protected org.eclipse.mdht.uml.fhir.core.datatype.String path; |
| |
| /** |
| * The cached value of the '{@link #getValuex() <em>Valuex</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getValuex() |
| * @generated |
| * @ordered |
| */ |
| protected DataType valuex; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected DecisionSupportServiceModuleParameterDateFilterImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| protected EClass eStaticClass() { |
| return FhirResourcePackage.eINSTANCE.getDecisionSupportServiceModuleParameterDateFilter(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public org.eclipse.mdht.uml.fhir.core.datatype.String getPath() { |
| if (path != null && path.eIsProxy()) { |
| InternalEObject oldPath = (InternalEObject)path; |
| path = (org.eclipse.mdht.uml.fhir.core.datatype.String)eResolveProxy(oldPath); |
| if (path != oldPath) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.DECISION_SUPPORT_SERVICE_MODULE_PARAMETER_DATE_FILTER__PATH, oldPath, path)); |
| } |
| } |
| return path; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public org.eclipse.mdht.uml.fhir.core.datatype.String basicGetPath() { |
| return path; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setPath(org.eclipse.mdht.uml.fhir.core.datatype.String newPath) { |
| org.eclipse.mdht.uml.fhir.core.datatype.String oldPath = path; |
| path = newPath; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.DECISION_SUPPORT_SERVICE_MODULE_PARAMETER_DATE_FILTER__PATH, oldPath, path)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public DataType getValuex() { |
| if (valuex != null && valuex.eIsProxy()) { |
| InternalEObject oldValuex = (InternalEObject)valuex; |
| valuex = (DataType)eResolveProxy(oldValuex); |
| if (valuex != oldValuex) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.DECISION_SUPPORT_SERVICE_MODULE_PARAMETER_DATE_FILTER__VALUEX, oldValuex, valuex)); |
| } |
| } |
| return valuex; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public DataType basicGetValuex() { |
| return valuex; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setValuex(DataType newValuex) { |
| DataType oldValuex = valuex; |
| valuex = newValuex; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.DECISION_SUPPORT_SERVICE_MODULE_PARAMETER_DATE_FILTER__VALUEX, oldValuex, valuex)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public Object eGet(int featureID, boolean resolve, boolean coreType) { |
| switch (featureID) { |
| case FhirResourcePackage.DECISION_SUPPORT_SERVICE_MODULE_PARAMETER_DATE_FILTER__PATH: |
| if (resolve) return getPath(); |
| return basicGetPath(); |
| case FhirResourcePackage.DECISION_SUPPORT_SERVICE_MODULE_PARAMETER_DATE_FILTER__VALUEX: |
| if (resolve) return getValuex(); |
| return basicGetValuex(); |
| } |
| return super.eGet(featureID, resolve, coreType); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void eSet(int featureID, Object newValue) { |
| switch (featureID) { |
| case FhirResourcePackage.DECISION_SUPPORT_SERVICE_MODULE_PARAMETER_DATE_FILTER__PATH: |
| setPath((org.eclipse.mdht.uml.fhir.core.datatype.String)newValue); |
| return; |
| case FhirResourcePackage.DECISION_SUPPORT_SERVICE_MODULE_PARAMETER_DATE_FILTER__VALUEX: |
| setValuex((DataType)newValue); |
| return; |
| } |
| super.eSet(featureID, newValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void eUnset(int featureID) { |
| switch (featureID) { |
| case FhirResourcePackage.DECISION_SUPPORT_SERVICE_MODULE_PARAMETER_DATE_FILTER__PATH: |
| setPath((org.eclipse.mdht.uml.fhir.core.datatype.String)null); |
| return; |
| case FhirResourcePackage.DECISION_SUPPORT_SERVICE_MODULE_PARAMETER_DATE_FILTER__VALUEX: |
| setValuex((DataType)null); |
| return; |
| } |
| super.eUnset(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public boolean eIsSet(int featureID) { |
| switch (featureID) { |
| case FhirResourcePackage.DECISION_SUPPORT_SERVICE_MODULE_PARAMETER_DATE_FILTER__PATH: |
| return path != null; |
| case FhirResourcePackage.DECISION_SUPPORT_SERVICE_MODULE_PARAMETER_DATE_FILTER__VALUEX: |
| return valuex != null; |
| } |
| return super.eIsSet(featureID); |
| } |
| |
| } //DecisionSupportServiceModuleParameterDateFilterImpl |