/** * <copyright> * </copyright> * * $Id$ */ package com.openMap1.mapper.impl; import com.openMap1.mapper.JavaConversionImplementation; import com.openMap1.mapper.MapperPackage; 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>Java Conversion Implementation</b></em>'. * <!-- end-user-doc --> * <p> * The following features are implemented: * <ul> * <li>{@link com.openMap1.mapper.impl.JavaConversionImplementationImpl#getClassName <em>Class Name</em>}</li> * <li>{@link com.openMap1.mapper.impl.JavaConversionImplementationImpl#getMethodName <em>Method Name</em>}</li> * <li>{@link com.openMap1.mapper.impl.JavaConversionImplementationImpl#getPackageName <em>Package Name</em>}</li> * </ul> * </p> * * @generated */ public class JavaConversionImplementationImpl extends ConversionImplementationImpl implements JavaConversionImplementation { /** * The default value of the '{@link #getClassName() <em>Class Name</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getClassName() * @generated * @ordered */ protected static final String CLASS_NAME_EDEFAULT = null; /** * The cached value of the '{@link #getClassName() <em>Class Name</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getClassName() * @generated * @ordered */ protected String className = CLASS_NAME_EDEFAULT; /** * The default value of the '{@link #getMethodName() <em>Method Name</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getMethodName() * @generated * @ordered */ protected static final String METHOD_NAME_EDEFAULT = null; /** * The cached value of the '{@link #getMethodName() <em>Method Name</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getMethodName() * @generated * @ordered */ protected String methodName = METHOD_NAME_EDEFAULT; /** * The default value of the '{@link #getPackageName() <em>Package Name</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getPackageName() * @generated * @ordered */ protected static final String PACKAGE_NAME_EDEFAULT = null; /** * The cached value of the '{@link #getPackageName() <em>Package Name</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getPackageName() * @generated * @ordered */ protected String packageName = PACKAGE_NAME_EDEFAULT; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected JavaConversionImplementationImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return MapperPackage.Literals.JAVA_CONVERSION_IMPLEMENTATION; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getClassName() { return className; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setClassName(String newClassName) { String oldClassName = className; className = newClassName; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, MapperPackage.JAVA_CONVERSION_IMPLEMENTATION__CLASS_NAME, oldClassName, className)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getMethodName() { return methodName; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setMethodName(String newMethodName) { String oldMethodName = methodName; methodName = newMethodName; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, MapperPackage.JAVA_CONVERSION_IMPLEMENTATION__METHOD_NAME, oldMethodName, methodName)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getPackageName() { return packageName; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setPackageName(String newPackageName) { String oldPackageName = packageName; packageName = newPackageName; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, MapperPackage.JAVA_CONVERSION_IMPLEMENTATION__PACKAGE_NAME, oldPackageName, packageName)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case MapperPackage.JAVA_CONVERSION_IMPLEMENTATION__CLASS_NAME: return getClassName(); case MapperPackage.JAVA_CONVERSION_IMPLEMENTATION__METHOD_NAME: return getMethodName(); case MapperPackage.JAVA_CONVERSION_IMPLEMENTATION__PACKAGE_NAME: return getPackageName(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case MapperPackage.JAVA_CONVERSION_IMPLEMENTATION__CLASS_NAME: setClassName((String)newValue); return; case MapperPackage.JAVA_CONVERSION_IMPLEMENTATION__METHOD_NAME: setMethodName((String)newValue); return; case MapperPackage.JAVA_CONVERSION_IMPLEMENTATION__PACKAGE_NAME: setPackageName((String)newValue); return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case MapperPackage.JAVA_CONVERSION_IMPLEMENTATION__CLASS_NAME: setClassName(CLASS_NAME_EDEFAULT); return; case MapperPackage.JAVA_CONVERSION_IMPLEMENTATION__METHOD_NAME: setMethodName(METHOD_NAME_EDEFAULT); return; case MapperPackage.JAVA_CONVERSION_IMPLEMENTATION__PACKAGE_NAME: setPackageName(PACKAGE_NAME_EDEFAULT); return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case MapperPackage.JAVA_CONVERSION_IMPLEMENTATION__CLASS_NAME: return CLASS_NAME_EDEFAULT == null ? className != null : !CLASS_NAME_EDEFAULT.equals(className); case MapperPackage.JAVA_CONVERSION_IMPLEMENTATION__METHOD_NAME: return METHOD_NAME_EDEFAULT == null ? methodName != null : !METHOD_NAME_EDEFAULT.equals(methodName); case MapperPackage.JAVA_CONVERSION_IMPLEMENTATION__PACKAGE_NAME: return PACKAGE_NAME_EDEFAULT == null ? packageName != null : !PACKAGE_NAME_EDEFAULT.equals(packageName); } 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(" (className: "); result.append(className); result.append(", methodName: "); result.append(methodName); result.append(", packageName: "); result.append(packageName); result.append(')'); return result.toString(); } } //JavaConversionImplementationImpl