code: /**
   */
  package co.edu.uniandes.accordant_fv.impl;
  
  import co.edu.uniandes.accordant_fv.AccessType;
  import co.edu.uniandes.accordant_fv.Accordant_fvPackage;
  import co.edu.uniandes.accordant_fv.Ingestor;
  
  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>Ingestor</b></em>'.
   * <!-- end-user-doc -->
   * <p>
   * The following features are implemented:
   * </p>
   * <ul>
   *   <li>{@link co.edu.uniandes.accordant_fv.impl.IngestorImpl#getConn <em>Conn</em>}</li>
   *   <li>{@link co.edu.uniandes.accordant_fv.impl.IngestorImpl#getFormat <em>Format</em>}</li>
   *   <li>{@link co.edu.uniandes.accordant_fv.impl.IngestorImpl#getProps <em>Props</em>}</li>
   *   <li>{@link co.edu.uniandes.accordant_fv.impl.IngestorImpl#getType <em>Type</em>}</li>
   * </ul>
   *
   * @generated
   */
  public class IngestorImpl extends ComponentImpl implements Ingestor {
  	/**
  	 * The default value of the '{@link #getConn() <em>Conn</em>}' attribute.
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @see #getConn()
  	 * @generated
  	 * @ordered
  	 */
  	protected static final String CONN_EDEFAULT = null;
  
  	/**
  	 * The cached value of the '{@link #getConn() <em>Conn</em>}' attribute.
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @see #getConn()
  	 * @generated
  	 * @ordered
  	 */
  	protected String conn = CONN_EDEFAULT;
  
  	/**
  	 * The default value of the '{@link #getFormat() <em>Format</em>}' attribute.
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @see #getFormat()
  	 * @generated
  	 * @ordered
  	 */
  	protected static final String FORMAT_EDEFAULT = null;
  
  	/**
  	 * The cached value of the '{@link #getFormat() <em>Format</em>}' attribute.
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @see #getFormat()
  	 * @generated
  	 * @ordered
  	 */
  	protected String format = FORMAT_EDEFAULT;
  
  	/**
  	 * The default value of the '{@link #getProps() <em>Props</em>}' attribute.
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @see #getProps()
  	 * @generated
  	 * @ordered
  	 */
  	protected static final String PROPS_EDEFAULT = null;
  
  	/**
  	 * The cached value of the '{@link #getProps() <em>Props</em>}' attribute.
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @see #getProps()
  	 * @generated
  	 * @ordered
  	 */
  	protected String props = PROPS_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 AccessType TYPE_EDEFAULT = AccessType.HTTP;
  
  	/**
  	 * The cached value of the '{@link #getType() <em>Type</em>}' attribute.
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @see #getType()
  	 * @generated
  	 * @ordered
  	 */
  	protected AccessType type = TYPE_EDEFAULT;
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	protected IngestorImpl() {
  		super();
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	@Override
  	protected EClass eStaticClass() {
  		return Accordant_fvPackage.Literals.INGESTOR;
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	public String getConn() {
  		return conn;
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	public void setConn(String newConn) {
  		String oldConn = conn;
  		conn = newConn;
  		if (eNotificationRequired())
  			eNotify(new ENotificationImpl(this, Notification.SET, Accordant_fvPackage.INGESTOR__CONN, oldConn, conn));
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	public String getFormat() {
  		return format;
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	public void setFormat(String newFormat) {
  		String oldFormat = format;
  		format = newFormat;
  		if (eNotificationRequired())
  			eNotify(new ENotificationImpl(this, Notification.SET, Accordant_fvPackage.INGESTOR__FORMAT, oldFormat, format));
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	public String getProps() {
  		return props;
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	public void setProps(String newProps) {
  		String oldProps = props;
  		props = newProps;
  		if (eNotificationRequired())
  			eNotify(new ENotificationImpl(this, Notification.SET, Accordant_fvPackage.INGESTOR__PROPS, oldProps, props));
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	public AccessType getType() {
  		return type;
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	public void setType(AccessType newType) {
  		AccessType oldType = type;
  		type = newType == null ? TYPE_EDEFAULT : newType;
  		if (eNotificationRequired())
  			eNotify(new ENotificationImpl(this, Notification.SET, Accordant_fvPackage.INGESTOR__TYPE, oldType, type));
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	@Override
  	public Object eGet(int featureID, boolean resolve, boolean coreType) {
  		switch (featureID) {
  			case Accordant_fvPackage.INGESTOR__CONN:
  				return getConn();
  			case Accordant_fvPackage.INGESTOR__FORMAT:
  				return getFormat();
  			case Accordant_fvPackage.INGESTOR__PROPS:
  				return getProps();
  			case Accordant_fvPackage.INGESTOR__TYPE:
  				return getType();
  		}
  		return super.eGet(featureID, resolve, coreType);
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	@Override
  	public void eSet(int featureID, Object newValue) {
  		switch (featureID) {
  			case Accordant_fvPackage.INGESTOR__CONN:
  				setConn((String)newValue);
  				return;
  			case Accordant_fvPackage.INGESTOR__FORMAT:
  				setFormat((String)newValue);
  				return;
  			case Accordant_fvPackage.INGESTOR__PROPS:
  				setProps((String)newValue);
  				return;
  			case Accordant_fvPackage.INGESTOR__TYPE:
  				setType((AccessType)newValue);
  				return;
  		}
  		super.eSet(featureID, newValue);
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	@Override
  	public void eUnset(int featureID) {
  		switch (featureID) {
  			case Accordant_fvPackage.INGESTOR__CONN:
  				setConn(CONN_EDEFAULT);
  				return;
  			case Accordant_fvPackage.INGESTOR__FORMAT:
  				setFormat(FORMAT_EDEFAULT);
  				return;
  			case Accordant_fvPackage.INGESTOR__PROPS:
  				setProps(PROPS_EDEFAULT);
  				return;
  			case Accordant_fvPackage.INGESTOR__TYPE:
  				setType(TYPE_EDEFAULT);
  				return;
  		}
  		super.eUnset(featureID);
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	@Override
  	public boolean eIsSet(int featureID) {
  		switch (featureID) {
  			case Accordant_fvPackage.INGESTOR__CONN:
  				return CONN_EDEFAULT == null ? conn != null : !CONN_EDEFAULT.equals(conn);
  			case Accordant_fvPackage.INGESTOR__FORMAT:
  				return FORMAT_EDEFAULT == null ? format != null : !FORMAT_EDEFAULT.equals(format);
  			case Accordant_fvPackage.INGESTOR__PROPS:
  				return PROPS_EDEFAULT == null ? props != null : !PROPS_EDEFAULT.equals(props);
  			case Accordant_fvPackage.INGESTOR__TYPE:
  				return type != TYPE_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(" (conn: ");
  		result.append(conn);
  		result.append(", format: ");
  		result.append(format);
  		result.append(", props: ");
  		result.append(props);
  		result.append(", type: ");
  		result.append(type);
  		result.append(')');
  		return result.toString();
  	}
  
  } //IngestorImpl
  