content: /**
   */
  package org.abapgit.adt.backend.model.abapgitstaging.impl;
  
  import org.abapgit.adt.backend.model.abapgitstaging.IAbapgitstagingPackage;
  import org.abapgit.adt.backend.model.abapgitstaging.IAuthor;
  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.MinimalEObjectImpl;
  
  /**
   * <!-- begin-user-doc -->
   * An implementation of the model object '<em><b>Author</b></em>'.
   * <!-- end-user-doc -->
   * <p>
   * The following features are implemented:
   * </p>
   * <ul>
   *   <li>{@link org.abapgit.adt.backend.model.abapgitstaging.impl.AuthorImpl#getName <em>Name</em>}</li>
   *   <li>{@link org.abapgit.adt.backend.model.abapgitstaging.impl.AuthorImpl#getEmail <em>Email</em>}</li>
   * </ul>
   *
   * @generated
   */
  public class AuthorImpl extends MinimalEObjectImpl.Container implements IAuthor {
  	/**
  	 * 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 #getEmail() <em>Email</em>}' attribute.
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @see #getEmail()
  	 * @generated
  	 * @ordered
  	 */
  	protected static final String EMAIL_EDEFAULT = null;
  
  	/**
  	 * The cached value of the '{@link #getEmail() <em>Email</em>}' attribute.
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @see #getEmail()
  	 * @generated
  	 * @ordered
  	 */
  	protected String email = EMAIL_EDEFAULT;
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	protected AuthorImpl() {
  		super();
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	@Override
  	protected EClass eStaticClass() {
  		return IAbapgitstagingPackage.Literals.AUTHOR;
  	}
  
  	/**
  	 * <!-- 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, IAbapgitstagingPackage.AUTHOR__NAME, oldName, name));
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	public String getEmail() {
  		return email;
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	public void setEmail(String newEmail) {
  		String oldEmail = email;
  		email = newEmail;
  		if (eNotificationRequired())
  			eNotify(new ENotificationImpl(this, Notification.SET, IAbapgitstagingPackage.AUTHOR__EMAIL, oldEmail, email));
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	@Override
  	public Object eGet(int featureID, boolean resolve, boolean coreType) {
  		switch (featureID) {
  			case IAbapgitstagingPackage.AUTHOR__NAME:
  				return getName();
  			case IAbapgitstagingPackage.AUTHOR__EMAIL:
  				return getEmail();
  		}
  		return super.eGet(featureID, resolve, coreType);
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	@Override
  	public void eSet(int featureID, Object newValue) {
  		switch (featureID) {
  			case IAbapgitstagingPackage.AUTHOR__NAME:
  				setName((String)newValue);
  				return;
  			case IAbapgitstagingPackage.AUTHOR__EMAIL:
  				setEmail((String)newValue);
  				return;
  		}
  		super.eSet(featureID, newValue);
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	@Override
  	public void eUnset(int featureID) {
  		switch (featureID) {
  			case IAbapgitstagingPackage.AUTHOR__NAME:
  				setName(NAME_EDEFAULT);
  				return;
  			case IAbapgitstagingPackage.AUTHOR__EMAIL:
  				setEmail(EMAIL_EDEFAULT);
  				return;
  		}
  		super.eUnset(featureID);
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	@Override
  	public boolean eIsSet(int featureID) {
  		switch (featureID) {
  			case IAbapgitstagingPackage.AUTHOR__NAME:
  				return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
  			case IAbapgitstagingPackage.AUTHOR__EMAIL:
  				return EMAIL_EDEFAULT == null ? email != null : !EMAIL_EDEFAULT.equals(email);
  		}
  		return super.eIsSet(featureID);
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	@Override
  	public String toString() {
  		if (eIsProxy()) return super.toString();
  
  		StringBuilder result = new StringBuilder(super.toString());
  		result.append(" (name: ");
  		result.append(name);
  		result.append(", email: ");
  		result.append(email);
  		result.append(')');
  		return result.toString();
  	}
  
  	@Override
  	public boolean equals(Object obj) {
  		if (obj instanceof IAuthor) {
  			IAuthor author = (IAuthor) obj;
  			if ((this.getName().equals(author.getName())) && (this.getEmail().equals(author.getEmail()))) {
  				return true;
  			}
  		}
  		return super.equals(obj);
  	}
  
  	@Override
  	public int hashCode() {
  		final int prime = 31;
  		int result = 1;
  		result = prime * result + ((this.name == null) ? 0 : this.name.hashCode());
  		result = prime * result + ((this.email == null) ? 0 : this.email.hashCode());
  		return result;
  	}
  
  } //AuthorImpl
  