/** * <copyright> * </copyright> * * $Id$ */ package operation.impl; import java.util.Map; import operation.OperationPackage; import operation.RuntimeInformation; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.impl.ENotificationImpl; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Runtime Information</b></em>'. * <!-- end-user-doc --> * <p> * The following features are implemented: * <ul> * <li>{@link operation.impl.RuntimeInformationImpl#getContents <em>Contents</em>}</li> * </ul> * </p> * * @generated */ public class RuntimeInformationImpl extends OperationElementImpl implements RuntimeInformation { /** * The default value of the '{@link #getContents() <em>Contents</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getContents() * @generated * @ordered */ protected static final Map CONTENTS_EDEFAULT = null; /** * The cached value of the '{@link #getContents() <em>Contents</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getContents() * @generated * @ordered */ protected Map contents = CONTENTS_EDEFAULT; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected RuntimeInformationImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected EClass eStaticClass() { return OperationPackage.Literals.RUNTIME_INFORMATION; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Map getContents() { return contents; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setContents(Map newContents) { Map oldContents = contents; contents = newContents; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, OperationPackage.RUNTIME_INFORMATION__CONTENTS, oldContents, contents)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case OperationPackage.RUNTIME_INFORMATION__CONTENTS: return getContents(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void eSet(int featureID, Object newValue) { switch (featureID) { case OperationPackage.RUNTIME_INFORMATION__CONTENTS: setContents((Map)newValue); return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void eUnset(int featureID) { switch (featureID) { case OperationPackage.RUNTIME_INFORMATION__CONTENTS: setContents(CONTENTS_EDEFAULT); return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean eIsSet(int featureID) { switch (featureID) { case OperationPackage.RUNTIME_INFORMATION__CONTENTS: return CONTENTS_EDEFAULT == null ? contents != null : !CONTENTS_EDEFAULT.equals(contents); } return super.eIsSet(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (contents: "); result.append(contents); result.append(')'); return result.toString(); } } //RuntimeInformationImpl