All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openhealthtools.mdht.uml.cda.impl.RegionOfInterestValueImpl Maven / Gradle / Ivy

/*******************************************************************************
 * Copyright (c) 2009, 2011 IBM Corporation 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:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.openhealthtools.mdht.uml.cda.impl;

import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.openhealthtools.mdht.uml.cda.CDAPackage;
import org.openhealthtools.mdht.uml.cda.RegionOfInterestValue;
import org.openhealthtools.mdht.uml.hl7.datatypes.impl.INTImpl;

/**
 * 
 * An implementation of the model object 'Region Of Interest Value'.
 * 
 * 

* The following features are implemented: *

    *
  • {@link org.openhealthtools.mdht.uml.cda.impl.RegionOfInterestValueImpl#isUnsorted Unsorted}
  • *
*

* * @generated */ public class RegionOfInterestValueImpl extends INTImpl implements RegionOfInterestValue { /** * The default value of the '{@link #isUnsorted() Unsorted}' attribute. * * * @see #isUnsorted() * @generated * @ordered */ protected static final boolean UNSORTED_EDEFAULT = false; /** * The cached value of the '{@link #isUnsorted() Unsorted}' attribute. * * * @see #isUnsorted() * @generated * @ordered */ protected boolean unsorted = UNSORTED_EDEFAULT; /** * * * @generated */ protected RegionOfInterestValueImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return CDAPackage.Literals.REGION_OF_INTEREST_VALUE; } /** * * * @generated */ public boolean isUnsorted() { return unsorted; } /** * * * @generated */ public void setUnsorted(boolean newUnsorted) { boolean oldUnsorted = unsorted; unsorted = newUnsorted; if (eNotificationRequired()) { eNotify(new ENotificationImpl( this, Notification.SET, CDAPackage.REGION_OF_INTEREST_VALUE__UNSORTED, oldUnsorted, unsorted)); } } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case CDAPackage.REGION_OF_INTEREST_VALUE__UNSORTED: return isUnsorted(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case CDAPackage.REGION_OF_INTEREST_VALUE__UNSORTED: setUnsorted((Boolean) newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case CDAPackage.REGION_OF_INTEREST_VALUE__UNSORTED: setUnsorted(UNSORTED_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case CDAPackage.REGION_OF_INTEREST_VALUE__UNSORTED: return unsorted != UNSORTED_EDEFAULT; } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) { return super.toString(); } StringBuffer result = new StringBuffer(super.toString()); result.append(" (unsorted: "); result.append(unsorted); result.append(')'); return result.toString(); } } // RegionOfInterestValueImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy