/**
* <copyright>
* </copyright>
*
* $Id: RETURNTypeImpl.java 67890 2011-09-14 10:23:46Z wchen $
*/
package org.talend.designer.core.model.utils.emf.component.impl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
import org.talend.designer.core.model.utils.emf.component.ComponentPackage;
import org.talend.designer.core.model.utils.emf.component.RETURNType;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>RETURN Type</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link org.talend.designer.core.model.utils.emf.component.impl.RETURNTypeImpl#getAVAILABILITY <em>AVAILABILITY</em>}</li>
* <li>{@link org.talend.designer.core.model.utils.emf.component.impl.RETURNTypeImpl#getNAME <em>NAME</em>}</li>
* <li>{@link org.talend.designer.core.model.utils.emf.component.impl.RETURNTypeImpl#getTYPE <em>TYPE</em>}</li>
* <li>{@link org.talend.designer.core.model.utils.emf.component.impl.RETURNTypeImpl#getSHOWIF <em>SHOWIF</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class RETURNTypeImpl extends EObjectImpl implements RETURNType {
/**
* The default value of the '{@link #getAVAILABILITY() <em>AVAILABILITY</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getAVAILABILITY()
* @generated
* @ordered
*/
protected static final String AVAILABILITY_EDEFAULT = null;
/**
* The cached value of the '{@link #getAVAILABILITY() <em>AVAILABILITY</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getAVAILABILITY()
* @generated
* @ordered
*/
protected String aVAILABILITY = AVAILABILITY_EDEFAULT;
/**
* The default value of the '{@link #getNAME() <em>NAME</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNAME()
* @generated
* @ordered
*/
protected static final String NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getNAME() <em>NAME</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNAME()
* @generated
* @ordered
*/
protected String nAME = NAME_EDEFAULT;
/**
* The default value of the '{@link #getTYPE() <em>TYPE</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTYPE()
* @generated
* @ordered
*/
protected static final String TYPE_EDEFAULT = null;
/**
* The cached value of the '{@link #getTYPE() <em>TYPE</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTYPE()
* @generated
* @ordered
*/
protected String tYPE = TYPE_EDEFAULT;
/**
* The default value of the '{@link #getSHOWIF() <em>SHOWIF</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getSHOWIF()
* @generated
* @ordered
*/
protected static final String SHOWIF_EDEFAULT = null;
/**
* The cached value of the '{@link #getSHOWIF() <em>SHOWIF</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getSHOWIF()
* @generated
* @ordered
*/
protected String sHOWIF = SHOWIF_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected RETURNTypeImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return ComponentPackage.Literals.RETURN_TYPE;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getAVAILABILITY() {
return aVAILABILITY;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setAVAILABILITY(String newAVAILABILITY) {
String oldAVAILABILITY = aVAILABILITY;
aVAILABILITY = newAVAILABILITY;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.RETURN_TYPE__AVAILABILITY, oldAVAILABILITY, aVAILABILITY));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getNAME() {
return nAME;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setNAME(String newNAME) {
String oldNAME = nAME;
nAME = newNAME;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.RETURN_TYPE__NAME, oldNAME, nAME));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getTYPE() {
return tYPE;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setTYPE(String newTYPE) {
String oldTYPE = tYPE;
tYPE = newTYPE;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.RETURN_TYPE__TYPE, oldTYPE, tYPE));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getSHOWIF() {
return sHOWIF;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setSHOWIF(String newSHOWIF) {
String oldSHOWIF = sHOWIF;
sHOWIF = newSHOWIF;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.RETURN_TYPE__SHOWIF, oldSHOWIF, sHOWIF));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case ComponentPackage.RETURN_TYPE__AVAILABILITY:
return getAVAILABILITY();
case ComponentPackage.RETURN_TYPE__NAME:
return getNAME();
case ComponentPackage.RETURN_TYPE__TYPE:
return getTYPE();
case ComponentPackage.RETURN_TYPE__SHOWIF:
return getSHOWIF();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case ComponentPackage.RETURN_TYPE__AVAILABILITY:
setAVAILABILITY((String)newValue);
return;
case ComponentPackage.RETURN_TYPE__NAME:
setNAME((String)newValue);
return;
case ComponentPackage.RETURN_TYPE__TYPE:
setTYPE((String)newValue);
return;
case ComponentPackage.RETURN_TYPE__SHOWIF:
setSHOWIF((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case ComponentPackage.RETURN_TYPE__AVAILABILITY:
setAVAILABILITY(AVAILABILITY_EDEFAULT);
return;
case ComponentPackage.RETURN_TYPE__NAME:
setNAME(NAME_EDEFAULT);
return;
case ComponentPackage.RETURN_TYPE__TYPE:
setTYPE(TYPE_EDEFAULT);
return;
case ComponentPackage.RETURN_TYPE__SHOWIF:
setSHOWIF(SHOWIF_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case ComponentPackage.RETURN_TYPE__AVAILABILITY:
return AVAILABILITY_EDEFAULT == null ? aVAILABILITY != null : !AVAILABILITY_EDEFAULT.equals(aVAILABILITY);
case ComponentPackage.RETURN_TYPE__NAME:
return NAME_EDEFAULT == null ? nAME != null : !NAME_EDEFAULT.equals(nAME);
case ComponentPackage.RETURN_TYPE__TYPE:
return TYPE_EDEFAULT == null ? tYPE != null : !TYPE_EDEFAULT.equals(tYPE);
case ComponentPackage.RETURN_TYPE__SHOWIF:
return SHOWIF_EDEFAULT == null ? sHOWIF != null : !SHOWIF_EDEFAULT.equals(sHOWIF);
}
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(" (aVAILABILITY: ");
result.append(aVAILABILITY);
result.append(", nAME: ");
result.append(nAME);
result.append(", tYPE: ");
result.append(tYPE);
result.append(", sHOWIF: ");
result.append(sHOWIF);
result.append(')');
return result.toString();
}
} //RETURNTypeImpl