/**
* <copyright>
* </copyright>
*
* $Id: CONNECTORSTypeImpl.java 17131 2008-08-20 05:46:08Z nrousseau $
*/
package org.talend.designer.core.model.utils.emf.component.impl;
import java.util.Collection;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.EObjectImpl;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
import org.talend.designer.core.model.utils.emf.component.CONNECTORSType;
import org.talend.designer.core.model.utils.emf.component.CONNECTORType;
import org.talend.designer.core.model.utils.emf.component.ComponentPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>CONNECTORS Type</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link org.talend.designer.core.model.utils.emf.component.impl.CONNECTORSTypeImpl#getCONNECTOR <em>CONNECTOR</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class CONNECTORSTypeImpl extends EObjectImpl implements CONNECTORSType {
/**
* The cached value of the '{@link #getCONNECTOR() <em>CONNECTOR</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getCONNECTOR()
* @generated
* @ordered
*/
protected EList cONNECTOR;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected CONNECTORSTypeImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return ComponentPackage.Literals.CONNECTORS_TYPE;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList getCONNECTOR() {
if (cONNECTOR == null) {
cONNECTOR = new EObjectContainmentEList(CONNECTORType.class, this, ComponentPackage.CONNECTORS_TYPE__CONNECTOR);
}
return cONNECTOR;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case ComponentPackage.CONNECTORS_TYPE__CONNECTOR:
return ((InternalEList)getCONNECTOR()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case ComponentPackage.CONNECTORS_TYPE__CONNECTOR:
return getCONNECTOR();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked") //$NON-NLS-1$
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case ComponentPackage.CONNECTORS_TYPE__CONNECTOR:
getCONNECTOR().clear();
getCONNECTOR().addAll((Collection)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case ComponentPackage.CONNECTORS_TYPE__CONNECTOR:
getCONNECTOR().clear();
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case ComponentPackage.CONNECTORS_TYPE__CONNECTOR:
return cONNECTOR != null && !cONNECTOR.isEmpty();
}
return super.eIsSet(featureID);
}
} //CONNECTORSTypeImpl