| /******************************************************************************* |
| * 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 java.util.Collection; |
| |
| import org.eclipse.emf.common.notify.Notification; |
| |
| 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.EObjectResolvingEList; |
| |
| import org.eclipse.mdht.uml.fhir.core.datatype.Coding; |
| import org.eclipse.mdht.uml.fhir.core.datatype.Identifier; |
| import org.eclipse.mdht.uml.fhir.core.datatype.Period; |
| import org.eclipse.mdht.uml.fhir.core.datatype.PositiveInt; |
| |
| import org.eclipse.mdht.uml.fhir.core.resource.Contract; |
| import org.eclipse.mdht.uml.fhir.core.resource.Coverage; |
| import org.eclipse.mdht.uml.fhir.core.resource.FhirResourcePackage; |
| import org.eclipse.mdht.uml.fhir.core.resource.Organization; |
| import org.eclipse.mdht.uml.fhir.core.resource.Patient; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model object '<em><b>Coverage</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * The following features are implemented: |
| * </p> |
| * <ul> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.CoverageImpl#getIssuer <em>Issuer</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.CoverageImpl#getBin <em>Bin</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.CoverageImpl#getPeriod <em>Period</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.CoverageImpl#getType <em>Type</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.CoverageImpl#getSubscriberId <em>Subscriber Id</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.CoverageImpl#getIdentifiers <em>Identifier</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.CoverageImpl#getGroup <em>Group</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.CoverageImpl#getPlan <em>Plan</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.CoverageImpl#getSubPlan <em>Sub Plan</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.CoverageImpl#getDependent <em>Dependent</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.CoverageImpl#getSequence <em>Sequence</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.CoverageImpl#getSubscriber <em>Subscriber</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.CoverageImpl#getNetwork <em>Network</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.CoverageImpl#getContracts <em>Contract</em>}</li> |
| * </ul> |
| * |
| * @generated |
| */ |
| public class CoverageImpl extends DomainResourceImpl implements Coverage { |
| /** |
| * The cached value of the '{@link #getIssuer() <em>Issuer</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getIssuer() |
| * @generated |
| * @ordered |
| */ |
| protected Organization issuer; |
| |
| /** |
| * The cached value of the '{@link #getBin() <em>Bin</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getBin() |
| * @generated |
| * @ordered |
| */ |
| protected Identifier bin; |
| |
| /** |
| * The cached value of the '{@link #getPeriod() <em>Period</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPeriod() |
| * @generated |
| * @ordered |
| */ |
| protected Period period; |
| |
| /** |
| * The cached value of the '{@link #getType() <em>Type</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getType() |
| * @generated |
| * @ordered |
| */ |
| protected Coding type; |
| |
| /** |
| * The cached value of the '{@link #getSubscriberId() <em>Subscriber Id</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getSubscriberId() |
| * @generated |
| * @ordered |
| */ |
| protected Identifier subscriberId; |
| |
| /** |
| * The cached value of the '{@link #getIdentifiers() <em>Identifier</em>}' reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getIdentifiers() |
| * @generated |
| * @ordered |
| */ |
| protected EList<Identifier> identifiers; |
| |
| /** |
| * The cached value of the '{@link #getGroup() <em>Group</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getGroup() |
| * @generated |
| * @ordered |
| */ |
| protected org.eclipse.mdht.uml.fhir.core.datatype.String group; |
| |
| /** |
| * The cached value of the '{@link #getPlan() <em>Plan</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPlan() |
| * @generated |
| * @ordered |
| */ |
| protected org.eclipse.mdht.uml.fhir.core.datatype.String plan; |
| |
| /** |
| * The cached value of the '{@link #getSubPlan() <em>Sub Plan</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getSubPlan() |
| * @generated |
| * @ordered |
| */ |
| protected org.eclipse.mdht.uml.fhir.core.datatype.String subPlan; |
| |
| /** |
| * The cached value of the '{@link #getDependent() <em>Dependent</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDependent() |
| * @generated |
| * @ordered |
| */ |
| protected PositiveInt dependent; |
| |
| /** |
| * The cached value of the '{@link #getSequence() <em>Sequence</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getSequence() |
| * @generated |
| * @ordered |
| */ |
| protected PositiveInt sequence; |
| |
| /** |
| * The cached value of the '{@link #getSubscriber() <em>Subscriber</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getSubscriber() |
| * @generated |
| * @ordered |
| */ |
| protected Patient subscriber; |
| |
| /** |
| * The cached value of the '{@link #getNetwork() <em>Network</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getNetwork() |
| * @generated |
| * @ordered |
| */ |
| protected Identifier network; |
| |
| /** |
| * The cached value of the '{@link #getContracts() <em>Contract</em>}' reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getContracts() |
| * @generated |
| * @ordered |
| */ |
| protected EList<Contract> contracts; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected CoverageImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| protected EClass eStaticClass() { |
| return FhirResourcePackage.eINSTANCE.getCoverage(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Organization getIssuer() { |
| if (issuer != null && issuer.eIsProxy()) { |
| InternalEObject oldIssuer = (InternalEObject)issuer; |
| issuer = (Organization)eResolveProxy(oldIssuer); |
| if (issuer != oldIssuer) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.COVERAGE__ISSUER, oldIssuer, issuer)); |
| } |
| } |
| return issuer; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Organization basicGetIssuer() { |
| return issuer; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setIssuer(Organization newIssuer) { |
| Organization oldIssuer = issuer; |
| issuer = newIssuer; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.COVERAGE__ISSUER, oldIssuer, issuer)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Identifier getBin() { |
| if (bin != null && bin.eIsProxy()) { |
| InternalEObject oldBin = (InternalEObject)bin; |
| bin = (Identifier)eResolveProxy(oldBin); |
| if (bin != oldBin) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.COVERAGE__BIN, oldBin, bin)); |
| } |
| } |
| return bin; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Identifier basicGetBin() { |
| return bin; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setBin(Identifier newBin) { |
| Identifier oldBin = bin; |
| bin = newBin; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.COVERAGE__BIN, oldBin, bin)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Period getPeriod() { |
| if (period != null && period.eIsProxy()) { |
| InternalEObject oldPeriod = (InternalEObject)period; |
| period = (Period)eResolveProxy(oldPeriod); |
| if (period != oldPeriod) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.COVERAGE__PERIOD, oldPeriod, period)); |
| } |
| } |
| return period; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Period basicGetPeriod() { |
| return period; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setPeriod(Period newPeriod) { |
| Period oldPeriod = period; |
| period = newPeriod; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.COVERAGE__PERIOD, oldPeriod, period)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Coding getType() { |
| if (type != null && type.eIsProxy()) { |
| InternalEObject oldType = (InternalEObject)type; |
| type = (Coding)eResolveProxy(oldType); |
| if (type != oldType) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.COVERAGE__TYPE, oldType, type)); |
| } |
| } |
| return type; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Coding basicGetType() { |
| return type; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setType(Coding newType) { |
| Coding oldType = type; |
| type = newType; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.COVERAGE__TYPE, oldType, type)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Identifier getSubscriberId() { |
| if (subscriberId != null && subscriberId.eIsProxy()) { |
| InternalEObject oldSubscriberId = (InternalEObject)subscriberId; |
| subscriberId = (Identifier)eResolveProxy(oldSubscriberId); |
| if (subscriberId != oldSubscriberId) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.COVERAGE__SUBSCRIBER_ID, oldSubscriberId, subscriberId)); |
| } |
| } |
| return subscriberId; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Identifier basicGetSubscriberId() { |
| return subscriberId; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setSubscriberId(Identifier newSubscriberId) { |
| Identifier oldSubscriberId = subscriberId; |
| subscriberId = newSubscriberId; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.COVERAGE__SUBSCRIBER_ID, oldSubscriberId, subscriberId)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<Identifier> getIdentifiers() { |
| if (identifiers == null) { |
| identifiers = new EObjectResolvingEList<Identifier>(Identifier.class, this, FhirResourcePackage.COVERAGE__IDENTIFIER); |
| } |
| return identifiers; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public org.eclipse.mdht.uml.fhir.core.datatype.String getGroup() { |
| if (group != null && group.eIsProxy()) { |
| InternalEObject oldGroup = (InternalEObject)group; |
| group = (org.eclipse.mdht.uml.fhir.core.datatype.String)eResolveProxy(oldGroup); |
| if (group != oldGroup) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.COVERAGE__GROUP, oldGroup, group)); |
| } |
| } |
| return group; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public org.eclipse.mdht.uml.fhir.core.datatype.String basicGetGroup() { |
| return group; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setGroup(org.eclipse.mdht.uml.fhir.core.datatype.String newGroup) { |
| org.eclipse.mdht.uml.fhir.core.datatype.String oldGroup = group; |
| group = newGroup; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.COVERAGE__GROUP, oldGroup, group)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public org.eclipse.mdht.uml.fhir.core.datatype.String getPlan() { |
| if (plan != null && plan.eIsProxy()) { |
| InternalEObject oldPlan = (InternalEObject)plan; |
| plan = (org.eclipse.mdht.uml.fhir.core.datatype.String)eResolveProxy(oldPlan); |
| if (plan != oldPlan) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.COVERAGE__PLAN, oldPlan, plan)); |
| } |
| } |
| return plan; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public org.eclipse.mdht.uml.fhir.core.datatype.String basicGetPlan() { |
| return plan; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setPlan(org.eclipse.mdht.uml.fhir.core.datatype.String newPlan) { |
| org.eclipse.mdht.uml.fhir.core.datatype.String oldPlan = plan; |
| plan = newPlan; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.COVERAGE__PLAN, oldPlan, plan)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public org.eclipse.mdht.uml.fhir.core.datatype.String getSubPlan() { |
| if (subPlan != null && subPlan.eIsProxy()) { |
| InternalEObject oldSubPlan = (InternalEObject)subPlan; |
| subPlan = (org.eclipse.mdht.uml.fhir.core.datatype.String)eResolveProxy(oldSubPlan); |
| if (subPlan != oldSubPlan) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.COVERAGE__SUB_PLAN, oldSubPlan, subPlan)); |
| } |
| } |
| return subPlan; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public org.eclipse.mdht.uml.fhir.core.datatype.String basicGetSubPlan() { |
| return subPlan; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setSubPlan(org.eclipse.mdht.uml.fhir.core.datatype.String newSubPlan) { |
| org.eclipse.mdht.uml.fhir.core.datatype.String oldSubPlan = subPlan; |
| subPlan = newSubPlan; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.COVERAGE__SUB_PLAN, oldSubPlan, subPlan)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public PositiveInt getDependent() { |
| if (dependent != null && dependent.eIsProxy()) { |
| InternalEObject oldDependent = (InternalEObject)dependent; |
| dependent = (PositiveInt)eResolveProxy(oldDependent); |
| if (dependent != oldDependent) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.COVERAGE__DEPENDENT, oldDependent, dependent)); |
| } |
| } |
| return dependent; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public PositiveInt basicGetDependent() { |
| return dependent; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setDependent(PositiveInt newDependent) { |
| PositiveInt oldDependent = dependent; |
| dependent = newDependent; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.COVERAGE__DEPENDENT, oldDependent, dependent)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public PositiveInt getSequence() { |
| if (sequence != null && sequence.eIsProxy()) { |
| InternalEObject oldSequence = (InternalEObject)sequence; |
| sequence = (PositiveInt)eResolveProxy(oldSequence); |
| if (sequence != oldSequence) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.COVERAGE__SEQUENCE, oldSequence, sequence)); |
| } |
| } |
| return sequence; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public PositiveInt basicGetSequence() { |
| return sequence; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setSequence(PositiveInt newSequence) { |
| PositiveInt oldSequence = sequence; |
| sequence = newSequence; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.COVERAGE__SEQUENCE, oldSequence, sequence)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Patient getSubscriber() { |
| if (subscriber != null && subscriber.eIsProxy()) { |
| InternalEObject oldSubscriber = (InternalEObject)subscriber; |
| subscriber = (Patient)eResolveProxy(oldSubscriber); |
| if (subscriber != oldSubscriber) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.COVERAGE__SUBSCRIBER, oldSubscriber, subscriber)); |
| } |
| } |
| return subscriber; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Patient basicGetSubscriber() { |
| return subscriber; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setSubscriber(Patient newSubscriber) { |
| Patient oldSubscriber = subscriber; |
| subscriber = newSubscriber; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.COVERAGE__SUBSCRIBER, oldSubscriber, subscriber)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Identifier getNetwork() { |
| if (network != null && network.eIsProxy()) { |
| InternalEObject oldNetwork = (InternalEObject)network; |
| network = (Identifier)eResolveProxy(oldNetwork); |
| if (network != oldNetwork) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.COVERAGE__NETWORK, oldNetwork, network)); |
| } |
| } |
| return network; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Identifier basicGetNetwork() { |
| return network; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setNetwork(Identifier newNetwork) { |
| Identifier oldNetwork = network; |
| network = newNetwork; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.COVERAGE__NETWORK, oldNetwork, network)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<Contract> getContracts() { |
| if (contracts == null) { |
| contracts = new EObjectResolvingEList<Contract>(Contract.class, this, FhirResourcePackage.COVERAGE__CONTRACT); |
| } |
| return contracts; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public Object eGet(int featureID, boolean resolve, boolean coreType) { |
| switch (featureID) { |
| case FhirResourcePackage.COVERAGE__ISSUER: |
| if (resolve) return getIssuer(); |
| return basicGetIssuer(); |
| case FhirResourcePackage.COVERAGE__BIN: |
| if (resolve) return getBin(); |
| return basicGetBin(); |
| case FhirResourcePackage.COVERAGE__PERIOD: |
| if (resolve) return getPeriod(); |
| return basicGetPeriod(); |
| case FhirResourcePackage.COVERAGE__TYPE: |
| if (resolve) return getType(); |
| return basicGetType(); |
| case FhirResourcePackage.COVERAGE__SUBSCRIBER_ID: |
| if (resolve) return getSubscriberId(); |
| return basicGetSubscriberId(); |
| case FhirResourcePackage.COVERAGE__IDENTIFIER: |
| return getIdentifiers(); |
| case FhirResourcePackage.COVERAGE__GROUP: |
| if (resolve) return getGroup(); |
| return basicGetGroup(); |
| case FhirResourcePackage.COVERAGE__PLAN: |
| if (resolve) return getPlan(); |
| return basicGetPlan(); |
| case FhirResourcePackage.COVERAGE__SUB_PLAN: |
| if (resolve) return getSubPlan(); |
| return basicGetSubPlan(); |
| case FhirResourcePackage.COVERAGE__DEPENDENT: |
| if (resolve) return getDependent(); |
| return basicGetDependent(); |
| case FhirResourcePackage.COVERAGE__SEQUENCE: |
| if (resolve) return getSequence(); |
| return basicGetSequence(); |
| case FhirResourcePackage.COVERAGE__SUBSCRIBER: |
| if (resolve) return getSubscriber(); |
| return basicGetSubscriber(); |
| case FhirResourcePackage.COVERAGE__NETWORK: |
| if (resolve) return getNetwork(); |
| return basicGetNetwork(); |
| case FhirResourcePackage.COVERAGE__CONTRACT: |
| return getContracts(); |
| } |
| 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 FhirResourcePackage.COVERAGE__ISSUER: |
| setIssuer((Organization)newValue); |
| return; |
| case FhirResourcePackage.COVERAGE__BIN: |
| setBin((Identifier)newValue); |
| return; |
| case FhirResourcePackage.COVERAGE__PERIOD: |
| setPeriod((Period)newValue); |
| return; |
| case FhirResourcePackage.COVERAGE__TYPE: |
| setType((Coding)newValue); |
| return; |
| case FhirResourcePackage.COVERAGE__SUBSCRIBER_ID: |
| setSubscriberId((Identifier)newValue); |
| return; |
| case FhirResourcePackage.COVERAGE__IDENTIFIER: |
| getIdentifiers().clear(); |
| getIdentifiers().addAll((Collection<? extends Identifier>)newValue); |
| return; |
| case FhirResourcePackage.COVERAGE__GROUP: |
| setGroup((org.eclipse.mdht.uml.fhir.core.datatype.String)newValue); |
| return; |
| case FhirResourcePackage.COVERAGE__PLAN: |
| setPlan((org.eclipse.mdht.uml.fhir.core.datatype.String)newValue); |
| return; |
| case FhirResourcePackage.COVERAGE__SUB_PLAN: |
| setSubPlan((org.eclipse.mdht.uml.fhir.core.datatype.String)newValue); |
| return; |
| case FhirResourcePackage.COVERAGE__DEPENDENT: |
| setDependent((PositiveInt)newValue); |
| return; |
| case FhirResourcePackage.COVERAGE__SEQUENCE: |
| setSequence((PositiveInt)newValue); |
| return; |
| case FhirResourcePackage.COVERAGE__SUBSCRIBER: |
| setSubscriber((Patient)newValue); |
| return; |
| case FhirResourcePackage.COVERAGE__NETWORK: |
| setNetwork((Identifier)newValue); |
| return; |
| case FhirResourcePackage.COVERAGE__CONTRACT: |
| getContracts().clear(); |
| getContracts().addAll((Collection<? extends Contract>)newValue); |
| return; |
| } |
| super.eSet(featureID, newValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void eUnset(int featureID) { |
| switch (featureID) { |
| case FhirResourcePackage.COVERAGE__ISSUER: |
| setIssuer((Organization)null); |
| return; |
| case FhirResourcePackage.COVERAGE__BIN: |
| setBin((Identifier)null); |
| return; |
| case FhirResourcePackage.COVERAGE__PERIOD: |
| setPeriod((Period)null); |
| return; |
| case FhirResourcePackage.COVERAGE__TYPE: |
| setType((Coding)null); |
| return; |
| case FhirResourcePackage.COVERAGE__SUBSCRIBER_ID: |
| setSubscriberId((Identifier)null); |
| return; |
| case FhirResourcePackage.COVERAGE__IDENTIFIER: |
| getIdentifiers().clear(); |
| return; |
| case FhirResourcePackage.COVERAGE__GROUP: |
| setGroup((org.eclipse.mdht.uml.fhir.core.datatype.String)null); |
| return; |
| case FhirResourcePackage.COVERAGE__PLAN: |
| setPlan((org.eclipse.mdht.uml.fhir.core.datatype.String)null); |
| return; |
| case FhirResourcePackage.COVERAGE__SUB_PLAN: |
| setSubPlan((org.eclipse.mdht.uml.fhir.core.datatype.String)null); |
| return; |
| case FhirResourcePackage.COVERAGE__DEPENDENT: |
| setDependent((PositiveInt)null); |
| return; |
| case FhirResourcePackage.COVERAGE__SEQUENCE: |
| setSequence((PositiveInt)null); |
| return; |
| case FhirResourcePackage.COVERAGE__SUBSCRIBER: |
| setSubscriber((Patient)null); |
| return; |
| case FhirResourcePackage.COVERAGE__NETWORK: |
| setNetwork((Identifier)null); |
| return; |
| case FhirResourcePackage.COVERAGE__CONTRACT: |
| getContracts().clear(); |
| return; |
| } |
| super.eUnset(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public boolean eIsSet(int featureID) { |
| switch (featureID) { |
| case FhirResourcePackage.COVERAGE__ISSUER: |
| return issuer != null; |
| case FhirResourcePackage.COVERAGE__BIN: |
| return bin != null; |
| case FhirResourcePackage.COVERAGE__PERIOD: |
| return period != null; |
| case FhirResourcePackage.COVERAGE__TYPE: |
| return type != null; |
| case FhirResourcePackage.COVERAGE__SUBSCRIBER_ID: |
| return subscriberId != null; |
| case FhirResourcePackage.COVERAGE__IDENTIFIER: |
| return identifiers != null && !identifiers.isEmpty(); |
| case FhirResourcePackage.COVERAGE__GROUP: |
| return group != null; |
| case FhirResourcePackage.COVERAGE__PLAN: |
| return plan != null; |
| case FhirResourcePackage.COVERAGE__SUB_PLAN: |
| return subPlan != null; |
| case FhirResourcePackage.COVERAGE__DEPENDENT: |
| return dependent != null; |
| case FhirResourcePackage.COVERAGE__SEQUENCE: |
| return sequence != null; |
| case FhirResourcePackage.COVERAGE__SUBSCRIBER: |
| return subscriber != null; |
| case FhirResourcePackage.COVERAGE__NETWORK: |
| return network != null; |
| case FhirResourcePackage.COVERAGE__CONTRACT: |
| return contracts != null && !contracts.isEmpty(); |
| } |
| return super.eIsSet(featureID); |
| } |
| |
| } //CoverageImpl |