/** * <copyright> * </copyright> * * $Id$ */ package com.hundsun.ares.studio.jres.model.chouse.impl; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.impl.ENotificationImpl; import com.hundsun.ares.studio.jres.model.chouse.CTCNMDetail; import com.hundsun.ares.studio.jres.model.chouse.ChousePackage; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>CTCNM Detail</b></em>'. * <!-- end-user-doc --> * <p> * The following features are implemented: * <ul> * <li>{@link com.hundsun.ares.studio.jres.model.chouse.impl.CTCNMDetailImpl#isNullable <em>Nullable</em>}</li> * </ul> * </p> * * @generated */ public class CTCNMDetailImpl extends ModifyDetailImpl implements CTCNMDetail { /** * The default value of the '{@link #isNullable() <em>Nullable</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #isNullable() * @generated * @ordered */ protected static final boolean NULLABLE_EDEFAULT = false; /** * The cached value of the '{@link #isNullable() <em>Nullable</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #isNullable() * @generated * @ordered */ protected boolean nullable = NULLABLE_EDEFAULT; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected CTCNMDetailImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return ChousePackage.Literals.CTCNM_DETAIL; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean isNullable() { return nullable; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setNullable(boolean newNullable) { boolean oldNullable = nullable; nullable = newNullable; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ChousePackage.CTCNM_DETAIL__NULLABLE, oldNullable, nullable)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case ChousePackage.CTCNM_DETAIL__NULLABLE: return isNullable(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case ChousePackage.CTCNM_DETAIL__NULLABLE: setNullable((Boolean)newValue); return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case ChousePackage.CTCNM_DETAIL__NULLABLE: setNullable(NULLABLE_EDEFAULT); return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case ChousePackage.CTCNM_DETAIL__NULLABLE: return nullable != NULLABLE_EDEFAULT; } 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(" (nullable: "); result.append(nullable); result.append(')'); return result.toString(); } } //CTCNMDetailImpl