org.openxma.dsl.ddl.ddlDsl.impl.DropImpl Maven / Gradle / Ivy
/**
*
*
*
*/
package org.openxma.dsl.ddl.ddlDsl.impl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.openxma.dsl.ddl.ddlDsl.DdlDslPackage;
import org.openxma.dsl.ddl.ddlDsl.Drop;
/**
*
* An implementation of the model object 'Drop'.
*
*
* The following features are implemented:
*
* - {@link org.openxma.dsl.ddl.ddlDsl.impl.DropImpl#getObject Object}
*
*
*
* @generated
*/
public class DropImpl extends DdlStatementImpl implements Drop
{
/**
* The default value of the '{@link #getObject() Object}' attribute.
*
*
* @see #getObject()
* @generated
* @ordered
*/
protected static final String OBJECT_EDEFAULT = null;
/**
* The cached value of the '{@link #getObject() Object}' attribute.
*
*
* @see #getObject()
* @generated
* @ordered
*/
protected String object = OBJECT_EDEFAULT;
/**
*
*
* @generated
*/
protected DropImpl()
{
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass()
{
return DdlDslPackage.Literals.DROP;
}
/**
*
*
* @generated
*/
public String getObject()
{
return object;
}
/**
*
*
* @generated
*/
public void setObject(String newObject)
{
String oldObject = object;
object = newObject;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DdlDslPackage.DROP__OBJECT, oldObject, object));
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
switch (featureID) {
case DdlDslPackage.DROP__OBJECT:
return getObject();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue)
{
switch (featureID) {
case DdlDslPackage.DROP__OBJECT:
setObject((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID)
{
switch (featureID) {
case DdlDslPackage.DROP__OBJECT:
setObject(OBJECT_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID)
{
switch (featureID) {
case DdlDslPackage.DROP__OBJECT:
return OBJECT_EDEFAULT == null ? object != null : !OBJECT_EDEFAULT.equals(object);
}
return super.eIsSet(featureID);
}
/**
*
*
* @generated
*/
@Override
public String toString()
{
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (object: ");
result.append(object);
result.append(')');
return result.toString();
}
} //DropImpl