blob: 75e179594bac92a8e4fbcf39262176da0e54afbe [file] [log] [blame]
/**
*/
package org.hl7.fhir.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.hl7.fhir.EffectEvidenceSynthesisSampleSize;
import org.hl7.fhir.FhirPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Effect Evidence Synthesis Sample Size</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.hl7.fhir.impl.EffectEvidenceSynthesisSampleSizeImpl#getDescription <em>Description</em>}</li>
* <li>{@link org.hl7.fhir.impl.EffectEvidenceSynthesisSampleSizeImpl#getNumberOfStudies <em>Number Of Studies</em>}</li>
* <li>{@link org.hl7.fhir.impl.EffectEvidenceSynthesisSampleSizeImpl#getNumberOfParticipants <em>Number Of Participants</em>}</li>
* </ul>
*
* @generated
*/
public class EffectEvidenceSynthesisSampleSizeImpl extends BackboneElementImpl implements EffectEvidenceSynthesisSampleSize {
/**
* The cached value of the '{@link #getDescription() <em>Description</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDescription()
* @generated
* @ordered
*/
protected org.hl7.fhir.String description;
/**
* The cached value of the '{@link #getNumberOfStudies() <em>Number Of Studies</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNumberOfStudies()
* @generated
* @ordered
*/
protected org.hl7.fhir.Integer numberOfStudies;
/**
* The cached value of the '{@link #getNumberOfParticipants() <em>Number Of Participants</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNumberOfParticipants()
* @generated
* @ordered
*/
protected org.hl7.fhir.Integer numberOfParticipants;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected EffectEvidenceSynthesisSampleSizeImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FhirPackage.eINSTANCE.getEffectEvidenceSynthesisSampleSize();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public org.hl7.fhir.String getDescription() {
return description;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetDescription(org.hl7.fhir.String newDescription, NotificationChain msgs) {
org.hl7.fhir.String oldDescription = description;
description = newDescription;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EFFECT_EVIDENCE_SYNTHESIS_SAMPLE_SIZE__DESCRIPTION, oldDescription, newDescription);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDescription(org.hl7.fhir.String newDescription) {
if (newDescription != description) {
NotificationChain msgs = null;
if (description != null)
msgs = ((InternalEObject)description).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EFFECT_EVIDENCE_SYNTHESIS_SAMPLE_SIZE__DESCRIPTION, null, msgs);
if (newDescription != null)
msgs = ((InternalEObject)newDescription).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EFFECT_EVIDENCE_SYNTHESIS_SAMPLE_SIZE__DESCRIPTION, null, msgs);
msgs = basicSetDescription(newDescription, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EFFECT_EVIDENCE_SYNTHESIS_SAMPLE_SIZE__DESCRIPTION, newDescription, newDescription));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public org.hl7.fhir.Integer getNumberOfStudies() {
return numberOfStudies;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetNumberOfStudies(org.hl7.fhir.Integer newNumberOfStudies, NotificationChain msgs) {
org.hl7.fhir.Integer oldNumberOfStudies = numberOfStudies;
numberOfStudies = newNumberOfStudies;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EFFECT_EVIDENCE_SYNTHESIS_SAMPLE_SIZE__NUMBER_OF_STUDIES, oldNumberOfStudies, newNumberOfStudies);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setNumberOfStudies(org.hl7.fhir.Integer newNumberOfStudies) {
if (newNumberOfStudies != numberOfStudies) {
NotificationChain msgs = null;
if (numberOfStudies != null)
msgs = ((InternalEObject)numberOfStudies).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EFFECT_EVIDENCE_SYNTHESIS_SAMPLE_SIZE__NUMBER_OF_STUDIES, null, msgs);
if (newNumberOfStudies != null)
msgs = ((InternalEObject)newNumberOfStudies).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EFFECT_EVIDENCE_SYNTHESIS_SAMPLE_SIZE__NUMBER_OF_STUDIES, null, msgs);
msgs = basicSetNumberOfStudies(newNumberOfStudies, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EFFECT_EVIDENCE_SYNTHESIS_SAMPLE_SIZE__NUMBER_OF_STUDIES, newNumberOfStudies, newNumberOfStudies));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public org.hl7.fhir.Integer getNumberOfParticipants() {
return numberOfParticipants;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetNumberOfParticipants(org.hl7.fhir.Integer newNumberOfParticipants, NotificationChain msgs) {
org.hl7.fhir.Integer oldNumberOfParticipants = numberOfParticipants;
numberOfParticipants = newNumberOfParticipants;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EFFECT_EVIDENCE_SYNTHESIS_SAMPLE_SIZE__NUMBER_OF_PARTICIPANTS, oldNumberOfParticipants, newNumberOfParticipants);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setNumberOfParticipants(org.hl7.fhir.Integer newNumberOfParticipants) {
if (newNumberOfParticipants != numberOfParticipants) {
NotificationChain msgs = null;
if (numberOfParticipants != null)
msgs = ((InternalEObject)numberOfParticipants).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EFFECT_EVIDENCE_SYNTHESIS_SAMPLE_SIZE__NUMBER_OF_PARTICIPANTS, null, msgs);
if (newNumberOfParticipants != null)
msgs = ((InternalEObject)newNumberOfParticipants).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EFFECT_EVIDENCE_SYNTHESIS_SAMPLE_SIZE__NUMBER_OF_PARTICIPANTS, null, msgs);
msgs = basicSetNumberOfParticipants(newNumberOfParticipants, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EFFECT_EVIDENCE_SYNTHESIS_SAMPLE_SIZE__NUMBER_OF_PARTICIPANTS, newNumberOfParticipants, newNumberOfParticipants));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case FhirPackage.EFFECT_EVIDENCE_SYNTHESIS_SAMPLE_SIZE__DESCRIPTION:
return basicSetDescription(null, msgs);
case FhirPackage.EFFECT_EVIDENCE_SYNTHESIS_SAMPLE_SIZE__NUMBER_OF_STUDIES:
return basicSetNumberOfStudies(null, msgs);
case FhirPackage.EFFECT_EVIDENCE_SYNTHESIS_SAMPLE_SIZE__NUMBER_OF_PARTICIPANTS:
return basicSetNumberOfParticipants(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 FhirPackage.EFFECT_EVIDENCE_SYNTHESIS_SAMPLE_SIZE__DESCRIPTION:
return getDescription();
case FhirPackage.EFFECT_EVIDENCE_SYNTHESIS_SAMPLE_SIZE__NUMBER_OF_STUDIES:
return getNumberOfStudies();
case FhirPackage.EFFECT_EVIDENCE_SYNTHESIS_SAMPLE_SIZE__NUMBER_OF_PARTICIPANTS:
return getNumberOfParticipants();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case FhirPackage.EFFECT_EVIDENCE_SYNTHESIS_SAMPLE_SIZE__DESCRIPTION:
setDescription((org.hl7.fhir.String)newValue);
return;
case FhirPackage.EFFECT_EVIDENCE_SYNTHESIS_SAMPLE_SIZE__NUMBER_OF_STUDIES:
setNumberOfStudies((org.hl7.fhir.Integer)newValue);
return;
case FhirPackage.EFFECT_EVIDENCE_SYNTHESIS_SAMPLE_SIZE__NUMBER_OF_PARTICIPANTS:
setNumberOfParticipants((org.hl7.fhir.Integer)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case FhirPackage.EFFECT_EVIDENCE_SYNTHESIS_SAMPLE_SIZE__DESCRIPTION:
setDescription((org.hl7.fhir.String)null);
return;
case FhirPackage.EFFECT_EVIDENCE_SYNTHESIS_SAMPLE_SIZE__NUMBER_OF_STUDIES:
setNumberOfStudies((org.hl7.fhir.Integer)null);
return;
case FhirPackage.EFFECT_EVIDENCE_SYNTHESIS_SAMPLE_SIZE__NUMBER_OF_PARTICIPANTS:
setNumberOfParticipants((org.hl7.fhir.Integer)null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case FhirPackage.EFFECT_EVIDENCE_SYNTHESIS_SAMPLE_SIZE__DESCRIPTION:
return description != null;
case FhirPackage.EFFECT_EVIDENCE_SYNTHESIS_SAMPLE_SIZE__NUMBER_OF_STUDIES:
return numberOfStudies != null;
case FhirPackage.EFFECT_EVIDENCE_SYNTHESIS_SAMPLE_SIZE__NUMBER_OF_PARTICIPANTS:
return numberOfParticipants != null;
}
return super.eIsSet(featureID);
}
} //EffectEvidenceSynthesisSampleSizeImpl