From 3f5aaab5025b8eb243f414b1c789085327df04f4 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Wed, 20 Mar 2019 16:09:09 +0100 Subject: Fault tree transformation for partial models WIP --- .../impl/EPackageImportImpl.java | 348 +++++++++++---------- 1 file changed, 175 insertions(+), 173 deletions(-) (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/EPackageImportImpl.java') diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/EPackageImportImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/EPackageImportImpl.java index 1496e005..b7416c44 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/EPackageImportImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/EPackageImportImpl.java @@ -1,173 +1,175 @@ -/** - * generated by Xtext 2.12.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.EPackageImport; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'EPackage Import'. - * - *

- * The following features are implemented: - *

- * - * - * @generated - */ -public class EPackageImportImpl extends ImportImpl implements EPackageImport -{ - /** - * The cached value of the '{@link #getImportedPackage() Imported Package}' reference. - * - * - * @see #getImportedPackage() - * @generated - * @ordered - */ - protected EPackage importedPackage; - - /** - * - * - * @generated - */ - protected EPackageImportImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.EPACKAGE_IMPORT; - } - - /** - * - * - * @generated - */ - public EPackage getImportedPackage() - { - if (importedPackage != null && importedPackage.eIsProxy()) - { - InternalEObject oldImportedPackage = (InternalEObject)importedPackage; - importedPackage = (EPackage)eResolveProxy(oldImportedPackage); - if (importedPackage != oldImportedPackage) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.EPACKAGE_IMPORT__IMPORTED_PACKAGE, oldImportedPackage, importedPackage)); - } - } - return importedPackage; - } - - /** - * - * - * @generated - */ - public EPackage basicGetImportedPackage() - { - return importedPackage; - } - - /** - * - * - * @generated - */ - public void setImportedPackage(EPackage newImportedPackage) - { - EPackage oldImportedPackage = importedPackage; - importedPackage = newImportedPackage; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.EPACKAGE_IMPORT__IMPORTED_PACKAGE, oldImportedPackage, importedPackage)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.EPACKAGE_IMPORT__IMPORTED_PACKAGE: - if (resolve) return getImportedPackage(); - return basicGetImportedPackage(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.EPACKAGE_IMPORT__IMPORTED_PACKAGE: - setImportedPackage((EPackage)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.EPACKAGE_IMPORT__IMPORTED_PACKAGE: - setImportedPackage((EPackage)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.EPACKAGE_IMPORT__IMPORTED_PACKAGE: - return importedPackage != null; - } - return super.eIsSet(featureID); - } - -} //EPackageImportImpl +/** + * generated by Xtext 2.16.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.EPackageImport; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'EPackage Import'. + * + *

+ * The following features are implemented: + *

+ * + * + * @generated + */ +public class EPackageImportImpl extends ImportImpl implements EPackageImport +{ + /** + * The cached value of the '{@link #getImportedPackage() Imported Package}' reference. + * + * + * @see #getImportedPackage() + * @generated + * @ordered + */ + protected EPackage importedPackage; + + /** + * + * + * @generated + */ + protected EPackageImportImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.EPACKAGE_IMPORT; + } + + /** + * + * + * @generated + */ + @Override + public EPackage getImportedPackage() + { + if (importedPackage != null && importedPackage.eIsProxy()) + { + InternalEObject oldImportedPackage = (InternalEObject)importedPackage; + importedPackage = (EPackage)eResolveProxy(oldImportedPackage); + if (importedPackage != oldImportedPackage) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.EPACKAGE_IMPORT__IMPORTED_PACKAGE, oldImportedPackage, importedPackage)); + } + } + return importedPackage; + } + + /** + * + * + * @generated + */ + public EPackage basicGetImportedPackage() + { + return importedPackage; + } + + /** + * + * + * @generated + */ + @Override + public void setImportedPackage(EPackage newImportedPackage) + { + EPackage oldImportedPackage = importedPackage; + importedPackage = newImportedPackage; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.EPACKAGE_IMPORT__IMPORTED_PACKAGE, oldImportedPackage, importedPackage)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.EPACKAGE_IMPORT__IMPORTED_PACKAGE: + if (resolve) return getImportedPackage(); + return basicGetImportedPackage(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.EPACKAGE_IMPORT__IMPORTED_PACKAGE: + setImportedPackage((EPackage)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.EPACKAGE_IMPORT__IMPORTED_PACKAGE: + setImportedPackage((EPackage)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.EPACKAGE_IMPORT__IMPORTED_PACKAGE: + return importedPackage != null; + } + return super.eIsSet(featureID); + } + +} //EPackageImportImpl -- cgit v1.2.3-70-g09d2