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

org.openhealthtools.mdht.uml.hl7.datatypes.impl.ADXPImpl 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.hl7.datatypes.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.hl7.datatypes.ADXP;
import org.openhealthtools.mdht.uml.hl7.datatypes.DatatypesPackage;
import org.openhealthtools.mdht.uml.hl7.vocab.AddressPartType;

/**
 * 
 * An implementation of the model object 'ADXP'.
 * 
 * 

* The following features are implemented: *

    *
  • {@link org.openhealthtools.mdht.uml.hl7.datatypes.impl.ADXPImpl#getPartType Part Type}
  • *
*

* * @generated */ public class ADXPImpl extends STImpl implements ADXP { /** * The default value of the '{@link #getPartType() Part Type}' attribute. * * * @see #getPartType() * @generated * @ordered */ protected static final AddressPartType PART_TYPE_EDEFAULT = AddressPartType.ADL; /** * The cached value of the '{@link #getPartType() Part Type}' attribute. * * * @see #getPartType() * @generated * @ordered */ protected AddressPartType partType = PART_TYPE_EDEFAULT; /** * This is true if the Part Type attribute has been set. * * * @generated * @ordered */ protected boolean partTypeESet; /** * * * @generated */ protected ADXPImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return DatatypesPackage.Literals.ADXP; } /** * * * @generated */ public AddressPartType getPartType() { return partType; } /** * * * @generated */ public void setPartType(AddressPartType newPartType) { AddressPartType oldPartType = partType; partType = newPartType == null ? PART_TYPE_EDEFAULT : newPartType; boolean oldPartTypeESet = partTypeESet; partTypeESet = true; if (eNotificationRequired()) { eNotify(new ENotificationImpl( this, Notification.SET, DatatypesPackage.ADXP__PART_TYPE, oldPartType, partType, !oldPartTypeESet)); } } /** * * * @generated */ public void unsetPartType() { AddressPartType oldPartType = partType; boolean oldPartTypeESet = partTypeESet; partType = PART_TYPE_EDEFAULT; partTypeESet = false; if (eNotificationRequired()) { eNotify(new ENotificationImpl( this, Notification.UNSET, DatatypesPackage.ADXP__PART_TYPE, oldPartType, PART_TYPE_EDEFAULT, oldPartTypeESet)); } } /** * * * @generated */ public boolean isSetPartType() { return partTypeESet; } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case DatatypesPackage.ADXP__PART_TYPE: return getPartType(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case DatatypesPackage.ADXP__PART_TYPE: setPartType((AddressPartType) newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case DatatypesPackage.ADXP__PART_TYPE: unsetPartType(); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case DatatypesPackage.ADXP__PART_TYPE: return isSetPartType(); } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) { return super.toString(); } StringBuffer result = new StringBuffer(super.toString()); result.append(" (partType: "); if (partTypeESet) { result.append(partType); } else { result.append(""); } result.append(')'); return result.toString(); } } // ADXPImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy