/**
* <copyright>
* </copyright>
*
* $Id$
*/
package at.bestsolution.efxclipse.runtime.example.photoedit.model.photoedit.impl;
import at.bestsolution.efxclipse.runtime.example.photoedit.model.photoedit.Media;
import at.bestsolution.efxclipse.runtime.example.photoedit.model.photoedit.PhotoeditPackage;
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;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Media</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link at.bestsolution.efxclipse.runtime.example.photoedit.model.photoedit.impl.MediaImpl#getTitle <em>Title</em>}</li>
* <li>{@link at.bestsolution.efxclipse.runtime.example.photoedit.model.photoedit.impl.MediaImpl#getDescription <em>Description</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public abstract class MediaImpl extends BaseObjectImpl implements Media {
/**
* The default value of the '{@link #getTitle() <em>Title</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTitle()
* @generated
* @ordered
*/
protected static final String TITLE_EDEFAULT = null;
/**
* The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDescription()
* @generated
* @ordered
*/
protected static final String DESCRIPTION_EDEFAULT = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected MediaImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return PhotoeditPackage.Literals.MEDIA;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getTitle() {
return (String)eDynamicGet(PhotoeditPackage.MEDIA__TITLE, PhotoeditPackage.Literals.MEDIA__TITLE, true, true);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setTitle(String newTitle) {
eDynamicSet(PhotoeditPackage.MEDIA__TITLE, PhotoeditPackage.Literals.MEDIA__TITLE, newTitle);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getDescription() {
return (String)eDynamicGet(PhotoeditPackage.MEDIA__DESCRIPTION, PhotoeditPackage.Literals.MEDIA__DESCRIPTION, true, true);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDescription(String newDescription) {
eDynamicSet(PhotoeditPackage.MEDIA__DESCRIPTION, PhotoeditPackage.Literals.MEDIA__DESCRIPTION, newDescription);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case PhotoeditPackage.MEDIA__TITLE:
return getTitle();
case PhotoeditPackage.MEDIA__DESCRIPTION:
return getDescription();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case PhotoeditPackage.MEDIA__TITLE:
setTitle((String)newValue);
return;
case PhotoeditPackage.MEDIA__DESCRIPTION:
setDescription((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case PhotoeditPackage.MEDIA__TITLE:
setTitle(TITLE_EDEFAULT);
return;
case PhotoeditPackage.MEDIA__DESCRIPTION:
setDescription(DESCRIPTION_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case PhotoeditPackage.MEDIA__TITLE:
return TITLE_EDEFAULT == null ? getTitle() != null : !TITLE_EDEFAULT.equals(getTitle());
case PhotoeditPackage.MEDIA__DESCRIPTION:
return DESCRIPTION_EDEFAULT == null ? getDescription() != null : !DESCRIPTION_EDEFAULT.equals(getDescription());
}
return super.eIsSet(featureID);
}
} //MediaImpl