From 0be8ac9989d7af31c7e3b9f923fbbd7ed9f540ea Mon Sep 17 00:00:00 2001 From: OszkarSemerath Date: Thu, 15 Feb 2018 22:55:47 +0100 Subject: First complete scope grammar --- .../impl/ObjectTypeScopeImpl.java | 194 +++++++++++++++++++++ 1 file changed, 194 insertions(+) create mode 100644 Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectTypeScopeImpl.java (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectTypeScopeImpl.java') diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectTypeScopeImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectTypeScopeImpl.java new file mode 100644 index 00000000..738ad0e2 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectTypeScopeImpl.java @@ -0,0 +1,194 @@ +/** + * generated by Xtext 2.10.0 + */ +package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; + +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectReference; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectTypeScope; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +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 'Object Type Scope'. + * + *

+ * The following features are implemented: + *

+ * + * + * @generated + */ +public class ObjectTypeScopeImpl extends TypeScopeImpl implements ObjectTypeScope +{ + /** + * The cached value of the '{@link #getType() Type}' containment reference. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected ObjectReference type; + + /** + * + * + * @generated + */ + protected ObjectTypeScopeImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.OBJECT_TYPE_SCOPE; + } + + /** + * + * + * @generated + */ + public ObjectReference getType() + { + return type; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetType(ObjectReference newType, NotificationChain msgs) + { + ObjectReference oldType = type; + type = newType; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.OBJECT_TYPE_SCOPE__TYPE, oldType, newType); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setType(ObjectReference newType) + { + if (newType != type) + { + NotificationChain msgs = null; + if (type != null) + msgs = ((InternalEObject)type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.OBJECT_TYPE_SCOPE__TYPE, null, msgs); + if (newType != null) + msgs = ((InternalEObject)newType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.OBJECT_TYPE_SCOPE__TYPE, null, msgs); + msgs = basicSetType(newType, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.OBJECT_TYPE_SCOPE__TYPE, newType, newType)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case ApplicationConfigurationPackage.OBJECT_TYPE_SCOPE__TYPE: + return basicSetType(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.OBJECT_TYPE_SCOPE__TYPE: + return getType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.OBJECT_TYPE_SCOPE__TYPE: + setType((ObjectReference)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.OBJECT_TYPE_SCOPE__TYPE: + setType((ObjectReference)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.OBJECT_TYPE_SCOPE__TYPE: + return type != null; + } + return super.eIsSet(featureID); + } + +} //ObjectTypeScopeImpl -- cgit v1.2.3-54-g00ecf