blob: d9ec6b0da23abbde950e40df1a081b4c03fd8fc9 [file] [log] [blame]
/**
*/
package org.hl7.fhir.impl;
import java.lang.String;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.hl7.fhir.Address;
import org.hl7.fhir.Annotation;
import org.hl7.fhir.Attachment;
import org.hl7.fhir.Base64Binary;
import org.hl7.fhir.Code;
import org.hl7.fhir.CodeableConcept;
import org.hl7.fhir.Coding;
import org.hl7.fhir.ContactPoint;
import org.hl7.fhir.Date;
import org.hl7.fhir.DateTime;
import org.hl7.fhir.Decimal;
import org.hl7.fhir.Extension;
import org.hl7.fhir.FhirPackage;
import org.hl7.fhir.HumanName;
import org.hl7.fhir.Id;
import org.hl7.fhir.Identifier;
import org.hl7.fhir.Instant;
import org.hl7.fhir.Markdown;
import org.hl7.fhir.Meta;
import org.hl7.fhir.Oid;
import org.hl7.fhir.Period;
import org.hl7.fhir.PositiveInt;
import org.hl7.fhir.Quantity;
import org.hl7.fhir.Range;
import org.hl7.fhir.Ratio;
import org.hl7.fhir.Reference;
import org.hl7.fhir.SampledData;
import org.hl7.fhir.Signature;
import org.hl7.fhir.Time;
import org.hl7.fhir.Timing;
import org.hl7.fhir.UnsignedInt;
import org.hl7.fhir.Uri;
import org.hl7.fhir.Uuid;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Extension</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueBoolean <em>Value Boolean</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueInteger <em>Value Integer</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueDecimal <em>Value Decimal</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueBase64Binary <em>Value Base64 Binary</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueInstant <em>Value Instant</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueString <em>Value String</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueUri <em>Value Uri</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueDate <em>Value Date</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueDateTime <em>Value Date Time</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueTime <em>Value Time</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueCode <em>Value Code</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueOid <em>Value Oid</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueUuid <em>Value Uuid</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueId <em>Value Id</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueUnsignedInt <em>Value Unsigned Int</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValuePositiveInt <em>Value Positive Int</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueMarkdown <em>Value Markdown</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueAnnotation <em>Value Annotation</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueAttachment <em>Value Attachment</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueIdentifier <em>Value Identifier</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueCodeableConcept <em>Value Codeable Concept</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueCoding <em>Value Coding</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueQuantity <em>Value Quantity</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueRange <em>Value Range</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValuePeriod <em>Value Period</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueRatio <em>Value Ratio</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueReference <em>Value Reference</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueSampledData <em>Value Sampled Data</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueSignature <em>Value Signature</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueHumanName <em>Value Human Name</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueAddress <em>Value Address</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueContactPoint <em>Value Contact Point</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueTiming <em>Value Timing</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getValueMeta <em>Value Meta</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExtensionImpl#getUrl <em>Url</em>}</li>
* </ul>
*
* @generated
*/
public class ExtensionImpl extends ElementImpl implements Extension {
/**
* The cached value of the '{@link #getValueBoolean() <em>Value Boolean</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueBoolean()
* @generated
* @ordered
*/
protected org.hl7.fhir.Boolean valueBoolean;
/**
* The cached value of the '{@link #getValueInteger() <em>Value Integer</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueInteger()
* @generated
* @ordered
*/
protected org.hl7.fhir.Integer valueInteger;
/**
* The cached value of the '{@link #getValueDecimal() <em>Value Decimal</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueDecimal()
* @generated
* @ordered
*/
protected Decimal valueDecimal;
/**
* The cached value of the '{@link #getValueBase64Binary() <em>Value Base64 Binary</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueBase64Binary()
* @generated
* @ordered
*/
protected Base64Binary valueBase64Binary;
/**
* The cached value of the '{@link #getValueInstant() <em>Value Instant</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueInstant()
* @generated
* @ordered
*/
protected Instant valueInstant;
/**
* The cached value of the '{@link #getValueString() <em>Value String</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueString()
* @generated
* @ordered
*/
protected org.hl7.fhir.String valueString;
/**
* The cached value of the '{@link #getValueUri() <em>Value Uri</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueUri()
* @generated
* @ordered
*/
protected Uri valueUri;
/**
* The cached value of the '{@link #getValueDate() <em>Value Date</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueDate()
* @generated
* @ordered
*/
protected Date valueDate;
/**
* The cached value of the '{@link #getValueDateTime() <em>Value Date Time</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueDateTime()
* @generated
* @ordered
*/
protected DateTime valueDateTime;
/**
* The cached value of the '{@link #getValueTime() <em>Value Time</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueTime()
* @generated
* @ordered
*/
protected Time valueTime;
/**
* The cached value of the '{@link #getValueCode() <em>Value Code</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueCode()
* @generated
* @ordered
*/
protected Code valueCode;
/**
* The cached value of the '{@link #getValueOid() <em>Value Oid</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueOid()
* @generated
* @ordered
*/
protected Oid valueOid;
/**
* The cached value of the '{@link #getValueUuid() <em>Value Uuid</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueUuid()
* @generated
* @ordered
*/
protected Uuid valueUuid;
/**
* The cached value of the '{@link #getValueId() <em>Value Id</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueId()
* @generated
* @ordered
*/
protected Id valueId;
/**
* The cached value of the '{@link #getValueUnsignedInt() <em>Value Unsigned Int</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueUnsignedInt()
* @generated
* @ordered
*/
protected UnsignedInt valueUnsignedInt;
/**
* The cached value of the '{@link #getValuePositiveInt() <em>Value Positive Int</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValuePositiveInt()
* @generated
* @ordered
*/
protected PositiveInt valuePositiveInt;
/**
* The cached value of the '{@link #getValueMarkdown() <em>Value Markdown</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueMarkdown()
* @generated
* @ordered
*/
protected Markdown valueMarkdown;
/**
* The cached value of the '{@link #getValueAnnotation() <em>Value Annotation</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueAnnotation()
* @generated
* @ordered
*/
protected Annotation valueAnnotation;
/**
* The cached value of the '{@link #getValueAttachment() <em>Value Attachment</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueAttachment()
* @generated
* @ordered
*/
protected Attachment valueAttachment;
/**
* The cached value of the '{@link #getValueIdentifier() <em>Value Identifier</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueIdentifier()
* @generated
* @ordered
*/
protected Identifier valueIdentifier;
/**
* The cached value of the '{@link #getValueCodeableConcept() <em>Value Codeable Concept</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueCodeableConcept()
* @generated
* @ordered
*/
protected CodeableConcept valueCodeableConcept;
/**
* The cached value of the '{@link #getValueCoding() <em>Value Coding</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueCoding()
* @generated
* @ordered
*/
protected Coding valueCoding;
/**
* The cached value of the '{@link #getValueQuantity() <em>Value Quantity</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueQuantity()
* @generated
* @ordered
*/
protected Quantity valueQuantity;
/**
* The cached value of the '{@link #getValueRange() <em>Value Range</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueRange()
* @generated
* @ordered
*/
protected Range valueRange;
/**
* The cached value of the '{@link #getValuePeriod() <em>Value Period</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValuePeriod()
* @generated
* @ordered
*/
protected Period valuePeriod;
/**
* The cached value of the '{@link #getValueRatio() <em>Value Ratio</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueRatio()
* @generated
* @ordered
*/
protected Ratio valueRatio;
/**
* The cached value of the '{@link #getValueReference() <em>Value Reference</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueReference()
* @generated
* @ordered
*/
protected Reference valueReference;
/**
* The cached value of the '{@link #getValueSampledData() <em>Value Sampled Data</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueSampledData()
* @generated
* @ordered
*/
protected SampledData valueSampledData;
/**
* The cached value of the '{@link #getValueSignature() <em>Value Signature</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueSignature()
* @generated
* @ordered
*/
protected Signature valueSignature;
/**
* The cached value of the '{@link #getValueHumanName() <em>Value Human Name</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueHumanName()
* @generated
* @ordered
*/
protected HumanName valueHumanName;
/**
* The cached value of the '{@link #getValueAddress() <em>Value Address</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueAddress()
* @generated
* @ordered
*/
protected Address valueAddress;
/**
* The cached value of the '{@link #getValueContactPoint() <em>Value Contact Point</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueContactPoint()
* @generated
* @ordered
*/
protected ContactPoint valueContactPoint;
/**
* The cached value of the '{@link #getValueTiming() <em>Value Timing</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueTiming()
* @generated
* @ordered
*/
protected Timing valueTiming;
/**
* The cached value of the '{@link #getValueMeta() <em>Value Meta</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueMeta()
* @generated
* @ordered
*/
protected Meta valueMeta;
/**
* The default value of the '{@link #getUrl() <em>Url</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getUrl()
* @generated
* @ordered
*/
protected static final String URL_EDEFAULT = null;
/**
* The cached value of the '{@link #getUrl() <em>Url</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getUrl()
* @generated
* @ordered
*/
protected String url = URL_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ExtensionImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FhirPackage.eINSTANCE.getExtension();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public org.hl7.fhir.Boolean getValueBoolean() {
return valueBoolean;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueBoolean(org.hl7.fhir.Boolean newValueBoolean, NotificationChain msgs) {
org.hl7.fhir.Boolean oldValueBoolean = valueBoolean;
valueBoolean = newValueBoolean;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_BOOLEAN, oldValueBoolean, newValueBoolean);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueBoolean(org.hl7.fhir.Boolean newValueBoolean) {
if (newValueBoolean != valueBoolean) {
NotificationChain msgs = null;
if (valueBoolean != null)
msgs = ((InternalEObject)valueBoolean).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_BOOLEAN, null, msgs);
if (newValueBoolean != null)
msgs = ((InternalEObject)newValueBoolean).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_BOOLEAN, null, msgs);
msgs = basicSetValueBoolean(newValueBoolean, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_BOOLEAN, newValueBoolean, newValueBoolean));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public org.hl7.fhir.Integer getValueInteger() {
return valueInteger;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueInteger(org.hl7.fhir.Integer newValueInteger, NotificationChain msgs) {
org.hl7.fhir.Integer oldValueInteger = valueInteger;
valueInteger = newValueInteger;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_INTEGER, oldValueInteger, newValueInteger);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueInteger(org.hl7.fhir.Integer newValueInteger) {
if (newValueInteger != valueInteger) {
NotificationChain msgs = null;
if (valueInteger != null)
msgs = ((InternalEObject)valueInteger).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_INTEGER, null, msgs);
if (newValueInteger != null)
msgs = ((InternalEObject)newValueInteger).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_INTEGER, null, msgs);
msgs = basicSetValueInteger(newValueInteger, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_INTEGER, newValueInteger, newValueInteger));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Decimal getValueDecimal() {
return valueDecimal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueDecimal(Decimal newValueDecimal, NotificationChain msgs) {
Decimal oldValueDecimal = valueDecimal;
valueDecimal = newValueDecimal;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_DECIMAL, oldValueDecimal, newValueDecimal);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueDecimal(Decimal newValueDecimal) {
if (newValueDecimal != valueDecimal) {
NotificationChain msgs = null;
if (valueDecimal != null)
msgs = ((InternalEObject)valueDecimal).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_DECIMAL, null, msgs);
if (newValueDecimal != null)
msgs = ((InternalEObject)newValueDecimal).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_DECIMAL, null, msgs);
msgs = basicSetValueDecimal(newValueDecimal, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_DECIMAL, newValueDecimal, newValueDecimal));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Base64Binary getValueBase64Binary() {
return valueBase64Binary;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueBase64Binary(Base64Binary newValueBase64Binary, NotificationChain msgs) {
Base64Binary oldValueBase64Binary = valueBase64Binary;
valueBase64Binary = newValueBase64Binary;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_BASE64_BINARY, oldValueBase64Binary, newValueBase64Binary);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueBase64Binary(Base64Binary newValueBase64Binary) {
if (newValueBase64Binary != valueBase64Binary) {
NotificationChain msgs = null;
if (valueBase64Binary != null)
msgs = ((InternalEObject)valueBase64Binary).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_BASE64_BINARY, null, msgs);
if (newValueBase64Binary != null)
msgs = ((InternalEObject)newValueBase64Binary).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_BASE64_BINARY, null, msgs);
msgs = basicSetValueBase64Binary(newValueBase64Binary, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_BASE64_BINARY, newValueBase64Binary, newValueBase64Binary));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Instant getValueInstant() {
return valueInstant;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueInstant(Instant newValueInstant, NotificationChain msgs) {
Instant oldValueInstant = valueInstant;
valueInstant = newValueInstant;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_INSTANT, oldValueInstant, newValueInstant);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueInstant(Instant newValueInstant) {
if (newValueInstant != valueInstant) {
NotificationChain msgs = null;
if (valueInstant != null)
msgs = ((InternalEObject)valueInstant).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_INSTANT, null, msgs);
if (newValueInstant != null)
msgs = ((InternalEObject)newValueInstant).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_INSTANT, null, msgs);
msgs = basicSetValueInstant(newValueInstant, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_INSTANT, newValueInstant, newValueInstant));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public org.hl7.fhir.String getValueString() {
return valueString;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueString(org.hl7.fhir.String newValueString, NotificationChain msgs) {
org.hl7.fhir.String oldValueString = valueString;
valueString = newValueString;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_STRING, oldValueString, newValueString);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueString(org.hl7.fhir.String newValueString) {
if (newValueString != valueString) {
NotificationChain msgs = null;
if (valueString != null)
msgs = ((InternalEObject)valueString).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_STRING, null, msgs);
if (newValueString != null)
msgs = ((InternalEObject)newValueString).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_STRING, null, msgs);
msgs = basicSetValueString(newValueString, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_STRING, newValueString, newValueString));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Uri getValueUri() {
return valueUri;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueUri(Uri newValueUri, NotificationChain msgs) {
Uri oldValueUri = valueUri;
valueUri = newValueUri;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_URI, oldValueUri, newValueUri);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueUri(Uri newValueUri) {
if (newValueUri != valueUri) {
NotificationChain msgs = null;
if (valueUri != null)
msgs = ((InternalEObject)valueUri).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_URI, null, msgs);
if (newValueUri != null)
msgs = ((InternalEObject)newValueUri).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_URI, null, msgs);
msgs = basicSetValueUri(newValueUri, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_URI, newValueUri, newValueUri));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Date getValueDate() {
return valueDate;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueDate(Date newValueDate, NotificationChain msgs) {
Date oldValueDate = valueDate;
valueDate = newValueDate;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_DATE, oldValueDate, newValueDate);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueDate(Date newValueDate) {
if (newValueDate != valueDate) {
NotificationChain msgs = null;
if (valueDate != null)
msgs = ((InternalEObject)valueDate).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_DATE, null, msgs);
if (newValueDate != null)
msgs = ((InternalEObject)newValueDate).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_DATE, null, msgs);
msgs = basicSetValueDate(newValueDate, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_DATE, newValueDate, newValueDate));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public DateTime getValueDateTime() {
return valueDateTime;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueDateTime(DateTime newValueDateTime, NotificationChain msgs) {
DateTime oldValueDateTime = valueDateTime;
valueDateTime = newValueDateTime;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_DATE_TIME, oldValueDateTime, newValueDateTime);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueDateTime(DateTime newValueDateTime) {
if (newValueDateTime != valueDateTime) {
NotificationChain msgs = null;
if (valueDateTime != null)
msgs = ((InternalEObject)valueDateTime).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_DATE_TIME, null, msgs);
if (newValueDateTime != null)
msgs = ((InternalEObject)newValueDateTime).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_DATE_TIME, null, msgs);
msgs = basicSetValueDateTime(newValueDateTime, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_DATE_TIME, newValueDateTime, newValueDateTime));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Time getValueTime() {
return valueTime;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueTime(Time newValueTime, NotificationChain msgs) {
Time oldValueTime = valueTime;
valueTime = newValueTime;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_TIME, oldValueTime, newValueTime);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueTime(Time newValueTime) {
if (newValueTime != valueTime) {
NotificationChain msgs = null;
if (valueTime != null)
msgs = ((InternalEObject)valueTime).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_TIME, null, msgs);
if (newValueTime != null)
msgs = ((InternalEObject)newValueTime).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_TIME, null, msgs);
msgs = basicSetValueTime(newValueTime, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_TIME, newValueTime, newValueTime));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Code getValueCode() {
return valueCode;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueCode(Code newValueCode, NotificationChain msgs) {
Code oldValueCode = valueCode;
valueCode = newValueCode;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_CODE, oldValueCode, newValueCode);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueCode(Code newValueCode) {
if (newValueCode != valueCode) {
NotificationChain msgs = null;
if (valueCode != null)
msgs = ((InternalEObject)valueCode).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_CODE, null, msgs);
if (newValueCode != null)
msgs = ((InternalEObject)newValueCode).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_CODE, null, msgs);
msgs = basicSetValueCode(newValueCode, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_CODE, newValueCode, newValueCode));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Oid getValueOid() {
return valueOid;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueOid(Oid newValueOid, NotificationChain msgs) {
Oid oldValueOid = valueOid;
valueOid = newValueOid;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_OID, oldValueOid, newValueOid);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueOid(Oid newValueOid) {
if (newValueOid != valueOid) {
NotificationChain msgs = null;
if (valueOid != null)
msgs = ((InternalEObject)valueOid).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_OID, null, msgs);
if (newValueOid != null)
msgs = ((InternalEObject)newValueOid).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_OID, null, msgs);
msgs = basicSetValueOid(newValueOid, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_OID, newValueOid, newValueOid));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Uuid getValueUuid() {
return valueUuid;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueUuid(Uuid newValueUuid, NotificationChain msgs) {
Uuid oldValueUuid = valueUuid;
valueUuid = newValueUuid;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_UUID, oldValueUuid, newValueUuid);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueUuid(Uuid newValueUuid) {
if (newValueUuid != valueUuid) {
NotificationChain msgs = null;
if (valueUuid != null)
msgs = ((InternalEObject)valueUuid).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_UUID, null, msgs);
if (newValueUuid != null)
msgs = ((InternalEObject)newValueUuid).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_UUID, null, msgs);
msgs = basicSetValueUuid(newValueUuid, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_UUID, newValueUuid, newValueUuid));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Id getValueId() {
return valueId;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueId(Id newValueId, NotificationChain msgs) {
Id oldValueId = valueId;
valueId = newValueId;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_ID, oldValueId, newValueId);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueId(Id newValueId) {
if (newValueId != valueId) {
NotificationChain msgs = null;
if (valueId != null)
msgs = ((InternalEObject)valueId).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_ID, null, msgs);
if (newValueId != null)
msgs = ((InternalEObject)newValueId).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_ID, null, msgs);
msgs = basicSetValueId(newValueId, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_ID, newValueId, newValueId));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public UnsignedInt getValueUnsignedInt() {
return valueUnsignedInt;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueUnsignedInt(UnsignedInt newValueUnsignedInt, NotificationChain msgs) {
UnsignedInt oldValueUnsignedInt = valueUnsignedInt;
valueUnsignedInt = newValueUnsignedInt;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_UNSIGNED_INT, oldValueUnsignedInt, newValueUnsignedInt);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueUnsignedInt(UnsignedInt newValueUnsignedInt) {
if (newValueUnsignedInt != valueUnsignedInt) {
NotificationChain msgs = null;
if (valueUnsignedInt != null)
msgs = ((InternalEObject)valueUnsignedInt).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_UNSIGNED_INT, null, msgs);
if (newValueUnsignedInt != null)
msgs = ((InternalEObject)newValueUnsignedInt).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_UNSIGNED_INT, null, msgs);
msgs = basicSetValueUnsignedInt(newValueUnsignedInt, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_UNSIGNED_INT, newValueUnsignedInt, newValueUnsignedInt));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public PositiveInt getValuePositiveInt() {
return valuePositiveInt;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValuePositiveInt(PositiveInt newValuePositiveInt, NotificationChain msgs) {
PositiveInt oldValuePositiveInt = valuePositiveInt;
valuePositiveInt = newValuePositiveInt;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_POSITIVE_INT, oldValuePositiveInt, newValuePositiveInt);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValuePositiveInt(PositiveInt newValuePositiveInt) {
if (newValuePositiveInt != valuePositiveInt) {
NotificationChain msgs = null;
if (valuePositiveInt != null)
msgs = ((InternalEObject)valuePositiveInt).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_POSITIVE_INT, null, msgs);
if (newValuePositiveInt != null)
msgs = ((InternalEObject)newValuePositiveInt).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_POSITIVE_INT, null, msgs);
msgs = basicSetValuePositiveInt(newValuePositiveInt, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_POSITIVE_INT, newValuePositiveInt, newValuePositiveInt));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Markdown getValueMarkdown() {
return valueMarkdown;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueMarkdown(Markdown newValueMarkdown, NotificationChain msgs) {
Markdown oldValueMarkdown = valueMarkdown;
valueMarkdown = newValueMarkdown;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_MARKDOWN, oldValueMarkdown, newValueMarkdown);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueMarkdown(Markdown newValueMarkdown) {
if (newValueMarkdown != valueMarkdown) {
NotificationChain msgs = null;
if (valueMarkdown != null)
msgs = ((InternalEObject)valueMarkdown).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_MARKDOWN, null, msgs);
if (newValueMarkdown != null)
msgs = ((InternalEObject)newValueMarkdown).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_MARKDOWN, null, msgs);
msgs = basicSetValueMarkdown(newValueMarkdown, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_MARKDOWN, newValueMarkdown, newValueMarkdown));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Annotation getValueAnnotation() {
return valueAnnotation;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueAnnotation(Annotation newValueAnnotation, NotificationChain msgs) {
Annotation oldValueAnnotation = valueAnnotation;
valueAnnotation = newValueAnnotation;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_ANNOTATION, oldValueAnnotation, newValueAnnotation);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueAnnotation(Annotation newValueAnnotation) {
if (newValueAnnotation != valueAnnotation) {
NotificationChain msgs = null;
if (valueAnnotation != null)
msgs = ((InternalEObject)valueAnnotation).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_ANNOTATION, null, msgs);
if (newValueAnnotation != null)
msgs = ((InternalEObject)newValueAnnotation).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_ANNOTATION, null, msgs);
msgs = basicSetValueAnnotation(newValueAnnotation, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_ANNOTATION, newValueAnnotation, newValueAnnotation));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Attachment getValueAttachment() {
return valueAttachment;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueAttachment(Attachment newValueAttachment, NotificationChain msgs) {
Attachment oldValueAttachment = valueAttachment;
valueAttachment = newValueAttachment;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_ATTACHMENT, oldValueAttachment, newValueAttachment);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueAttachment(Attachment newValueAttachment) {
if (newValueAttachment != valueAttachment) {
NotificationChain msgs = null;
if (valueAttachment != null)
msgs = ((InternalEObject)valueAttachment).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_ATTACHMENT, null, msgs);
if (newValueAttachment != null)
msgs = ((InternalEObject)newValueAttachment).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_ATTACHMENT, null, msgs);
msgs = basicSetValueAttachment(newValueAttachment, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_ATTACHMENT, newValueAttachment, newValueAttachment));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Identifier getValueIdentifier() {
return valueIdentifier;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueIdentifier(Identifier newValueIdentifier, NotificationChain msgs) {
Identifier oldValueIdentifier = valueIdentifier;
valueIdentifier = newValueIdentifier;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_IDENTIFIER, oldValueIdentifier, newValueIdentifier);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueIdentifier(Identifier newValueIdentifier) {
if (newValueIdentifier != valueIdentifier) {
NotificationChain msgs = null;
if (valueIdentifier != null)
msgs = ((InternalEObject)valueIdentifier).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_IDENTIFIER, null, msgs);
if (newValueIdentifier != null)
msgs = ((InternalEObject)newValueIdentifier).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_IDENTIFIER, null, msgs);
msgs = basicSetValueIdentifier(newValueIdentifier, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_IDENTIFIER, newValueIdentifier, newValueIdentifier));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public CodeableConcept getValueCodeableConcept() {
return valueCodeableConcept;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueCodeableConcept(CodeableConcept newValueCodeableConcept, NotificationChain msgs) {
CodeableConcept oldValueCodeableConcept = valueCodeableConcept;
valueCodeableConcept = newValueCodeableConcept;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_CODEABLE_CONCEPT, oldValueCodeableConcept, newValueCodeableConcept);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueCodeableConcept(CodeableConcept newValueCodeableConcept) {
if (newValueCodeableConcept != valueCodeableConcept) {
NotificationChain msgs = null;
if (valueCodeableConcept != null)
msgs = ((InternalEObject)valueCodeableConcept).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_CODEABLE_CONCEPT, null, msgs);
if (newValueCodeableConcept != null)
msgs = ((InternalEObject)newValueCodeableConcept).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_CODEABLE_CONCEPT, null, msgs);
msgs = basicSetValueCodeableConcept(newValueCodeableConcept, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_CODEABLE_CONCEPT, newValueCodeableConcept, newValueCodeableConcept));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Coding getValueCoding() {
return valueCoding;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueCoding(Coding newValueCoding, NotificationChain msgs) {
Coding oldValueCoding = valueCoding;
valueCoding = newValueCoding;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_CODING, oldValueCoding, newValueCoding);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueCoding(Coding newValueCoding) {
if (newValueCoding != valueCoding) {
NotificationChain msgs = null;
if (valueCoding != null)
msgs = ((InternalEObject)valueCoding).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_CODING, null, msgs);
if (newValueCoding != null)
msgs = ((InternalEObject)newValueCoding).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_CODING, null, msgs);
msgs = basicSetValueCoding(newValueCoding, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_CODING, newValueCoding, newValueCoding));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Quantity getValueQuantity() {
return valueQuantity;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueQuantity(Quantity newValueQuantity, NotificationChain msgs) {
Quantity oldValueQuantity = valueQuantity;
valueQuantity = newValueQuantity;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_QUANTITY, oldValueQuantity, newValueQuantity);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueQuantity(Quantity newValueQuantity) {
if (newValueQuantity != valueQuantity) {
NotificationChain msgs = null;
if (valueQuantity != null)
msgs = ((InternalEObject)valueQuantity).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_QUANTITY, null, msgs);
if (newValueQuantity != null)
msgs = ((InternalEObject)newValueQuantity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_QUANTITY, null, msgs);
msgs = basicSetValueQuantity(newValueQuantity, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_QUANTITY, newValueQuantity, newValueQuantity));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Range getValueRange() {
return valueRange;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueRange(Range newValueRange, NotificationChain msgs) {
Range oldValueRange = valueRange;
valueRange = newValueRange;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_RANGE, oldValueRange, newValueRange);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueRange(Range newValueRange) {
if (newValueRange != valueRange) {
NotificationChain msgs = null;
if (valueRange != null)
msgs = ((InternalEObject)valueRange).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_RANGE, null, msgs);
if (newValueRange != null)
msgs = ((InternalEObject)newValueRange).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_RANGE, null, msgs);
msgs = basicSetValueRange(newValueRange, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_RANGE, newValueRange, newValueRange));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Period getValuePeriod() {
return valuePeriod;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValuePeriod(Period newValuePeriod, NotificationChain msgs) {
Period oldValuePeriod = valuePeriod;
valuePeriod = newValuePeriod;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_PERIOD, oldValuePeriod, newValuePeriod);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValuePeriod(Period newValuePeriod) {
if (newValuePeriod != valuePeriod) {
NotificationChain msgs = null;
if (valuePeriod != null)
msgs = ((InternalEObject)valuePeriod).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_PERIOD, null, msgs);
if (newValuePeriod != null)
msgs = ((InternalEObject)newValuePeriod).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_PERIOD, null, msgs);
msgs = basicSetValuePeriod(newValuePeriod, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_PERIOD, newValuePeriod, newValuePeriod));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Ratio getValueRatio() {
return valueRatio;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueRatio(Ratio newValueRatio, NotificationChain msgs) {
Ratio oldValueRatio = valueRatio;
valueRatio = newValueRatio;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_RATIO, oldValueRatio, newValueRatio);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueRatio(Ratio newValueRatio) {
if (newValueRatio != valueRatio) {
NotificationChain msgs = null;
if (valueRatio != null)
msgs = ((InternalEObject)valueRatio).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_RATIO, null, msgs);
if (newValueRatio != null)
msgs = ((InternalEObject)newValueRatio).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_RATIO, null, msgs);
msgs = basicSetValueRatio(newValueRatio, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_RATIO, newValueRatio, newValueRatio));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Reference getValueReference() {
return valueReference;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueReference(Reference newValueReference, NotificationChain msgs) {
Reference oldValueReference = valueReference;
valueReference = newValueReference;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_REFERENCE, oldValueReference, newValueReference);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueReference(Reference newValueReference) {
if (newValueReference != valueReference) {
NotificationChain msgs = null;
if (valueReference != null)
msgs = ((InternalEObject)valueReference).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_REFERENCE, null, msgs);
if (newValueReference != null)
msgs = ((InternalEObject)newValueReference).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_REFERENCE, null, msgs);
msgs = basicSetValueReference(newValueReference, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_REFERENCE, newValueReference, newValueReference));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public SampledData getValueSampledData() {
return valueSampledData;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueSampledData(SampledData newValueSampledData, NotificationChain msgs) {
SampledData oldValueSampledData = valueSampledData;
valueSampledData = newValueSampledData;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_SAMPLED_DATA, oldValueSampledData, newValueSampledData);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueSampledData(SampledData newValueSampledData) {
if (newValueSampledData != valueSampledData) {
NotificationChain msgs = null;
if (valueSampledData != null)
msgs = ((InternalEObject)valueSampledData).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_SAMPLED_DATA, null, msgs);
if (newValueSampledData != null)
msgs = ((InternalEObject)newValueSampledData).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_SAMPLED_DATA, null, msgs);
msgs = basicSetValueSampledData(newValueSampledData, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_SAMPLED_DATA, newValueSampledData, newValueSampledData));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Signature getValueSignature() {
return valueSignature;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueSignature(Signature newValueSignature, NotificationChain msgs) {
Signature oldValueSignature = valueSignature;
valueSignature = newValueSignature;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_SIGNATURE, oldValueSignature, newValueSignature);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueSignature(Signature newValueSignature) {
if (newValueSignature != valueSignature) {
NotificationChain msgs = null;
if (valueSignature != null)
msgs = ((InternalEObject)valueSignature).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_SIGNATURE, null, msgs);
if (newValueSignature != null)
msgs = ((InternalEObject)newValueSignature).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_SIGNATURE, null, msgs);
msgs = basicSetValueSignature(newValueSignature, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_SIGNATURE, newValueSignature, newValueSignature));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public HumanName getValueHumanName() {
return valueHumanName;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueHumanName(HumanName newValueHumanName, NotificationChain msgs) {
HumanName oldValueHumanName = valueHumanName;
valueHumanName = newValueHumanName;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_HUMAN_NAME, oldValueHumanName, newValueHumanName);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueHumanName(HumanName newValueHumanName) {
if (newValueHumanName != valueHumanName) {
NotificationChain msgs = null;
if (valueHumanName != null)
msgs = ((InternalEObject)valueHumanName).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_HUMAN_NAME, null, msgs);
if (newValueHumanName != null)
msgs = ((InternalEObject)newValueHumanName).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_HUMAN_NAME, null, msgs);
msgs = basicSetValueHumanName(newValueHumanName, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_HUMAN_NAME, newValueHumanName, newValueHumanName));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Address getValueAddress() {
return valueAddress;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueAddress(Address newValueAddress, NotificationChain msgs) {
Address oldValueAddress = valueAddress;
valueAddress = newValueAddress;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_ADDRESS, oldValueAddress, newValueAddress);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueAddress(Address newValueAddress) {
if (newValueAddress != valueAddress) {
NotificationChain msgs = null;
if (valueAddress != null)
msgs = ((InternalEObject)valueAddress).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_ADDRESS, null, msgs);
if (newValueAddress != null)
msgs = ((InternalEObject)newValueAddress).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_ADDRESS, null, msgs);
msgs = basicSetValueAddress(newValueAddress, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_ADDRESS, newValueAddress, newValueAddress));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ContactPoint getValueContactPoint() {
return valueContactPoint;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueContactPoint(ContactPoint newValueContactPoint, NotificationChain msgs) {
ContactPoint oldValueContactPoint = valueContactPoint;
valueContactPoint = newValueContactPoint;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_CONTACT_POINT, oldValueContactPoint, newValueContactPoint);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueContactPoint(ContactPoint newValueContactPoint) {
if (newValueContactPoint != valueContactPoint) {
NotificationChain msgs = null;
if (valueContactPoint != null)
msgs = ((InternalEObject)valueContactPoint).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_CONTACT_POINT, null, msgs);
if (newValueContactPoint != null)
msgs = ((InternalEObject)newValueContactPoint).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_CONTACT_POINT, null, msgs);
msgs = basicSetValueContactPoint(newValueContactPoint, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_CONTACT_POINT, newValueContactPoint, newValueContactPoint));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Timing getValueTiming() {
return valueTiming;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueTiming(Timing newValueTiming, NotificationChain msgs) {
Timing oldValueTiming = valueTiming;
valueTiming = newValueTiming;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_TIMING, oldValueTiming, newValueTiming);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueTiming(Timing newValueTiming) {
if (newValueTiming != valueTiming) {
NotificationChain msgs = null;
if (valueTiming != null)
msgs = ((InternalEObject)valueTiming).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_TIMING, null, msgs);
if (newValueTiming != null)
msgs = ((InternalEObject)newValueTiming).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_TIMING, null, msgs);
msgs = basicSetValueTiming(newValueTiming, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_TIMING, newValueTiming, newValueTiming));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Meta getValueMeta() {
return valueMeta;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValueMeta(Meta newValueMeta, NotificationChain msgs) {
Meta oldValueMeta = valueMeta;
valueMeta = newValueMeta;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_META, oldValueMeta, newValueMeta);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValueMeta(Meta newValueMeta) {
if (newValueMeta != valueMeta) {
NotificationChain msgs = null;
if (valueMeta != null)
msgs = ((InternalEObject)valueMeta).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_META, null, msgs);
if (newValueMeta != null)
msgs = ((InternalEObject)newValueMeta).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXTENSION__VALUE_META, null, msgs);
msgs = basicSetValueMeta(newValueMeta, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__VALUE_META, newValueMeta, newValueMeta));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getUrl() {
return url;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setUrl(String newUrl) {
String oldUrl = url;
url = newUrl;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXTENSION__URL, oldUrl, url));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case FhirPackage.EXTENSION__VALUE_BOOLEAN:
return basicSetValueBoolean(null, msgs);
case FhirPackage.EXTENSION__VALUE_INTEGER:
return basicSetValueInteger(null, msgs);
case FhirPackage.EXTENSION__VALUE_DECIMAL:
return basicSetValueDecimal(null, msgs);
case FhirPackage.EXTENSION__VALUE_BASE64_BINARY:
return basicSetValueBase64Binary(null, msgs);
case FhirPackage.EXTENSION__VALUE_INSTANT:
return basicSetValueInstant(null, msgs);
case FhirPackage.EXTENSION__VALUE_STRING:
return basicSetValueString(null, msgs);
case FhirPackage.EXTENSION__VALUE_URI:
return basicSetValueUri(null, msgs);
case FhirPackage.EXTENSION__VALUE_DATE:
return basicSetValueDate(null, msgs);
case FhirPackage.EXTENSION__VALUE_DATE_TIME:
return basicSetValueDateTime(null, msgs);
case FhirPackage.EXTENSION__VALUE_TIME:
return basicSetValueTime(null, msgs);
case FhirPackage.EXTENSION__VALUE_CODE:
return basicSetValueCode(null, msgs);
case FhirPackage.EXTENSION__VALUE_OID:
return basicSetValueOid(null, msgs);
case FhirPackage.EXTENSION__VALUE_UUID:
return basicSetValueUuid(null, msgs);
case FhirPackage.EXTENSION__VALUE_ID:
return basicSetValueId(null, msgs);
case FhirPackage.EXTENSION__VALUE_UNSIGNED_INT:
return basicSetValueUnsignedInt(null, msgs);
case FhirPackage.EXTENSION__VALUE_POSITIVE_INT:
return basicSetValuePositiveInt(null, msgs);
case FhirPackage.EXTENSION__VALUE_MARKDOWN:
return basicSetValueMarkdown(null, msgs);
case FhirPackage.EXTENSION__VALUE_ANNOTATION:
return basicSetValueAnnotation(null, msgs);
case FhirPackage.EXTENSION__VALUE_ATTACHMENT:
return basicSetValueAttachment(null, msgs);
case FhirPackage.EXTENSION__VALUE_IDENTIFIER:
return basicSetValueIdentifier(null, msgs);
case FhirPackage.EXTENSION__VALUE_CODEABLE_CONCEPT:
return basicSetValueCodeableConcept(null, msgs);
case FhirPackage.EXTENSION__VALUE_CODING:
return basicSetValueCoding(null, msgs);
case FhirPackage.EXTENSION__VALUE_QUANTITY:
return basicSetValueQuantity(null, msgs);
case FhirPackage.EXTENSION__VALUE_RANGE:
return basicSetValueRange(null, msgs);
case FhirPackage.EXTENSION__VALUE_PERIOD:
return basicSetValuePeriod(null, msgs);
case FhirPackage.EXTENSION__VALUE_RATIO:
return basicSetValueRatio(null, msgs);
case FhirPackage.EXTENSION__VALUE_REFERENCE:
return basicSetValueReference(null, msgs);
case FhirPackage.EXTENSION__VALUE_SAMPLED_DATA:
return basicSetValueSampledData(null, msgs);
case FhirPackage.EXTENSION__VALUE_SIGNATURE:
return basicSetValueSignature(null, msgs);
case FhirPackage.EXTENSION__VALUE_HUMAN_NAME:
return basicSetValueHumanName(null, msgs);
case FhirPackage.EXTENSION__VALUE_ADDRESS:
return basicSetValueAddress(null, msgs);
case FhirPackage.EXTENSION__VALUE_CONTACT_POINT:
return basicSetValueContactPoint(null, msgs);
case FhirPackage.EXTENSION__VALUE_TIMING:
return basicSetValueTiming(null, msgs);
case FhirPackage.EXTENSION__VALUE_META:
return basicSetValueMeta(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case FhirPackage.EXTENSION__VALUE_BOOLEAN:
return getValueBoolean();
case FhirPackage.EXTENSION__VALUE_INTEGER:
return getValueInteger();
case FhirPackage.EXTENSION__VALUE_DECIMAL:
return getValueDecimal();
case FhirPackage.EXTENSION__VALUE_BASE64_BINARY:
return getValueBase64Binary();
case FhirPackage.EXTENSION__VALUE_INSTANT:
return getValueInstant();
case FhirPackage.EXTENSION__VALUE_STRING:
return getValueString();
case FhirPackage.EXTENSION__VALUE_URI:
return getValueUri();
case FhirPackage.EXTENSION__VALUE_DATE:
return getValueDate();
case FhirPackage.EXTENSION__VALUE_DATE_TIME:
return getValueDateTime();
case FhirPackage.EXTENSION__VALUE_TIME:
return getValueTime();
case FhirPackage.EXTENSION__VALUE_CODE:
return getValueCode();
case FhirPackage.EXTENSION__VALUE_OID:
return getValueOid();
case FhirPackage.EXTENSION__VALUE_UUID:
return getValueUuid();
case FhirPackage.EXTENSION__VALUE_ID:
return getValueId();
case FhirPackage.EXTENSION__VALUE_UNSIGNED_INT:
return getValueUnsignedInt();
case FhirPackage.EXTENSION__VALUE_POSITIVE_INT:
return getValuePositiveInt();
case FhirPackage.EXTENSION__VALUE_MARKDOWN:
return getValueMarkdown();
case FhirPackage.EXTENSION__VALUE_ANNOTATION:
return getValueAnnotation();
case FhirPackage.EXTENSION__VALUE_ATTACHMENT:
return getValueAttachment();
case FhirPackage.EXTENSION__VALUE_IDENTIFIER:
return getValueIdentifier();
case FhirPackage.EXTENSION__VALUE_CODEABLE_CONCEPT:
return getValueCodeableConcept();
case FhirPackage.EXTENSION__VALUE_CODING:
return getValueCoding();
case FhirPackage.EXTENSION__VALUE_QUANTITY:
return getValueQuantity();
case FhirPackage.EXTENSION__VALUE_RANGE:
return getValueRange();
case FhirPackage.EXTENSION__VALUE_PERIOD:
return getValuePeriod();
case FhirPackage.EXTENSION__VALUE_RATIO:
return getValueRatio();
case FhirPackage.EXTENSION__VALUE_REFERENCE:
return getValueReference();
case FhirPackage.EXTENSION__VALUE_SAMPLED_DATA:
return getValueSampledData();
case FhirPackage.EXTENSION__VALUE_SIGNATURE:
return getValueSignature();
case FhirPackage.EXTENSION__VALUE_HUMAN_NAME:
return getValueHumanName();
case FhirPackage.EXTENSION__VALUE_ADDRESS:
return getValueAddress();
case FhirPackage.EXTENSION__VALUE_CONTACT_POINT:
return getValueContactPoint();
case FhirPackage.EXTENSION__VALUE_TIMING:
return getValueTiming();
case FhirPackage.EXTENSION__VALUE_META:
return getValueMeta();
case FhirPackage.EXTENSION__URL:
return getUrl();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case FhirPackage.EXTENSION__VALUE_BOOLEAN:
setValueBoolean((org.hl7.fhir.Boolean)newValue);
return;
case FhirPackage.EXTENSION__VALUE_INTEGER:
setValueInteger((org.hl7.fhir.Integer)newValue);
return;
case FhirPackage.EXTENSION__VALUE_DECIMAL:
setValueDecimal((Decimal)newValue);
return;
case FhirPackage.EXTENSION__VALUE_BASE64_BINARY:
setValueBase64Binary((Base64Binary)newValue);
return;
case FhirPackage.EXTENSION__VALUE_INSTANT:
setValueInstant((Instant)newValue);
return;
case FhirPackage.EXTENSION__VALUE_STRING:
setValueString((org.hl7.fhir.String)newValue);
return;
case FhirPackage.EXTENSION__VALUE_URI:
setValueUri((Uri)newValue);
return;
case FhirPackage.EXTENSION__VALUE_DATE:
setValueDate((Date)newValue);
return;
case FhirPackage.EXTENSION__VALUE_DATE_TIME:
setValueDateTime((DateTime)newValue);
return;
case FhirPackage.EXTENSION__VALUE_TIME:
setValueTime((Time)newValue);
return;
case FhirPackage.EXTENSION__VALUE_CODE:
setValueCode((Code)newValue);
return;
case FhirPackage.EXTENSION__VALUE_OID:
setValueOid((Oid)newValue);
return;
case FhirPackage.EXTENSION__VALUE_UUID:
setValueUuid((Uuid)newValue);
return;
case FhirPackage.EXTENSION__VALUE_ID:
setValueId((Id)newValue);
return;
case FhirPackage.EXTENSION__VALUE_UNSIGNED_INT:
setValueUnsignedInt((UnsignedInt)newValue);
return;
case FhirPackage.EXTENSION__VALUE_POSITIVE_INT:
setValuePositiveInt((PositiveInt)newValue);
return;
case FhirPackage.EXTENSION__VALUE_MARKDOWN:
setValueMarkdown((Markdown)newValue);
return;
case FhirPackage.EXTENSION__VALUE_ANNOTATION:
setValueAnnotation((Annotation)newValue);
return;
case FhirPackage.EXTENSION__VALUE_ATTACHMENT:
setValueAttachment((Attachment)newValue);
return;
case FhirPackage.EXTENSION__VALUE_IDENTIFIER:
setValueIdentifier((Identifier)newValue);
return;
case FhirPackage.EXTENSION__VALUE_CODEABLE_CONCEPT:
setValueCodeableConcept((CodeableConcept)newValue);
return;
case FhirPackage.EXTENSION__VALUE_CODING:
setValueCoding((Coding)newValue);
return;
case FhirPackage.EXTENSION__VALUE_QUANTITY:
setValueQuantity((Quantity)newValue);
return;
case FhirPackage.EXTENSION__VALUE_RANGE:
setValueRange((Range)newValue);
return;
case FhirPackage.EXTENSION__VALUE_PERIOD:
setValuePeriod((Period)newValue);
return;
case FhirPackage.EXTENSION__VALUE_RATIO:
setValueRatio((Ratio)newValue);
return;
case FhirPackage.EXTENSION__VALUE_REFERENCE:
setValueReference((Reference)newValue);
return;
case FhirPackage.EXTENSION__VALUE_SAMPLED_DATA:
setValueSampledData((SampledData)newValue);
return;
case FhirPackage.EXTENSION__VALUE_SIGNATURE:
setValueSignature((Signature)newValue);
return;
case FhirPackage.EXTENSION__VALUE_HUMAN_NAME:
setValueHumanName((HumanName)newValue);
return;
case FhirPackage.EXTENSION__VALUE_ADDRESS:
setValueAddress((Address)newValue);
return;
case FhirPackage.EXTENSION__VALUE_CONTACT_POINT:
setValueContactPoint((ContactPoint)newValue);
return;
case FhirPackage.EXTENSION__VALUE_TIMING:
setValueTiming((Timing)newValue);
return;
case FhirPackage.EXTENSION__VALUE_META:
setValueMeta((Meta)newValue);
return;
case FhirPackage.EXTENSION__URL:
setUrl((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case FhirPackage.EXTENSION__VALUE_BOOLEAN:
setValueBoolean((org.hl7.fhir.Boolean)null);
return;
case FhirPackage.EXTENSION__VALUE_INTEGER:
setValueInteger((org.hl7.fhir.Integer)null);
return;
case FhirPackage.EXTENSION__VALUE_DECIMAL:
setValueDecimal((Decimal)null);
return;
case FhirPackage.EXTENSION__VALUE_BASE64_BINARY:
setValueBase64Binary((Base64Binary)null);
return;
case FhirPackage.EXTENSION__VALUE_INSTANT:
setValueInstant((Instant)null);
return;
case FhirPackage.EXTENSION__VALUE_STRING:
setValueString((org.hl7.fhir.String)null);
return;
case FhirPackage.EXTENSION__VALUE_URI:
setValueUri((Uri)null);
return;
case FhirPackage.EXTENSION__VALUE_DATE:
setValueDate((Date)null);
return;
case FhirPackage.EXTENSION__VALUE_DATE_TIME:
setValueDateTime((DateTime)null);
return;
case FhirPackage.EXTENSION__VALUE_TIME:
setValueTime((Time)null);
return;
case FhirPackage.EXTENSION__VALUE_CODE:
setValueCode((Code)null);
return;
case FhirPackage.EXTENSION__VALUE_OID:
setValueOid((Oid)null);
return;
case FhirPackage.EXTENSION__VALUE_UUID:
setValueUuid((Uuid)null);
return;
case FhirPackage.EXTENSION__VALUE_ID:
setValueId((Id)null);
return;
case FhirPackage.EXTENSION__VALUE_UNSIGNED_INT:
setValueUnsignedInt((UnsignedInt)null);
return;
case FhirPackage.EXTENSION__VALUE_POSITIVE_INT:
setValuePositiveInt((PositiveInt)null);
return;
case FhirPackage.EXTENSION__VALUE_MARKDOWN:
setValueMarkdown((Markdown)null);
return;
case FhirPackage.EXTENSION__VALUE_ANNOTATION:
setValueAnnotation((Annotation)null);
return;
case FhirPackage.EXTENSION__VALUE_ATTACHMENT:
setValueAttachment((Attachment)null);
return;
case FhirPackage.EXTENSION__VALUE_IDENTIFIER:
setValueIdentifier((Identifier)null);
return;
case FhirPackage.EXTENSION__VALUE_CODEABLE_CONCEPT:
setValueCodeableConcept((CodeableConcept)null);
return;
case FhirPackage.EXTENSION__VALUE_CODING:
setValueCoding((Coding)null);
return;
case FhirPackage.EXTENSION__VALUE_QUANTITY:
setValueQuantity((Quantity)null);
return;
case FhirPackage.EXTENSION__VALUE_RANGE:
setValueRange((Range)null);
return;
case FhirPackage.EXTENSION__VALUE_PERIOD:
setValuePeriod((Period)null);
return;
case FhirPackage.EXTENSION__VALUE_RATIO:
setValueRatio((Ratio)null);
return;
case FhirPackage.EXTENSION__VALUE_REFERENCE:
setValueReference((Reference)null);
return;
case FhirPackage.EXTENSION__VALUE_SAMPLED_DATA:
setValueSampledData((SampledData)null);
return;
case FhirPackage.EXTENSION__VALUE_SIGNATURE:
setValueSignature((Signature)null);
return;
case FhirPackage.EXTENSION__VALUE_HUMAN_NAME:
setValueHumanName((HumanName)null);
return;
case FhirPackage.EXTENSION__VALUE_ADDRESS:
setValueAddress((Address)null);
return;
case FhirPackage.EXTENSION__VALUE_CONTACT_POINT:
setValueContactPoint((ContactPoint)null);
return;
case FhirPackage.EXTENSION__VALUE_TIMING:
setValueTiming((Timing)null);
return;
case FhirPackage.EXTENSION__VALUE_META:
setValueMeta((Meta)null);
return;
case FhirPackage.EXTENSION__URL:
setUrl(URL_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case FhirPackage.EXTENSION__VALUE_BOOLEAN:
return valueBoolean != null;
case FhirPackage.EXTENSION__VALUE_INTEGER:
return valueInteger != null;
case FhirPackage.EXTENSION__VALUE_DECIMAL:
return valueDecimal != null;
case FhirPackage.EXTENSION__VALUE_BASE64_BINARY:
return valueBase64Binary != null;
case FhirPackage.EXTENSION__VALUE_INSTANT:
return valueInstant != null;
case FhirPackage.EXTENSION__VALUE_STRING:
return valueString != null;
case FhirPackage.EXTENSION__VALUE_URI:
return valueUri != null;
case FhirPackage.EXTENSION__VALUE_DATE:
return valueDate != null;
case FhirPackage.EXTENSION__VALUE_DATE_TIME:
return valueDateTime != null;
case FhirPackage.EXTENSION__VALUE_TIME:
return valueTime != null;
case FhirPackage.EXTENSION__VALUE_CODE:
return valueCode != null;
case FhirPackage.EXTENSION__VALUE_OID:
return valueOid != null;
case FhirPackage.EXTENSION__VALUE_UUID:
return valueUuid != null;
case FhirPackage.EXTENSION__VALUE_ID:
return valueId != null;
case FhirPackage.EXTENSION__VALUE_UNSIGNED_INT:
return valueUnsignedInt != null;
case FhirPackage.EXTENSION__VALUE_POSITIVE_INT:
return valuePositiveInt != null;
case FhirPackage.EXTENSION__VALUE_MARKDOWN:
return valueMarkdown != null;
case FhirPackage.EXTENSION__VALUE_ANNOTATION:
return valueAnnotation != null;
case FhirPackage.EXTENSION__VALUE_ATTACHMENT:
return valueAttachment != null;
case FhirPackage.EXTENSION__VALUE_IDENTIFIER:
return valueIdentifier != null;
case FhirPackage.EXTENSION__VALUE_CODEABLE_CONCEPT:
return valueCodeableConcept != null;
case FhirPackage.EXTENSION__VALUE_CODING:
return valueCoding != null;
case FhirPackage.EXTENSION__VALUE_QUANTITY:
return valueQuantity != null;
case FhirPackage.EXTENSION__VALUE_RANGE:
return valueRange != null;
case FhirPackage.EXTENSION__VALUE_PERIOD:
return valuePeriod != null;
case FhirPackage.EXTENSION__VALUE_RATIO:
return valueRatio != null;
case FhirPackage.EXTENSION__VALUE_REFERENCE:
return valueReference != null;
case FhirPackage.EXTENSION__VALUE_SAMPLED_DATA:
return valueSampledData != null;
case FhirPackage.EXTENSION__VALUE_SIGNATURE:
return valueSignature != null;
case FhirPackage.EXTENSION__VALUE_HUMAN_NAME:
return valueHumanName != null;
case FhirPackage.EXTENSION__VALUE_ADDRESS:
return valueAddress != null;
case FhirPackage.EXTENSION__VALUE_CONTACT_POINT:
return valueContactPoint != null;
case FhirPackage.EXTENSION__VALUE_TIMING:
return valueTiming != null;
case FhirPackage.EXTENSION__VALUE_META:
return valueMeta != null;
case FhirPackage.EXTENSION__URL:
return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT.equals(url);
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (url: ");
result.append(url);
result.append(')');
return result.toString();
}
} //ExtensionImpl