/**
* <copyright>
* </copyright>
*
* $Id: MappingCallExpImpl.java,v 1.2 2009/02/20 12:55:55 radvorak Exp $
*/
package org.eclipse.m2m.qvt.oml.emof.QVTOperational.impl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.m2m.qvt.oml.emof.QVTOperational.MappingCallExp;
import org.eclipse.m2m.qvt.oml.emof.QVTOperational.QVTOperationalPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Mapping Call Exp</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link org.eclipse.m2m.qvt.oml.emof.QVTOperational.impl.MappingCallExpImpl#getIsStrict <em>Is Strict</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class MappingCallExpImpl extends ImperativeCallExpImpl implements MappingCallExp {
/**
* The default value of the '{@link #getIsStrict() <em>Is Strict</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getIsStrict()
* @generated
* @ordered
*/
protected static final Boolean IS_STRICT_EDEFAULT = null;
/**
* The cached value of the '{@link #getIsStrict() <em>Is Strict</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getIsStrict()
* @generated
* @ordered
*/
protected Boolean isStrict = IS_STRICT_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected MappingCallExpImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return QVTOperationalPackage.Literals.MAPPING_CALL_EXP;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Boolean getIsStrict() {
return isStrict;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setIsStrict(Boolean newIsStrict) {
Boolean oldIsStrict = isStrict;
isStrict = newIsStrict;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, QVTOperationalPackage.MAPPING_CALL_EXP__IS_STRICT, oldIsStrict, isStrict));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case QVTOperationalPackage.MAPPING_CALL_EXP__IS_STRICT:
return getIsStrict();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case QVTOperationalPackage.MAPPING_CALL_EXP__IS_STRICT:
setIsStrict((Boolean)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case QVTOperationalPackage.MAPPING_CALL_EXP__IS_STRICT:
setIsStrict(IS_STRICT_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case QVTOperationalPackage.MAPPING_CALL_EXP__IS_STRICT:
return IS_STRICT_EDEFAULT == null ? isStrict != null : !IS_STRICT_EDEFAULT.equals(isStrict);
}
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(" (isStrict: ");
result.append(isStrict);
result.append(')');
return result.toString();
}
} //MappingCallExpImpl