blob: 3e1a7d95782af3d1d3626d2ff31cc1bd9e2eda29 [file] [log] [blame]
/*******************************************************************************
* 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.Attachment;
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.Identifier;
import org.eclipse.mdht.uml.fhir.core.datatype.PositiveInt;
import org.eclipse.mdht.uml.fhir.core.datatype.UnsignedInt;
import org.eclipse.mdht.uml.fhir.core.resource.FhirResourcePackage;
import org.eclipse.mdht.uml.fhir.core.resource.Media;
import org.eclipse.mdht.uml.fhir.core.resource.Practitioner;
import org.eclipse.mdht.uml.fhir.core.resource.Resource;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Media</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.MediaImpl#getType <em>Type</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.MediaImpl#getSubtype <em>Subtype</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.MediaImpl#getIdentifiers <em>Identifier</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.MediaImpl#getSubject <em>Subject</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.MediaImpl#getOperator <em>Operator</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.MediaImpl#getView <em>View</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.MediaImpl#getDeviceName <em>Device Name</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.MediaImpl#getHeight <em>Height</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.MediaImpl#getWidth <em>Width</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.MediaImpl#getFrames <em>Frames</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.MediaImpl#getDuration <em>Duration</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.MediaImpl#getContent <em>Content</em>}</li>
* </ul>
*
* @generated
*/
public class MediaImpl extends DomainResourceImpl implements Media {
/**
* The cached value of the '{@link #getType() <em>Type</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getType()
* @generated
* @ordered
*/
protected Code type;
/**
* The cached value of the '{@link #getSubtype() <em>Subtype</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getSubtype()
* @generated
* @ordered
*/
protected CodeableConcept subtype;
/**
* 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 #getSubject() <em>Subject</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getSubject()
* @generated
* @ordered
*/
protected Resource subject;
/**
* The cached value of the '{@link #getOperator() <em>Operator</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOperator()
* @generated
* @ordered
*/
protected Practitioner operator;
/**
* The cached value of the '{@link #getView() <em>View</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getView()
* @generated
* @ordered
*/
protected CodeableConcept view;
/**
* The cached value of the '{@link #getDeviceName() <em>Device Name</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDeviceName()
* @generated
* @ordered
*/
protected org.eclipse.mdht.uml.fhir.core.datatype.String deviceName;
/**
* The cached value of the '{@link #getHeight() <em>Height</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getHeight()
* @generated
* @ordered
*/
protected PositiveInt height;
/**
* The cached value of the '{@link #getWidth() <em>Width</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getWidth()
* @generated
* @ordered
*/
protected PositiveInt width;
/**
* The cached value of the '{@link #getFrames() <em>Frames</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getFrames()
* @generated
* @ordered
*/
protected PositiveInt frames;
/**
* The cached value of the '{@link #getDuration() <em>Duration</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDuration()
* @generated
* @ordered
*/
protected UnsignedInt duration;
/**
* The cached value of the '{@link #getContent() <em>Content</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getContent()
* @generated
* @ordered
*/
protected Attachment content;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected MediaImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FhirResourcePackage.eINSTANCE.getMedia();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Code getType() {
if (type != null && type.eIsProxy()) {
InternalEObject oldType = (InternalEObject)type;
type = (Code)eResolveProxy(oldType);
if (type != oldType) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.MEDIA__TYPE, oldType, type));
}
}
return type;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Code basicGetType() {
return type;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setType(Code newType) {
Code oldType = type;
type = newType;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.MEDIA__TYPE, oldType, type));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public CodeableConcept getSubtype() {
if (subtype != null && subtype.eIsProxy()) {
InternalEObject oldSubtype = (InternalEObject)subtype;
subtype = (CodeableConcept)eResolveProxy(oldSubtype);
if (subtype != oldSubtype) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.MEDIA__SUBTYPE, oldSubtype, subtype));
}
}
return subtype;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public CodeableConcept basicGetSubtype() {
return subtype;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setSubtype(CodeableConcept newSubtype) {
CodeableConcept oldSubtype = subtype;
subtype = newSubtype;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.MEDIA__SUBTYPE, oldSubtype, subtype));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<Identifier> getIdentifiers() {
if (identifiers == null) {
identifiers = new EObjectResolvingEList<Identifier>(Identifier.class, this, FhirResourcePackage.MEDIA__IDENTIFIER);
}
return identifiers;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Resource getSubject() {
if (subject != null && subject.eIsProxy()) {
InternalEObject oldSubject = (InternalEObject)subject;
subject = (Resource)eResolveProxy(oldSubject);
if (subject != oldSubject) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.MEDIA__SUBJECT, oldSubject, subject));
}
}
return subject;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Resource basicGetSubject() {
return subject;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setSubject(Resource newSubject) {
Resource oldSubject = subject;
subject = newSubject;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.MEDIA__SUBJECT, oldSubject, subject));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Practitioner getOperator() {
if (operator != null && operator.eIsProxy()) {
InternalEObject oldOperator = (InternalEObject)operator;
operator = (Practitioner)eResolveProxy(oldOperator);
if (operator != oldOperator) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.MEDIA__OPERATOR, oldOperator, operator));
}
}
return operator;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Practitioner basicGetOperator() {
return operator;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOperator(Practitioner newOperator) {
Practitioner oldOperator = operator;
operator = newOperator;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.MEDIA__OPERATOR, oldOperator, operator));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public CodeableConcept getView() {
if (view != null && view.eIsProxy()) {
InternalEObject oldView = (InternalEObject)view;
view = (CodeableConcept)eResolveProxy(oldView);
if (view != oldView) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.MEDIA__VIEW, oldView, view));
}
}
return view;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public CodeableConcept basicGetView() {
return view;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setView(CodeableConcept newView) {
CodeableConcept oldView = view;
view = newView;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.MEDIA__VIEW, oldView, view));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public org.eclipse.mdht.uml.fhir.core.datatype.String getDeviceName() {
if (deviceName != null && deviceName.eIsProxy()) {
InternalEObject oldDeviceName = (InternalEObject)deviceName;
deviceName = (org.eclipse.mdht.uml.fhir.core.datatype.String)eResolveProxy(oldDeviceName);
if (deviceName != oldDeviceName) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.MEDIA__DEVICE_NAME, oldDeviceName, deviceName));
}
}
return deviceName;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public org.eclipse.mdht.uml.fhir.core.datatype.String basicGetDeviceName() {
return deviceName;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDeviceName(org.eclipse.mdht.uml.fhir.core.datatype.String newDeviceName) {
org.eclipse.mdht.uml.fhir.core.datatype.String oldDeviceName = deviceName;
deviceName = newDeviceName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.MEDIA__DEVICE_NAME, oldDeviceName, deviceName));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public PositiveInt getHeight() {
if (height != null && height.eIsProxy()) {
InternalEObject oldHeight = (InternalEObject)height;
height = (PositiveInt)eResolveProxy(oldHeight);
if (height != oldHeight) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.MEDIA__HEIGHT, oldHeight, height));
}
}
return height;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public PositiveInt basicGetHeight() {
return height;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setHeight(PositiveInt newHeight) {
PositiveInt oldHeight = height;
height = newHeight;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.MEDIA__HEIGHT, oldHeight, height));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public PositiveInt getWidth() {
if (width != null && width.eIsProxy()) {
InternalEObject oldWidth = (InternalEObject)width;
width = (PositiveInt)eResolveProxy(oldWidth);
if (width != oldWidth) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.MEDIA__WIDTH, oldWidth, width));
}
}
return width;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public PositiveInt basicGetWidth() {
return width;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setWidth(PositiveInt newWidth) {
PositiveInt oldWidth = width;
width = newWidth;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.MEDIA__WIDTH, oldWidth, width));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public PositiveInt getFrames() {
if (frames != null && frames.eIsProxy()) {
InternalEObject oldFrames = (InternalEObject)frames;
frames = (PositiveInt)eResolveProxy(oldFrames);
if (frames != oldFrames) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.MEDIA__FRAMES, oldFrames, frames));
}
}
return frames;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public PositiveInt basicGetFrames() {
return frames;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setFrames(PositiveInt newFrames) {
PositiveInt oldFrames = frames;
frames = newFrames;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.MEDIA__FRAMES, oldFrames, frames));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public UnsignedInt getDuration() {
if (duration != null && duration.eIsProxy()) {
InternalEObject oldDuration = (InternalEObject)duration;
duration = (UnsignedInt)eResolveProxy(oldDuration);
if (duration != oldDuration) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.MEDIA__DURATION, oldDuration, duration));
}
}
return duration;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public UnsignedInt basicGetDuration() {
return duration;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDuration(UnsignedInt newDuration) {
UnsignedInt oldDuration = duration;
duration = newDuration;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.MEDIA__DURATION, oldDuration, duration));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Attachment getContent() {
if (content != null && content.eIsProxy()) {
InternalEObject oldContent = (InternalEObject)content;
content = (Attachment)eResolveProxy(oldContent);
if (content != oldContent) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.MEDIA__CONTENT, oldContent, content));
}
}
return content;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Attachment basicGetContent() {
return content;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setContent(Attachment newContent) {
Attachment oldContent = content;
content = newContent;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.MEDIA__CONTENT, oldContent, content));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case FhirResourcePackage.MEDIA__TYPE:
if (resolve) return getType();
return basicGetType();
case FhirResourcePackage.MEDIA__SUBTYPE:
if (resolve) return getSubtype();
return basicGetSubtype();
case FhirResourcePackage.MEDIA__IDENTIFIER:
return getIdentifiers();
case FhirResourcePackage.MEDIA__SUBJECT:
if (resolve) return getSubject();
return basicGetSubject();
case FhirResourcePackage.MEDIA__OPERATOR:
if (resolve) return getOperator();
return basicGetOperator();
case FhirResourcePackage.MEDIA__VIEW:
if (resolve) return getView();
return basicGetView();
case FhirResourcePackage.MEDIA__DEVICE_NAME:
if (resolve) return getDeviceName();
return basicGetDeviceName();
case FhirResourcePackage.MEDIA__HEIGHT:
if (resolve) return getHeight();
return basicGetHeight();
case FhirResourcePackage.MEDIA__WIDTH:
if (resolve) return getWidth();
return basicGetWidth();
case FhirResourcePackage.MEDIA__FRAMES:
if (resolve) return getFrames();
return basicGetFrames();
case FhirResourcePackage.MEDIA__DURATION:
if (resolve) return getDuration();
return basicGetDuration();
case FhirResourcePackage.MEDIA__CONTENT:
if (resolve) return getContent();
return basicGetContent();
}
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.MEDIA__TYPE:
setType((Code)newValue);
return;
case FhirResourcePackage.MEDIA__SUBTYPE:
setSubtype((CodeableConcept)newValue);
return;
case FhirResourcePackage.MEDIA__IDENTIFIER:
getIdentifiers().clear();
getIdentifiers().addAll((Collection<? extends Identifier>)newValue);
return;
case FhirResourcePackage.MEDIA__SUBJECT:
setSubject((Resource)newValue);
return;
case FhirResourcePackage.MEDIA__OPERATOR:
setOperator((Practitioner)newValue);
return;
case FhirResourcePackage.MEDIA__VIEW:
setView((CodeableConcept)newValue);
return;
case FhirResourcePackage.MEDIA__DEVICE_NAME:
setDeviceName((org.eclipse.mdht.uml.fhir.core.datatype.String)newValue);
return;
case FhirResourcePackage.MEDIA__HEIGHT:
setHeight((PositiveInt)newValue);
return;
case FhirResourcePackage.MEDIA__WIDTH:
setWidth((PositiveInt)newValue);
return;
case FhirResourcePackage.MEDIA__FRAMES:
setFrames((PositiveInt)newValue);
return;
case FhirResourcePackage.MEDIA__DURATION:
setDuration((UnsignedInt)newValue);
return;
case FhirResourcePackage.MEDIA__CONTENT:
setContent((Attachment)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case FhirResourcePackage.MEDIA__TYPE:
setType((Code)null);
return;
case FhirResourcePackage.MEDIA__SUBTYPE:
setSubtype((CodeableConcept)null);
return;
case FhirResourcePackage.MEDIA__IDENTIFIER:
getIdentifiers().clear();
return;
case FhirResourcePackage.MEDIA__SUBJECT:
setSubject((Resource)null);
return;
case FhirResourcePackage.MEDIA__OPERATOR:
setOperator((Practitioner)null);
return;
case FhirResourcePackage.MEDIA__VIEW:
setView((CodeableConcept)null);
return;
case FhirResourcePackage.MEDIA__DEVICE_NAME:
setDeviceName((org.eclipse.mdht.uml.fhir.core.datatype.String)null);
return;
case FhirResourcePackage.MEDIA__HEIGHT:
setHeight((PositiveInt)null);
return;
case FhirResourcePackage.MEDIA__WIDTH:
setWidth((PositiveInt)null);
return;
case FhirResourcePackage.MEDIA__FRAMES:
setFrames((PositiveInt)null);
return;
case FhirResourcePackage.MEDIA__DURATION:
setDuration((UnsignedInt)null);
return;
case FhirResourcePackage.MEDIA__CONTENT:
setContent((Attachment)null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case FhirResourcePackage.MEDIA__TYPE:
return type != null;
case FhirResourcePackage.MEDIA__SUBTYPE:
return subtype != null;
case FhirResourcePackage.MEDIA__IDENTIFIER:
return identifiers != null && !identifiers.isEmpty();
case FhirResourcePackage.MEDIA__SUBJECT:
return subject != null;
case FhirResourcePackage.MEDIA__OPERATOR:
return operator != null;
case FhirResourcePackage.MEDIA__VIEW:
return view != null;
case FhirResourcePackage.MEDIA__DEVICE_NAME:
return deviceName != null;
case FhirResourcePackage.MEDIA__HEIGHT:
return height != null;
case FhirResourcePackage.MEDIA__WIDTH:
return width != null;
case FhirResourcePackage.MEDIA__FRAMES:
return frames != null;
case FhirResourcePackage.MEDIA__DURATION:
return duration != null;
case FhirResourcePackage.MEDIA__CONTENT:
return content != null;
}
return super.eIsSet(featureID);
}
} //MediaImpl