| /******************************************************************************* |
| * 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.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.EObjectResolvingEList; |
| |
| import org.eclipse.mdht.uml.fhir.core.datatype.Address; |
| import org.eclipse.mdht.uml.fhir.core.datatype.Code; |
| import org.eclipse.mdht.uml.fhir.core.datatype.CodeableConcept; |
| import org.eclipse.mdht.uml.fhir.core.datatype.ContactPoint; |
| import org.eclipse.mdht.uml.fhir.core.datatype.Identifier; |
| |
| import org.eclipse.mdht.uml.fhir.core.resource.FhirResourcePackage; |
| import org.eclipse.mdht.uml.fhir.core.resource.Location; |
| import org.eclipse.mdht.uml.fhir.core.resource.LocationPosition; |
| import org.eclipse.mdht.uml.fhir.core.resource.Organization; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model object '<em><b>Location</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * The following features are implemented: |
| * </p> |
| * <ul> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.LocationImpl#getIdentifiers <em>Identifier</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.LocationImpl#getStatus <em>Status</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.LocationImpl#getName <em>Name</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.LocationImpl#getDescription <em>Description</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.LocationImpl#getMode <em>Mode</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.LocationImpl#getType <em>Type</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.LocationImpl#getTelecoms <em>Telecom</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.LocationImpl#getAddress <em>Address</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.LocationImpl#getPhysicalType <em>Physical Type</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.LocationImpl#getPosition <em>Position</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.LocationImpl#getManagingOrganization <em>Managing Organization</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.LocationImpl#getPartOf <em>Part Of</em>}</li> |
| * </ul> |
| * |
| * @generated |
| */ |
| public class LocationImpl extends DomainResourceImpl implements Location { |
| /** |
| * 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 #getStatus() <em>Status</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getStatus() |
| * @generated |
| * @ordered |
| */ |
| protected Code status; |
| |
| /** |
| * The cached value of the '{@link #getName() <em>Name</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getName() |
| * @generated |
| * @ordered |
| */ |
| protected org.eclipse.mdht.uml.fhir.core.datatype.String name; |
| |
| /** |
| * The cached value of the '{@link #getDescription() <em>Description</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDescription() |
| * @generated |
| * @ordered |
| */ |
| protected org.eclipse.mdht.uml.fhir.core.datatype.String description; |
| |
| /** |
| * The cached value of the '{@link #getMode() <em>Mode</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getMode() |
| * @generated |
| * @ordered |
| */ |
| protected Code mode; |
| |
| /** |
| * The cached value of the '{@link #getType() <em>Type</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getType() |
| * @generated |
| * @ordered |
| */ |
| protected CodeableConcept type; |
| |
| /** |
| * The cached value of the '{@link #getTelecoms() <em>Telecom</em>}' reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getTelecoms() |
| * @generated |
| * @ordered |
| */ |
| protected EList<ContactPoint> telecoms; |
| |
| /** |
| * The cached value of the '{@link #getAddress() <em>Address</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getAddress() |
| * @generated |
| * @ordered |
| */ |
| protected Address address; |
| |
| /** |
| * The cached value of the '{@link #getPhysicalType() <em>Physical Type</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPhysicalType() |
| * @generated |
| * @ordered |
| */ |
| protected CodeableConcept physicalType; |
| |
| /** |
| * The cached value of the '{@link #getPosition() <em>Position</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPosition() |
| * @generated |
| * @ordered |
| */ |
| protected LocationPosition position; |
| |
| /** |
| * The cached value of the '{@link #getManagingOrganization() <em>Managing Organization</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getManagingOrganization() |
| * @generated |
| * @ordered |
| */ |
| protected Organization managingOrganization; |
| |
| /** |
| * The cached value of the '{@link #getPartOf() <em>Part Of</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPartOf() |
| * @generated |
| * @ordered |
| */ |
| protected Location partOf; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected LocationImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| protected EClass eStaticClass() { |
| return FhirResourcePackage.eINSTANCE.getLocation(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<Identifier> getIdentifiers() { |
| if (identifiers == null) { |
| identifiers = new EObjectResolvingEList<Identifier>(Identifier.class, this, FhirResourcePackage.LOCATION__IDENTIFIER); |
| } |
| return identifiers; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Code getStatus() { |
| if (status != null && status.eIsProxy()) { |
| InternalEObject oldStatus = (InternalEObject)status; |
| status = (Code)eResolveProxy(oldStatus); |
| if (status != oldStatus) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.LOCATION__STATUS, oldStatus, status)); |
| } |
| } |
| return status; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Code basicGetStatus() { |
| return status; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setStatus(Code newStatus) { |
| Code oldStatus = status; |
| status = newStatus; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.LOCATION__STATUS, oldStatus, status)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public org.eclipse.mdht.uml.fhir.core.datatype.String getName() { |
| if (name != null && name.eIsProxy()) { |
| InternalEObject oldName = (InternalEObject)name; |
| name = (org.eclipse.mdht.uml.fhir.core.datatype.String)eResolveProxy(oldName); |
| if (name != oldName) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.LOCATION__NAME, oldName, name)); |
| } |
| } |
| return name; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public org.eclipse.mdht.uml.fhir.core.datatype.String basicGetName() { |
| return name; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setName(org.eclipse.mdht.uml.fhir.core.datatype.String newName) { |
| org.eclipse.mdht.uml.fhir.core.datatype.String oldName = name; |
| name = newName; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.LOCATION__NAME, oldName, name)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public org.eclipse.mdht.uml.fhir.core.datatype.String getDescription() { |
| if (description != null && description.eIsProxy()) { |
| InternalEObject oldDescription = (InternalEObject)description; |
| description = (org.eclipse.mdht.uml.fhir.core.datatype.String)eResolveProxy(oldDescription); |
| if (description != oldDescription) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.LOCATION__DESCRIPTION, oldDescription, description)); |
| } |
| } |
| return description; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public org.eclipse.mdht.uml.fhir.core.datatype.String basicGetDescription() { |
| return description; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setDescription(org.eclipse.mdht.uml.fhir.core.datatype.String newDescription) { |
| org.eclipse.mdht.uml.fhir.core.datatype.String oldDescription = description; |
| description = newDescription; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.LOCATION__DESCRIPTION, oldDescription, description)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Code getMode() { |
| if (mode != null && mode.eIsProxy()) { |
| InternalEObject oldMode = (InternalEObject)mode; |
| mode = (Code)eResolveProxy(oldMode); |
| if (mode != oldMode) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.LOCATION__MODE, oldMode, mode)); |
| } |
| } |
| return mode; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Code basicGetMode() { |
| return mode; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setMode(Code newMode) { |
| Code oldMode = mode; |
| mode = newMode; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.LOCATION__MODE, oldMode, mode)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public CodeableConcept getType() { |
| if (type != null && type.eIsProxy()) { |
| InternalEObject oldType = (InternalEObject)type; |
| type = (CodeableConcept)eResolveProxy(oldType); |
| if (type != oldType) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.LOCATION__TYPE, oldType, type)); |
| } |
| } |
| return type; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public CodeableConcept basicGetType() { |
| return type; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setType(CodeableConcept newType) { |
| CodeableConcept oldType = type; |
| type = newType; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.LOCATION__TYPE, oldType, type)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<ContactPoint> getTelecoms() { |
| if (telecoms == null) { |
| telecoms = new EObjectResolvingEList<ContactPoint>(ContactPoint.class, this, FhirResourcePackage.LOCATION__TELECOM); |
| } |
| return telecoms; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Address getAddress() { |
| if (address != null && address.eIsProxy()) { |
| InternalEObject oldAddress = (InternalEObject)address; |
| address = (Address)eResolveProxy(oldAddress); |
| if (address != oldAddress) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.LOCATION__ADDRESS, oldAddress, address)); |
| } |
| } |
| return address; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Address basicGetAddress() { |
| return address; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setAddress(Address newAddress) { |
| Address oldAddress = address; |
| address = newAddress; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.LOCATION__ADDRESS, oldAddress, address)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public CodeableConcept getPhysicalType() { |
| if (physicalType != null && physicalType.eIsProxy()) { |
| InternalEObject oldPhysicalType = (InternalEObject)physicalType; |
| physicalType = (CodeableConcept)eResolveProxy(oldPhysicalType); |
| if (physicalType != oldPhysicalType) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.LOCATION__PHYSICAL_TYPE, oldPhysicalType, physicalType)); |
| } |
| } |
| return physicalType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public CodeableConcept basicGetPhysicalType() { |
| return physicalType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setPhysicalType(CodeableConcept newPhysicalType) { |
| CodeableConcept oldPhysicalType = physicalType; |
| physicalType = newPhysicalType; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.LOCATION__PHYSICAL_TYPE, oldPhysicalType, physicalType)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public LocationPosition getPosition() { |
| return position; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetPosition(LocationPosition newPosition, NotificationChain msgs) { |
| LocationPosition oldPosition = position; |
| position = newPosition; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirResourcePackage.LOCATION__POSITION, oldPosition, newPosition); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setPosition(LocationPosition newPosition) { |
| if (newPosition != position) { |
| NotificationChain msgs = null; |
| if (position != null) |
| msgs = ((InternalEObject)position).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirResourcePackage.LOCATION__POSITION, null, msgs); |
| if (newPosition != null) |
| msgs = ((InternalEObject)newPosition).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirResourcePackage.LOCATION__POSITION, null, msgs); |
| msgs = basicSetPosition(newPosition, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.LOCATION__POSITION, newPosition, newPosition)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Organization getManagingOrganization() { |
| if (managingOrganization != null && managingOrganization.eIsProxy()) { |
| InternalEObject oldManagingOrganization = (InternalEObject)managingOrganization; |
| managingOrganization = (Organization)eResolveProxy(oldManagingOrganization); |
| if (managingOrganization != oldManagingOrganization) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.LOCATION__MANAGING_ORGANIZATION, oldManagingOrganization, managingOrganization)); |
| } |
| } |
| return managingOrganization; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Organization basicGetManagingOrganization() { |
| return managingOrganization; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setManagingOrganization(Organization newManagingOrganization) { |
| Organization oldManagingOrganization = managingOrganization; |
| managingOrganization = newManagingOrganization; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.LOCATION__MANAGING_ORGANIZATION, oldManagingOrganization, managingOrganization)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Location getPartOf() { |
| if (partOf != null && partOf.eIsProxy()) { |
| InternalEObject oldPartOf = (InternalEObject)partOf; |
| partOf = (Location)eResolveProxy(oldPartOf); |
| if (partOf != oldPartOf) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.LOCATION__PART_OF, oldPartOf, partOf)); |
| } |
| } |
| return partOf; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Location basicGetPartOf() { |
| return partOf; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setPartOf(Location newPartOf) { |
| Location oldPartOf = partOf; |
| partOf = newPartOf; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.LOCATION__PART_OF, oldPartOf, partOf)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
| switch (featureID) { |
| case FhirResourcePackage.LOCATION__POSITION: |
| return basicSetPosition(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 FhirResourcePackage.LOCATION__IDENTIFIER: |
| return getIdentifiers(); |
| case FhirResourcePackage.LOCATION__STATUS: |
| if (resolve) return getStatus(); |
| return basicGetStatus(); |
| case FhirResourcePackage.LOCATION__NAME: |
| if (resolve) return getName(); |
| return basicGetName(); |
| case FhirResourcePackage.LOCATION__DESCRIPTION: |
| if (resolve) return getDescription(); |
| return basicGetDescription(); |
| case FhirResourcePackage.LOCATION__MODE: |
| if (resolve) return getMode(); |
| return basicGetMode(); |
| case FhirResourcePackage.LOCATION__TYPE: |
| if (resolve) return getType(); |
| return basicGetType(); |
| case FhirResourcePackage.LOCATION__TELECOM: |
| return getTelecoms(); |
| case FhirResourcePackage.LOCATION__ADDRESS: |
| if (resolve) return getAddress(); |
| return basicGetAddress(); |
| case FhirResourcePackage.LOCATION__PHYSICAL_TYPE: |
| if (resolve) return getPhysicalType(); |
| return basicGetPhysicalType(); |
| case FhirResourcePackage.LOCATION__POSITION: |
| return getPosition(); |
| case FhirResourcePackage.LOCATION__MANAGING_ORGANIZATION: |
| if (resolve) return getManagingOrganization(); |
| return basicGetManagingOrganization(); |
| case FhirResourcePackage.LOCATION__PART_OF: |
| if (resolve) return getPartOf(); |
| return basicGetPartOf(); |
| } |
| 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.LOCATION__IDENTIFIER: |
| getIdentifiers().clear(); |
| getIdentifiers().addAll((Collection<? extends Identifier>)newValue); |
| return; |
| case FhirResourcePackage.LOCATION__STATUS: |
| setStatus((Code)newValue); |
| return; |
| case FhirResourcePackage.LOCATION__NAME: |
| setName((org.eclipse.mdht.uml.fhir.core.datatype.String)newValue); |
| return; |
| case FhirResourcePackage.LOCATION__DESCRIPTION: |
| setDescription((org.eclipse.mdht.uml.fhir.core.datatype.String)newValue); |
| return; |
| case FhirResourcePackage.LOCATION__MODE: |
| setMode((Code)newValue); |
| return; |
| case FhirResourcePackage.LOCATION__TYPE: |
| setType((CodeableConcept)newValue); |
| return; |
| case FhirResourcePackage.LOCATION__TELECOM: |
| getTelecoms().clear(); |
| getTelecoms().addAll((Collection<? extends ContactPoint>)newValue); |
| return; |
| case FhirResourcePackage.LOCATION__ADDRESS: |
| setAddress((Address)newValue); |
| return; |
| case FhirResourcePackage.LOCATION__PHYSICAL_TYPE: |
| setPhysicalType((CodeableConcept)newValue); |
| return; |
| case FhirResourcePackage.LOCATION__POSITION: |
| setPosition((LocationPosition)newValue); |
| return; |
| case FhirResourcePackage.LOCATION__MANAGING_ORGANIZATION: |
| setManagingOrganization((Organization)newValue); |
| return; |
| case FhirResourcePackage.LOCATION__PART_OF: |
| setPartOf((Location)newValue); |
| return; |
| } |
| super.eSet(featureID, newValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void eUnset(int featureID) { |
| switch (featureID) { |
| case FhirResourcePackage.LOCATION__IDENTIFIER: |
| getIdentifiers().clear(); |
| return; |
| case FhirResourcePackage.LOCATION__STATUS: |
| setStatus((Code)null); |
| return; |
| case FhirResourcePackage.LOCATION__NAME: |
| setName((org.eclipse.mdht.uml.fhir.core.datatype.String)null); |
| return; |
| case FhirResourcePackage.LOCATION__DESCRIPTION: |
| setDescription((org.eclipse.mdht.uml.fhir.core.datatype.String)null); |
| return; |
| case FhirResourcePackage.LOCATION__MODE: |
| setMode((Code)null); |
| return; |
| case FhirResourcePackage.LOCATION__TYPE: |
| setType((CodeableConcept)null); |
| return; |
| case FhirResourcePackage.LOCATION__TELECOM: |
| getTelecoms().clear(); |
| return; |
| case FhirResourcePackage.LOCATION__ADDRESS: |
| setAddress((Address)null); |
| return; |
| case FhirResourcePackage.LOCATION__PHYSICAL_TYPE: |
| setPhysicalType((CodeableConcept)null); |
| return; |
| case FhirResourcePackage.LOCATION__POSITION: |
| setPosition((LocationPosition)null); |
| return; |
| case FhirResourcePackage.LOCATION__MANAGING_ORGANIZATION: |
| setManagingOrganization((Organization)null); |
| return; |
| case FhirResourcePackage.LOCATION__PART_OF: |
| setPartOf((Location)null); |
| return; |
| } |
| super.eUnset(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public boolean eIsSet(int featureID) { |
| switch (featureID) { |
| case FhirResourcePackage.LOCATION__IDENTIFIER: |
| return identifiers != null && !identifiers.isEmpty(); |
| case FhirResourcePackage.LOCATION__STATUS: |
| return status != null; |
| case FhirResourcePackage.LOCATION__NAME: |
| return name != null; |
| case FhirResourcePackage.LOCATION__DESCRIPTION: |
| return description != null; |
| case FhirResourcePackage.LOCATION__MODE: |
| return mode != null; |
| case FhirResourcePackage.LOCATION__TYPE: |
| return type != null; |
| case FhirResourcePackage.LOCATION__TELECOM: |
| return telecoms != null && !telecoms.isEmpty(); |
| case FhirResourcePackage.LOCATION__ADDRESS: |
| return address != null; |
| case FhirResourcePackage.LOCATION__PHYSICAL_TYPE: |
| return physicalType != null; |
| case FhirResourcePackage.LOCATION__POSITION: |
| return position != null; |
| case FhirResourcePackage.LOCATION__MANAGING_ORGANIZATION: |
| return managingOrganization != null; |
| case FhirResourcePackage.LOCATION__PART_OF: |
| return partOf != null; |
| } |
| return super.eIsSet(featureID); |
| } |
| |
| } //LocationImpl |