| /** |
| */ |
| package org.hl7.fhir.impl; |
| |
| import java.util.Collection; |
| |
| import org.eclipse.emf.common.notify.Notification; |
| 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.impl.ENotificationImpl; |
| |
| import org.eclipse.emf.ecore.util.EObjectContainmentEList; |
| import org.eclipse.emf.ecore.util.InternalEList; |
| |
| import org.hl7.fhir.AuditEvent; |
| import org.hl7.fhir.AuditEventAction; |
| import org.hl7.fhir.AuditEventAgent; |
| import org.hl7.fhir.AuditEventEntity; |
| import org.hl7.fhir.AuditEventOutcome; |
| import org.hl7.fhir.AuditEventSource; |
| import org.hl7.fhir.CodeableConcept; |
| import org.hl7.fhir.Coding; |
| import org.hl7.fhir.FhirPackage; |
| import org.hl7.fhir.Instant; |
| import org.hl7.fhir.Period; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model object '<em><b>Audit Event</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * The following features are implemented: |
| * </p> |
| * <ul> |
| * <li>{@link org.hl7.fhir.impl.AuditEventImpl#getType <em>Type</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.AuditEventImpl#getSubtype <em>Subtype</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.AuditEventImpl#getAction <em>Action</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.AuditEventImpl#getPeriod <em>Period</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.AuditEventImpl#getRecorded <em>Recorded</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.AuditEventImpl#getOutcome <em>Outcome</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.AuditEventImpl#getOutcomeDesc <em>Outcome Desc</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.AuditEventImpl#getPurposeOfEvent <em>Purpose Of Event</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.AuditEventImpl#getAgent <em>Agent</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.AuditEventImpl#getSource <em>Source</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.AuditEventImpl#getEntity <em>Entity</em>}</li> |
| * </ul> |
| * |
| * @generated |
| */ |
| public class AuditEventImpl extends DomainResourceImpl implements AuditEvent { |
| /** |
| * The cached value of the '{@link #getType() <em>Type</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getType() |
| * @generated |
| * @ordered |
| */ |
| protected Coding type; |
| |
| /** |
| * The cached value of the '{@link #getSubtype() <em>Subtype</em>}' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getSubtype() |
| * @generated |
| * @ordered |
| */ |
| protected EList<Coding> subtype; |
| |
| /** |
| * The cached value of the '{@link #getAction() <em>Action</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getAction() |
| * @generated |
| * @ordered |
| */ |
| protected AuditEventAction action; |
| |
| /** |
| * The cached value of the '{@link #getPeriod() <em>Period</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPeriod() |
| * @generated |
| * @ordered |
| */ |
| protected Period period; |
| |
| /** |
| * The cached value of the '{@link #getRecorded() <em>Recorded</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getRecorded() |
| * @generated |
| * @ordered |
| */ |
| protected Instant recorded; |
| |
| /** |
| * The cached value of the '{@link #getOutcome() <em>Outcome</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getOutcome() |
| * @generated |
| * @ordered |
| */ |
| protected AuditEventOutcome outcome; |
| |
| /** |
| * The cached value of the '{@link #getOutcomeDesc() <em>Outcome Desc</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getOutcomeDesc() |
| * @generated |
| * @ordered |
| */ |
| protected org.hl7.fhir.String outcomeDesc; |
| |
| /** |
| * The cached value of the '{@link #getPurposeOfEvent() <em>Purpose Of Event</em>}' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPurposeOfEvent() |
| * @generated |
| * @ordered |
| */ |
| protected EList<CodeableConcept> purposeOfEvent; |
| |
| /** |
| * The cached value of the '{@link #getAgent() <em>Agent</em>}' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getAgent() |
| * @generated |
| * @ordered |
| */ |
| protected EList<AuditEventAgent> agent; |
| |
| /** |
| * The cached value of the '{@link #getSource() <em>Source</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getSource() |
| * @generated |
| * @ordered |
| */ |
| protected AuditEventSource source; |
| |
| /** |
| * The cached value of the '{@link #getEntity() <em>Entity</em>}' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getEntity() |
| * @generated |
| * @ordered |
| */ |
| protected EList<AuditEventEntity> entity; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected AuditEventImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| protected EClass eStaticClass() { |
| return FhirPackage.eINSTANCE.getAuditEvent(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Coding getType() { |
| return type; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetType(Coding newType, NotificationChain msgs) { |
| Coding oldType = type; |
| type = newType; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.AUDIT_EVENT__TYPE, oldType, newType); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setType(Coding newType) { |
| if (newType != type) { |
| NotificationChain msgs = null; |
| if (type != null) |
| msgs = ((InternalEObject)type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.AUDIT_EVENT__TYPE, null, msgs); |
| if (newType != null) |
| msgs = ((InternalEObject)newType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.AUDIT_EVENT__TYPE, null, msgs); |
| msgs = basicSetType(newType, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.AUDIT_EVENT__TYPE, newType, newType)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<Coding> getSubtype() { |
| if (subtype == null) { |
| subtype = new EObjectContainmentEList<Coding>(Coding.class, this, FhirPackage.AUDIT_EVENT__SUBTYPE); |
| } |
| return subtype; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public AuditEventAction getAction() { |
| return action; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetAction(AuditEventAction newAction, NotificationChain msgs) { |
| AuditEventAction oldAction = action; |
| action = newAction; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.AUDIT_EVENT__ACTION, oldAction, newAction); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setAction(AuditEventAction newAction) { |
| if (newAction != action) { |
| NotificationChain msgs = null; |
| if (action != null) |
| msgs = ((InternalEObject)action).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.AUDIT_EVENT__ACTION, null, msgs); |
| if (newAction != null) |
| msgs = ((InternalEObject)newAction).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.AUDIT_EVENT__ACTION, null, msgs); |
| msgs = basicSetAction(newAction, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.AUDIT_EVENT__ACTION, newAction, newAction)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Period getPeriod() { |
| return period; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetPeriod(Period newPeriod, NotificationChain msgs) { |
| Period oldPeriod = period; |
| period = newPeriod; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.AUDIT_EVENT__PERIOD, oldPeriod, newPeriod); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setPeriod(Period newPeriod) { |
| if (newPeriod != period) { |
| NotificationChain msgs = null; |
| if (period != null) |
| msgs = ((InternalEObject)period).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.AUDIT_EVENT__PERIOD, null, msgs); |
| if (newPeriod != null) |
| msgs = ((InternalEObject)newPeriod).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.AUDIT_EVENT__PERIOD, null, msgs); |
| msgs = basicSetPeriod(newPeriod, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.AUDIT_EVENT__PERIOD, newPeriod, newPeriod)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Instant getRecorded() { |
| return recorded; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetRecorded(Instant newRecorded, NotificationChain msgs) { |
| Instant oldRecorded = recorded; |
| recorded = newRecorded; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.AUDIT_EVENT__RECORDED, oldRecorded, newRecorded); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setRecorded(Instant newRecorded) { |
| if (newRecorded != recorded) { |
| NotificationChain msgs = null; |
| if (recorded != null) |
| msgs = ((InternalEObject)recorded).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.AUDIT_EVENT__RECORDED, null, msgs); |
| if (newRecorded != null) |
| msgs = ((InternalEObject)newRecorded).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.AUDIT_EVENT__RECORDED, null, msgs); |
| msgs = basicSetRecorded(newRecorded, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.AUDIT_EVENT__RECORDED, newRecorded, newRecorded)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public AuditEventOutcome getOutcome() { |
| return outcome; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetOutcome(AuditEventOutcome newOutcome, NotificationChain msgs) { |
| AuditEventOutcome oldOutcome = outcome; |
| outcome = newOutcome; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.AUDIT_EVENT__OUTCOME, oldOutcome, newOutcome); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setOutcome(AuditEventOutcome newOutcome) { |
| if (newOutcome != outcome) { |
| NotificationChain msgs = null; |
| if (outcome != null) |
| msgs = ((InternalEObject)outcome).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.AUDIT_EVENT__OUTCOME, null, msgs); |
| if (newOutcome != null) |
| msgs = ((InternalEObject)newOutcome).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.AUDIT_EVENT__OUTCOME, null, msgs); |
| msgs = basicSetOutcome(newOutcome, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.AUDIT_EVENT__OUTCOME, newOutcome, newOutcome)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public org.hl7.fhir.String getOutcomeDesc() { |
| return outcomeDesc; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetOutcomeDesc(org.hl7.fhir.String newOutcomeDesc, NotificationChain msgs) { |
| org.hl7.fhir.String oldOutcomeDesc = outcomeDesc; |
| outcomeDesc = newOutcomeDesc; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.AUDIT_EVENT__OUTCOME_DESC, oldOutcomeDesc, newOutcomeDesc); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setOutcomeDesc(org.hl7.fhir.String newOutcomeDesc) { |
| if (newOutcomeDesc != outcomeDesc) { |
| NotificationChain msgs = null; |
| if (outcomeDesc != null) |
| msgs = ((InternalEObject)outcomeDesc).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.AUDIT_EVENT__OUTCOME_DESC, null, msgs); |
| if (newOutcomeDesc != null) |
| msgs = ((InternalEObject)newOutcomeDesc).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.AUDIT_EVENT__OUTCOME_DESC, null, msgs); |
| msgs = basicSetOutcomeDesc(newOutcomeDesc, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.AUDIT_EVENT__OUTCOME_DESC, newOutcomeDesc, newOutcomeDesc)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<CodeableConcept> getPurposeOfEvent() { |
| if (purposeOfEvent == null) { |
| purposeOfEvent = new EObjectContainmentEList<CodeableConcept>(CodeableConcept.class, this, FhirPackage.AUDIT_EVENT__PURPOSE_OF_EVENT); |
| } |
| return purposeOfEvent; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<AuditEventAgent> getAgent() { |
| if (agent == null) { |
| agent = new EObjectContainmentEList<AuditEventAgent>(AuditEventAgent.class, this, FhirPackage.AUDIT_EVENT__AGENT); |
| } |
| return agent; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public AuditEventSource getSource() { |
| return source; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetSource(AuditEventSource newSource, NotificationChain msgs) { |
| AuditEventSource oldSource = source; |
| source = newSource; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.AUDIT_EVENT__SOURCE, oldSource, newSource); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setSource(AuditEventSource newSource) { |
| if (newSource != source) { |
| NotificationChain msgs = null; |
| if (source != null) |
| msgs = ((InternalEObject)source).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.AUDIT_EVENT__SOURCE, null, msgs); |
| if (newSource != null) |
| msgs = ((InternalEObject)newSource).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.AUDIT_EVENT__SOURCE, null, msgs); |
| msgs = basicSetSource(newSource, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.AUDIT_EVENT__SOURCE, newSource, newSource)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<AuditEventEntity> getEntity() { |
| if (entity == null) { |
| entity = new EObjectContainmentEList<AuditEventEntity>(AuditEventEntity.class, this, FhirPackage.AUDIT_EVENT__ENTITY); |
| } |
| return entity; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
| switch (featureID) { |
| case FhirPackage.AUDIT_EVENT__TYPE: |
| return basicSetType(null, msgs); |
| case FhirPackage.AUDIT_EVENT__SUBTYPE: |
| return ((InternalEList<?>)getSubtype()).basicRemove(otherEnd, msgs); |
| case FhirPackage.AUDIT_EVENT__ACTION: |
| return basicSetAction(null, msgs); |
| case FhirPackage.AUDIT_EVENT__PERIOD: |
| return basicSetPeriod(null, msgs); |
| case FhirPackage.AUDIT_EVENT__RECORDED: |
| return basicSetRecorded(null, msgs); |
| case FhirPackage.AUDIT_EVENT__OUTCOME: |
| return basicSetOutcome(null, msgs); |
| case FhirPackage.AUDIT_EVENT__OUTCOME_DESC: |
| return basicSetOutcomeDesc(null, msgs); |
| case FhirPackage.AUDIT_EVENT__PURPOSE_OF_EVENT: |
| return ((InternalEList<?>)getPurposeOfEvent()).basicRemove(otherEnd, msgs); |
| case FhirPackage.AUDIT_EVENT__AGENT: |
| return ((InternalEList<?>)getAgent()).basicRemove(otherEnd, msgs); |
| case FhirPackage.AUDIT_EVENT__SOURCE: |
| return basicSetSource(null, msgs); |
| case FhirPackage.AUDIT_EVENT__ENTITY: |
| return ((InternalEList<?>)getEntity()).basicRemove(otherEnd, 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.AUDIT_EVENT__TYPE: |
| return getType(); |
| case FhirPackage.AUDIT_EVENT__SUBTYPE: |
| return getSubtype(); |
| case FhirPackage.AUDIT_EVENT__ACTION: |
| return getAction(); |
| case FhirPackage.AUDIT_EVENT__PERIOD: |
| return getPeriod(); |
| case FhirPackage.AUDIT_EVENT__RECORDED: |
| return getRecorded(); |
| case FhirPackage.AUDIT_EVENT__OUTCOME: |
| return getOutcome(); |
| case FhirPackage.AUDIT_EVENT__OUTCOME_DESC: |
| return getOutcomeDesc(); |
| case FhirPackage.AUDIT_EVENT__PURPOSE_OF_EVENT: |
| return getPurposeOfEvent(); |
| case FhirPackage.AUDIT_EVENT__AGENT: |
| return getAgent(); |
| case FhirPackage.AUDIT_EVENT__SOURCE: |
| return getSource(); |
| case FhirPackage.AUDIT_EVENT__ENTITY: |
| return getEntity(); |
| } |
| return super.eGet(featureID, resolve, coreType); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @SuppressWarnings("unchecked") |
| @Override |
| public void eSet(int featureID, Object newValue) { |
| switch (featureID) { |
| case FhirPackage.AUDIT_EVENT__TYPE: |
| setType((Coding)newValue); |
| return; |
| case FhirPackage.AUDIT_EVENT__SUBTYPE: |
| getSubtype().clear(); |
| getSubtype().addAll((Collection<? extends Coding>)newValue); |
| return; |
| case FhirPackage.AUDIT_EVENT__ACTION: |
| setAction((AuditEventAction)newValue); |
| return; |
| case FhirPackage.AUDIT_EVENT__PERIOD: |
| setPeriod((Period)newValue); |
| return; |
| case FhirPackage.AUDIT_EVENT__RECORDED: |
| setRecorded((Instant)newValue); |
| return; |
| case FhirPackage.AUDIT_EVENT__OUTCOME: |
| setOutcome((AuditEventOutcome)newValue); |
| return; |
| case FhirPackage.AUDIT_EVENT__OUTCOME_DESC: |
| setOutcomeDesc((org.hl7.fhir.String)newValue); |
| return; |
| case FhirPackage.AUDIT_EVENT__PURPOSE_OF_EVENT: |
| getPurposeOfEvent().clear(); |
| getPurposeOfEvent().addAll((Collection<? extends CodeableConcept>)newValue); |
| return; |
| case FhirPackage.AUDIT_EVENT__AGENT: |
| getAgent().clear(); |
| getAgent().addAll((Collection<? extends AuditEventAgent>)newValue); |
| return; |
| case FhirPackage.AUDIT_EVENT__SOURCE: |
| setSource((AuditEventSource)newValue); |
| return; |
| case FhirPackage.AUDIT_EVENT__ENTITY: |
| getEntity().clear(); |
| getEntity().addAll((Collection<? extends AuditEventEntity>)newValue); |
| return; |
| } |
| super.eSet(featureID, newValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void eUnset(int featureID) { |
| switch (featureID) { |
| case FhirPackage.AUDIT_EVENT__TYPE: |
| setType((Coding)null); |
| return; |
| case FhirPackage.AUDIT_EVENT__SUBTYPE: |
| getSubtype().clear(); |
| return; |
| case FhirPackage.AUDIT_EVENT__ACTION: |
| setAction((AuditEventAction)null); |
| return; |
| case FhirPackage.AUDIT_EVENT__PERIOD: |
| setPeriod((Period)null); |
| return; |
| case FhirPackage.AUDIT_EVENT__RECORDED: |
| setRecorded((Instant)null); |
| return; |
| case FhirPackage.AUDIT_EVENT__OUTCOME: |
| setOutcome((AuditEventOutcome)null); |
| return; |
| case FhirPackage.AUDIT_EVENT__OUTCOME_DESC: |
| setOutcomeDesc((org.hl7.fhir.String)null); |
| return; |
| case FhirPackage.AUDIT_EVENT__PURPOSE_OF_EVENT: |
| getPurposeOfEvent().clear(); |
| return; |
| case FhirPackage.AUDIT_EVENT__AGENT: |
| getAgent().clear(); |
| return; |
| case FhirPackage.AUDIT_EVENT__SOURCE: |
| setSource((AuditEventSource)null); |
| return; |
| case FhirPackage.AUDIT_EVENT__ENTITY: |
| getEntity().clear(); |
| return; |
| } |
| super.eUnset(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public boolean eIsSet(int featureID) { |
| switch (featureID) { |
| case FhirPackage.AUDIT_EVENT__TYPE: |
| return type != null; |
| case FhirPackage.AUDIT_EVENT__SUBTYPE: |
| return subtype != null && !subtype.isEmpty(); |
| case FhirPackage.AUDIT_EVENT__ACTION: |
| return action != null; |
| case FhirPackage.AUDIT_EVENT__PERIOD: |
| return period != null; |
| case FhirPackage.AUDIT_EVENT__RECORDED: |
| return recorded != null; |
| case FhirPackage.AUDIT_EVENT__OUTCOME: |
| return outcome != null; |
| case FhirPackage.AUDIT_EVENT__OUTCOME_DESC: |
| return outcomeDesc != null; |
| case FhirPackage.AUDIT_EVENT__PURPOSE_OF_EVENT: |
| return purposeOfEvent != null && !purposeOfEvent.isEmpty(); |
| case FhirPackage.AUDIT_EVENT__AGENT: |
| return agent != null && !agent.isEmpty(); |
| case FhirPackage.AUDIT_EVENT__SOURCE: |
| return source != null; |
| case FhirPackage.AUDIT_EVENT__ENTITY: |
| return entity != null && !entity.isEmpty(); |
| } |
| return super.eIsSet(featureID); |
| } |
| |
| } //AuditEventImpl |