![JAR search and dependency download from the Maven repository](/logo.png)
org.contextmapper.tactic.dsl.tacticdsl.impl.DomainEventImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of context-mapper-dsl Show documentation
Show all versions of context-mapper-dsl Show documentation
Use the ContextMapper DSL in your standalone application.
/**
* generated by Xtext 2.20.0
*/
package org.contextmapper.tactic.dsl.tacticdsl.impl;
import org.contextmapper.tactic.dsl.tacticdsl.DomainEvent;
import org.contextmapper.tactic.dsl.tacticdsl.TacticdslPackage;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
/**
*
* An implementation of the model object 'Domain Event'.
*
*
* The following features are implemented:
*
*
* - {@link org.contextmapper.tactic.dsl.tacticdsl.impl.DomainEventImpl#getExtends Extends}
*
*
* @generated
*/
public class DomainEventImpl extends EventImpl implements DomainEvent
{
/**
* The cached value of the '{@link #getExtends() Extends}' reference.
*
*
* @see #getExtends()
* @generated
* @ordered
*/
protected DomainEvent extends_;
/**
*
*
* @generated
*/
protected DomainEventImpl()
{
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass()
{
return TacticdslPackage.Literals.DOMAIN_EVENT;
}
/**
*
*
* @generated
*/
public DomainEvent getExtends()
{
if (extends_ != null && extends_.eIsProxy())
{
InternalEObject oldExtends = (InternalEObject)extends_;
extends_ = (DomainEvent)eResolveProxy(oldExtends);
if (extends_ != oldExtends)
{
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, TacticdslPackage.DOMAIN_EVENT__EXTENDS, oldExtends, extends_));
}
}
return extends_;
}
/**
*
*
* @generated
*/
public DomainEvent basicGetExtends()
{
return extends_;
}
/**
*
*
* @generated
*/
public void setExtends(DomainEvent newExtends)
{
DomainEvent oldExtends = extends_;
extends_ = newExtends;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, TacticdslPackage.DOMAIN_EVENT__EXTENDS, oldExtends, extends_));
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
switch (featureID)
{
case TacticdslPackage.DOMAIN_EVENT__EXTENDS:
if (resolve) return getExtends();
return basicGetExtends();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue)
{
switch (featureID)
{
case TacticdslPackage.DOMAIN_EVENT__EXTENDS:
setExtends((DomainEvent)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID)
{
switch (featureID)
{
case TacticdslPackage.DOMAIN_EVENT__EXTENDS:
setExtends((DomainEvent)null);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID)
{
switch (featureID)
{
case TacticdslPackage.DOMAIN_EVENT__EXTENDS:
return extends_ != null;
}
return super.eIsSet(featureID);
}
} //DomainEventImpl
© 2015 - 2025 Weber Informatics LLC | Privacy Policy