From 0de1dbfaed208ba70863abe3671f868f168bc9cd Mon Sep 17 00:00:00 2001 From: Aren Babikian Date: Thu, 14 Jan 2021 13:07:08 -0500 Subject: Adjust vsconfig xtext to consider reals as EDouble rather than EBigDecimals --- .../impl/AllPackageEntryImpl.java | 334 +- .../impl/AllPatternEntryImpl.java | 334 +- .../impl/ApplicationConfigurationFactoryImpl.java | 2464 ++++---- .../impl/ApplicationConfigurationPackageImpl.java | 6266 ++++++++++---------- .../impl/ClassReferenceImpl.java | 392 +- .../impl/ClassTypeScopeImpl.java | 392 +- .../applicationConfiguration/impl/CommandImpl.java | 86 +- .../impl/ConfigDeclarationImpl.java | 392 +- .../impl/ConfigEntryImpl.java | 86 +- .../applicationConfiguration/impl/ConfigImpl.java | 86 +- .../impl/ConfigReferenceImpl.java | 350 +- .../impl/ConfigSpecificationImpl.java | 334 +- .../impl/ConfigurationScriptImpl.java | 418 +- .../impl/CostEntryImpl.java | 540 +- .../impl/CostObjectiveFunctionImpl.java | 334 +- .../impl/CustomEntryImpl.java | 474 +- .../impl/DeclarationImpl.java | 358 +- .../impl/DocumentationEntryImpl.java | 360 +- .../impl/EPackageImportImpl.java | 350 +- .../impl/ExactNumberImpl.java | 474 +- .../impl/FileDeclarationImpl.java | 392 +- .../applicationConfiguration/impl/FileImpl.java | 86 +- .../impl/FileReferenceImpl.java | 350 +- .../impl/FileSpecificationImpl.java | 358 +- .../impl/FolderEntryImpl.java | 334 +- .../impl/GenerationTaskImpl.java | 2330 ++++---- .../impl/GraphPatternDeclarationImpl.java | 392 +- .../impl/GraphPatternImpl.java | 86 +- .../impl/GraphPatternReferenceImpl.java | 350 +- .../applicationConfiguration/impl/ImportImpl.java | 86 +- .../impl/IntEnumberationImpl.java | 326 +- .../impl/IntegerReferenceImpl.java | 82 +- .../impl/IntegerScopeImpl.java | 82 +- .../impl/IntegerTypeScopeImpl.java | 392 +- .../impl/IntervallNumberImpl.java | 590 +- .../impl/MemoryEntryImpl.java | 358 +- .../impl/MetamodelDeclarationImpl.java | 392 +- .../impl/MetamodelElementImpl.java | 486 +- .../impl/MetamodelEntryImpl.java | 352 +- .../impl/MetamodelImpl.java | 86 +- .../impl/MetamodelReferenceImpl.java | 350 +- .../impl/MetamodelSpecificationImpl.java | 334 +- .../impl/ModelEntryImpl.java | 82 +- .../impl/NumberSpecificationImpl.java | 86 +- .../impl/ObjectReferenceImpl.java | 82 +- .../impl/ObjectTypeScopeImpl.java | 392 +- .../impl/ObjectiveDeclarationImpl.java | 392 +- .../impl/ObjectiveEntryImpl.java | 394 +- .../impl/ObjectiveFunctionImpl.java | 86 +- .../impl/ObjectiveImpl.java | 86 +- .../impl/ObjectiveReferenceImpl.java | 350 +- .../impl/ObjectiveSpecificationImpl.java | 334 +- .../impl/OptimizationEntryImpl.java | 360 +- .../impl/PartialModelDeclarationImpl.java | 392 +- .../impl/PartialModelEntryImpl.java | 394 +- .../impl/PartialModelImpl.java | 86 +- .../impl/PartialModelReferenceImpl.java | 350 +- .../impl/PartialModelSpecificationImpl.java | 334 +- .../impl/PatternElementImpl.java | 352 +- .../impl/PatternEntryImpl.java | 354 +- .../impl/PatternSpecificationImpl.java | 334 +- .../impl/RealEnumerationImpl.java | 328 +- .../impl/RealReferenceImpl.java | 82 +- .../impl/RealScopeImpl.java | 82 +- .../impl/RealTypeScopeImpl.java | 392 +- .../impl/RuntimeEntryImpl.java | 358 +- .../impl/ScopeDeclarationImpl.java | 392 +- .../applicationConfiguration/impl/ScopeImpl.java | 86 +- .../impl/ScopeReferenceImpl.java | 350 +- .../impl/ScopeSpecificationImpl.java | 334 +- .../impl/StringEnumerationImpl.java | 326 +- .../impl/StringReferenceImpl.java | 82 +- .../impl/StringScopeImpl.java | 82 +- .../impl/StringTypeScopeImpl.java | 392 +- .../applicationConfiguration/impl/TaskImpl.java | 82 +- .../impl/ThresholdEntryImpl.java | 478 +- .../impl/TypeReferenceImpl.java | 86 +- .../impl/TypeScopeImpl.java | 656 +- .../impl/ViatraImportImpl.java | 352 +- 79 files changed, 16797 insertions(+), 16801 deletions(-) (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl') diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/AllPackageEntryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/AllPackageEntryImpl.java index 8b71d7b3..f7f8dd05 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/AllPackageEntryImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/AllPackageEntryImpl.java @@ -1,167 +1,167 @@ -/** - * generated by Xtext 2.21.0 - */ -package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; - -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.AllPackageEntry; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelElement; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -/** - * - * An implementation of the model object 'All Package Entry'. - * - *

- * The following features are implemented: - *

- * - * - * @generated - */ -public class AllPackageEntryImpl extends MetamodelEntryImpl implements AllPackageEntry -{ - /** - * The cached value of the '{@link #getExclusion() Exclusion}' containment reference list. - * - * - * @see #getExclusion() - * @generated - * @ordered - */ - protected EList exclusion; - - /** - * - * - * @generated - */ - protected AllPackageEntryImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.ALL_PACKAGE_ENTRY; - } - - /** - * - * - * @generated - */ - @Override - public EList getExclusion() - { - if (exclusion == null) - { - exclusion = new EObjectContainmentEList(MetamodelElement.class, this, ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY__EXCLUSION); - } - return exclusion; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY__EXCLUSION: - return ((InternalEList)getExclusion()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY__EXCLUSION: - return getExclusion(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY__EXCLUSION: - getExclusion().clear(); - getExclusion().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY__EXCLUSION: - getExclusion().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY__EXCLUSION: - return exclusion != null && !exclusion.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //AllPackageEntryImpl +/** + * generated by Xtext 2.21.0 + */ +package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; + +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.AllPackageEntry; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelElement; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'All Package Entry'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.AllPackageEntryImpl#getExclusion Exclusion}
  • + *
+ * + * @generated + */ +public class AllPackageEntryImpl extends MetamodelEntryImpl implements AllPackageEntry +{ + /** + * The cached value of the '{@link #getExclusion() Exclusion}' containment reference list. + * + * + * @see #getExclusion() + * @generated + * @ordered + */ + protected EList exclusion; + + /** + * + * + * @generated + */ + protected AllPackageEntryImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.ALL_PACKAGE_ENTRY; + } + + /** + * + * + * @generated + */ + @Override + public EList getExclusion() + { + if (exclusion == null) + { + exclusion = new EObjectContainmentEList(MetamodelElement.class, this, ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY__EXCLUSION); + } + return exclusion; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY__EXCLUSION: + return ((InternalEList)getExclusion()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY__EXCLUSION: + return getExclusion(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY__EXCLUSION: + getExclusion().clear(); + getExclusion().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY__EXCLUSION: + getExclusion().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY__EXCLUSION: + return exclusion != null && !exclusion.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //AllPackageEntryImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/AllPatternEntryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/AllPatternEntryImpl.java index 20a362ed..9c26d9c3 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/AllPatternEntryImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/AllPatternEntryImpl.java @@ -1,167 +1,167 @@ -/** - * generated by Xtext 2.21.0 - */ -package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; - -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.AllPatternEntry; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PatternElement; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -/** - * - * An implementation of the model object 'All Pattern Entry'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.AllPatternEntryImpl#getExclusuion Exclusuion}
  • - *
- * - * @generated - */ -public class AllPatternEntryImpl extends PatternEntryImpl implements AllPatternEntry -{ - /** - * The cached value of the '{@link #getExclusuion() Exclusuion}' containment reference list. - * - * - * @see #getExclusuion() - * @generated - * @ordered - */ - protected EList exclusuion; - - /** - * - * - * @generated - */ - protected AllPatternEntryImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.ALL_PATTERN_ENTRY; - } - - /** - * - * - * @generated - */ - @Override - public EList getExclusuion() - { - if (exclusuion == null) - { - exclusuion = new EObjectContainmentEList(PatternElement.class, this, ApplicationConfigurationPackage.ALL_PATTERN_ENTRY__EXCLUSUION); - } - return exclusuion; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ApplicationConfigurationPackage.ALL_PATTERN_ENTRY__EXCLUSUION: - return ((InternalEList)getExclusuion()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.ALL_PATTERN_ENTRY__EXCLUSUION: - return getExclusuion(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.ALL_PATTERN_ENTRY__EXCLUSUION: - getExclusuion().clear(); - getExclusuion().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.ALL_PATTERN_ENTRY__EXCLUSUION: - getExclusuion().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.ALL_PATTERN_ENTRY__EXCLUSUION: - return exclusuion != null && !exclusuion.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //AllPatternEntryImpl +/** + * generated by Xtext 2.21.0 + */ +package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; + +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.AllPatternEntry; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PatternElement; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'All Pattern Entry'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.AllPatternEntryImpl#getExclusuion Exclusuion}
  • + *
+ * + * @generated + */ +public class AllPatternEntryImpl extends PatternEntryImpl implements AllPatternEntry +{ + /** + * The cached value of the '{@link #getExclusuion() Exclusuion}' containment reference list. + * + * + * @see #getExclusuion() + * @generated + * @ordered + */ + protected EList exclusuion; + + /** + * + * + * @generated + */ + protected AllPatternEntryImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.ALL_PATTERN_ENTRY; + } + + /** + * + * + * @generated + */ + @Override + public EList getExclusuion() + { + if (exclusuion == null) + { + exclusuion = new EObjectContainmentEList(PatternElement.class, this, ApplicationConfigurationPackage.ALL_PATTERN_ENTRY__EXCLUSUION); + } + return exclusuion; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case ApplicationConfigurationPackage.ALL_PATTERN_ENTRY__EXCLUSUION: + return ((InternalEList)getExclusuion()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.ALL_PATTERN_ENTRY__EXCLUSUION: + return getExclusuion(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.ALL_PATTERN_ENTRY__EXCLUSUION: + getExclusuion().clear(); + getExclusuion().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.ALL_PATTERN_ENTRY__EXCLUSUION: + getExclusuion().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.ALL_PATTERN_ENTRY__EXCLUSUION: + return exclusuion != null && !exclusuion.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //AllPatternEntryImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ApplicationConfigurationFactoryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ApplicationConfigurationFactoryImpl.java index fa555b1d..84de173c 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ApplicationConfigurationFactoryImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ApplicationConfigurationFactoryImpl.java @@ -1,1232 +1,1232 @@ -/** - * generated by Xtext 2.21.0 - */ -package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; - -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.*; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.emf.ecore.impl.EFactoryImpl; - -import org.eclipse.emf.ecore.plugin.EcorePlugin; - -/** - * - * An implementation of the model Factory. - * - * @generated - */ -public class ApplicationConfigurationFactoryImpl extends EFactoryImpl implements ApplicationConfigurationFactory -{ - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static ApplicationConfigurationFactory init() - { - try - { - ApplicationConfigurationFactory theApplicationConfigurationFactory = (ApplicationConfigurationFactory)EPackage.Registry.INSTANCE.getEFactory(ApplicationConfigurationPackage.eNS_URI); - if (theApplicationConfigurationFactory != null) - { - return theApplicationConfigurationFactory; - } - } - catch (Exception exception) - { - EcorePlugin.INSTANCE.log(exception); - } - return new ApplicationConfigurationFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public ApplicationConfigurationFactoryImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) - { - switch (eClass.getClassifierID()) - { - case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT: return createConfigurationScript(); - case ApplicationConfigurationPackage.COMMAND: return createCommand(); - case ApplicationConfigurationPackage.IMPORT: return createImport(); - case ApplicationConfigurationPackage.EPACKAGE_IMPORT: return createEPackageImport(); - case ApplicationConfigurationPackage.VIATRA_IMPORT: return createViatraImport(); - case ApplicationConfigurationPackage.DECLARATION: return createDeclaration(); - case ApplicationConfigurationPackage.FILE_SPECIFICATION: return createFileSpecification(); - case ApplicationConfigurationPackage.FILE_DECLARATION: return createFileDeclaration(); - case ApplicationConfigurationPackage.FILE_REFERENCE: return createFileReference(); - case ApplicationConfigurationPackage.FILE: return createFile(); - case ApplicationConfigurationPackage.METAMODEL_SPECIFICATION: return createMetamodelSpecification(); - case ApplicationConfigurationPackage.METAMODEL_ENTRY: return createMetamodelEntry(); - case ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY: return createAllPackageEntry(); - case ApplicationConfigurationPackage.METAMODEL_ELEMENT: return createMetamodelElement(); - case ApplicationConfigurationPackage.METAMODEL_DECLARATION: return createMetamodelDeclaration(); - case ApplicationConfigurationPackage.METAMODEL_REFERENCE: return createMetamodelReference(); - case ApplicationConfigurationPackage.METAMODEL: return createMetamodel(); - case ApplicationConfigurationPackage.PARTIAL_MODEL_SPECIFICATION: return createPartialModelSpecification(); - case ApplicationConfigurationPackage.PARTIAL_MODEL_ENTRY: return createPartialModelEntry(); - case ApplicationConfigurationPackage.MODEL_ENTRY: return createModelEntry(); - case ApplicationConfigurationPackage.FOLDER_ENTRY: return createFolderEntry(); - case ApplicationConfigurationPackage.PARTIAL_MODEL_DECLARATION: return createPartialModelDeclaration(); - case ApplicationConfigurationPackage.PARTIAL_MODEL_REFERENCE: return createPartialModelReference(); - case ApplicationConfigurationPackage.PARTIAL_MODEL: return createPartialModel(); - case ApplicationConfigurationPackage.PATTERN_SPECIFICATION: return createPatternSpecification(); - case ApplicationConfigurationPackage.PATTERN_ENTRY: return createPatternEntry(); - case ApplicationConfigurationPackage.ALL_PATTERN_ENTRY: return createAllPatternEntry(); - case ApplicationConfigurationPackage.PATTERN_ELEMENT: return createPatternElement(); - case ApplicationConfigurationPackage.GRAPH_PATTERN_DECLARATION: return createGraphPatternDeclaration(); - case ApplicationConfigurationPackage.GRAPH_PATTERN_REFERENCE: return createGraphPatternReference(); - case ApplicationConfigurationPackage.GRAPH_PATTERN: return createGraphPattern(); - case ApplicationConfigurationPackage.OBJECTIVE_SPECIFICATION: return createObjectiveSpecification(); - case ApplicationConfigurationPackage.OBJECTIVE_ENTRY: return createObjectiveEntry(); - case ApplicationConfigurationPackage.OPTIMIZATION_ENTRY: return createOptimizationEntry(); - case ApplicationConfigurationPackage.THRESHOLD_ENTRY: return createThresholdEntry(); - case ApplicationConfigurationPackage.OBJECTIVE_FUNCTION: return createObjectiveFunction(); - case ApplicationConfigurationPackage.COST_OBJECTIVE_FUNCTION: return createCostObjectiveFunction(); - case ApplicationConfigurationPackage.COST_ENTRY: return createCostEntry(); - case ApplicationConfigurationPackage.OBJECTIVE_DECLARATION: return createObjectiveDeclaration(); - case ApplicationConfigurationPackage.OBJECTIVE_REFERENCE: return createObjectiveReference(); - case ApplicationConfigurationPackage.OBJECTIVE: return createObjective(); - case ApplicationConfigurationPackage.CONFIG_SPECIFICATION: return createConfigSpecification(); - case ApplicationConfigurationPackage.CONFIG_DECLARATION: return createConfigDeclaration(); - case ApplicationConfigurationPackage.CONFIG_ENTRY: return createConfigEntry(); - case ApplicationConfigurationPackage.DOCUMENTATION_ENTRY: return createDocumentationEntry(); - case ApplicationConfigurationPackage.RUNTIME_ENTRY: return createRuntimeEntry(); - case ApplicationConfigurationPackage.MEMORY_ENTRY: return createMemoryEntry(); - case ApplicationConfigurationPackage.CUSTOM_ENTRY: return createCustomEntry(); - case ApplicationConfigurationPackage.CONFIG_REFERENCE: return createConfigReference(); - case ApplicationConfigurationPackage.CONFIG: return createConfig(); - case ApplicationConfigurationPackage.SCOPE_SPECIFICATION: return createScopeSpecification(); - case ApplicationConfigurationPackage.TYPE_SCOPE: return createTypeScope(); - case ApplicationConfigurationPackage.CLASS_TYPE_SCOPE: return createClassTypeScope(); - case ApplicationConfigurationPackage.OBJECT_TYPE_SCOPE: return createObjectTypeScope(); - case ApplicationConfigurationPackage.INTEGER_TYPE_SCOPE: return createIntegerTypeScope(); - case ApplicationConfigurationPackage.REAL_TYPE_SCOPE: return createRealTypeScope(); - case ApplicationConfigurationPackage.STRING_TYPE_SCOPE: return createStringTypeScope(); - case ApplicationConfigurationPackage.TYPE_REFERENCE: return createTypeReference(); - case ApplicationConfigurationPackage.CLASS_REFERENCE: return createClassReference(); - case ApplicationConfigurationPackage.OBJECT_REFERENCE: return createObjectReference(); - case ApplicationConfigurationPackage.INTEGER_REFERENCE: return createIntegerReference(); - case ApplicationConfigurationPackage.REAL_REFERENCE: return createRealReference(); - case ApplicationConfigurationPackage.STRING_REFERENCE: return createStringReference(); - case ApplicationConfigurationPackage.NUMBER_SPECIFICATION: return createNumberSpecification(); - case ApplicationConfigurationPackage.EXACT_NUMBER: return createExactNumber(); - case ApplicationConfigurationPackage.INTERVALL_NUMBER: return createIntervallNumber(); - case ApplicationConfigurationPackage.INT_ENUMBERATION: return createIntEnumberation(); - case ApplicationConfigurationPackage.REAL_ENUMERATION: return createRealEnumeration(); - case ApplicationConfigurationPackage.STRING_ENUMERATION: return createStringEnumeration(); - case ApplicationConfigurationPackage.SCOPE_DECLARATION: return createScopeDeclaration(); - case ApplicationConfigurationPackage.SCOPE_REFERENCE: return createScopeReference(); - case ApplicationConfigurationPackage.SCOPE: return createScope(); - case ApplicationConfigurationPackage.TASK: return createTask(); - case ApplicationConfigurationPackage.GENERATION_TASK: return createGenerationTask(); - case ApplicationConfigurationPackage.INTEGER_SCOPE: return createIntegerScope(); - case ApplicationConfigurationPackage.REAL_SCOPE: return createRealScope(); - case ApplicationConfigurationPackage.STRING_SCOPE: return createStringScope(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - @Override - public Object createFromString(EDataType eDataType, String initialValue) - { - switch (eDataType.getClassifierID()) - { - case ApplicationConfigurationPackage.OPTIMIZATION_DIRECTION: - return createOptimizationDirectionFromString(eDataType, initialValue); - case ApplicationConfigurationPackage.COMPARISON_OPERATOR: - return createComparisonOperatorFromString(eDataType, initialValue); - case ApplicationConfigurationPackage.DOCUMENT_LEVEL_SPECIFICATION: - return createDocumentLevelSpecificationFromString(eDataType, initialValue); - case ApplicationConfigurationPackage.SOLVER: - return createSolverFromString(eDataType, initialValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - @Override - public String convertToString(EDataType eDataType, Object instanceValue) - { - switch (eDataType.getClassifierID()) - { - case ApplicationConfigurationPackage.OPTIMIZATION_DIRECTION: - return convertOptimizationDirectionToString(eDataType, instanceValue); - case ApplicationConfigurationPackage.COMPARISON_OPERATOR: - return convertComparisonOperatorToString(eDataType, instanceValue); - case ApplicationConfigurationPackage.DOCUMENT_LEVEL_SPECIFICATION: - return convertDocumentLevelSpecificationToString(eDataType, instanceValue); - case ApplicationConfigurationPackage.SOLVER: - return convertSolverToString(eDataType, instanceValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - @Override - public ConfigurationScript createConfigurationScript() - { - ConfigurationScriptImpl configurationScript = new ConfigurationScriptImpl(); - return configurationScript; - } - - /** - * - * - * @generated - */ - @Override - public Command createCommand() - { - CommandImpl command = new CommandImpl(); - return command; - } - - /** - * - * - * @generated - */ - @Override - public Import createImport() - { - ImportImpl import_ = new ImportImpl(); - return import_; - } - - /** - * - * - * @generated - */ - @Override - public EPackageImport createEPackageImport() - { - EPackageImportImpl ePackageImport = new EPackageImportImpl(); - return ePackageImport; - } - - /** - * - * - * @generated - */ - @Override - public ViatraImport createViatraImport() - { - ViatraImportImpl viatraImport = new ViatraImportImpl(); - return viatraImport; - } - - /** - * - * - * @generated - */ - @Override - public Declaration createDeclaration() - { - DeclarationImpl declaration = new DeclarationImpl(); - return declaration; - } - - /** - * - * - * @generated - */ - @Override - public FileSpecification createFileSpecification() - { - FileSpecificationImpl fileSpecification = new FileSpecificationImpl(); - return fileSpecification; - } - - /** - * - * - * @generated - */ - @Override - public FileDeclaration createFileDeclaration() - { - FileDeclarationImpl fileDeclaration = new FileDeclarationImpl(); - return fileDeclaration; - } - - /** - * - * - * @generated - */ - @Override - public FileReference createFileReference() - { - FileReferenceImpl fileReference = new FileReferenceImpl(); - return fileReference; - } - - /** - * - * - * @generated - */ - @Override - public File createFile() - { - FileImpl file = new FileImpl(); - return file; - } - - /** - * - * - * @generated - */ - @Override - public MetamodelSpecification createMetamodelSpecification() - { - MetamodelSpecificationImpl metamodelSpecification = new MetamodelSpecificationImpl(); - return metamodelSpecification; - } - - /** - * - * - * @generated - */ - @Override - public MetamodelEntry createMetamodelEntry() - { - MetamodelEntryImpl metamodelEntry = new MetamodelEntryImpl(); - return metamodelEntry; - } - - /** - * - * - * @generated - */ - @Override - public AllPackageEntry createAllPackageEntry() - { - AllPackageEntryImpl allPackageEntry = new AllPackageEntryImpl(); - return allPackageEntry; - } - - /** - * - * - * @generated - */ - @Override - public MetamodelElement createMetamodelElement() - { - MetamodelElementImpl metamodelElement = new MetamodelElementImpl(); - return metamodelElement; - } - - /** - * - * - * @generated - */ - @Override - public MetamodelDeclaration createMetamodelDeclaration() - { - MetamodelDeclarationImpl metamodelDeclaration = new MetamodelDeclarationImpl(); - return metamodelDeclaration; - } - - /** - * - * - * @generated - */ - @Override - public MetamodelReference createMetamodelReference() - { - MetamodelReferenceImpl metamodelReference = new MetamodelReferenceImpl(); - return metamodelReference; - } - - /** - * - * - * @generated - */ - @Override - public Metamodel createMetamodel() - { - MetamodelImpl metamodel = new MetamodelImpl(); - return metamodel; - } - - /** - * - * - * @generated - */ - @Override - public PartialModelSpecification createPartialModelSpecification() - { - PartialModelSpecificationImpl partialModelSpecification = new PartialModelSpecificationImpl(); - return partialModelSpecification; - } - - /** - * - * - * @generated - */ - @Override - public PartialModelEntry createPartialModelEntry() - { - PartialModelEntryImpl partialModelEntry = new PartialModelEntryImpl(); - return partialModelEntry; - } - - /** - * - * - * @generated - */ - @Override - public ModelEntry createModelEntry() - { - ModelEntryImpl modelEntry = new ModelEntryImpl(); - return modelEntry; - } - - /** - * - * - * @generated - */ - @Override - public FolderEntry createFolderEntry() - { - FolderEntryImpl folderEntry = new FolderEntryImpl(); - return folderEntry; - } - - /** - * - * - * @generated - */ - @Override - public PartialModelDeclaration createPartialModelDeclaration() - { - PartialModelDeclarationImpl partialModelDeclaration = new PartialModelDeclarationImpl(); - return partialModelDeclaration; - } - - /** - * - * - * @generated - */ - @Override - public PartialModelReference createPartialModelReference() - { - PartialModelReferenceImpl partialModelReference = new PartialModelReferenceImpl(); - return partialModelReference; - } - - /** - * - * - * @generated - */ - @Override - public PartialModel createPartialModel() - { - PartialModelImpl partialModel = new PartialModelImpl(); - return partialModel; - } - - /** - * - * - * @generated - */ - @Override - public PatternSpecification createPatternSpecification() - { - PatternSpecificationImpl patternSpecification = new PatternSpecificationImpl(); - return patternSpecification; - } - - /** - * - * - * @generated - */ - @Override - public PatternEntry createPatternEntry() - { - PatternEntryImpl patternEntry = new PatternEntryImpl(); - return patternEntry; - } - - /** - * - * - * @generated - */ - @Override - public AllPatternEntry createAllPatternEntry() - { - AllPatternEntryImpl allPatternEntry = new AllPatternEntryImpl(); - return allPatternEntry; - } - - /** - * - * - * @generated - */ - @Override - public PatternElement createPatternElement() - { - PatternElementImpl patternElement = new PatternElementImpl(); - return patternElement; - } - - /** - * - * - * @generated - */ - @Override - public GraphPatternDeclaration createGraphPatternDeclaration() - { - GraphPatternDeclarationImpl graphPatternDeclaration = new GraphPatternDeclarationImpl(); - return graphPatternDeclaration; - } - - /** - * - * - * @generated - */ - @Override - public GraphPatternReference createGraphPatternReference() - { - GraphPatternReferenceImpl graphPatternReference = new GraphPatternReferenceImpl(); - return graphPatternReference; - } - - /** - * - * - * @generated - */ - @Override - public GraphPattern createGraphPattern() - { - GraphPatternImpl graphPattern = new GraphPatternImpl(); - return graphPattern; - } - - /** - * - * - * @generated - */ - @Override - public ObjectiveSpecification createObjectiveSpecification() - { - ObjectiveSpecificationImpl objectiveSpecification = new ObjectiveSpecificationImpl(); - return objectiveSpecification; - } - - /** - * - * - * @generated - */ - @Override - public ObjectiveEntry createObjectiveEntry() - { - ObjectiveEntryImpl objectiveEntry = new ObjectiveEntryImpl(); - return objectiveEntry; - } - - /** - * - * - * @generated - */ - @Override - public OptimizationEntry createOptimizationEntry() - { - OptimizationEntryImpl optimizationEntry = new OptimizationEntryImpl(); - return optimizationEntry; - } - - /** - * - * - * @generated - */ - @Override - public ThresholdEntry createThresholdEntry() - { - ThresholdEntryImpl thresholdEntry = new ThresholdEntryImpl(); - return thresholdEntry; - } - - /** - * - * - * @generated - */ - @Override - public ObjectiveFunction createObjectiveFunction() - { - ObjectiveFunctionImpl objectiveFunction = new ObjectiveFunctionImpl(); - return objectiveFunction; - } - - /** - * - * - * @generated - */ - @Override - public CostObjectiveFunction createCostObjectiveFunction() - { - CostObjectiveFunctionImpl costObjectiveFunction = new CostObjectiveFunctionImpl(); - return costObjectiveFunction; - } - - /** - * - * - * @generated - */ - @Override - public CostEntry createCostEntry() - { - CostEntryImpl costEntry = new CostEntryImpl(); - return costEntry; - } - - /** - * - * - * @generated - */ - @Override - public ObjectiveDeclaration createObjectiveDeclaration() - { - ObjectiveDeclarationImpl objectiveDeclaration = new ObjectiveDeclarationImpl(); - return objectiveDeclaration; - } - - /** - * - * - * @generated - */ - @Override - public ObjectiveReference createObjectiveReference() - { - ObjectiveReferenceImpl objectiveReference = new ObjectiveReferenceImpl(); - return objectiveReference; - } - - /** - * - * - * @generated - */ - @Override - public Objective createObjective() - { - ObjectiveImpl objective = new ObjectiveImpl(); - return objective; - } - - /** - * - * - * @generated - */ - @Override - public ConfigSpecification createConfigSpecification() - { - ConfigSpecificationImpl configSpecification = new ConfigSpecificationImpl(); - return configSpecification; - } - - /** - * - * - * @generated - */ - @Override - public ConfigDeclaration createConfigDeclaration() - { - ConfigDeclarationImpl configDeclaration = new ConfigDeclarationImpl(); - return configDeclaration; - } - - /** - * - * - * @generated - */ - @Override - public ConfigEntry createConfigEntry() - { - ConfigEntryImpl configEntry = new ConfigEntryImpl(); - return configEntry; - } - - /** - * - * - * @generated - */ - @Override - public DocumentationEntry createDocumentationEntry() - { - DocumentationEntryImpl documentationEntry = new DocumentationEntryImpl(); - return documentationEntry; - } - - /** - * - * - * @generated - */ - @Override - public RuntimeEntry createRuntimeEntry() - { - RuntimeEntryImpl runtimeEntry = new RuntimeEntryImpl(); - return runtimeEntry; - } - - /** - * - * - * @generated - */ - @Override - public MemoryEntry createMemoryEntry() - { - MemoryEntryImpl memoryEntry = new MemoryEntryImpl(); - return memoryEntry; - } - - /** - * - * - * @generated - */ - @Override - public CustomEntry createCustomEntry() - { - CustomEntryImpl customEntry = new CustomEntryImpl(); - return customEntry; - } - - /** - * - * - * @generated - */ - @Override - public ConfigReference createConfigReference() - { - ConfigReferenceImpl configReference = new ConfigReferenceImpl(); - return configReference; - } - - /** - * - * - * @generated - */ - @Override - public Config createConfig() - { - ConfigImpl config = new ConfigImpl(); - return config; - } - - /** - * - * - * @generated - */ - @Override - public ScopeSpecification createScopeSpecification() - { - ScopeSpecificationImpl scopeSpecification = new ScopeSpecificationImpl(); - return scopeSpecification; - } - - /** - * - * - * @generated - */ - @Override - public TypeScope createTypeScope() - { - TypeScopeImpl typeScope = new TypeScopeImpl(); - return typeScope; - } - - /** - * - * - * @generated - */ - @Override - public ClassTypeScope createClassTypeScope() - { - ClassTypeScopeImpl classTypeScope = new ClassTypeScopeImpl(); - return classTypeScope; - } - - /** - * - * - * @generated - */ - @Override - public ObjectTypeScope createObjectTypeScope() - { - ObjectTypeScopeImpl objectTypeScope = new ObjectTypeScopeImpl(); - return objectTypeScope; - } - - /** - * - * - * @generated - */ - @Override - public IntegerTypeScope createIntegerTypeScope() - { - IntegerTypeScopeImpl integerTypeScope = new IntegerTypeScopeImpl(); - return integerTypeScope; - } - - /** - * - * - * @generated - */ - @Override - public RealTypeScope createRealTypeScope() - { - RealTypeScopeImpl realTypeScope = new RealTypeScopeImpl(); - return realTypeScope; - } - - /** - * - * - * @generated - */ - @Override - public StringTypeScope createStringTypeScope() - { - StringTypeScopeImpl stringTypeScope = new StringTypeScopeImpl(); - return stringTypeScope; - } - - /** - * - * - * @generated - */ - @Override - public TypeReference createTypeReference() - { - TypeReferenceImpl typeReference = new TypeReferenceImpl(); - return typeReference; - } - - /** - * - * - * @generated - */ - @Override - public ClassReference createClassReference() - { - ClassReferenceImpl classReference = new ClassReferenceImpl(); - return classReference; - } - - /** - * - * - * @generated - */ - @Override - public ObjectReference createObjectReference() - { - ObjectReferenceImpl objectReference = new ObjectReferenceImpl(); - return objectReference; - } - - /** - * - * - * @generated - */ - @Override - public IntegerReference createIntegerReference() - { - IntegerReferenceImpl integerReference = new IntegerReferenceImpl(); - return integerReference; - } - - /** - * - * - * @generated - */ - @Override - public RealReference createRealReference() - { - RealReferenceImpl realReference = new RealReferenceImpl(); - return realReference; - } - - /** - * - * - * @generated - */ - @Override - public StringReference createStringReference() - { - StringReferenceImpl stringReference = new StringReferenceImpl(); - return stringReference; - } - - /** - * - * - * @generated - */ - @Override - public NumberSpecification createNumberSpecification() - { - NumberSpecificationImpl numberSpecification = new NumberSpecificationImpl(); - return numberSpecification; - } - - /** - * - * - * @generated - */ - @Override - public ExactNumber createExactNumber() - { - ExactNumberImpl exactNumber = new ExactNumberImpl(); - return exactNumber; - } - - /** - * - * - * @generated - */ - @Override - public IntervallNumber createIntervallNumber() - { - IntervallNumberImpl intervallNumber = new IntervallNumberImpl(); - return intervallNumber; - } - - /** - * - * - * @generated - */ - @Override - public IntEnumberation createIntEnumberation() - { - IntEnumberationImpl intEnumberation = new IntEnumberationImpl(); - return intEnumberation; - } - - /** - * - * - * @generated - */ - @Override - public RealEnumeration createRealEnumeration() - { - RealEnumerationImpl realEnumeration = new RealEnumerationImpl(); - return realEnumeration; - } - - /** - * - * - * @generated - */ - @Override - public StringEnumeration createStringEnumeration() - { - StringEnumerationImpl stringEnumeration = new StringEnumerationImpl(); - return stringEnumeration; - } - - /** - * - * - * @generated - */ - @Override - public ScopeDeclaration createScopeDeclaration() - { - ScopeDeclarationImpl scopeDeclaration = new ScopeDeclarationImpl(); - return scopeDeclaration; - } - - /** - * - * - * @generated - */ - @Override - public ScopeReference createScopeReference() - { - ScopeReferenceImpl scopeReference = new ScopeReferenceImpl(); - return scopeReference; - } - - /** - * - * - * @generated - */ - @Override - public Scope createScope() - { - ScopeImpl scope = new ScopeImpl(); - return scope; - } - - /** - * - * - * @generated - */ - @Override - public Task createTask() - { - TaskImpl task = new TaskImpl(); - return task; - } - - /** - * - * - * @generated - */ - @Override - public GenerationTask createGenerationTask() - { - GenerationTaskImpl generationTask = new GenerationTaskImpl(); - return generationTask; - } - - /** - * - * - * @generated - */ - @Override - public IntegerScope createIntegerScope() - { - IntegerScopeImpl integerScope = new IntegerScopeImpl(); - return integerScope; - } - - /** - * - * - * @generated - */ - @Override - public RealScope createRealScope() - { - RealScopeImpl realScope = new RealScopeImpl(); - return realScope; - } - - /** - * - * - * @generated - */ - @Override - public StringScope createStringScope() - { - StringScopeImpl stringScope = new StringScopeImpl(); - return stringScope; - } - - /** - * - * - * @generated - */ - public OptimizationDirection createOptimizationDirectionFromString(EDataType eDataType, String initialValue) - { - OptimizationDirection result = OptimizationDirection.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - - /** - * - * - * @generated - */ - public String convertOptimizationDirectionToString(EDataType eDataType, Object instanceValue) - { - return instanceValue == null ? null : instanceValue.toString(); - } - - /** - * - * - * @generated - */ - public ComparisonOperator createComparisonOperatorFromString(EDataType eDataType, String initialValue) - { - ComparisonOperator result = ComparisonOperator.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - - /** - * - * - * @generated - */ - public String convertComparisonOperatorToString(EDataType eDataType, Object instanceValue) - { - return instanceValue == null ? null : instanceValue.toString(); - } - - /** - * - * - * @generated - */ - public DocumentLevelSpecification createDocumentLevelSpecificationFromString(EDataType eDataType, String initialValue) - { - DocumentLevelSpecification result = DocumentLevelSpecification.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - - /** - * - * - * @generated - */ - public String convertDocumentLevelSpecificationToString(EDataType eDataType, Object instanceValue) - { - return instanceValue == null ? null : instanceValue.toString(); - } - - /** - * - * - * @generated - */ - public Solver createSolverFromString(EDataType eDataType, String initialValue) - { - Solver result = Solver.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - - /** - * - * - * @generated - */ - public String convertSolverToString(EDataType eDataType, Object instanceValue) - { - return instanceValue == null ? null : instanceValue.toString(); - } - - /** - * - * - * @generated - */ - @Override - public ApplicationConfigurationPackage getApplicationConfigurationPackage() - { - return (ApplicationConfigurationPackage)getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static ApplicationConfigurationPackage getPackage() - { - return ApplicationConfigurationPackage.eINSTANCE; - } - -} //ApplicationConfigurationFactoryImpl +/** + * generated by Xtext 2.21.0 + */ +package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; + +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.*; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.impl.EFactoryImpl; + +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class ApplicationConfigurationFactoryImpl extends EFactoryImpl implements ApplicationConfigurationFactory +{ + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static ApplicationConfigurationFactory init() + { + try + { + ApplicationConfigurationFactory theApplicationConfigurationFactory = (ApplicationConfigurationFactory)EPackage.Registry.INSTANCE.getEFactory(ApplicationConfigurationPackage.eNS_URI); + if (theApplicationConfigurationFactory != null) + { + return theApplicationConfigurationFactory; + } + } + catch (Exception exception) + { + EcorePlugin.INSTANCE.log(exception); + } + return new ApplicationConfigurationFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public ApplicationConfigurationFactoryImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) + { + switch (eClass.getClassifierID()) + { + case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT: return createConfigurationScript(); + case ApplicationConfigurationPackage.COMMAND: return createCommand(); + case ApplicationConfigurationPackage.IMPORT: return createImport(); + case ApplicationConfigurationPackage.EPACKAGE_IMPORT: return createEPackageImport(); + case ApplicationConfigurationPackage.VIATRA_IMPORT: return createViatraImport(); + case ApplicationConfigurationPackage.DECLARATION: return createDeclaration(); + case ApplicationConfigurationPackage.FILE_SPECIFICATION: return createFileSpecification(); + case ApplicationConfigurationPackage.FILE_DECLARATION: return createFileDeclaration(); + case ApplicationConfigurationPackage.FILE_REFERENCE: return createFileReference(); + case ApplicationConfigurationPackage.FILE: return createFile(); + case ApplicationConfigurationPackage.METAMODEL_SPECIFICATION: return createMetamodelSpecification(); + case ApplicationConfigurationPackage.METAMODEL_ENTRY: return createMetamodelEntry(); + case ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY: return createAllPackageEntry(); + case ApplicationConfigurationPackage.METAMODEL_ELEMENT: return createMetamodelElement(); + case ApplicationConfigurationPackage.METAMODEL_DECLARATION: return createMetamodelDeclaration(); + case ApplicationConfigurationPackage.METAMODEL_REFERENCE: return createMetamodelReference(); + case ApplicationConfigurationPackage.METAMODEL: return createMetamodel(); + case ApplicationConfigurationPackage.PARTIAL_MODEL_SPECIFICATION: return createPartialModelSpecification(); + case ApplicationConfigurationPackage.PARTIAL_MODEL_ENTRY: return createPartialModelEntry(); + case ApplicationConfigurationPackage.MODEL_ENTRY: return createModelEntry(); + case ApplicationConfigurationPackage.FOLDER_ENTRY: return createFolderEntry(); + case ApplicationConfigurationPackage.PARTIAL_MODEL_DECLARATION: return createPartialModelDeclaration(); + case ApplicationConfigurationPackage.PARTIAL_MODEL_REFERENCE: return createPartialModelReference(); + case ApplicationConfigurationPackage.PARTIAL_MODEL: return createPartialModel(); + case ApplicationConfigurationPackage.PATTERN_SPECIFICATION: return createPatternSpecification(); + case ApplicationConfigurationPackage.PATTERN_ENTRY: return createPatternEntry(); + case ApplicationConfigurationPackage.ALL_PATTERN_ENTRY: return createAllPatternEntry(); + case ApplicationConfigurationPackage.PATTERN_ELEMENT: return createPatternElement(); + case ApplicationConfigurationPackage.GRAPH_PATTERN_DECLARATION: return createGraphPatternDeclaration(); + case ApplicationConfigurationPackage.GRAPH_PATTERN_REFERENCE: return createGraphPatternReference(); + case ApplicationConfigurationPackage.GRAPH_PATTERN: return createGraphPattern(); + case ApplicationConfigurationPackage.OBJECTIVE_SPECIFICATION: return createObjectiveSpecification(); + case ApplicationConfigurationPackage.OBJECTIVE_ENTRY: return createObjectiveEntry(); + case ApplicationConfigurationPackage.OPTIMIZATION_ENTRY: return createOptimizationEntry(); + case ApplicationConfigurationPackage.THRESHOLD_ENTRY: return createThresholdEntry(); + case ApplicationConfigurationPackage.OBJECTIVE_FUNCTION: return createObjectiveFunction(); + case ApplicationConfigurationPackage.COST_OBJECTIVE_FUNCTION: return createCostObjectiveFunction(); + case ApplicationConfigurationPackage.COST_ENTRY: return createCostEntry(); + case ApplicationConfigurationPackage.OBJECTIVE_DECLARATION: return createObjectiveDeclaration(); + case ApplicationConfigurationPackage.OBJECTIVE_REFERENCE: return createObjectiveReference(); + case ApplicationConfigurationPackage.OBJECTIVE: return createObjective(); + case ApplicationConfigurationPackage.CONFIG_SPECIFICATION: return createConfigSpecification(); + case ApplicationConfigurationPackage.CONFIG_DECLARATION: return createConfigDeclaration(); + case ApplicationConfigurationPackage.CONFIG_ENTRY: return createConfigEntry(); + case ApplicationConfigurationPackage.DOCUMENTATION_ENTRY: return createDocumentationEntry(); + case ApplicationConfigurationPackage.RUNTIME_ENTRY: return createRuntimeEntry(); + case ApplicationConfigurationPackage.MEMORY_ENTRY: return createMemoryEntry(); + case ApplicationConfigurationPackage.CUSTOM_ENTRY: return createCustomEntry(); + case ApplicationConfigurationPackage.CONFIG_REFERENCE: return createConfigReference(); + case ApplicationConfigurationPackage.CONFIG: return createConfig(); + case ApplicationConfigurationPackage.SCOPE_SPECIFICATION: return createScopeSpecification(); + case ApplicationConfigurationPackage.TYPE_SCOPE: return createTypeScope(); + case ApplicationConfigurationPackage.CLASS_TYPE_SCOPE: return createClassTypeScope(); + case ApplicationConfigurationPackage.OBJECT_TYPE_SCOPE: return createObjectTypeScope(); + case ApplicationConfigurationPackage.INTEGER_TYPE_SCOPE: return createIntegerTypeScope(); + case ApplicationConfigurationPackage.REAL_TYPE_SCOPE: return createRealTypeScope(); + case ApplicationConfigurationPackage.STRING_TYPE_SCOPE: return createStringTypeScope(); + case ApplicationConfigurationPackage.TYPE_REFERENCE: return createTypeReference(); + case ApplicationConfigurationPackage.CLASS_REFERENCE: return createClassReference(); + case ApplicationConfigurationPackage.OBJECT_REFERENCE: return createObjectReference(); + case ApplicationConfigurationPackage.INTEGER_REFERENCE: return createIntegerReference(); + case ApplicationConfigurationPackage.REAL_REFERENCE: return createRealReference(); + case ApplicationConfigurationPackage.STRING_REFERENCE: return createStringReference(); + case ApplicationConfigurationPackage.NUMBER_SPECIFICATION: return createNumberSpecification(); + case ApplicationConfigurationPackage.EXACT_NUMBER: return createExactNumber(); + case ApplicationConfigurationPackage.INTERVALL_NUMBER: return createIntervallNumber(); + case ApplicationConfigurationPackage.INT_ENUMBERATION: return createIntEnumberation(); + case ApplicationConfigurationPackage.REAL_ENUMERATION: return createRealEnumeration(); + case ApplicationConfigurationPackage.STRING_ENUMERATION: return createStringEnumeration(); + case ApplicationConfigurationPackage.SCOPE_DECLARATION: return createScopeDeclaration(); + case ApplicationConfigurationPackage.SCOPE_REFERENCE: return createScopeReference(); + case ApplicationConfigurationPackage.SCOPE: return createScope(); + case ApplicationConfigurationPackage.TASK: return createTask(); + case ApplicationConfigurationPackage.GENERATION_TASK: return createGenerationTask(); + case ApplicationConfigurationPackage.INTEGER_SCOPE: return createIntegerScope(); + case ApplicationConfigurationPackage.REAL_SCOPE: return createRealScope(); + case ApplicationConfigurationPackage.STRING_SCOPE: return createStringScope(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + @Override + public Object createFromString(EDataType eDataType, String initialValue) + { + switch (eDataType.getClassifierID()) + { + case ApplicationConfigurationPackage.OPTIMIZATION_DIRECTION: + return createOptimizationDirectionFromString(eDataType, initialValue); + case ApplicationConfigurationPackage.COMPARISON_OPERATOR: + return createComparisonOperatorFromString(eDataType, initialValue); + case ApplicationConfigurationPackage.DOCUMENT_LEVEL_SPECIFICATION: + return createDocumentLevelSpecificationFromString(eDataType, initialValue); + case ApplicationConfigurationPackage.SOLVER: + return createSolverFromString(eDataType, initialValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + @Override + public String convertToString(EDataType eDataType, Object instanceValue) + { + switch (eDataType.getClassifierID()) + { + case ApplicationConfigurationPackage.OPTIMIZATION_DIRECTION: + return convertOptimizationDirectionToString(eDataType, instanceValue); + case ApplicationConfigurationPackage.COMPARISON_OPERATOR: + return convertComparisonOperatorToString(eDataType, instanceValue); + case ApplicationConfigurationPackage.DOCUMENT_LEVEL_SPECIFICATION: + return convertDocumentLevelSpecificationToString(eDataType, instanceValue); + case ApplicationConfigurationPackage.SOLVER: + return convertSolverToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + @Override + public ConfigurationScript createConfigurationScript() + { + ConfigurationScriptImpl configurationScript = new ConfigurationScriptImpl(); + return configurationScript; + } + + /** + * + * + * @generated + */ + @Override + public Command createCommand() + { + CommandImpl command = new CommandImpl(); + return command; + } + + /** + * + * + * @generated + */ + @Override + public Import createImport() + { + ImportImpl import_ = new ImportImpl(); + return import_; + } + + /** + * + * + * @generated + */ + @Override + public EPackageImport createEPackageImport() + { + EPackageImportImpl ePackageImport = new EPackageImportImpl(); + return ePackageImport; + } + + /** + * + * + * @generated + */ + @Override + public ViatraImport createViatraImport() + { + ViatraImportImpl viatraImport = new ViatraImportImpl(); + return viatraImport; + } + + /** + * + * + * @generated + */ + @Override + public Declaration createDeclaration() + { + DeclarationImpl declaration = new DeclarationImpl(); + return declaration; + } + + /** + * + * + * @generated + */ + @Override + public FileSpecification createFileSpecification() + { + FileSpecificationImpl fileSpecification = new FileSpecificationImpl(); + return fileSpecification; + } + + /** + * + * + * @generated + */ + @Override + public FileDeclaration createFileDeclaration() + { + FileDeclarationImpl fileDeclaration = new FileDeclarationImpl(); + return fileDeclaration; + } + + /** + * + * + * @generated + */ + @Override + public FileReference createFileReference() + { + FileReferenceImpl fileReference = new FileReferenceImpl(); + return fileReference; + } + + /** + * + * + * @generated + */ + @Override + public File createFile() + { + FileImpl file = new FileImpl(); + return file; + } + + /** + * + * + * @generated + */ + @Override + public MetamodelSpecification createMetamodelSpecification() + { + MetamodelSpecificationImpl metamodelSpecification = new MetamodelSpecificationImpl(); + return metamodelSpecification; + } + + /** + * + * + * @generated + */ + @Override + public MetamodelEntry createMetamodelEntry() + { + MetamodelEntryImpl metamodelEntry = new MetamodelEntryImpl(); + return metamodelEntry; + } + + /** + * + * + * @generated + */ + @Override + public AllPackageEntry createAllPackageEntry() + { + AllPackageEntryImpl allPackageEntry = new AllPackageEntryImpl(); + return allPackageEntry; + } + + /** + * + * + * @generated + */ + @Override + public MetamodelElement createMetamodelElement() + { + MetamodelElementImpl metamodelElement = new MetamodelElementImpl(); + return metamodelElement; + } + + /** + * + * + * @generated + */ + @Override + public MetamodelDeclaration createMetamodelDeclaration() + { + MetamodelDeclarationImpl metamodelDeclaration = new MetamodelDeclarationImpl(); + return metamodelDeclaration; + } + + /** + * + * + * @generated + */ + @Override + public MetamodelReference createMetamodelReference() + { + MetamodelReferenceImpl metamodelReference = new MetamodelReferenceImpl(); + return metamodelReference; + } + + /** + * + * + * @generated + */ + @Override + public Metamodel createMetamodel() + { + MetamodelImpl metamodel = new MetamodelImpl(); + return metamodel; + } + + /** + * + * + * @generated + */ + @Override + public PartialModelSpecification createPartialModelSpecification() + { + PartialModelSpecificationImpl partialModelSpecification = new PartialModelSpecificationImpl(); + return partialModelSpecification; + } + + /** + * + * + * @generated + */ + @Override + public PartialModelEntry createPartialModelEntry() + { + PartialModelEntryImpl partialModelEntry = new PartialModelEntryImpl(); + return partialModelEntry; + } + + /** + * + * + * @generated + */ + @Override + public ModelEntry createModelEntry() + { + ModelEntryImpl modelEntry = new ModelEntryImpl(); + return modelEntry; + } + + /** + * + * + * @generated + */ + @Override + public FolderEntry createFolderEntry() + { + FolderEntryImpl folderEntry = new FolderEntryImpl(); + return folderEntry; + } + + /** + * + * + * @generated + */ + @Override + public PartialModelDeclaration createPartialModelDeclaration() + { + PartialModelDeclarationImpl partialModelDeclaration = new PartialModelDeclarationImpl(); + return partialModelDeclaration; + } + + /** + * + * + * @generated + */ + @Override + public PartialModelReference createPartialModelReference() + { + PartialModelReferenceImpl partialModelReference = new PartialModelReferenceImpl(); + return partialModelReference; + } + + /** + * + * + * @generated + */ + @Override + public PartialModel createPartialModel() + { + PartialModelImpl partialModel = new PartialModelImpl(); + return partialModel; + } + + /** + * + * + * @generated + */ + @Override + public PatternSpecification createPatternSpecification() + { + PatternSpecificationImpl patternSpecification = new PatternSpecificationImpl(); + return patternSpecification; + } + + /** + * + * + * @generated + */ + @Override + public PatternEntry createPatternEntry() + { + PatternEntryImpl patternEntry = new PatternEntryImpl(); + return patternEntry; + } + + /** + * + * + * @generated + */ + @Override + public AllPatternEntry createAllPatternEntry() + { + AllPatternEntryImpl allPatternEntry = new AllPatternEntryImpl(); + return allPatternEntry; + } + + /** + * + * + * @generated + */ + @Override + public PatternElement createPatternElement() + { + PatternElementImpl patternElement = new PatternElementImpl(); + return patternElement; + } + + /** + * + * + * @generated + */ + @Override + public GraphPatternDeclaration createGraphPatternDeclaration() + { + GraphPatternDeclarationImpl graphPatternDeclaration = new GraphPatternDeclarationImpl(); + return graphPatternDeclaration; + } + + /** + * + * + * @generated + */ + @Override + public GraphPatternReference createGraphPatternReference() + { + GraphPatternReferenceImpl graphPatternReference = new GraphPatternReferenceImpl(); + return graphPatternReference; + } + + /** + * + * + * @generated + */ + @Override + public GraphPattern createGraphPattern() + { + GraphPatternImpl graphPattern = new GraphPatternImpl(); + return graphPattern; + } + + /** + * + * + * @generated + */ + @Override + public ObjectiveSpecification createObjectiveSpecification() + { + ObjectiveSpecificationImpl objectiveSpecification = new ObjectiveSpecificationImpl(); + return objectiveSpecification; + } + + /** + * + * + * @generated + */ + @Override + public ObjectiveEntry createObjectiveEntry() + { + ObjectiveEntryImpl objectiveEntry = new ObjectiveEntryImpl(); + return objectiveEntry; + } + + /** + * + * + * @generated + */ + @Override + public OptimizationEntry createOptimizationEntry() + { + OptimizationEntryImpl optimizationEntry = new OptimizationEntryImpl(); + return optimizationEntry; + } + + /** + * + * + * @generated + */ + @Override + public ThresholdEntry createThresholdEntry() + { + ThresholdEntryImpl thresholdEntry = new ThresholdEntryImpl(); + return thresholdEntry; + } + + /** + * + * + * @generated + */ + @Override + public ObjectiveFunction createObjectiveFunction() + { + ObjectiveFunctionImpl objectiveFunction = new ObjectiveFunctionImpl(); + return objectiveFunction; + } + + /** + * + * + * @generated + */ + @Override + public CostObjectiveFunction createCostObjectiveFunction() + { + CostObjectiveFunctionImpl costObjectiveFunction = new CostObjectiveFunctionImpl(); + return costObjectiveFunction; + } + + /** + * + * + * @generated + */ + @Override + public CostEntry createCostEntry() + { + CostEntryImpl costEntry = new CostEntryImpl(); + return costEntry; + } + + /** + * + * + * @generated + */ + @Override + public ObjectiveDeclaration createObjectiveDeclaration() + { + ObjectiveDeclarationImpl objectiveDeclaration = new ObjectiveDeclarationImpl(); + return objectiveDeclaration; + } + + /** + * + * + * @generated + */ + @Override + public ObjectiveReference createObjectiveReference() + { + ObjectiveReferenceImpl objectiveReference = new ObjectiveReferenceImpl(); + return objectiveReference; + } + + /** + * + * + * @generated + */ + @Override + public Objective createObjective() + { + ObjectiveImpl objective = new ObjectiveImpl(); + return objective; + } + + /** + * + * + * @generated + */ + @Override + public ConfigSpecification createConfigSpecification() + { + ConfigSpecificationImpl configSpecification = new ConfigSpecificationImpl(); + return configSpecification; + } + + /** + * + * + * @generated + */ + @Override + public ConfigDeclaration createConfigDeclaration() + { + ConfigDeclarationImpl configDeclaration = new ConfigDeclarationImpl(); + return configDeclaration; + } + + /** + * + * + * @generated + */ + @Override + public ConfigEntry createConfigEntry() + { + ConfigEntryImpl configEntry = new ConfigEntryImpl(); + return configEntry; + } + + /** + * + * + * @generated + */ + @Override + public DocumentationEntry createDocumentationEntry() + { + DocumentationEntryImpl documentationEntry = new DocumentationEntryImpl(); + return documentationEntry; + } + + /** + * + * + * @generated + */ + @Override + public RuntimeEntry createRuntimeEntry() + { + RuntimeEntryImpl runtimeEntry = new RuntimeEntryImpl(); + return runtimeEntry; + } + + /** + * + * + * @generated + */ + @Override + public MemoryEntry createMemoryEntry() + { + MemoryEntryImpl memoryEntry = new MemoryEntryImpl(); + return memoryEntry; + } + + /** + * + * + * @generated + */ + @Override + public CustomEntry createCustomEntry() + { + CustomEntryImpl customEntry = new CustomEntryImpl(); + return customEntry; + } + + /** + * + * + * @generated + */ + @Override + public ConfigReference createConfigReference() + { + ConfigReferenceImpl configReference = new ConfigReferenceImpl(); + return configReference; + } + + /** + * + * + * @generated + */ + @Override + public Config createConfig() + { + ConfigImpl config = new ConfigImpl(); + return config; + } + + /** + * + * + * @generated + */ + @Override + public ScopeSpecification createScopeSpecification() + { + ScopeSpecificationImpl scopeSpecification = new ScopeSpecificationImpl(); + return scopeSpecification; + } + + /** + * + * + * @generated + */ + @Override + public TypeScope createTypeScope() + { + TypeScopeImpl typeScope = new TypeScopeImpl(); + return typeScope; + } + + /** + * + * + * @generated + */ + @Override + public ClassTypeScope createClassTypeScope() + { + ClassTypeScopeImpl classTypeScope = new ClassTypeScopeImpl(); + return classTypeScope; + } + + /** + * + * + * @generated + */ + @Override + public ObjectTypeScope createObjectTypeScope() + { + ObjectTypeScopeImpl objectTypeScope = new ObjectTypeScopeImpl(); + return objectTypeScope; + } + + /** + * + * + * @generated + */ + @Override + public IntegerTypeScope createIntegerTypeScope() + { + IntegerTypeScopeImpl integerTypeScope = new IntegerTypeScopeImpl(); + return integerTypeScope; + } + + /** + * + * + * @generated + */ + @Override + public RealTypeScope createRealTypeScope() + { + RealTypeScopeImpl realTypeScope = new RealTypeScopeImpl(); + return realTypeScope; + } + + /** + * + * + * @generated + */ + @Override + public StringTypeScope createStringTypeScope() + { + StringTypeScopeImpl stringTypeScope = new StringTypeScopeImpl(); + return stringTypeScope; + } + + /** + * + * + * @generated + */ + @Override + public TypeReference createTypeReference() + { + TypeReferenceImpl typeReference = new TypeReferenceImpl(); + return typeReference; + } + + /** + * + * + * @generated + */ + @Override + public ClassReference createClassReference() + { + ClassReferenceImpl classReference = new ClassReferenceImpl(); + return classReference; + } + + /** + * + * + * @generated + */ + @Override + public ObjectReference createObjectReference() + { + ObjectReferenceImpl objectReference = new ObjectReferenceImpl(); + return objectReference; + } + + /** + * + * + * @generated + */ + @Override + public IntegerReference createIntegerReference() + { + IntegerReferenceImpl integerReference = new IntegerReferenceImpl(); + return integerReference; + } + + /** + * + * + * @generated + */ + @Override + public RealReference createRealReference() + { + RealReferenceImpl realReference = new RealReferenceImpl(); + return realReference; + } + + /** + * + * + * @generated + */ + @Override + public StringReference createStringReference() + { + StringReferenceImpl stringReference = new StringReferenceImpl(); + return stringReference; + } + + /** + * + * + * @generated + */ + @Override + public NumberSpecification createNumberSpecification() + { + NumberSpecificationImpl numberSpecification = new NumberSpecificationImpl(); + return numberSpecification; + } + + /** + * + * + * @generated + */ + @Override + public ExactNumber createExactNumber() + { + ExactNumberImpl exactNumber = new ExactNumberImpl(); + return exactNumber; + } + + /** + * + * + * @generated + */ + @Override + public IntervallNumber createIntervallNumber() + { + IntervallNumberImpl intervallNumber = new IntervallNumberImpl(); + return intervallNumber; + } + + /** + * + * + * @generated + */ + @Override + public IntEnumberation createIntEnumberation() + { + IntEnumberationImpl intEnumberation = new IntEnumberationImpl(); + return intEnumberation; + } + + /** + * + * + * @generated + */ + @Override + public RealEnumeration createRealEnumeration() + { + RealEnumerationImpl realEnumeration = new RealEnumerationImpl(); + return realEnumeration; + } + + /** + * + * + * @generated + */ + @Override + public StringEnumeration createStringEnumeration() + { + StringEnumerationImpl stringEnumeration = new StringEnumerationImpl(); + return stringEnumeration; + } + + /** + * + * + * @generated + */ + @Override + public ScopeDeclaration createScopeDeclaration() + { + ScopeDeclarationImpl scopeDeclaration = new ScopeDeclarationImpl(); + return scopeDeclaration; + } + + /** + * + * + * @generated + */ + @Override + public ScopeReference createScopeReference() + { + ScopeReferenceImpl scopeReference = new ScopeReferenceImpl(); + return scopeReference; + } + + /** + * + * + * @generated + */ + @Override + public Scope createScope() + { + ScopeImpl scope = new ScopeImpl(); + return scope; + } + + /** + * + * + * @generated + */ + @Override + public Task createTask() + { + TaskImpl task = new TaskImpl(); + return task; + } + + /** + * + * + * @generated + */ + @Override + public GenerationTask createGenerationTask() + { + GenerationTaskImpl generationTask = new GenerationTaskImpl(); + return generationTask; + } + + /** + * + * + * @generated + */ + @Override + public IntegerScope createIntegerScope() + { + IntegerScopeImpl integerScope = new IntegerScopeImpl(); + return integerScope; + } + + /** + * + * + * @generated + */ + @Override + public RealScope createRealScope() + { + RealScopeImpl realScope = new RealScopeImpl(); + return realScope; + } + + /** + * + * + * @generated + */ + @Override + public StringScope createStringScope() + { + StringScopeImpl stringScope = new StringScopeImpl(); + return stringScope; + } + + /** + * + * + * @generated + */ + public OptimizationDirection createOptimizationDirectionFromString(EDataType eDataType, String initialValue) + { + OptimizationDirection result = OptimizationDirection.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertOptimizationDirectionToString(EDataType eDataType, Object instanceValue) + { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public ComparisonOperator createComparisonOperatorFromString(EDataType eDataType, String initialValue) + { + ComparisonOperator result = ComparisonOperator.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertComparisonOperatorToString(EDataType eDataType, Object instanceValue) + { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public DocumentLevelSpecification createDocumentLevelSpecificationFromString(EDataType eDataType, String initialValue) + { + DocumentLevelSpecification result = DocumentLevelSpecification.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertDocumentLevelSpecificationToString(EDataType eDataType, Object instanceValue) + { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public Solver createSolverFromString(EDataType eDataType, String initialValue) + { + Solver result = Solver.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertSolverToString(EDataType eDataType, Object instanceValue) + { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + @Override + public ApplicationConfigurationPackage getApplicationConfigurationPackage() + { + return (ApplicationConfigurationPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static ApplicationConfigurationPackage getPackage() + { + return ApplicationConfigurationPackage.eINSTANCE; + } + +} //ApplicationConfigurationFactoryImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ApplicationConfigurationPackageImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ApplicationConfigurationPackageImpl.java index 43de4f82..73931206 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ApplicationConfigurationPackageImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ApplicationConfigurationPackageImpl.java @@ -1,3133 +1,3133 @@ -/** - * generated by Xtext 2.21.0 - */ -package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; - -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.AllPackageEntry; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.AllPatternEntry; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationFactory; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ClassReference; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ClassTypeScope; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Command; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ComparisonOperator; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Config; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigDeclaration; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigEntry; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigReference; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigSpecification; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigurationScript; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.CostEntry; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.CostObjectiveFunction; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.CustomEntry; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Declaration; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.DocumentLevelSpecification; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.DocumentationEntry; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.EPackageImport; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ExactNumber; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.File; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.FileDeclaration; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.FileReference; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.FileSpecification; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.FolderEntry; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.GenerationTask; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.GraphPattern; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.GraphPatternDeclaration; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.GraphPatternReference; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Import; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.IntEnumberation; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.IntegerReference; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.IntegerScope; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.IntegerTypeScope; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.IntervallNumber; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MemoryEntry; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Metamodel; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelDeclaration; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelElement; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelEntry; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelReference; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelSpecification; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ModelEntry; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.NumberSpecification; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectReference; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectTypeScope; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Objective; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectiveDeclaration; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectiveEntry; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectiveFunction; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectiveReference; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectiveSpecification; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.OptimizationDirection; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.OptimizationEntry; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PartialModel; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PartialModelDeclaration; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PartialModelEntry; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PartialModelReference; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PartialModelSpecification; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PatternElement; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PatternEntry; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PatternSpecification; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.RealEnumeration; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.RealReference; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.RealScope; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.RealTypeScope; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.RuntimeEntry; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Scope; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ScopeDeclaration; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ScopeReference; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ScopeSpecification; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Solver; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.StringEnumeration; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.StringReference; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.StringScope; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.StringTypeScope; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Task; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ThresholdEntry; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.TypeReference; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.TypeScope; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ViatraImport; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EEnum; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.EcorePackage; - -import org.eclipse.emf.ecore.impl.EPackageImpl; - -import org.eclipse.viatra.query.patternlanguage.emf.vql.PatternLanguagePackage; - -import org.eclipse.xtext.common.types.TypesPackage; - -import org.eclipse.xtext.xbase.XbasePackage; - -import org.eclipse.xtext.xtype.XtypePackage; - -/** - * - * An implementation of the model Package. - * - * @generated - */ -public class ApplicationConfigurationPackageImpl extends EPackageImpl implements ApplicationConfigurationPackage -{ - /** - * - * - * @generated - */ - private EClass configurationScriptEClass = null; - - /** - * - * - * @generated - */ - private EClass commandEClass = null; - - /** - * - * - * @generated - */ - private EClass importEClass = null; - - /** - * - * - * @generated - */ - private EClass ePackageImportEClass = null; - - /** - * - * - * @generated - */ - private EClass viatraImportEClass = null; - - /** - * - * - * @generated - */ - private EClass declarationEClass = null; - - /** - * - * - * @generated - */ - private EClass fileSpecificationEClass = null; - - /** - * - * - * @generated - */ - private EClass fileDeclarationEClass = null; - - /** - * - * - * @generated - */ - private EClass fileReferenceEClass = null; - - /** - * - * - * @generated - */ - private EClass fileEClass = null; - - /** - * - * - * @generated - */ - private EClass metamodelSpecificationEClass = null; - - /** - * - * - * @generated - */ - private EClass metamodelEntryEClass = null; - - /** - * - * - * @generated - */ - private EClass allPackageEntryEClass = null; - - /** - * - * - * @generated - */ - private EClass metamodelElementEClass = null; - - /** - * - * - * @generated - */ - private EClass metamodelDeclarationEClass = null; - - /** - * - * - * @generated - */ - private EClass metamodelReferenceEClass = null; - - /** - * - * - * @generated - */ - private EClass metamodelEClass = null; - - /** - * - * - * @generated - */ - private EClass partialModelSpecificationEClass = null; - - /** - * - * - * @generated - */ - private EClass partialModelEntryEClass = null; - - /** - * - * - * @generated - */ - private EClass modelEntryEClass = null; - - /** - * - * - * @generated - */ - private EClass folderEntryEClass = null; - - /** - * - * - * @generated - */ - private EClass partialModelDeclarationEClass = null; - - /** - * - * - * @generated - */ - private EClass partialModelReferenceEClass = null; - - /** - * - * - * @generated - */ - private EClass partialModelEClass = null; - - /** - * - * - * @generated - */ - private EClass patternSpecificationEClass = null; - - /** - * - * - * @generated - */ - private EClass patternEntryEClass = null; - - /** - * - * - * @generated - */ - private EClass allPatternEntryEClass = null; - - /** - * - * - * @generated - */ - private EClass patternElementEClass = null; - - /** - * - * - * @generated - */ - private EClass graphPatternDeclarationEClass = null; - - /** - * - * - * @generated - */ - private EClass graphPatternReferenceEClass = null; - - /** - * - * - * @generated - */ - private EClass graphPatternEClass = null; - - /** - * - * - * @generated - */ - private EClass objectiveSpecificationEClass = null; - - /** - * - * - * @generated - */ - private EClass objectiveEntryEClass = null; - - /** - * - * - * @generated - */ - private EClass optimizationEntryEClass = null; - - /** - * - * - * @generated - */ - private EClass thresholdEntryEClass = null; - - /** - * - * - * @generated - */ - private EClass objectiveFunctionEClass = null; - - /** - * - * - * @generated - */ - private EClass costObjectiveFunctionEClass = null; - - /** - * - * - * @generated - */ - private EClass costEntryEClass = null; - - /** - * - * - * @generated - */ - private EClass objectiveDeclarationEClass = null; - - /** - * - * - * @generated - */ - private EClass objectiveReferenceEClass = null; - - /** - * - * - * @generated - */ - private EClass objectiveEClass = null; - - /** - * - * - * @generated - */ - private EClass configSpecificationEClass = null; - - /** - * - * - * @generated - */ - private EClass configDeclarationEClass = null; - - /** - * - * - * @generated - */ - private EClass configEntryEClass = null; - - /** - * - * - * @generated - */ - private EClass documentationEntryEClass = null; - - /** - * - * - * @generated - */ - private EClass runtimeEntryEClass = null; - - /** - * - * - * @generated - */ - private EClass memoryEntryEClass = null; - - /** - * - * - * @generated - */ - private EClass customEntryEClass = null; - - /** - * - * - * @generated - */ - private EClass configReferenceEClass = null; - - /** - * - * - * @generated - */ - private EClass configEClass = null; - - /** - * - * - * @generated - */ - private EClass scopeSpecificationEClass = null; - - /** - * - * - * @generated - */ - private EClass typeScopeEClass = null; - - /** - * - * - * @generated - */ - private EClass classTypeScopeEClass = null; - - /** - * - * - * @generated - */ - private EClass objectTypeScopeEClass = null; - - /** - * - * - * @generated - */ - private EClass integerTypeScopeEClass = null; - - /** - * - * - * @generated - */ - private EClass realTypeScopeEClass = null; - - /** - * - * - * @generated - */ - private EClass stringTypeScopeEClass = null; - - /** - * - * - * @generated - */ - private EClass typeReferenceEClass = null; - - /** - * - * - * @generated - */ - private EClass classReferenceEClass = null; - - /** - * - * - * @generated - */ - private EClass objectReferenceEClass = null; - - /** - * - * - * @generated - */ - private EClass integerReferenceEClass = null; - - /** - * - * - * @generated - */ - private EClass realReferenceEClass = null; - - /** - * - * - * @generated - */ - private EClass stringReferenceEClass = null; - - /** - * - * - * @generated - */ - private EClass numberSpecificationEClass = null; - - /** - * - * - * @generated - */ - private EClass exactNumberEClass = null; - - /** - * - * - * @generated - */ - private EClass intervallNumberEClass = null; - - /** - * - * - * @generated - */ - private EClass intEnumberationEClass = null; - - /** - * - * - * @generated - */ - private EClass realEnumerationEClass = null; - - /** - * - * - * @generated - */ - private EClass stringEnumerationEClass = null; - - /** - * - * - * @generated - */ - private EClass scopeDeclarationEClass = null; - - /** - * - * - * @generated - */ - private EClass scopeReferenceEClass = null; - - /** - * - * - * @generated - */ - private EClass scopeEClass = null; - - /** - * - * - * @generated - */ - private EClass taskEClass = null; - - /** - * - * - * @generated - */ - private EClass generationTaskEClass = null; - - /** - * - * - * @generated - */ - private EClass integerScopeEClass = null; - - /** - * - * - * @generated - */ - private EClass realScopeEClass = null; - - /** - * - * - * @generated - */ - private EClass stringScopeEClass = null; - - /** - * - * - * @generated - */ - private EEnum optimizationDirectionEEnum = null; - - /** - * - * - * @generated - */ - private EEnum comparisonOperatorEEnum = null; - - /** - * - * - * @generated - */ - private EEnum documentLevelSpecificationEEnum = null; - - /** - * - * - * @generated - */ - private EEnum solverEEnum = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#eNS_URI - * @see #init() - * @generated - */ - private ApplicationConfigurationPackageImpl() - { - super(eNS_URI, ApplicationConfigurationFactory.eINSTANCE); - } - - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

This method is used to initialize {@link ApplicationConfigurationPackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static ApplicationConfigurationPackage init() - { - if (isInited) return (ApplicationConfigurationPackage)EPackage.Registry.INSTANCE.getEPackage(ApplicationConfigurationPackage.eNS_URI); - - // Obtain or create and register package - Object registeredApplicationConfigurationPackage = EPackage.Registry.INSTANCE.get(eNS_URI); - ApplicationConfigurationPackageImpl theApplicationConfigurationPackage = registeredApplicationConfigurationPackage instanceof ApplicationConfigurationPackageImpl ? (ApplicationConfigurationPackageImpl)registeredApplicationConfigurationPackage : new ApplicationConfigurationPackageImpl(); - - isInited = true; - - // Initialize simple dependencies - EcorePackage.eINSTANCE.eClass(); - PatternLanguagePackage.eINSTANCE.eClass(); - XtypePackage.eINSTANCE.eClass(); - TypesPackage.eINSTANCE.eClass(); - XbasePackage.eINSTANCE.eClass(); - - // Create package meta-data objects - theApplicationConfigurationPackage.createPackageContents(); - - // Initialize created meta-data - theApplicationConfigurationPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theApplicationConfigurationPackage.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(ApplicationConfigurationPackage.eNS_URI, theApplicationConfigurationPackage); - return theApplicationConfigurationPackage; - } - - /** - * - * - * @generated - */ - @Override - public EClass getConfigurationScript() - { - return configurationScriptEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getConfigurationScript_Imports() - { - return (EReference)configurationScriptEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EReference getConfigurationScript_Commands() - { - return (EReference)configurationScriptEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EClass getCommand() - { - return commandEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getImport() - { - return importEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getEPackageImport() - { - return ePackageImportEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getEPackageImport_ImportedPackage() - { - return (EReference)ePackageImportEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getViatraImport() - { - return viatraImportEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getViatraImport_ImportedViatra() - { - return (EReference)viatraImportEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getDeclaration() - { - return declarationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getDeclaration_Name() - { - return (EAttribute)declarationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getFileSpecification() - { - return fileSpecificationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getFileSpecification_Path() - { - return (EAttribute)fileSpecificationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getFileDeclaration() - { - return fileDeclarationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getFileDeclaration_Specification() - { - return (EReference)fileDeclarationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getFileReference() - { - return fileReferenceEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getFileReference_Referred() - { - return (EReference)fileReferenceEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getFile() - { - return fileEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getMetamodelSpecification() - { - return metamodelSpecificationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getMetamodelSpecification_Entries() - { - return (EReference)metamodelSpecificationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getMetamodelEntry() - { - return metamodelEntryEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getMetamodelEntry_Package() - { - return (EReference)metamodelEntryEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getAllPackageEntry() - { - return allPackageEntryEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getAllPackageEntry_Exclusion() - { - return (EReference)allPackageEntryEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getMetamodelElement() - { - return metamodelElementEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getMetamodelElement_Classifier() - { - return (EReference)metamodelElementEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EReference getMetamodelElement_Feature() - { - return (EReference)metamodelElementEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EClass getMetamodelDeclaration() - { - return metamodelDeclarationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getMetamodelDeclaration_Specification() - { - return (EReference)metamodelDeclarationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getMetamodelReference() - { - return metamodelReferenceEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getMetamodelReference_Referred() - { - return (EReference)metamodelReferenceEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getMetamodel() - { - return metamodelEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getPartialModelSpecification() - { - return partialModelSpecificationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getPartialModelSpecification_Entry() - { - return (EReference)partialModelSpecificationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getPartialModelEntry() - { - return partialModelEntryEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getPartialModelEntry_Path() - { - return (EReference)partialModelEntryEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getModelEntry() - { - return modelEntryEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getFolderEntry() - { - return folderEntryEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getFolderEntry_Exclusion() - { - return (EReference)folderEntryEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getPartialModelDeclaration() - { - return partialModelDeclarationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getPartialModelDeclaration_Specification() - { - return (EReference)partialModelDeclarationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getPartialModelReference() - { - return partialModelReferenceEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getPartialModelReference_Referred() - { - return (EReference)partialModelReferenceEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getPartialModel() - { - return partialModelEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getPatternSpecification() - { - return patternSpecificationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getPatternSpecification_Entries() - { - return (EReference)patternSpecificationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getPatternEntry() - { - return patternEntryEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getPatternEntry_Package() - { - return (EReference)patternEntryEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getAllPatternEntry() - { - return allPatternEntryEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getAllPatternEntry_Exclusuion() - { - return (EReference)allPatternEntryEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getPatternElement() - { - return patternElementEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getPatternElement_Pattern() - { - return (EReference)patternElementEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getGraphPatternDeclaration() - { - return graphPatternDeclarationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getGraphPatternDeclaration_Specification() - { - return (EReference)graphPatternDeclarationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getGraphPatternReference() - { - return graphPatternReferenceEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getGraphPatternReference_Referred() - { - return (EReference)graphPatternReferenceEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getGraphPattern() - { - return graphPatternEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getObjectiveSpecification() - { - return objectiveSpecificationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getObjectiveSpecification_Entries() - { - return (EReference)objectiveSpecificationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getObjectiveEntry() - { - return objectiveEntryEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getObjectiveEntry_Function() - { - return (EReference)objectiveEntryEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getOptimizationEntry() - { - return optimizationEntryEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getOptimizationEntry_Direction() - { - return (EAttribute)optimizationEntryEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getThresholdEntry() - { - return thresholdEntryEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getThresholdEntry_Operator() - { - return (EAttribute)thresholdEntryEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getThresholdEntry_Threshold() - { - return (EAttribute)thresholdEntryEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EClass getObjectiveFunction() - { - return objectiveFunctionEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getCostObjectiveFunction() - { - return costObjectiveFunctionEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getCostObjectiveFunction_Entries() - { - return (EReference)costObjectiveFunctionEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getCostEntry() - { - return costEntryEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getCostEntry_PatternElement() - { - return (EReference)costEntryEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getCostEntry_Weight() - { - return (EAttribute)costEntryEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EClass getObjectiveDeclaration() - { - return objectiveDeclarationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getObjectiveDeclaration_Specification() - { - return (EReference)objectiveDeclarationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getObjectiveReference() - { - return objectiveReferenceEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getObjectiveReference_Referred() - { - return (EReference)objectiveReferenceEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getObjective() - { - return objectiveEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getConfigSpecification() - { - return configSpecificationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getConfigSpecification_Entries() - { - return (EReference)configSpecificationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getConfigDeclaration() - { - return configDeclarationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getConfigDeclaration_Specification() - { - return (EReference)configDeclarationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getConfigEntry() - { - return configEntryEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getDocumentationEntry() - { - return documentationEntryEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getDocumentationEntry_Level() - { - return (EAttribute)documentationEntryEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getRuntimeEntry() - { - return runtimeEntryEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getRuntimeEntry_MillisecLimit() - { - return (EAttribute)runtimeEntryEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getMemoryEntry() - { - return memoryEntryEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getMemoryEntry_MegabyteLimit() - { - return (EAttribute)memoryEntryEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getCustomEntry() - { - return customEntryEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getCustomEntry_Key() - { - return (EAttribute)customEntryEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getCustomEntry_Value() - { - return (EAttribute)customEntryEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EClass getConfigReference() - { - return configReferenceEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getConfigReference_Config() - { - return (EReference)configReferenceEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getConfig() - { - return configEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getScopeSpecification() - { - return scopeSpecificationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getScopeSpecification_Scopes() - { - return (EReference)scopeSpecificationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getTypeScope() - { - return typeScopeEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getTypeScope_SetsNew() - { - return (EAttribute)typeScopeEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getTypeScope_SetsSum() - { - return (EAttribute)typeScopeEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EReference getTypeScope_Number() - { - return (EReference)typeScopeEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - @Override - public EClass getClassTypeScope() - { - return classTypeScopeEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getClassTypeScope_Type() - { - return (EReference)classTypeScopeEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getObjectTypeScope() - { - return objectTypeScopeEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getObjectTypeScope_Type() - { - return (EReference)objectTypeScopeEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getIntegerTypeScope() - { - return integerTypeScopeEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getIntegerTypeScope_Type() - { - return (EReference)integerTypeScopeEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getRealTypeScope() - { - return realTypeScopeEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getRealTypeScope_Type() - { - return (EReference)realTypeScopeEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getStringTypeScope() - { - return stringTypeScopeEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getStringTypeScope_Type() - { - return (EReference)stringTypeScopeEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getTypeReference() - { - return typeReferenceEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getClassReference() - { - return classReferenceEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getClassReference_Element() - { - return (EReference)classReferenceEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getObjectReference() - { - return objectReferenceEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getIntegerReference() - { - return integerReferenceEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getRealReference() - { - return realReferenceEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getStringReference() - { - return stringReferenceEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getNumberSpecification() - { - return numberSpecificationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getExactNumber() - { - return exactNumberEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getExactNumber_ExactNumber() - { - return (EAttribute)exactNumberEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getExactNumber_ExactUnlimited() - { - return (EAttribute)exactNumberEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EClass getIntervallNumber() - { - return intervallNumberEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getIntervallNumber_Min() - { - return (EAttribute)intervallNumberEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getIntervallNumber_MaxNumber() - { - return (EAttribute)intervallNumberEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getIntervallNumber_MaxUnlimited() - { - return (EAttribute)intervallNumberEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - @Override - public EClass getIntEnumberation() - { - return intEnumberationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getIntEnumberation_Entry() - { - return (EAttribute)intEnumberationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getRealEnumeration() - { - return realEnumerationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getRealEnumeration_Entry() - { - return (EAttribute)realEnumerationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getStringEnumeration() - { - return stringEnumerationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getStringEnumeration_Entry() - { - return (EAttribute)stringEnumerationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getScopeDeclaration() - { - return scopeDeclarationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getScopeDeclaration_Specification() - { - return (EReference)scopeDeclarationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getScopeReference() - { - return scopeReferenceEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getScopeReference_Referred() - { - return (EReference)scopeReferenceEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getScope() - { - return scopeEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getTask() - { - return taskEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getGenerationTask() - { - return generationTaskEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getGenerationTask_Metamodel() - { - return (EReference)generationTaskEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EReference getGenerationTask_PartialModel() - { - return (EReference)generationTaskEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EReference getGenerationTask_Patterns() - { - return (EReference)generationTaskEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - @Override - public EReference getGenerationTask_Objectives() - { - return (EReference)generationTaskEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - @Override - public EReference getGenerationTask_Scope() - { - return (EReference)generationTaskEClass.getEStructuralFeatures().get(4); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getGenerationTask_NumberSpecified() - { - return (EAttribute)generationTaskEClass.getEStructuralFeatures().get(5); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getGenerationTask_Number() - { - return (EAttribute)generationTaskEClass.getEStructuralFeatures().get(6); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getGenerationTask_RunSpecified() - { - return (EAttribute)generationTaskEClass.getEStructuralFeatures().get(7); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getGenerationTask_Runs() - { - return (EAttribute)generationTaskEClass.getEStructuralFeatures().get(8); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getGenerationTask_Solver() - { - return (EAttribute)generationTaskEClass.getEStructuralFeatures().get(9); - } - - /** - * - * - * @generated - */ - @Override - public EReference getGenerationTask_Config() - { - return (EReference)generationTaskEClass.getEStructuralFeatures().get(10); - } - - /** - * - * - * @generated - */ - @Override - public EReference getGenerationTask_DebugFolder() - { - return (EReference)generationTaskEClass.getEStructuralFeatures().get(11); - } - - /** - * - * - * @generated - */ - @Override - public EReference getGenerationTask_TargetLogFile() - { - return (EReference)generationTaskEClass.getEStructuralFeatures().get(12); - } - - /** - * - * - * @generated - */ - @Override - public EReference getGenerationTask_TargetStatisticsFile() - { - return (EReference)generationTaskEClass.getEStructuralFeatures().get(13); - } - - /** - * - * - * @generated - */ - @Override - public EReference getGenerationTask_TagetFolder() - { - return (EReference)generationTaskEClass.getEStructuralFeatures().get(14); - } - - /** - * - * - * @generated - */ - @Override - public EClass getIntegerScope() - { - return integerScopeEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getRealScope() - { - return realScopeEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getStringScope() - { - return stringScopeEClass; - } - - /** - * - * - * @generated - */ - @Override - public EEnum getOptimizationDirection() - { - return optimizationDirectionEEnum; - } - - /** - * - * - * @generated - */ - @Override - public EEnum getComparisonOperator() - { - return comparisonOperatorEEnum; - } - - /** - * - * - * @generated - */ - @Override - public EEnum getDocumentLevelSpecification() - { - return documentLevelSpecificationEEnum; - } - - /** - * - * - * @generated - */ - @Override - public EEnum getSolver() - { - return solverEEnum; - } - - /** - * - * - * @generated - */ - @Override - public ApplicationConfigurationFactory getApplicationConfigurationFactory() - { - return (ApplicationConfigurationFactory)getEFactoryInstance(); - } - - /** - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void createPackageContents() - { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - configurationScriptEClass = createEClass(CONFIGURATION_SCRIPT); - createEReference(configurationScriptEClass, CONFIGURATION_SCRIPT__IMPORTS); - createEReference(configurationScriptEClass, CONFIGURATION_SCRIPT__COMMANDS); - - commandEClass = createEClass(COMMAND); - - importEClass = createEClass(IMPORT); - - ePackageImportEClass = createEClass(EPACKAGE_IMPORT); - createEReference(ePackageImportEClass, EPACKAGE_IMPORT__IMPORTED_PACKAGE); - - viatraImportEClass = createEClass(VIATRA_IMPORT); - createEReference(viatraImportEClass, VIATRA_IMPORT__IMPORTED_VIATRA); - - declarationEClass = createEClass(DECLARATION); - createEAttribute(declarationEClass, DECLARATION__NAME); - - fileSpecificationEClass = createEClass(FILE_SPECIFICATION); - createEAttribute(fileSpecificationEClass, FILE_SPECIFICATION__PATH); - - fileDeclarationEClass = createEClass(FILE_DECLARATION); - createEReference(fileDeclarationEClass, FILE_DECLARATION__SPECIFICATION); - - fileReferenceEClass = createEClass(FILE_REFERENCE); - createEReference(fileReferenceEClass, FILE_REFERENCE__REFERRED); - - fileEClass = createEClass(FILE); - - metamodelSpecificationEClass = createEClass(METAMODEL_SPECIFICATION); - createEReference(metamodelSpecificationEClass, METAMODEL_SPECIFICATION__ENTRIES); - - metamodelEntryEClass = createEClass(METAMODEL_ENTRY); - createEReference(metamodelEntryEClass, METAMODEL_ENTRY__PACKAGE); - - allPackageEntryEClass = createEClass(ALL_PACKAGE_ENTRY); - createEReference(allPackageEntryEClass, ALL_PACKAGE_ENTRY__EXCLUSION); - - metamodelElementEClass = createEClass(METAMODEL_ELEMENT); - createEReference(metamodelElementEClass, METAMODEL_ELEMENT__CLASSIFIER); - createEReference(metamodelElementEClass, METAMODEL_ELEMENT__FEATURE); - - metamodelDeclarationEClass = createEClass(METAMODEL_DECLARATION); - createEReference(metamodelDeclarationEClass, METAMODEL_DECLARATION__SPECIFICATION); - - metamodelReferenceEClass = createEClass(METAMODEL_REFERENCE); - createEReference(metamodelReferenceEClass, METAMODEL_REFERENCE__REFERRED); - - metamodelEClass = createEClass(METAMODEL); - - partialModelSpecificationEClass = createEClass(PARTIAL_MODEL_SPECIFICATION); - createEReference(partialModelSpecificationEClass, PARTIAL_MODEL_SPECIFICATION__ENTRY); - - partialModelEntryEClass = createEClass(PARTIAL_MODEL_ENTRY); - createEReference(partialModelEntryEClass, PARTIAL_MODEL_ENTRY__PATH); - - modelEntryEClass = createEClass(MODEL_ENTRY); - - folderEntryEClass = createEClass(FOLDER_ENTRY); - createEReference(folderEntryEClass, FOLDER_ENTRY__EXCLUSION); - - partialModelDeclarationEClass = createEClass(PARTIAL_MODEL_DECLARATION); - createEReference(partialModelDeclarationEClass, PARTIAL_MODEL_DECLARATION__SPECIFICATION); - - partialModelReferenceEClass = createEClass(PARTIAL_MODEL_REFERENCE); - createEReference(partialModelReferenceEClass, PARTIAL_MODEL_REFERENCE__REFERRED); - - partialModelEClass = createEClass(PARTIAL_MODEL); - - patternSpecificationEClass = createEClass(PATTERN_SPECIFICATION); - createEReference(patternSpecificationEClass, PATTERN_SPECIFICATION__ENTRIES); - - patternEntryEClass = createEClass(PATTERN_ENTRY); - createEReference(patternEntryEClass, PATTERN_ENTRY__PACKAGE); - - allPatternEntryEClass = createEClass(ALL_PATTERN_ENTRY); - createEReference(allPatternEntryEClass, ALL_PATTERN_ENTRY__EXCLUSUION); - - patternElementEClass = createEClass(PATTERN_ELEMENT); - createEReference(patternElementEClass, PATTERN_ELEMENT__PATTERN); - - graphPatternDeclarationEClass = createEClass(GRAPH_PATTERN_DECLARATION); - createEReference(graphPatternDeclarationEClass, GRAPH_PATTERN_DECLARATION__SPECIFICATION); - - graphPatternReferenceEClass = createEClass(GRAPH_PATTERN_REFERENCE); - createEReference(graphPatternReferenceEClass, GRAPH_PATTERN_REFERENCE__REFERRED); - - graphPatternEClass = createEClass(GRAPH_PATTERN); - - objectiveSpecificationEClass = createEClass(OBJECTIVE_SPECIFICATION); - createEReference(objectiveSpecificationEClass, OBJECTIVE_SPECIFICATION__ENTRIES); - - objectiveEntryEClass = createEClass(OBJECTIVE_ENTRY); - createEReference(objectiveEntryEClass, OBJECTIVE_ENTRY__FUNCTION); - - optimizationEntryEClass = createEClass(OPTIMIZATION_ENTRY); - createEAttribute(optimizationEntryEClass, OPTIMIZATION_ENTRY__DIRECTION); - - thresholdEntryEClass = createEClass(THRESHOLD_ENTRY); - createEAttribute(thresholdEntryEClass, THRESHOLD_ENTRY__OPERATOR); - createEAttribute(thresholdEntryEClass, THRESHOLD_ENTRY__THRESHOLD); - - objectiveFunctionEClass = createEClass(OBJECTIVE_FUNCTION); - - costObjectiveFunctionEClass = createEClass(COST_OBJECTIVE_FUNCTION); - createEReference(costObjectiveFunctionEClass, COST_OBJECTIVE_FUNCTION__ENTRIES); - - costEntryEClass = createEClass(COST_ENTRY); - createEReference(costEntryEClass, COST_ENTRY__PATTERN_ELEMENT); - createEAttribute(costEntryEClass, COST_ENTRY__WEIGHT); - - objectiveDeclarationEClass = createEClass(OBJECTIVE_DECLARATION); - createEReference(objectiveDeclarationEClass, OBJECTIVE_DECLARATION__SPECIFICATION); - - objectiveReferenceEClass = createEClass(OBJECTIVE_REFERENCE); - createEReference(objectiveReferenceEClass, OBJECTIVE_REFERENCE__REFERRED); - - objectiveEClass = createEClass(OBJECTIVE); - - configSpecificationEClass = createEClass(CONFIG_SPECIFICATION); - createEReference(configSpecificationEClass, CONFIG_SPECIFICATION__ENTRIES); - - configDeclarationEClass = createEClass(CONFIG_DECLARATION); - createEReference(configDeclarationEClass, CONFIG_DECLARATION__SPECIFICATION); - - configEntryEClass = createEClass(CONFIG_ENTRY); - - documentationEntryEClass = createEClass(DOCUMENTATION_ENTRY); - createEAttribute(documentationEntryEClass, DOCUMENTATION_ENTRY__LEVEL); - - runtimeEntryEClass = createEClass(RUNTIME_ENTRY); - createEAttribute(runtimeEntryEClass, RUNTIME_ENTRY__MILLISEC_LIMIT); - - memoryEntryEClass = createEClass(MEMORY_ENTRY); - createEAttribute(memoryEntryEClass, MEMORY_ENTRY__MEGABYTE_LIMIT); - - customEntryEClass = createEClass(CUSTOM_ENTRY); - createEAttribute(customEntryEClass, CUSTOM_ENTRY__KEY); - createEAttribute(customEntryEClass, CUSTOM_ENTRY__VALUE); - - configReferenceEClass = createEClass(CONFIG_REFERENCE); - createEReference(configReferenceEClass, CONFIG_REFERENCE__CONFIG); - - configEClass = createEClass(CONFIG); - - scopeSpecificationEClass = createEClass(SCOPE_SPECIFICATION); - createEReference(scopeSpecificationEClass, SCOPE_SPECIFICATION__SCOPES); - - typeScopeEClass = createEClass(TYPE_SCOPE); - createEAttribute(typeScopeEClass, TYPE_SCOPE__SETS_NEW); - createEAttribute(typeScopeEClass, TYPE_SCOPE__SETS_SUM); - createEReference(typeScopeEClass, TYPE_SCOPE__NUMBER); - - classTypeScopeEClass = createEClass(CLASS_TYPE_SCOPE); - createEReference(classTypeScopeEClass, CLASS_TYPE_SCOPE__TYPE); - - objectTypeScopeEClass = createEClass(OBJECT_TYPE_SCOPE); - createEReference(objectTypeScopeEClass, OBJECT_TYPE_SCOPE__TYPE); - - integerTypeScopeEClass = createEClass(INTEGER_TYPE_SCOPE); - createEReference(integerTypeScopeEClass, INTEGER_TYPE_SCOPE__TYPE); - - realTypeScopeEClass = createEClass(REAL_TYPE_SCOPE); - createEReference(realTypeScopeEClass, REAL_TYPE_SCOPE__TYPE); - - stringTypeScopeEClass = createEClass(STRING_TYPE_SCOPE); - createEReference(stringTypeScopeEClass, STRING_TYPE_SCOPE__TYPE); - - typeReferenceEClass = createEClass(TYPE_REFERENCE); - - classReferenceEClass = createEClass(CLASS_REFERENCE); - createEReference(classReferenceEClass, CLASS_REFERENCE__ELEMENT); - - objectReferenceEClass = createEClass(OBJECT_REFERENCE); - - integerReferenceEClass = createEClass(INTEGER_REFERENCE); - - realReferenceEClass = createEClass(REAL_REFERENCE); - - stringReferenceEClass = createEClass(STRING_REFERENCE); - - numberSpecificationEClass = createEClass(NUMBER_SPECIFICATION); - - exactNumberEClass = createEClass(EXACT_NUMBER); - createEAttribute(exactNumberEClass, EXACT_NUMBER__EXACT_NUMBER); - createEAttribute(exactNumberEClass, EXACT_NUMBER__EXACT_UNLIMITED); - - intervallNumberEClass = createEClass(INTERVALL_NUMBER); - createEAttribute(intervallNumberEClass, INTERVALL_NUMBER__MIN); - createEAttribute(intervallNumberEClass, INTERVALL_NUMBER__MAX_NUMBER); - createEAttribute(intervallNumberEClass, INTERVALL_NUMBER__MAX_UNLIMITED); - - intEnumberationEClass = createEClass(INT_ENUMBERATION); - createEAttribute(intEnumberationEClass, INT_ENUMBERATION__ENTRY); - - realEnumerationEClass = createEClass(REAL_ENUMERATION); - createEAttribute(realEnumerationEClass, REAL_ENUMERATION__ENTRY); - - stringEnumerationEClass = createEClass(STRING_ENUMERATION); - createEAttribute(stringEnumerationEClass, STRING_ENUMERATION__ENTRY); - - scopeDeclarationEClass = createEClass(SCOPE_DECLARATION); - createEReference(scopeDeclarationEClass, SCOPE_DECLARATION__SPECIFICATION); - - scopeReferenceEClass = createEClass(SCOPE_REFERENCE); - createEReference(scopeReferenceEClass, SCOPE_REFERENCE__REFERRED); - - scopeEClass = createEClass(SCOPE); - - taskEClass = createEClass(TASK); - - generationTaskEClass = createEClass(GENERATION_TASK); - createEReference(generationTaskEClass, GENERATION_TASK__METAMODEL); - createEReference(generationTaskEClass, GENERATION_TASK__PARTIAL_MODEL); - createEReference(generationTaskEClass, GENERATION_TASK__PATTERNS); - createEReference(generationTaskEClass, GENERATION_TASK__OBJECTIVES); - createEReference(generationTaskEClass, GENERATION_TASK__SCOPE); - createEAttribute(generationTaskEClass, GENERATION_TASK__NUMBER_SPECIFIED); - createEAttribute(generationTaskEClass, GENERATION_TASK__NUMBER); - createEAttribute(generationTaskEClass, GENERATION_TASK__RUN_SPECIFIED); - createEAttribute(generationTaskEClass, GENERATION_TASK__RUNS); - createEAttribute(generationTaskEClass, GENERATION_TASK__SOLVER); - createEReference(generationTaskEClass, GENERATION_TASK__CONFIG); - createEReference(generationTaskEClass, GENERATION_TASK__DEBUG_FOLDER); - createEReference(generationTaskEClass, GENERATION_TASK__TARGET_LOG_FILE); - createEReference(generationTaskEClass, GENERATION_TASK__TARGET_STATISTICS_FILE); - createEReference(generationTaskEClass, GENERATION_TASK__TAGET_FOLDER); - - integerScopeEClass = createEClass(INTEGER_SCOPE); - - realScopeEClass = createEClass(REAL_SCOPE); - - stringScopeEClass = createEClass(STRING_SCOPE); - - // Create enums - optimizationDirectionEEnum = createEEnum(OPTIMIZATION_DIRECTION); - comparisonOperatorEEnum = createEEnum(COMPARISON_OPERATOR); - documentLevelSpecificationEEnum = createEEnum(DOCUMENT_LEVEL_SPECIFICATION); - solverEEnum = createEEnum(SOLVER); - } - - /** - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void initializePackageContents() - { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); - PatternLanguagePackage thePatternLanguagePackage = (PatternLanguagePackage)EPackage.Registry.INSTANCE.getEPackage(PatternLanguagePackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - ePackageImportEClass.getESuperTypes().add(this.getImport()); - viatraImportEClass.getESuperTypes().add(this.getImport()); - declarationEClass.getESuperTypes().add(this.getCommand()); - fileSpecificationEClass.getESuperTypes().add(this.getFile()); - fileDeclarationEClass.getESuperTypes().add(this.getDeclaration()); - fileReferenceEClass.getESuperTypes().add(this.getFile()); - metamodelSpecificationEClass.getESuperTypes().add(this.getMetamodel()); - allPackageEntryEClass.getESuperTypes().add(this.getMetamodelEntry()); - metamodelElementEClass.getESuperTypes().add(this.getMetamodelEntry()); - metamodelDeclarationEClass.getESuperTypes().add(this.getDeclaration()); - metamodelReferenceEClass.getESuperTypes().add(this.getMetamodel()); - partialModelSpecificationEClass.getESuperTypes().add(this.getPartialModel()); - modelEntryEClass.getESuperTypes().add(this.getPartialModelEntry()); - folderEntryEClass.getESuperTypes().add(this.getPartialModelEntry()); - partialModelDeclarationEClass.getESuperTypes().add(this.getDeclaration()); - partialModelReferenceEClass.getESuperTypes().add(this.getPartialModel()); - patternSpecificationEClass.getESuperTypes().add(this.getGraphPattern()); - allPatternEntryEClass.getESuperTypes().add(this.getPatternEntry()); - patternElementEClass.getESuperTypes().add(this.getPatternEntry()); - graphPatternDeclarationEClass.getESuperTypes().add(this.getDeclaration()); - graphPatternReferenceEClass.getESuperTypes().add(this.getGraphPattern()); - objectiveSpecificationEClass.getESuperTypes().add(this.getObjective()); - optimizationEntryEClass.getESuperTypes().add(this.getObjectiveEntry()); - thresholdEntryEClass.getESuperTypes().add(this.getObjectiveEntry()); - costObjectiveFunctionEClass.getESuperTypes().add(this.getObjectiveFunction()); - objectiveDeclarationEClass.getESuperTypes().add(this.getDeclaration()); - objectiveReferenceEClass.getESuperTypes().add(this.getObjective()); - configSpecificationEClass.getESuperTypes().add(this.getConfig()); - configDeclarationEClass.getESuperTypes().add(this.getDeclaration()); - documentationEntryEClass.getESuperTypes().add(this.getConfigEntry()); - runtimeEntryEClass.getESuperTypes().add(this.getConfigEntry()); - memoryEntryEClass.getESuperTypes().add(this.getConfigEntry()); - customEntryEClass.getESuperTypes().add(this.getConfigEntry()); - configReferenceEClass.getESuperTypes().add(this.getConfig()); - scopeSpecificationEClass.getESuperTypes().add(this.getScope()); - classTypeScopeEClass.getESuperTypes().add(this.getTypeScope()); - objectTypeScopeEClass.getESuperTypes().add(this.getTypeScope()); - integerTypeScopeEClass.getESuperTypes().add(this.getTypeScope()); - realTypeScopeEClass.getESuperTypes().add(this.getTypeScope()); - stringTypeScopeEClass.getESuperTypes().add(this.getTypeScope()); - classReferenceEClass.getESuperTypes().add(this.getTypeReference()); - objectReferenceEClass.getESuperTypes().add(this.getTypeReference()); - integerReferenceEClass.getESuperTypes().add(this.getTypeReference()); - realReferenceEClass.getESuperTypes().add(this.getTypeReference()); - stringReferenceEClass.getESuperTypes().add(this.getTypeReference()); - exactNumberEClass.getESuperTypes().add(this.getNumberSpecification()); - intervallNumberEClass.getESuperTypes().add(this.getNumberSpecification()); - intEnumberationEClass.getESuperTypes().add(this.getNumberSpecification()); - realEnumerationEClass.getESuperTypes().add(this.getNumberSpecification()); - stringEnumerationEClass.getESuperTypes().add(this.getNumberSpecification()); - scopeDeclarationEClass.getESuperTypes().add(this.getDeclaration()); - scopeReferenceEClass.getESuperTypes().add(this.getScope()); - taskEClass.getESuperTypes().add(this.getCommand()); - generationTaskEClass.getESuperTypes().add(this.getTask()); - integerScopeEClass.getESuperTypes().add(this.getIntegerReference()); - realScopeEClass.getESuperTypes().add(this.getRealReference()); - stringScopeEClass.getESuperTypes().add(this.getStringReference()); - - // Initialize classes and features; add operations and parameters - initEClass(configurationScriptEClass, ConfigurationScript.class, "ConfigurationScript", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getConfigurationScript_Imports(), this.getImport(), null, "imports", null, 0, -1, ConfigurationScript.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getConfigurationScript_Commands(), this.getCommand(), null, "commands", null, 0, -1, ConfigurationScript.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(commandEClass, Command.class, "Command", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(importEClass, Import.class, "Import", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(ePackageImportEClass, EPackageImport.class, "EPackageImport", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getEPackageImport_ImportedPackage(), theEcorePackage.getEPackage(), null, "importedPackage", null, 0, 1, EPackageImport.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(viatraImportEClass, ViatraImport.class, "ViatraImport", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getViatraImport_ImportedViatra(), thePatternLanguagePackage.getPatternModel(), null, "importedViatra", null, 0, 1, ViatraImport.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(declarationEClass, Declaration.class, "Declaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getDeclaration_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Declaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(fileSpecificationEClass, FileSpecification.class, "FileSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getFileSpecification_Path(), theEcorePackage.getEString(), "path", null, 0, 1, FileSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(fileDeclarationEClass, FileDeclaration.class, "FileDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getFileDeclaration_Specification(), this.getFileSpecification(), null, "specification", null, 0, 1, FileDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(fileReferenceEClass, FileReference.class, "FileReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getFileReference_Referred(), this.getFileDeclaration(), null, "referred", null, 0, 1, FileReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(fileEClass, File.class, "File", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(metamodelSpecificationEClass, MetamodelSpecification.class, "MetamodelSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getMetamodelSpecification_Entries(), this.getMetamodelEntry(), null, "entries", null, 0, -1, MetamodelSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(metamodelEntryEClass, MetamodelEntry.class, "MetamodelEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getMetamodelEntry_Package(), theEcorePackage.getEPackage(), null, "package", null, 0, 1, MetamodelEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(allPackageEntryEClass, AllPackageEntry.class, "AllPackageEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getAllPackageEntry_Exclusion(), this.getMetamodelElement(), null, "exclusion", null, 0, -1, AllPackageEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(metamodelElementEClass, MetamodelElement.class, "MetamodelElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getMetamodelElement_Classifier(), theEcorePackage.getEClassifier(), null, "classifier", null, 0, 1, MetamodelElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMetamodelElement_Feature(), theEcorePackage.getENamedElement(), null, "feature", null, 0, 1, MetamodelElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(metamodelDeclarationEClass, MetamodelDeclaration.class, "MetamodelDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getMetamodelDeclaration_Specification(), this.getMetamodelSpecification(), null, "specification", null, 0, 1, MetamodelDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(metamodelReferenceEClass, MetamodelReference.class, "MetamodelReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getMetamodelReference_Referred(), this.getMetamodelDeclaration(), null, "referred", null, 0, 1, MetamodelReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(metamodelEClass, Metamodel.class, "Metamodel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(partialModelSpecificationEClass, PartialModelSpecification.class, "PartialModelSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getPartialModelSpecification_Entry(), this.getPartialModelEntry(), null, "entry", null, 0, -1, PartialModelSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(partialModelEntryEClass, PartialModelEntry.class, "PartialModelEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getPartialModelEntry_Path(), this.getFile(), null, "path", null, 0, 1, PartialModelEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(modelEntryEClass, ModelEntry.class, "ModelEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(folderEntryEClass, FolderEntry.class, "FolderEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getFolderEntry_Exclusion(), this.getModelEntry(), null, "exclusion", null, 0, -1, FolderEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(partialModelDeclarationEClass, PartialModelDeclaration.class, "PartialModelDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getPartialModelDeclaration_Specification(), this.getPartialModelSpecification(), null, "specification", null, 0, 1, PartialModelDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(partialModelReferenceEClass, PartialModelReference.class, "PartialModelReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getPartialModelReference_Referred(), this.getPartialModelDeclaration(), null, "referred", null, 0, 1, PartialModelReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(partialModelEClass, PartialModel.class, "PartialModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(patternSpecificationEClass, PatternSpecification.class, "PatternSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getPatternSpecification_Entries(), this.getPatternEntry(), null, "entries", null, 0, -1, PatternSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(patternEntryEClass, PatternEntry.class, "PatternEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getPatternEntry_Package(), thePatternLanguagePackage.getPatternModel(), null, "package", null, 0, 1, PatternEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(allPatternEntryEClass, AllPatternEntry.class, "AllPatternEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getAllPatternEntry_Exclusuion(), this.getPatternElement(), null, "exclusuion", null, 0, -1, AllPatternEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(patternElementEClass, PatternElement.class, "PatternElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getPatternElement_Pattern(), thePatternLanguagePackage.getPattern(), null, "pattern", null, 0, 1, PatternElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(graphPatternDeclarationEClass, GraphPatternDeclaration.class, "GraphPatternDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getGraphPatternDeclaration_Specification(), this.getPatternSpecification(), null, "specification", null, 0, 1, GraphPatternDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(graphPatternReferenceEClass, GraphPatternReference.class, "GraphPatternReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getGraphPatternReference_Referred(), this.getGraphPatternDeclaration(), null, "referred", null, 0, 1, GraphPatternReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(graphPatternEClass, GraphPattern.class, "GraphPattern", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(objectiveSpecificationEClass, ObjectiveSpecification.class, "ObjectiveSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getObjectiveSpecification_Entries(), this.getObjectiveEntry(), null, "entries", null, 0, -1, ObjectiveSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(objectiveEntryEClass, ObjectiveEntry.class, "ObjectiveEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getObjectiveEntry_Function(), this.getObjectiveFunction(), null, "function", null, 0, 1, ObjectiveEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(optimizationEntryEClass, OptimizationEntry.class, "OptimizationEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getOptimizationEntry_Direction(), this.getOptimizationDirection(), "direction", null, 0, 1, OptimizationEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(thresholdEntryEClass, ThresholdEntry.class, "ThresholdEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getThresholdEntry_Operator(), this.getComparisonOperator(), "operator", null, 0, 1, ThresholdEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getThresholdEntry_Threshold(), theEcorePackage.getEBigDecimal(), "threshold", null, 0, 1, ThresholdEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(objectiveFunctionEClass, ObjectiveFunction.class, "ObjectiveFunction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(costObjectiveFunctionEClass, CostObjectiveFunction.class, "CostObjectiveFunction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getCostObjectiveFunction_Entries(), this.getCostEntry(), null, "entries", null, 0, -1, CostObjectiveFunction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(costEntryEClass, CostEntry.class, "CostEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getCostEntry_PatternElement(), this.getPatternElement(), null, "patternElement", null, 0, 1, CostEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getCostEntry_Weight(), theEcorePackage.getEInt(), "weight", null, 0, 1, CostEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(objectiveDeclarationEClass, ObjectiveDeclaration.class, "ObjectiveDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getObjectiveDeclaration_Specification(), this.getObjectiveSpecification(), null, "specification", null, 0, 1, ObjectiveDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(objectiveReferenceEClass, ObjectiveReference.class, "ObjectiveReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getObjectiveReference_Referred(), this.getObjectiveDeclaration(), null, "referred", null, 0, 1, ObjectiveReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(objectiveEClass, Objective.class, "Objective", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(configSpecificationEClass, ConfigSpecification.class, "ConfigSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getConfigSpecification_Entries(), this.getConfigEntry(), null, "entries", null, 0, -1, ConfigSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(configDeclarationEClass, ConfigDeclaration.class, "ConfigDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getConfigDeclaration_Specification(), this.getConfigSpecification(), null, "specification", null, 0, 1, ConfigDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(configEntryEClass, ConfigEntry.class, "ConfigEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(documentationEntryEClass, DocumentationEntry.class, "DocumentationEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getDocumentationEntry_Level(), this.getDocumentLevelSpecification(), "level", null, 0, 1, DocumentationEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(runtimeEntryEClass, RuntimeEntry.class, "RuntimeEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getRuntimeEntry_MillisecLimit(), theEcorePackage.getEInt(), "millisecLimit", null, 0, 1, RuntimeEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(memoryEntryEClass, MemoryEntry.class, "MemoryEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMemoryEntry_MegabyteLimit(), theEcorePackage.getEInt(), "megabyteLimit", null, 0, 1, MemoryEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(customEntryEClass, CustomEntry.class, "CustomEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getCustomEntry_Key(), theEcorePackage.getEString(), "key", null, 0, 1, CustomEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getCustomEntry_Value(), theEcorePackage.getEString(), "value", null, 0, 1, CustomEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(configReferenceEClass, ConfigReference.class, "ConfigReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getConfigReference_Config(), this.getConfigDeclaration(), null, "config", null, 0, 1, ConfigReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(configEClass, Config.class, "Config", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(scopeSpecificationEClass, ScopeSpecification.class, "ScopeSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getScopeSpecification_Scopes(), this.getTypeScope(), null, "scopes", null, 0, -1, ScopeSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(typeScopeEClass, TypeScope.class, "TypeScope", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getTypeScope_SetsNew(), theEcorePackage.getEBoolean(), "setsNew", null, 0, 1, TypeScope.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getTypeScope_SetsSum(), theEcorePackage.getEBoolean(), "setsSum", null, 0, 1, TypeScope.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getTypeScope_Number(), this.getNumberSpecification(), null, "number", null, 0, 1, TypeScope.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(classTypeScopeEClass, ClassTypeScope.class, "ClassTypeScope", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getClassTypeScope_Type(), this.getClassReference(), null, "type", null, 0, 1, ClassTypeScope.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(objectTypeScopeEClass, ObjectTypeScope.class, "ObjectTypeScope", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getObjectTypeScope_Type(), this.getObjectReference(), null, "type", null, 0, 1, ObjectTypeScope.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(integerTypeScopeEClass, IntegerTypeScope.class, "IntegerTypeScope", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getIntegerTypeScope_Type(), this.getIntegerReference(), null, "type", null, 0, 1, IntegerTypeScope.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(realTypeScopeEClass, RealTypeScope.class, "RealTypeScope", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getRealTypeScope_Type(), this.getRealReference(), null, "type", null, 0, 1, RealTypeScope.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(stringTypeScopeEClass, StringTypeScope.class, "StringTypeScope", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getStringTypeScope_Type(), this.getStringReference(), null, "type", null, 0, 1, StringTypeScope.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(typeReferenceEClass, TypeReference.class, "TypeReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(classReferenceEClass, ClassReference.class, "ClassReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getClassReference_Element(), this.getMetamodelElement(), null, "element", null, 0, 1, ClassReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(objectReferenceEClass, ObjectReference.class, "ObjectReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(integerReferenceEClass, IntegerReference.class, "IntegerReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(realReferenceEClass, RealReference.class, "RealReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(stringReferenceEClass, StringReference.class, "StringReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(numberSpecificationEClass, NumberSpecification.class, "NumberSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(exactNumberEClass, ExactNumber.class, "ExactNumber", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getExactNumber_ExactNumber(), theEcorePackage.getEInt(), "exactNumber", null, 0, 1, ExactNumber.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getExactNumber_ExactUnlimited(), theEcorePackage.getEBoolean(), "exactUnlimited", null, 0, 1, ExactNumber.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(intervallNumberEClass, IntervallNumber.class, "IntervallNumber", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getIntervallNumber_Min(), theEcorePackage.getEInt(), "min", null, 0, 1, IntervallNumber.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getIntervallNumber_MaxNumber(), theEcorePackage.getEInt(), "maxNumber", null, 0, 1, IntervallNumber.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getIntervallNumber_MaxUnlimited(), theEcorePackage.getEBoolean(), "maxUnlimited", null, 0, 1, IntervallNumber.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(intEnumberationEClass, IntEnumberation.class, "IntEnumberation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getIntEnumberation_Entry(), theEcorePackage.getEInt(), "entry", null, 0, -1, IntEnumberation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(realEnumerationEClass, RealEnumeration.class, "RealEnumeration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getRealEnumeration_Entry(), theEcorePackage.getEBigDecimal(), "entry", null, 0, -1, RealEnumeration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(stringEnumerationEClass, StringEnumeration.class, "StringEnumeration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getStringEnumeration_Entry(), theEcorePackage.getEString(), "entry", null, 0, -1, StringEnumeration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(scopeDeclarationEClass, ScopeDeclaration.class, "ScopeDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getScopeDeclaration_Specification(), this.getScopeSpecification(), null, "specification", null, 0, 1, ScopeDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(scopeReferenceEClass, ScopeReference.class, "ScopeReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getScopeReference_Referred(), this.getScopeDeclaration(), null, "referred", null, 0, 1, ScopeReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(scopeEClass, Scope.class, "Scope", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(taskEClass, Task.class, "Task", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(generationTaskEClass, GenerationTask.class, "GenerationTask", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getGenerationTask_Metamodel(), this.getMetamodel(), null, "metamodel", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getGenerationTask_PartialModel(), this.getPartialModel(), null, "partialModel", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getGenerationTask_Patterns(), this.getGraphPattern(), null, "patterns", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getGenerationTask_Objectives(), this.getObjective(), null, "objectives", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getGenerationTask_Scope(), this.getScope(), null, "scope", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getGenerationTask_NumberSpecified(), theEcorePackage.getEBoolean(), "numberSpecified", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getGenerationTask_Number(), theEcorePackage.getEInt(), "number", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getGenerationTask_RunSpecified(), theEcorePackage.getEBoolean(), "runSpecified", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getGenerationTask_Runs(), theEcorePackage.getEInt(), "runs", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getGenerationTask_Solver(), this.getSolver(), "solver", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getGenerationTask_Config(), this.getConfig(), null, "config", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getGenerationTask_DebugFolder(), this.getFile(), null, "debugFolder", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getGenerationTask_TargetLogFile(), this.getFile(), null, "targetLogFile", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getGenerationTask_TargetStatisticsFile(), this.getFile(), null, "targetStatisticsFile", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getGenerationTask_TagetFolder(), this.getFile(), null, "tagetFolder", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(integerScopeEClass, IntegerScope.class, "IntegerScope", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(realScopeEClass, RealScope.class, "RealScope", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(stringScopeEClass, StringScope.class, "StringScope", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - // Initialize enums and add enum literals - initEEnum(optimizationDirectionEEnum, OptimizationDirection.class, "OptimizationDirection"); - addEEnumLiteral(optimizationDirectionEEnum, OptimizationDirection.MINIMIZE); - addEEnumLiteral(optimizationDirectionEEnum, OptimizationDirection.MAXIMIZE); - - initEEnum(comparisonOperatorEEnum, ComparisonOperator.class, "ComparisonOperator"); - addEEnumLiteral(comparisonOperatorEEnum, ComparisonOperator.LESS); - addEEnumLiteral(comparisonOperatorEEnum, ComparisonOperator.GREATER); - addEEnumLiteral(comparisonOperatorEEnum, ComparisonOperator.LESS_EQUALS); - addEEnumLiteral(comparisonOperatorEEnum, ComparisonOperator.GREATER_EQUALS); - - initEEnum(documentLevelSpecificationEEnum, DocumentLevelSpecification.class, "DocumentLevelSpecification"); - addEEnumLiteral(documentLevelSpecificationEEnum, DocumentLevelSpecification.NONE); - addEEnumLiteral(documentLevelSpecificationEEnum, DocumentLevelSpecification.NORMAL); - addEEnumLiteral(documentLevelSpecificationEEnum, DocumentLevelSpecification.FULL); - - initEEnum(solverEEnum, Solver.class, "Solver"); - addEEnumLiteral(solverEEnum, Solver.SMT_SOLVER); - addEEnumLiteral(solverEEnum, Solver.ALLOY_SOLVER); - addEEnumLiteral(solverEEnum, Solver.VIATRA_SOLVER); - - // Create resource - createResource(eNS_URI); - } - -} //ApplicationConfigurationPackageImpl +/** + * generated by Xtext 2.21.0 + */ +package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; + +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.AllPackageEntry; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.AllPatternEntry; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationFactory; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ClassReference; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ClassTypeScope; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Command; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ComparisonOperator; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Config; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigDeclaration; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigEntry; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigReference; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigSpecification; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigurationScript; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.CostEntry; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.CostObjectiveFunction; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.CustomEntry; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Declaration; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.DocumentLevelSpecification; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.DocumentationEntry; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.EPackageImport; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ExactNumber; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.File; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.FileDeclaration; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.FileReference; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.FileSpecification; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.FolderEntry; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.GenerationTask; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.GraphPattern; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.GraphPatternDeclaration; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.GraphPatternReference; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Import; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.IntEnumberation; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.IntegerReference; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.IntegerScope; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.IntegerTypeScope; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.IntervallNumber; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MemoryEntry; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Metamodel; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelDeclaration; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelElement; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelEntry; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelReference; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelSpecification; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ModelEntry; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.NumberSpecification; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectReference; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectTypeScope; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Objective; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectiveDeclaration; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectiveEntry; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectiveFunction; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectiveReference; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectiveSpecification; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.OptimizationDirection; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.OptimizationEntry; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PartialModel; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PartialModelDeclaration; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PartialModelEntry; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PartialModelReference; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PartialModelSpecification; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PatternElement; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PatternEntry; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PatternSpecification; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.RealEnumeration; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.RealReference; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.RealScope; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.RealTypeScope; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.RuntimeEntry; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Scope; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ScopeDeclaration; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ScopeReference; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ScopeSpecification; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Solver; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.StringEnumeration; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.StringReference; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.StringScope; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.StringTypeScope; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Task; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ThresholdEntry; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.TypeReference; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.TypeScope; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ViatraImport; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.EcorePackage; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +import org.eclipse.viatra.query.patternlanguage.emf.vql.PatternLanguagePackage; + +import org.eclipse.xtext.common.types.TypesPackage; + +import org.eclipse.xtext.xbase.XbasePackage; + +import org.eclipse.xtext.xtype.XtypePackage; + +/** + * + * An implementation of the model Package. + * + * @generated + */ +public class ApplicationConfigurationPackageImpl extends EPackageImpl implements ApplicationConfigurationPackage +{ + /** + * + * + * @generated + */ + private EClass configurationScriptEClass = null; + + /** + * + * + * @generated + */ + private EClass commandEClass = null; + + /** + * + * + * @generated + */ + private EClass importEClass = null; + + /** + * + * + * @generated + */ + private EClass ePackageImportEClass = null; + + /** + * + * + * @generated + */ + private EClass viatraImportEClass = null; + + /** + * + * + * @generated + */ + private EClass declarationEClass = null; + + /** + * + * + * @generated + */ + private EClass fileSpecificationEClass = null; + + /** + * + * + * @generated + */ + private EClass fileDeclarationEClass = null; + + /** + * + * + * @generated + */ + private EClass fileReferenceEClass = null; + + /** + * + * + * @generated + */ + private EClass fileEClass = null; + + /** + * + * + * @generated + */ + private EClass metamodelSpecificationEClass = null; + + /** + * + * + * @generated + */ + private EClass metamodelEntryEClass = null; + + /** + * + * + * @generated + */ + private EClass allPackageEntryEClass = null; + + /** + * + * + * @generated + */ + private EClass metamodelElementEClass = null; + + /** + * + * + * @generated + */ + private EClass metamodelDeclarationEClass = null; + + /** + * + * + * @generated + */ + private EClass metamodelReferenceEClass = null; + + /** + * + * + * @generated + */ + private EClass metamodelEClass = null; + + /** + * + * + * @generated + */ + private EClass partialModelSpecificationEClass = null; + + /** + * + * + * @generated + */ + private EClass partialModelEntryEClass = null; + + /** + * + * + * @generated + */ + private EClass modelEntryEClass = null; + + /** + * + * + * @generated + */ + private EClass folderEntryEClass = null; + + /** + * + * + * @generated + */ + private EClass partialModelDeclarationEClass = null; + + /** + * + * + * @generated + */ + private EClass partialModelReferenceEClass = null; + + /** + * + * + * @generated + */ + private EClass partialModelEClass = null; + + /** + * + * + * @generated + */ + private EClass patternSpecificationEClass = null; + + /** + * + * + * @generated + */ + private EClass patternEntryEClass = null; + + /** + * + * + * @generated + */ + private EClass allPatternEntryEClass = null; + + /** + * + * + * @generated + */ + private EClass patternElementEClass = null; + + /** + * + * + * @generated + */ + private EClass graphPatternDeclarationEClass = null; + + /** + * + * + * @generated + */ + private EClass graphPatternReferenceEClass = null; + + /** + * + * + * @generated + */ + private EClass graphPatternEClass = null; + + /** + * + * + * @generated + */ + private EClass objectiveSpecificationEClass = null; + + /** + * + * + * @generated + */ + private EClass objectiveEntryEClass = null; + + /** + * + * + * @generated + */ + private EClass optimizationEntryEClass = null; + + /** + * + * + * @generated + */ + private EClass thresholdEntryEClass = null; + + /** + * + * + * @generated + */ + private EClass objectiveFunctionEClass = null; + + /** + * + * + * @generated + */ + private EClass costObjectiveFunctionEClass = null; + + /** + * + * + * @generated + */ + private EClass costEntryEClass = null; + + /** + * + * + * @generated + */ + private EClass objectiveDeclarationEClass = null; + + /** + * + * + * @generated + */ + private EClass objectiveReferenceEClass = null; + + /** + * + * + * @generated + */ + private EClass objectiveEClass = null; + + /** + * + * + * @generated + */ + private EClass configSpecificationEClass = null; + + /** + * + * + * @generated + */ + private EClass configDeclarationEClass = null; + + /** + * + * + * @generated + */ + private EClass configEntryEClass = null; + + /** + * + * + * @generated + */ + private EClass documentationEntryEClass = null; + + /** + * + * + * @generated + */ + private EClass runtimeEntryEClass = null; + + /** + * + * + * @generated + */ + private EClass memoryEntryEClass = null; + + /** + * + * + * @generated + */ + private EClass customEntryEClass = null; + + /** + * + * + * @generated + */ + private EClass configReferenceEClass = null; + + /** + * + * + * @generated + */ + private EClass configEClass = null; + + /** + * + * + * @generated + */ + private EClass scopeSpecificationEClass = null; + + /** + * + * + * @generated + */ + private EClass typeScopeEClass = null; + + /** + * + * + * @generated + */ + private EClass classTypeScopeEClass = null; + + /** + * + * + * @generated + */ + private EClass objectTypeScopeEClass = null; + + /** + * + * + * @generated + */ + private EClass integerTypeScopeEClass = null; + + /** + * + * + * @generated + */ + private EClass realTypeScopeEClass = null; + + /** + * + * + * @generated + */ + private EClass stringTypeScopeEClass = null; + + /** + * + * + * @generated + */ + private EClass typeReferenceEClass = null; + + /** + * + * + * @generated + */ + private EClass classReferenceEClass = null; + + /** + * + * + * @generated + */ + private EClass objectReferenceEClass = null; + + /** + * + * + * @generated + */ + private EClass integerReferenceEClass = null; + + /** + * + * + * @generated + */ + private EClass realReferenceEClass = null; + + /** + * + * + * @generated + */ + private EClass stringReferenceEClass = null; + + /** + * + * + * @generated + */ + private EClass numberSpecificationEClass = null; + + /** + * + * + * @generated + */ + private EClass exactNumberEClass = null; + + /** + * + * + * @generated + */ + private EClass intervallNumberEClass = null; + + /** + * + * + * @generated + */ + private EClass intEnumberationEClass = null; + + /** + * + * + * @generated + */ + private EClass realEnumerationEClass = null; + + /** + * + * + * @generated + */ + private EClass stringEnumerationEClass = null; + + /** + * + * + * @generated + */ + private EClass scopeDeclarationEClass = null; + + /** + * + * + * @generated + */ + private EClass scopeReferenceEClass = null; + + /** + * + * + * @generated + */ + private EClass scopeEClass = null; + + /** + * + * + * @generated + */ + private EClass taskEClass = null; + + /** + * + * + * @generated + */ + private EClass generationTaskEClass = null; + + /** + * + * + * @generated + */ + private EClass integerScopeEClass = null; + + /** + * + * + * @generated + */ + private EClass realScopeEClass = null; + + /** + * + * + * @generated + */ + private EClass stringScopeEClass = null; + + /** + * + * + * @generated + */ + private EEnum optimizationDirectionEEnum = null; + + /** + * + * + * @generated + */ + private EEnum comparisonOperatorEEnum = null; + + /** + * + * + * @generated + */ + private EEnum documentLevelSpecificationEEnum = null; + + /** + * + * + * @generated + */ + private EEnum solverEEnum = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#eNS_URI + * @see #init() + * @generated + */ + private ApplicationConfigurationPackageImpl() + { + super(eNS_URI, ApplicationConfigurationFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

This method is used to initialize {@link ApplicationConfigurationPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static ApplicationConfigurationPackage init() + { + if (isInited) return (ApplicationConfigurationPackage)EPackage.Registry.INSTANCE.getEPackage(ApplicationConfigurationPackage.eNS_URI); + + // Obtain or create and register package + Object registeredApplicationConfigurationPackage = EPackage.Registry.INSTANCE.get(eNS_URI); + ApplicationConfigurationPackageImpl theApplicationConfigurationPackage = registeredApplicationConfigurationPackage instanceof ApplicationConfigurationPackageImpl ? (ApplicationConfigurationPackageImpl)registeredApplicationConfigurationPackage : new ApplicationConfigurationPackageImpl(); + + isInited = true; + + // Initialize simple dependencies + EcorePackage.eINSTANCE.eClass(); + PatternLanguagePackage.eINSTANCE.eClass(); + XtypePackage.eINSTANCE.eClass(); + TypesPackage.eINSTANCE.eClass(); + XbasePackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theApplicationConfigurationPackage.createPackageContents(); + + // Initialize created meta-data + theApplicationConfigurationPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theApplicationConfigurationPackage.freeze(); + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(ApplicationConfigurationPackage.eNS_URI, theApplicationConfigurationPackage); + return theApplicationConfigurationPackage; + } + + /** + * + * + * @generated + */ + @Override + public EClass getConfigurationScript() + { + return configurationScriptEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getConfigurationScript_Imports() + { + return (EReference)configurationScriptEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EReference getConfigurationScript_Commands() + { + return (EReference)configurationScriptEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + @Override + public EClass getCommand() + { + return commandEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getImport() + { + return importEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getEPackageImport() + { + return ePackageImportEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getEPackageImport_ImportedPackage() + { + return (EReference)ePackageImportEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getViatraImport() + { + return viatraImportEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getViatraImport_ImportedViatra() + { + return (EReference)viatraImportEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getDeclaration() + { + return declarationEClass; + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getDeclaration_Name() + { + return (EAttribute)declarationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getFileSpecification() + { + return fileSpecificationEClass; + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getFileSpecification_Path() + { + return (EAttribute)fileSpecificationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getFileDeclaration() + { + return fileDeclarationEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getFileDeclaration_Specification() + { + return (EReference)fileDeclarationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getFileReference() + { + return fileReferenceEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getFileReference_Referred() + { + return (EReference)fileReferenceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getFile() + { + return fileEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getMetamodelSpecification() + { + return metamodelSpecificationEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getMetamodelSpecification_Entries() + { + return (EReference)metamodelSpecificationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getMetamodelEntry() + { + return metamodelEntryEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getMetamodelEntry_Package() + { + return (EReference)metamodelEntryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getAllPackageEntry() + { + return allPackageEntryEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getAllPackageEntry_Exclusion() + { + return (EReference)allPackageEntryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getMetamodelElement() + { + return metamodelElementEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getMetamodelElement_Classifier() + { + return (EReference)metamodelElementEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EReference getMetamodelElement_Feature() + { + return (EReference)metamodelElementEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + @Override + public EClass getMetamodelDeclaration() + { + return metamodelDeclarationEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getMetamodelDeclaration_Specification() + { + return (EReference)metamodelDeclarationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getMetamodelReference() + { + return metamodelReferenceEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getMetamodelReference_Referred() + { + return (EReference)metamodelReferenceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getMetamodel() + { + return metamodelEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getPartialModelSpecification() + { + return partialModelSpecificationEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getPartialModelSpecification_Entry() + { + return (EReference)partialModelSpecificationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getPartialModelEntry() + { + return partialModelEntryEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getPartialModelEntry_Path() + { + return (EReference)partialModelEntryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getModelEntry() + { + return modelEntryEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getFolderEntry() + { + return folderEntryEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getFolderEntry_Exclusion() + { + return (EReference)folderEntryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getPartialModelDeclaration() + { + return partialModelDeclarationEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getPartialModelDeclaration_Specification() + { + return (EReference)partialModelDeclarationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getPartialModelReference() + { + return partialModelReferenceEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getPartialModelReference_Referred() + { + return (EReference)partialModelReferenceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getPartialModel() + { + return partialModelEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getPatternSpecification() + { + return patternSpecificationEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getPatternSpecification_Entries() + { + return (EReference)patternSpecificationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getPatternEntry() + { + return patternEntryEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getPatternEntry_Package() + { + return (EReference)patternEntryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getAllPatternEntry() + { + return allPatternEntryEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getAllPatternEntry_Exclusuion() + { + return (EReference)allPatternEntryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getPatternElement() + { + return patternElementEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getPatternElement_Pattern() + { + return (EReference)patternElementEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getGraphPatternDeclaration() + { + return graphPatternDeclarationEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getGraphPatternDeclaration_Specification() + { + return (EReference)graphPatternDeclarationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getGraphPatternReference() + { + return graphPatternReferenceEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getGraphPatternReference_Referred() + { + return (EReference)graphPatternReferenceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getGraphPattern() + { + return graphPatternEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getObjectiveSpecification() + { + return objectiveSpecificationEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getObjectiveSpecification_Entries() + { + return (EReference)objectiveSpecificationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getObjectiveEntry() + { + return objectiveEntryEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getObjectiveEntry_Function() + { + return (EReference)objectiveEntryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getOptimizationEntry() + { + return optimizationEntryEClass; + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getOptimizationEntry_Direction() + { + return (EAttribute)optimizationEntryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getThresholdEntry() + { + return thresholdEntryEClass; + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getThresholdEntry_Operator() + { + return (EAttribute)thresholdEntryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getThresholdEntry_Threshold() + { + return (EAttribute)thresholdEntryEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + @Override + public EClass getObjectiveFunction() + { + return objectiveFunctionEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getCostObjectiveFunction() + { + return costObjectiveFunctionEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getCostObjectiveFunction_Entries() + { + return (EReference)costObjectiveFunctionEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getCostEntry() + { + return costEntryEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getCostEntry_PatternElement() + { + return (EReference)costEntryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getCostEntry_Weight() + { + return (EAttribute)costEntryEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + @Override + public EClass getObjectiveDeclaration() + { + return objectiveDeclarationEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getObjectiveDeclaration_Specification() + { + return (EReference)objectiveDeclarationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getObjectiveReference() + { + return objectiveReferenceEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getObjectiveReference_Referred() + { + return (EReference)objectiveReferenceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getObjective() + { + return objectiveEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getConfigSpecification() + { + return configSpecificationEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getConfigSpecification_Entries() + { + return (EReference)configSpecificationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getConfigDeclaration() + { + return configDeclarationEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getConfigDeclaration_Specification() + { + return (EReference)configDeclarationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getConfigEntry() + { + return configEntryEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getDocumentationEntry() + { + return documentationEntryEClass; + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getDocumentationEntry_Level() + { + return (EAttribute)documentationEntryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getRuntimeEntry() + { + return runtimeEntryEClass; + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getRuntimeEntry_MillisecLimit() + { + return (EAttribute)runtimeEntryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getMemoryEntry() + { + return memoryEntryEClass; + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getMemoryEntry_MegabyteLimit() + { + return (EAttribute)memoryEntryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getCustomEntry() + { + return customEntryEClass; + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getCustomEntry_Key() + { + return (EAttribute)customEntryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getCustomEntry_Value() + { + return (EAttribute)customEntryEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + @Override + public EClass getConfigReference() + { + return configReferenceEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getConfigReference_Config() + { + return (EReference)configReferenceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getConfig() + { + return configEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getScopeSpecification() + { + return scopeSpecificationEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getScopeSpecification_Scopes() + { + return (EReference)scopeSpecificationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getTypeScope() + { + return typeScopeEClass; + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getTypeScope_SetsNew() + { + return (EAttribute)typeScopeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getTypeScope_SetsSum() + { + return (EAttribute)typeScopeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + @Override + public EReference getTypeScope_Number() + { + return (EReference)typeScopeEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + @Override + public EClass getClassTypeScope() + { + return classTypeScopeEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getClassTypeScope_Type() + { + return (EReference)classTypeScopeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getObjectTypeScope() + { + return objectTypeScopeEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getObjectTypeScope_Type() + { + return (EReference)objectTypeScopeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getIntegerTypeScope() + { + return integerTypeScopeEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getIntegerTypeScope_Type() + { + return (EReference)integerTypeScopeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getRealTypeScope() + { + return realTypeScopeEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getRealTypeScope_Type() + { + return (EReference)realTypeScopeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getStringTypeScope() + { + return stringTypeScopeEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getStringTypeScope_Type() + { + return (EReference)stringTypeScopeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getTypeReference() + { + return typeReferenceEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getClassReference() + { + return classReferenceEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getClassReference_Element() + { + return (EReference)classReferenceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getObjectReference() + { + return objectReferenceEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getIntegerReference() + { + return integerReferenceEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getRealReference() + { + return realReferenceEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getStringReference() + { + return stringReferenceEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getNumberSpecification() + { + return numberSpecificationEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getExactNumber() + { + return exactNumberEClass; + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getExactNumber_ExactNumber() + { + return (EAttribute)exactNumberEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getExactNumber_ExactUnlimited() + { + return (EAttribute)exactNumberEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + @Override + public EClass getIntervallNumber() + { + return intervallNumberEClass; + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getIntervallNumber_Min() + { + return (EAttribute)intervallNumberEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getIntervallNumber_MaxNumber() + { + return (EAttribute)intervallNumberEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getIntervallNumber_MaxUnlimited() + { + return (EAttribute)intervallNumberEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + @Override + public EClass getIntEnumberation() + { + return intEnumberationEClass; + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getIntEnumberation_Entry() + { + return (EAttribute)intEnumberationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getRealEnumeration() + { + return realEnumerationEClass; + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getRealEnumeration_Entry() + { + return (EAttribute)realEnumerationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getStringEnumeration() + { + return stringEnumerationEClass; + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getStringEnumeration_Entry() + { + return (EAttribute)stringEnumerationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getScopeDeclaration() + { + return scopeDeclarationEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getScopeDeclaration_Specification() + { + return (EReference)scopeDeclarationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getScopeReference() + { + return scopeReferenceEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getScopeReference_Referred() + { + return (EReference)scopeReferenceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getScope() + { + return scopeEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getTask() + { + return taskEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getGenerationTask() + { + return generationTaskEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getGenerationTask_Metamodel() + { + return (EReference)generationTaskEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EReference getGenerationTask_PartialModel() + { + return (EReference)generationTaskEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + @Override + public EReference getGenerationTask_Patterns() + { + return (EReference)generationTaskEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + @Override + public EReference getGenerationTask_Objectives() + { + return (EReference)generationTaskEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + @Override + public EReference getGenerationTask_Scope() + { + return (EReference)generationTaskEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getGenerationTask_NumberSpecified() + { + return (EAttribute)generationTaskEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getGenerationTask_Number() + { + return (EAttribute)generationTaskEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getGenerationTask_RunSpecified() + { + return (EAttribute)generationTaskEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getGenerationTask_Runs() + { + return (EAttribute)generationTaskEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getGenerationTask_Solver() + { + return (EAttribute)generationTaskEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + @Override + public EReference getGenerationTask_Config() + { + return (EReference)generationTaskEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + @Override + public EReference getGenerationTask_DebugFolder() + { + return (EReference)generationTaskEClass.getEStructuralFeatures().get(11); + } + + /** + * + * + * @generated + */ + @Override + public EReference getGenerationTask_TargetLogFile() + { + return (EReference)generationTaskEClass.getEStructuralFeatures().get(12); + } + + /** + * + * + * @generated + */ + @Override + public EReference getGenerationTask_TargetStatisticsFile() + { + return (EReference)generationTaskEClass.getEStructuralFeatures().get(13); + } + + /** + * + * + * @generated + */ + @Override + public EReference getGenerationTask_TagetFolder() + { + return (EReference)generationTaskEClass.getEStructuralFeatures().get(14); + } + + /** + * + * + * @generated + */ + @Override + public EClass getIntegerScope() + { + return integerScopeEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getRealScope() + { + return realScopeEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getStringScope() + { + return stringScopeEClass; + } + + /** + * + * + * @generated + */ + @Override + public EEnum getOptimizationDirection() + { + return optimizationDirectionEEnum; + } + + /** + * + * + * @generated + */ + @Override + public EEnum getComparisonOperator() + { + return comparisonOperatorEEnum; + } + + /** + * + * + * @generated + */ + @Override + public EEnum getDocumentLevelSpecification() + { + return documentLevelSpecificationEEnum; + } + + /** + * + * + * @generated + */ + @Override + public EEnum getSolver() + { + return solverEEnum; + } + + /** + * + * + * @generated + */ + @Override + public ApplicationConfigurationFactory getApplicationConfigurationFactory() + { + return (ApplicationConfigurationFactory)getEFactoryInstance(); + } + + /** + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void createPackageContents() + { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + configurationScriptEClass = createEClass(CONFIGURATION_SCRIPT); + createEReference(configurationScriptEClass, CONFIGURATION_SCRIPT__IMPORTS); + createEReference(configurationScriptEClass, CONFIGURATION_SCRIPT__COMMANDS); + + commandEClass = createEClass(COMMAND); + + importEClass = createEClass(IMPORT); + + ePackageImportEClass = createEClass(EPACKAGE_IMPORT); + createEReference(ePackageImportEClass, EPACKAGE_IMPORT__IMPORTED_PACKAGE); + + viatraImportEClass = createEClass(VIATRA_IMPORT); + createEReference(viatraImportEClass, VIATRA_IMPORT__IMPORTED_VIATRA); + + declarationEClass = createEClass(DECLARATION); + createEAttribute(declarationEClass, DECLARATION__NAME); + + fileSpecificationEClass = createEClass(FILE_SPECIFICATION); + createEAttribute(fileSpecificationEClass, FILE_SPECIFICATION__PATH); + + fileDeclarationEClass = createEClass(FILE_DECLARATION); + createEReference(fileDeclarationEClass, FILE_DECLARATION__SPECIFICATION); + + fileReferenceEClass = createEClass(FILE_REFERENCE); + createEReference(fileReferenceEClass, FILE_REFERENCE__REFERRED); + + fileEClass = createEClass(FILE); + + metamodelSpecificationEClass = createEClass(METAMODEL_SPECIFICATION); + createEReference(metamodelSpecificationEClass, METAMODEL_SPECIFICATION__ENTRIES); + + metamodelEntryEClass = createEClass(METAMODEL_ENTRY); + createEReference(metamodelEntryEClass, METAMODEL_ENTRY__PACKAGE); + + allPackageEntryEClass = createEClass(ALL_PACKAGE_ENTRY); + createEReference(allPackageEntryEClass, ALL_PACKAGE_ENTRY__EXCLUSION); + + metamodelElementEClass = createEClass(METAMODEL_ELEMENT); + createEReference(metamodelElementEClass, METAMODEL_ELEMENT__CLASSIFIER); + createEReference(metamodelElementEClass, METAMODEL_ELEMENT__FEATURE); + + metamodelDeclarationEClass = createEClass(METAMODEL_DECLARATION); + createEReference(metamodelDeclarationEClass, METAMODEL_DECLARATION__SPECIFICATION); + + metamodelReferenceEClass = createEClass(METAMODEL_REFERENCE); + createEReference(metamodelReferenceEClass, METAMODEL_REFERENCE__REFERRED); + + metamodelEClass = createEClass(METAMODEL); + + partialModelSpecificationEClass = createEClass(PARTIAL_MODEL_SPECIFICATION); + createEReference(partialModelSpecificationEClass, PARTIAL_MODEL_SPECIFICATION__ENTRY); + + partialModelEntryEClass = createEClass(PARTIAL_MODEL_ENTRY); + createEReference(partialModelEntryEClass, PARTIAL_MODEL_ENTRY__PATH); + + modelEntryEClass = createEClass(MODEL_ENTRY); + + folderEntryEClass = createEClass(FOLDER_ENTRY); + createEReference(folderEntryEClass, FOLDER_ENTRY__EXCLUSION); + + partialModelDeclarationEClass = createEClass(PARTIAL_MODEL_DECLARATION); + createEReference(partialModelDeclarationEClass, PARTIAL_MODEL_DECLARATION__SPECIFICATION); + + partialModelReferenceEClass = createEClass(PARTIAL_MODEL_REFERENCE); + createEReference(partialModelReferenceEClass, PARTIAL_MODEL_REFERENCE__REFERRED); + + partialModelEClass = createEClass(PARTIAL_MODEL); + + patternSpecificationEClass = createEClass(PATTERN_SPECIFICATION); + createEReference(patternSpecificationEClass, PATTERN_SPECIFICATION__ENTRIES); + + patternEntryEClass = createEClass(PATTERN_ENTRY); + createEReference(patternEntryEClass, PATTERN_ENTRY__PACKAGE); + + allPatternEntryEClass = createEClass(ALL_PATTERN_ENTRY); + createEReference(allPatternEntryEClass, ALL_PATTERN_ENTRY__EXCLUSUION); + + patternElementEClass = createEClass(PATTERN_ELEMENT); + createEReference(patternElementEClass, PATTERN_ELEMENT__PATTERN); + + graphPatternDeclarationEClass = createEClass(GRAPH_PATTERN_DECLARATION); + createEReference(graphPatternDeclarationEClass, GRAPH_PATTERN_DECLARATION__SPECIFICATION); + + graphPatternReferenceEClass = createEClass(GRAPH_PATTERN_REFERENCE); + createEReference(graphPatternReferenceEClass, GRAPH_PATTERN_REFERENCE__REFERRED); + + graphPatternEClass = createEClass(GRAPH_PATTERN); + + objectiveSpecificationEClass = createEClass(OBJECTIVE_SPECIFICATION); + createEReference(objectiveSpecificationEClass, OBJECTIVE_SPECIFICATION__ENTRIES); + + objectiveEntryEClass = createEClass(OBJECTIVE_ENTRY); + createEReference(objectiveEntryEClass, OBJECTIVE_ENTRY__FUNCTION); + + optimizationEntryEClass = createEClass(OPTIMIZATION_ENTRY); + createEAttribute(optimizationEntryEClass, OPTIMIZATION_ENTRY__DIRECTION); + + thresholdEntryEClass = createEClass(THRESHOLD_ENTRY); + createEAttribute(thresholdEntryEClass, THRESHOLD_ENTRY__OPERATOR); + createEAttribute(thresholdEntryEClass, THRESHOLD_ENTRY__THRESHOLD); + + objectiveFunctionEClass = createEClass(OBJECTIVE_FUNCTION); + + costObjectiveFunctionEClass = createEClass(COST_OBJECTIVE_FUNCTION); + createEReference(costObjectiveFunctionEClass, COST_OBJECTIVE_FUNCTION__ENTRIES); + + costEntryEClass = createEClass(COST_ENTRY); + createEReference(costEntryEClass, COST_ENTRY__PATTERN_ELEMENT); + createEAttribute(costEntryEClass, COST_ENTRY__WEIGHT); + + objectiveDeclarationEClass = createEClass(OBJECTIVE_DECLARATION); + createEReference(objectiveDeclarationEClass, OBJECTIVE_DECLARATION__SPECIFICATION); + + objectiveReferenceEClass = createEClass(OBJECTIVE_REFERENCE); + createEReference(objectiveReferenceEClass, OBJECTIVE_REFERENCE__REFERRED); + + objectiveEClass = createEClass(OBJECTIVE); + + configSpecificationEClass = createEClass(CONFIG_SPECIFICATION); + createEReference(configSpecificationEClass, CONFIG_SPECIFICATION__ENTRIES); + + configDeclarationEClass = createEClass(CONFIG_DECLARATION); + createEReference(configDeclarationEClass, CONFIG_DECLARATION__SPECIFICATION); + + configEntryEClass = createEClass(CONFIG_ENTRY); + + documentationEntryEClass = createEClass(DOCUMENTATION_ENTRY); + createEAttribute(documentationEntryEClass, DOCUMENTATION_ENTRY__LEVEL); + + runtimeEntryEClass = createEClass(RUNTIME_ENTRY); + createEAttribute(runtimeEntryEClass, RUNTIME_ENTRY__MILLISEC_LIMIT); + + memoryEntryEClass = createEClass(MEMORY_ENTRY); + createEAttribute(memoryEntryEClass, MEMORY_ENTRY__MEGABYTE_LIMIT); + + customEntryEClass = createEClass(CUSTOM_ENTRY); + createEAttribute(customEntryEClass, CUSTOM_ENTRY__KEY); + createEAttribute(customEntryEClass, CUSTOM_ENTRY__VALUE); + + configReferenceEClass = createEClass(CONFIG_REFERENCE); + createEReference(configReferenceEClass, CONFIG_REFERENCE__CONFIG); + + configEClass = createEClass(CONFIG); + + scopeSpecificationEClass = createEClass(SCOPE_SPECIFICATION); + createEReference(scopeSpecificationEClass, SCOPE_SPECIFICATION__SCOPES); + + typeScopeEClass = createEClass(TYPE_SCOPE); + createEAttribute(typeScopeEClass, TYPE_SCOPE__SETS_NEW); + createEAttribute(typeScopeEClass, TYPE_SCOPE__SETS_SUM); + createEReference(typeScopeEClass, TYPE_SCOPE__NUMBER); + + classTypeScopeEClass = createEClass(CLASS_TYPE_SCOPE); + createEReference(classTypeScopeEClass, CLASS_TYPE_SCOPE__TYPE); + + objectTypeScopeEClass = createEClass(OBJECT_TYPE_SCOPE); + createEReference(objectTypeScopeEClass, OBJECT_TYPE_SCOPE__TYPE); + + integerTypeScopeEClass = createEClass(INTEGER_TYPE_SCOPE); + createEReference(integerTypeScopeEClass, INTEGER_TYPE_SCOPE__TYPE); + + realTypeScopeEClass = createEClass(REAL_TYPE_SCOPE); + createEReference(realTypeScopeEClass, REAL_TYPE_SCOPE__TYPE); + + stringTypeScopeEClass = createEClass(STRING_TYPE_SCOPE); + createEReference(stringTypeScopeEClass, STRING_TYPE_SCOPE__TYPE); + + typeReferenceEClass = createEClass(TYPE_REFERENCE); + + classReferenceEClass = createEClass(CLASS_REFERENCE); + createEReference(classReferenceEClass, CLASS_REFERENCE__ELEMENT); + + objectReferenceEClass = createEClass(OBJECT_REFERENCE); + + integerReferenceEClass = createEClass(INTEGER_REFERENCE); + + realReferenceEClass = createEClass(REAL_REFERENCE); + + stringReferenceEClass = createEClass(STRING_REFERENCE); + + numberSpecificationEClass = createEClass(NUMBER_SPECIFICATION); + + exactNumberEClass = createEClass(EXACT_NUMBER); + createEAttribute(exactNumberEClass, EXACT_NUMBER__EXACT_NUMBER); + createEAttribute(exactNumberEClass, EXACT_NUMBER__EXACT_UNLIMITED); + + intervallNumberEClass = createEClass(INTERVALL_NUMBER); + createEAttribute(intervallNumberEClass, INTERVALL_NUMBER__MIN); + createEAttribute(intervallNumberEClass, INTERVALL_NUMBER__MAX_NUMBER); + createEAttribute(intervallNumberEClass, INTERVALL_NUMBER__MAX_UNLIMITED); + + intEnumberationEClass = createEClass(INT_ENUMBERATION); + createEAttribute(intEnumberationEClass, INT_ENUMBERATION__ENTRY); + + realEnumerationEClass = createEClass(REAL_ENUMERATION); + createEAttribute(realEnumerationEClass, REAL_ENUMERATION__ENTRY); + + stringEnumerationEClass = createEClass(STRING_ENUMERATION); + createEAttribute(stringEnumerationEClass, STRING_ENUMERATION__ENTRY); + + scopeDeclarationEClass = createEClass(SCOPE_DECLARATION); + createEReference(scopeDeclarationEClass, SCOPE_DECLARATION__SPECIFICATION); + + scopeReferenceEClass = createEClass(SCOPE_REFERENCE); + createEReference(scopeReferenceEClass, SCOPE_REFERENCE__REFERRED); + + scopeEClass = createEClass(SCOPE); + + taskEClass = createEClass(TASK); + + generationTaskEClass = createEClass(GENERATION_TASK); + createEReference(generationTaskEClass, GENERATION_TASK__METAMODEL); + createEReference(generationTaskEClass, GENERATION_TASK__PARTIAL_MODEL); + createEReference(generationTaskEClass, GENERATION_TASK__PATTERNS); + createEReference(generationTaskEClass, GENERATION_TASK__OBJECTIVES); + createEReference(generationTaskEClass, GENERATION_TASK__SCOPE); + createEAttribute(generationTaskEClass, GENERATION_TASK__NUMBER_SPECIFIED); + createEAttribute(generationTaskEClass, GENERATION_TASK__NUMBER); + createEAttribute(generationTaskEClass, GENERATION_TASK__RUN_SPECIFIED); + createEAttribute(generationTaskEClass, GENERATION_TASK__RUNS); + createEAttribute(generationTaskEClass, GENERATION_TASK__SOLVER); + createEReference(generationTaskEClass, GENERATION_TASK__CONFIG); + createEReference(generationTaskEClass, GENERATION_TASK__DEBUG_FOLDER); + createEReference(generationTaskEClass, GENERATION_TASK__TARGET_LOG_FILE); + createEReference(generationTaskEClass, GENERATION_TASK__TARGET_STATISTICS_FILE); + createEReference(generationTaskEClass, GENERATION_TASK__TAGET_FOLDER); + + integerScopeEClass = createEClass(INTEGER_SCOPE); + + realScopeEClass = createEClass(REAL_SCOPE); + + stringScopeEClass = createEClass(STRING_SCOPE); + + // Create enums + optimizationDirectionEEnum = createEEnum(OPTIMIZATION_DIRECTION); + comparisonOperatorEEnum = createEEnum(COMPARISON_OPERATOR); + documentLevelSpecificationEEnum = createEEnum(DOCUMENT_LEVEL_SPECIFICATION); + solverEEnum = createEEnum(SOLVER); + } + + /** + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void initializePackageContents() + { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + PatternLanguagePackage thePatternLanguagePackage = (PatternLanguagePackage)EPackage.Registry.INSTANCE.getEPackage(PatternLanguagePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + ePackageImportEClass.getESuperTypes().add(this.getImport()); + viatraImportEClass.getESuperTypes().add(this.getImport()); + declarationEClass.getESuperTypes().add(this.getCommand()); + fileSpecificationEClass.getESuperTypes().add(this.getFile()); + fileDeclarationEClass.getESuperTypes().add(this.getDeclaration()); + fileReferenceEClass.getESuperTypes().add(this.getFile()); + metamodelSpecificationEClass.getESuperTypes().add(this.getMetamodel()); + allPackageEntryEClass.getESuperTypes().add(this.getMetamodelEntry()); + metamodelElementEClass.getESuperTypes().add(this.getMetamodelEntry()); + metamodelDeclarationEClass.getESuperTypes().add(this.getDeclaration()); + metamodelReferenceEClass.getESuperTypes().add(this.getMetamodel()); + partialModelSpecificationEClass.getESuperTypes().add(this.getPartialModel()); + modelEntryEClass.getESuperTypes().add(this.getPartialModelEntry()); + folderEntryEClass.getESuperTypes().add(this.getPartialModelEntry()); + partialModelDeclarationEClass.getESuperTypes().add(this.getDeclaration()); + partialModelReferenceEClass.getESuperTypes().add(this.getPartialModel()); + patternSpecificationEClass.getESuperTypes().add(this.getGraphPattern()); + allPatternEntryEClass.getESuperTypes().add(this.getPatternEntry()); + patternElementEClass.getESuperTypes().add(this.getPatternEntry()); + graphPatternDeclarationEClass.getESuperTypes().add(this.getDeclaration()); + graphPatternReferenceEClass.getESuperTypes().add(this.getGraphPattern()); + objectiveSpecificationEClass.getESuperTypes().add(this.getObjective()); + optimizationEntryEClass.getESuperTypes().add(this.getObjectiveEntry()); + thresholdEntryEClass.getESuperTypes().add(this.getObjectiveEntry()); + costObjectiveFunctionEClass.getESuperTypes().add(this.getObjectiveFunction()); + objectiveDeclarationEClass.getESuperTypes().add(this.getDeclaration()); + objectiveReferenceEClass.getESuperTypes().add(this.getObjective()); + configSpecificationEClass.getESuperTypes().add(this.getConfig()); + configDeclarationEClass.getESuperTypes().add(this.getDeclaration()); + documentationEntryEClass.getESuperTypes().add(this.getConfigEntry()); + runtimeEntryEClass.getESuperTypes().add(this.getConfigEntry()); + memoryEntryEClass.getESuperTypes().add(this.getConfigEntry()); + customEntryEClass.getESuperTypes().add(this.getConfigEntry()); + configReferenceEClass.getESuperTypes().add(this.getConfig()); + scopeSpecificationEClass.getESuperTypes().add(this.getScope()); + classTypeScopeEClass.getESuperTypes().add(this.getTypeScope()); + objectTypeScopeEClass.getESuperTypes().add(this.getTypeScope()); + integerTypeScopeEClass.getESuperTypes().add(this.getTypeScope()); + realTypeScopeEClass.getESuperTypes().add(this.getTypeScope()); + stringTypeScopeEClass.getESuperTypes().add(this.getTypeScope()); + classReferenceEClass.getESuperTypes().add(this.getTypeReference()); + objectReferenceEClass.getESuperTypes().add(this.getTypeReference()); + integerReferenceEClass.getESuperTypes().add(this.getTypeReference()); + realReferenceEClass.getESuperTypes().add(this.getTypeReference()); + stringReferenceEClass.getESuperTypes().add(this.getTypeReference()); + exactNumberEClass.getESuperTypes().add(this.getNumberSpecification()); + intervallNumberEClass.getESuperTypes().add(this.getNumberSpecification()); + intEnumberationEClass.getESuperTypes().add(this.getNumberSpecification()); + realEnumerationEClass.getESuperTypes().add(this.getNumberSpecification()); + stringEnumerationEClass.getESuperTypes().add(this.getNumberSpecification()); + scopeDeclarationEClass.getESuperTypes().add(this.getDeclaration()); + scopeReferenceEClass.getESuperTypes().add(this.getScope()); + taskEClass.getESuperTypes().add(this.getCommand()); + generationTaskEClass.getESuperTypes().add(this.getTask()); + integerScopeEClass.getESuperTypes().add(this.getIntegerReference()); + realScopeEClass.getESuperTypes().add(this.getRealReference()); + stringScopeEClass.getESuperTypes().add(this.getStringReference()); + + // Initialize classes and features; add operations and parameters + initEClass(configurationScriptEClass, ConfigurationScript.class, "ConfigurationScript", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getConfigurationScript_Imports(), this.getImport(), null, "imports", null, 0, -1, ConfigurationScript.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getConfigurationScript_Commands(), this.getCommand(), null, "commands", null, 0, -1, ConfigurationScript.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(commandEClass, Command.class, "Command", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(importEClass, Import.class, "Import", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(ePackageImportEClass, EPackageImport.class, "EPackageImport", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getEPackageImport_ImportedPackage(), theEcorePackage.getEPackage(), null, "importedPackage", null, 0, 1, EPackageImport.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(viatraImportEClass, ViatraImport.class, "ViatraImport", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getViatraImport_ImportedViatra(), thePatternLanguagePackage.getPatternModel(), null, "importedViatra", null, 0, 1, ViatraImport.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(declarationEClass, Declaration.class, "Declaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDeclaration_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Declaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(fileSpecificationEClass, FileSpecification.class, "FileSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFileSpecification_Path(), theEcorePackage.getEString(), "path", null, 0, 1, FileSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(fileDeclarationEClass, FileDeclaration.class, "FileDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getFileDeclaration_Specification(), this.getFileSpecification(), null, "specification", null, 0, 1, FileDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(fileReferenceEClass, FileReference.class, "FileReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getFileReference_Referred(), this.getFileDeclaration(), null, "referred", null, 0, 1, FileReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(fileEClass, File.class, "File", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(metamodelSpecificationEClass, MetamodelSpecification.class, "MetamodelSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getMetamodelSpecification_Entries(), this.getMetamodelEntry(), null, "entries", null, 0, -1, MetamodelSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(metamodelEntryEClass, MetamodelEntry.class, "MetamodelEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getMetamodelEntry_Package(), theEcorePackage.getEPackage(), null, "package", null, 0, 1, MetamodelEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(allPackageEntryEClass, AllPackageEntry.class, "AllPackageEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getAllPackageEntry_Exclusion(), this.getMetamodelElement(), null, "exclusion", null, 0, -1, AllPackageEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(metamodelElementEClass, MetamodelElement.class, "MetamodelElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getMetamodelElement_Classifier(), theEcorePackage.getEClassifier(), null, "classifier", null, 0, 1, MetamodelElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getMetamodelElement_Feature(), theEcorePackage.getENamedElement(), null, "feature", null, 0, 1, MetamodelElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(metamodelDeclarationEClass, MetamodelDeclaration.class, "MetamodelDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getMetamodelDeclaration_Specification(), this.getMetamodelSpecification(), null, "specification", null, 0, 1, MetamodelDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(metamodelReferenceEClass, MetamodelReference.class, "MetamodelReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getMetamodelReference_Referred(), this.getMetamodelDeclaration(), null, "referred", null, 0, 1, MetamodelReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(metamodelEClass, Metamodel.class, "Metamodel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(partialModelSpecificationEClass, PartialModelSpecification.class, "PartialModelSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getPartialModelSpecification_Entry(), this.getPartialModelEntry(), null, "entry", null, 0, -1, PartialModelSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(partialModelEntryEClass, PartialModelEntry.class, "PartialModelEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getPartialModelEntry_Path(), this.getFile(), null, "path", null, 0, 1, PartialModelEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(modelEntryEClass, ModelEntry.class, "ModelEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(folderEntryEClass, FolderEntry.class, "FolderEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getFolderEntry_Exclusion(), this.getModelEntry(), null, "exclusion", null, 0, -1, FolderEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(partialModelDeclarationEClass, PartialModelDeclaration.class, "PartialModelDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getPartialModelDeclaration_Specification(), this.getPartialModelSpecification(), null, "specification", null, 0, 1, PartialModelDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(partialModelReferenceEClass, PartialModelReference.class, "PartialModelReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getPartialModelReference_Referred(), this.getPartialModelDeclaration(), null, "referred", null, 0, 1, PartialModelReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(partialModelEClass, PartialModel.class, "PartialModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(patternSpecificationEClass, PatternSpecification.class, "PatternSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getPatternSpecification_Entries(), this.getPatternEntry(), null, "entries", null, 0, -1, PatternSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(patternEntryEClass, PatternEntry.class, "PatternEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getPatternEntry_Package(), thePatternLanguagePackage.getPatternModel(), null, "package", null, 0, 1, PatternEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(allPatternEntryEClass, AllPatternEntry.class, "AllPatternEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getAllPatternEntry_Exclusuion(), this.getPatternElement(), null, "exclusuion", null, 0, -1, AllPatternEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(patternElementEClass, PatternElement.class, "PatternElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getPatternElement_Pattern(), thePatternLanguagePackage.getPattern(), null, "pattern", null, 0, 1, PatternElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(graphPatternDeclarationEClass, GraphPatternDeclaration.class, "GraphPatternDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getGraphPatternDeclaration_Specification(), this.getPatternSpecification(), null, "specification", null, 0, 1, GraphPatternDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(graphPatternReferenceEClass, GraphPatternReference.class, "GraphPatternReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getGraphPatternReference_Referred(), this.getGraphPatternDeclaration(), null, "referred", null, 0, 1, GraphPatternReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(graphPatternEClass, GraphPattern.class, "GraphPattern", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(objectiveSpecificationEClass, ObjectiveSpecification.class, "ObjectiveSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getObjectiveSpecification_Entries(), this.getObjectiveEntry(), null, "entries", null, 0, -1, ObjectiveSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(objectiveEntryEClass, ObjectiveEntry.class, "ObjectiveEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getObjectiveEntry_Function(), this.getObjectiveFunction(), null, "function", null, 0, 1, ObjectiveEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(optimizationEntryEClass, OptimizationEntry.class, "OptimizationEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getOptimizationEntry_Direction(), this.getOptimizationDirection(), "direction", null, 0, 1, OptimizationEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(thresholdEntryEClass, ThresholdEntry.class, "ThresholdEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getThresholdEntry_Operator(), this.getComparisonOperator(), "operator", null, 0, 1, ThresholdEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getThresholdEntry_Threshold(), theEcorePackage.getEDouble(), "threshold", null, 0, 1, ThresholdEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(objectiveFunctionEClass, ObjectiveFunction.class, "ObjectiveFunction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(costObjectiveFunctionEClass, CostObjectiveFunction.class, "CostObjectiveFunction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getCostObjectiveFunction_Entries(), this.getCostEntry(), null, "entries", null, 0, -1, CostObjectiveFunction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(costEntryEClass, CostEntry.class, "CostEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getCostEntry_PatternElement(), this.getPatternElement(), null, "patternElement", null, 0, 1, CostEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCostEntry_Weight(), theEcorePackage.getEInt(), "weight", null, 0, 1, CostEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(objectiveDeclarationEClass, ObjectiveDeclaration.class, "ObjectiveDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getObjectiveDeclaration_Specification(), this.getObjectiveSpecification(), null, "specification", null, 0, 1, ObjectiveDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(objectiveReferenceEClass, ObjectiveReference.class, "ObjectiveReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getObjectiveReference_Referred(), this.getObjectiveDeclaration(), null, "referred", null, 0, 1, ObjectiveReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(objectiveEClass, Objective.class, "Objective", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(configSpecificationEClass, ConfigSpecification.class, "ConfigSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getConfigSpecification_Entries(), this.getConfigEntry(), null, "entries", null, 0, -1, ConfigSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(configDeclarationEClass, ConfigDeclaration.class, "ConfigDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getConfigDeclaration_Specification(), this.getConfigSpecification(), null, "specification", null, 0, 1, ConfigDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(configEntryEClass, ConfigEntry.class, "ConfigEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(documentationEntryEClass, DocumentationEntry.class, "DocumentationEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDocumentationEntry_Level(), this.getDocumentLevelSpecification(), "level", null, 0, 1, DocumentationEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(runtimeEntryEClass, RuntimeEntry.class, "RuntimeEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getRuntimeEntry_MillisecLimit(), theEcorePackage.getEInt(), "millisecLimit", null, 0, 1, RuntimeEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(memoryEntryEClass, MemoryEntry.class, "MemoryEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getMemoryEntry_MegabyteLimit(), theEcorePackage.getEInt(), "megabyteLimit", null, 0, 1, MemoryEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(customEntryEClass, CustomEntry.class, "CustomEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCustomEntry_Key(), theEcorePackage.getEString(), "key", null, 0, 1, CustomEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCustomEntry_Value(), theEcorePackage.getEString(), "value", null, 0, 1, CustomEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(configReferenceEClass, ConfigReference.class, "ConfigReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getConfigReference_Config(), this.getConfigDeclaration(), null, "config", null, 0, 1, ConfigReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(configEClass, Config.class, "Config", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(scopeSpecificationEClass, ScopeSpecification.class, "ScopeSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getScopeSpecification_Scopes(), this.getTypeScope(), null, "scopes", null, 0, -1, ScopeSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(typeScopeEClass, TypeScope.class, "TypeScope", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getTypeScope_SetsNew(), theEcorePackage.getEBoolean(), "setsNew", null, 0, 1, TypeScope.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTypeScope_SetsSum(), theEcorePackage.getEBoolean(), "setsSum", null, 0, 1, TypeScope.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getTypeScope_Number(), this.getNumberSpecification(), null, "number", null, 0, 1, TypeScope.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(classTypeScopeEClass, ClassTypeScope.class, "ClassTypeScope", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getClassTypeScope_Type(), this.getClassReference(), null, "type", null, 0, 1, ClassTypeScope.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(objectTypeScopeEClass, ObjectTypeScope.class, "ObjectTypeScope", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getObjectTypeScope_Type(), this.getObjectReference(), null, "type", null, 0, 1, ObjectTypeScope.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(integerTypeScopeEClass, IntegerTypeScope.class, "IntegerTypeScope", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getIntegerTypeScope_Type(), this.getIntegerReference(), null, "type", null, 0, 1, IntegerTypeScope.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(realTypeScopeEClass, RealTypeScope.class, "RealTypeScope", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getRealTypeScope_Type(), this.getRealReference(), null, "type", null, 0, 1, RealTypeScope.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(stringTypeScopeEClass, StringTypeScope.class, "StringTypeScope", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getStringTypeScope_Type(), this.getStringReference(), null, "type", null, 0, 1, StringTypeScope.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(typeReferenceEClass, TypeReference.class, "TypeReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(classReferenceEClass, ClassReference.class, "ClassReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getClassReference_Element(), this.getMetamodelElement(), null, "element", null, 0, 1, ClassReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(objectReferenceEClass, ObjectReference.class, "ObjectReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(integerReferenceEClass, IntegerReference.class, "IntegerReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(realReferenceEClass, RealReference.class, "RealReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(stringReferenceEClass, StringReference.class, "StringReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(numberSpecificationEClass, NumberSpecification.class, "NumberSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(exactNumberEClass, ExactNumber.class, "ExactNumber", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getExactNumber_ExactNumber(), theEcorePackage.getEInt(), "exactNumber", null, 0, 1, ExactNumber.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getExactNumber_ExactUnlimited(), theEcorePackage.getEBoolean(), "exactUnlimited", null, 0, 1, ExactNumber.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(intervallNumberEClass, IntervallNumber.class, "IntervallNumber", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getIntervallNumber_Min(), theEcorePackage.getEInt(), "min", null, 0, 1, IntervallNumber.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getIntervallNumber_MaxNumber(), theEcorePackage.getEInt(), "maxNumber", null, 0, 1, IntervallNumber.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getIntervallNumber_MaxUnlimited(), theEcorePackage.getEBoolean(), "maxUnlimited", null, 0, 1, IntervallNumber.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(intEnumberationEClass, IntEnumberation.class, "IntEnumberation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getIntEnumberation_Entry(), theEcorePackage.getEInt(), "entry", null, 0, -1, IntEnumberation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(realEnumerationEClass, RealEnumeration.class, "RealEnumeration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getRealEnumeration_Entry(), theEcorePackage.getEDouble(), "entry", null, 0, -1, RealEnumeration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(stringEnumerationEClass, StringEnumeration.class, "StringEnumeration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getStringEnumeration_Entry(), theEcorePackage.getEString(), "entry", null, 0, -1, StringEnumeration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(scopeDeclarationEClass, ScopeDeclaration.class, "ScopeDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getScopeDeclaration_Specification(), this.getScopeSpecification(), null, "specification", null, 0, 1, ScopeDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(scopeReferenceEClass, ScopeReference.class, "ScopeReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getScopeReference_Referred(), this.getScopeDeclaration(), null, "referred", null, 0, 1, ScopeReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(scopeEClass, Scope.class, "Scope", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(taskEClass, Task.class, "Task", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(generationTaskEClass, GenerationTask.class, "GenerationTask", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getGenerationTask_Metamodel(), this.getMetamodel(), null, "metamodel", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getGenerationTask_PartialModel(), this.getPartialModel(), null, "partialModel", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getGenerationTask_Patterns(), this.getGraphPattern(), null, "patterns", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getGenerationTask_Objectives(), this.getObjective(), null, "objectives", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getGenerationTask_Scope(), this.getScope(), null, "scope", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getGenerationTask_NumberSpecified(), theEcorePackage.getEBoolean(), "numberSpecified", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getGenerationTask_Number(), theEcorePackage.getEInt(), "number", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getGenerationTask_RunSpecified(), theEcorePackage.getEBoolean(), "runSpecified", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getGenerationTask_Runs(), theEcorePackage.getEInt(), "runs", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getGenerationTask_Solver(), this.getSolver(), "solver", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getGenerationTask_Config(), this.getConfig(), null, "config", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getGenerationTask_DebugFolder(), this.getFile(), null, "debugFolder", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getGenerationTask_TargetLogFile(), this.getFile(), null, "targetLogFile", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getGenerationTask_TargetStatisticsFile(), this.getFile(), null, "targetStatisticsFile", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getGenerationTask_TagetFolder(), this.getFile(), null, "tagetFolder", null, 0, 1, GenerationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(integerScopeEClass, IntegerScope.class, "IntegerScope", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(realScopeEClass, RealScope.class, "RealScope", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(stringScopeEClass, StringScope.class, "StringScope", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + // Initialize enums and add enum literals + initEEnum(optimizationDirectionEEnum, OptimizationDirection.class, "OptimizationDirection"); + addEEnumLiteral(optimizationDirectionEEnum, OptimizationDirection.MINIMIZE); + addEEnumLiteral(optimizationDirectionEEnum, OptimizationDirection.MAXIMIZE); + + initEEnum(comparisonOperatorEEnum, ComparisonOperator.class, "ComparisonOperator"); + addEEnumLiteral(comparisonOperatorEEnum, ComparisonOperator.LESS); + addEEnumLiteral(comparisonOperatorEEnum, ComparisonOperator.GREATER); + addEEnumLiteral(comparisonOperatorEEnum, ComparisonOperator.LESS_EQUALS); + addEEnumLiteral(comparisonOperatorEEnum, ComparisonOperator.GREATER_EQUALS); + + initEEnum(documentLevelSpecificationEEnum, DocumentLevelSpecification.class, "DocumentLevelSpecification"); + addEEnumLiteral(documentLevelSpecificationEEnum, DocumentLevelSpecification.NONE); + addEEnumLiteral(documentLevelSpecificationEEnum, DocumentLevelSpecification.NORMAL); + addEEnumLiteral(documentLevelSpecificationEEnum, DocumentLevelSpecification.FULL); + + initEEnum(solverEEnum, Solver.class, "Solver"); + addEEnumLiteral(solverEEnum, Solver.SMT_SOLVER); + addEEnumLiteral(solverEEnum, Solver.ALLOY_SOLVER); + addEEnumLiteral(solverEEnum, Solver.VIATRA_SOLVER); + + // Create resource + createResource(eNS_URI); + } + +} //ApplicationConfigurationPackageImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ClassReferenceImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ClassReferenceImpl.java index 2506ac73..3caf25c0 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ClassReferenceImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ClassReferenceImpl.java @@ -1,196 +1,196 @@ -/** - * generated by Xtext 2.21.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.ClassReference; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelElement; - -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 'Class Reference'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ClassReferenceImpl#getElement Element}
  • - *
- * - * @generated - */ -public class ClassReferenceImpl extends TypeReferenceImpl implements ClassReference -{ - /** - * The cached value of the '{@link #getElement() Element}' containment reference. - * - * - * @see #getElement() - * @generated - * @ordered - */ - protected MetamodelElement element; - - /** - * - * - * @generated - */ - protected ClassReferenceImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.CLASS_REFERENCE; - } - - /** - * - * - * @generated - */ - @Override - public MetamodelElement getElement() - { - return element; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetElement(MetamodelElement newElement, NotificationChain msgs) - { - MetamodelElement oldElement = element; - element = newElement; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.CLASS_REFERENCE__ELEMENT, oldElement, newElement); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setElement(MetamodelElement newElement) - { - if (newElement != element) - { - NotificationChain msgs = null; - if (element != null) - msgs = ((InternalEObject)element).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.CLASS_REFERENCE__ELEMENT, null, msgs); - if (newElement != null) - msgs = ((InternalEObject)newElement).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.CLASS_REFERENCE__ELEMENT, null, msgs); - msgs = basicSetElement(newElement, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.CLASS_REFERENCE__ELEMENT, newElement, newElement)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CLASS_REFERENCE__ELEMENT: - return basicSetElement(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CLASS_REFERENCE__ELEMENT: - return getElement(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CLASS_REFERENCE__ELEMENT: - setElement((MetamodelElement)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CLASS_REFERENCE__ELEMENT: - setElement((MetamodelElement)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CLASS_REFERENCE__ELEMENT: - return element != null; - } - return super.eIsSet(featureID); - } - -} //ClassReferenceImpl +/** + * generated by Xtext 2.21.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.ClassReference; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelElement; + +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 'Class Reference'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ClassReferenceImpl#getElement Element}
  • + *
+ * + * @generated + */ +public class ClassReferenceImpl extends TypeReferenceImpl implements ClassReference +{ + /** + * The cached value of the '{@link #getElement() Element}' containment reference. + * + * + * @see #getElement() + * @generated + * @ordered + */ + protected MetamodelElement element; + + /** + * + * + * @generated + */ + protected ClassReferenceImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.CLASS_REFERENCE; + } + + /** + * + * + * @generated + */ + @Override + public MetamodelElement getElement() + { + return element; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetElement(MetamodelElement newElement, NotificationChain msgs) + { + MetamodelElement oldElement = element; + element = newElement; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.CLASS_REFERENCE__ELEMENT, oldElement, newElement); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + @Override + public void setElement(MetamodelElement newElement) + { + if (newElement != element) + { + NotificationChain msgs = null; + if (element != null) + msgs = ((InternalEObject)element).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.CLASS_REFERENCE__ELEMENT, null, msgs); + if (newElement != null) + msgs = ((InternalEObject)newElement).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.CLASS_REFERENCE__ELEMENT, null, msgs); + msgs = basicSetElement(newElement, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.CLASS_REFERENCE__ELEMENT, newElement, newElement)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CLASS_REFERENCE__ELEMENT: + return basicSetElement(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CLASS_REFERENCE__ELEMENT: + return getElement(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CLASS_REFERENCE__ELEMENT: + setElement((MetamodelElement)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CLASS_REFERENCE__ELEMENT: + setElement((MetamodelElement)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CLASS_REFERENCE__ELEMENT: + return element != null; + } + return super.eIsSet(featureID); + } + +} //ClassReferenceImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ClassTypeScopeImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ClassTypeScopeImpl.java index 8af31aa5..cbaa50af 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ClassTypeScopeImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ClassTypeScopeImpl.java @@ -1,196 +1,196 @@ -/** - * generated by Xtext 2.21.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.ClassReference; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ClassTypeScope; - -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 'Class Type Scope'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ClassTypeScopeImpl#getType Type}
  • - *
- * - * @generated - */ -public class ClassTypeScopeImpl extends TypeScopeImpl implements ClassTypeScope -{ - /** - * The cached value of the '{@link #getType() Type}' containment reference. - * - * - * @see #getType() - * @generated - * @ordered - */ - protected ClassReference type; - - /** - * - * - * @generated - */ - protected ClassTypeScopeImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.CLASS_TYPE_SCOPE; - } - - /** - * - * - * @generated - */ - @Override - public ClassReference getType() - { - return type; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetType(ClassReference newType, NotificationChain msgs) - { - ClassReference oldType = type; - type = newType; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.CLASS_TYPE_SCOPE__TYPE, oldType, newType); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setType(ClassReference newType) - { - if (newType != type) - { - NotificationChain msgs = null; - if (type != null) - msgs = ((InternalEObject)type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.CLASS_TYPE_SCOPE__TYPE, null, msgs); - if (newType != null) - msgs = ((InternalEObject)newType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.CLASS_TYPE_SCOPE__TYPE, null, msgs); - msgs = basicSetType(newType, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.CLASS_TYPE_SCOPE__TYPE, newType, newType)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CLASS_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.CLASS_TYPE_SCOPE__TYPE: - return getType(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CLASS_TYPE_SCOPE__TYPE: - setType((ClassReference)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CLASS_TYPE_SCOPE__TYPE: - setType((ClassReference)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CLASS_TYPE_SCOPE__TYPE: - return type != null; - } - return super.eIsSet(featureID); - } - -} //ClassTypeScopeImpl +/** + * generated by Xtext 2.21.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.ClassReference; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ClassTypeScope; + +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 'Class Type Scope'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ClassTypeScopeImpl#getType Type}
  • + *
+ * + * @generated + */ +public class ClassTypeScopeImpl extends TypeScopeImpl implements ClassTypeScope +{ + /** + * The cached value of the '{@link #getType() Type}' containment reference. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected ClassReference type; + + /** + * + * + * @generated + */ + protected ClassTypeScopeImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.CLASS_TYPE_SCOPE; + } + + /** + * + * + * @generated + */ + @Override + public ClassReference getType() + { + return type; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetType(ClassReference newType, NotificationChain msgs) + { + ClassReference oldType = type; + type = newType; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.CLASS_TYPE_SCOPE__TYPE, oldType, newType); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + @Override + public void setType(ClassReference newType) + { + if (newType != type) + { + NotificationChain msgs = null; + if (type != null) + msgs = ((InternalEObject)type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.CLASS_TYPE_SCOPE__TYPE, null, msgs); + if (newType != null) + msgs = ((InternalEObject)newType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.CLASS_TYPE_SCOPE__TYPE, null, msgs); + msgs = basicSetType(newType, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.CLASS_TYPE_SCOPE__TYPE, newType, newType)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CLASS_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.CLASS_TYPE_SCOPE__TYPE: + return getType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CLASS_TYPE_SCOPE__TYPE: + setType((ClassReference)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CLASS_TYPE_SCOPE__TYPE: + setType((ClassReference)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CLASS_TYPE_SCOPE__TYPE: + return type != null; + } + return super.eIsSet(featureID); + } + +} //ClassTypeScopeImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CommandImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CommandImpl.java index 5cd597d1..669176b5 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CommandImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CommandImpl.java @@ -1,43 +1,43 @@ -/** - * generated by Xtext 2.21.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.Command; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -/** - * - * An implementation of the model object 'Command'. - * - * - * @generated - */ -public class CommandImpl extends MinimalEObjectImpl.Container implements Command -{ - /** - * - * - * @generated - */ - protected CommandImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.COMMAND; - } - -} //CommandImpl +/** + * generated by Xtext 2.21.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.Command; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Command'. + * + * + * @generated + */ +public class CommandImpl extends MinimalEObjectImpl.Container implements Command +{ + /** + * + * + * @generated + */ + protected CommandImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.COMMAND; + } + +} //CommandImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigDeclarationImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigDeclarationImpl.java index bb648afc..a7e9e0ca 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigDeclarationImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigDeclarationImpl.java @@ -1,196 +1,196 @@ -/** - * generated by Xtext 2.21.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.ConfigDeclaration; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigSpecification; - -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 'Config Declaration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ConfigDeclarationImpl#getSpecification Specification}
  • - *
- * - * @generated - */ -public class ConfigDeclarationImpl extends DeclarationImpl implements ConfigDeclaration -{ - /** - * The cached value of the '{@link #getSpecification() Specification}' containment reference. - * - * - * @see #getSpecification() - * @generated - * @ordered - */ - protected ConfigSpecification specification; - - /** - * - * - * @generated - */ - protected ConfigDeclarationImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.CONFIG_DECLARATION; - } - - /** - * - * - * @generated - */ - @Override - public ConfigSpecification getSpecification() - { - return specification; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetSpecification(ConfigSpecification newSpecification, NotificationChain msgs) - { - ConfigSpecification oldSpecification = specification; - specification = newSpecification; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.CONFIG_DECLARATION__SPECIFICATION, oldSpecification, newSpecification); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setSpecification(ConfigSpecification newSpecification) - { - if (newSpecification != specification) - { - NotificationChain msgs = null; - if (specification != null) - msgs = ((InternalEObject)specification).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.CONFIG_DECLARATION__SPECIFICATION, null, msgs); - if (newSpecification != null) - msgs = ((InternalEObject)newSpecification).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.CONFIG_DECLARATION__SPECIFICATION, null, msgs); - msgs = basicSetSpecification(newSpecification, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.CONFIG_DECLARATION__SPECIFICATION, newSpecification, newSpecification)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CONFIG_DECLARATION__SPECIFICATION: - return basicSetSpecification(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CONFIG_DECLARATION__SPECIFICATION: - return getSpecification(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CONFIG_DECLARATION__SPECIFICATION: - setSpecification((ConfigSpecification)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CONFIG_DECLARATION__SPECIFICATION: - setSpecification((ConfigSpecification)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CONFIG_DECLARATION__SPECIFICATION: - return specification != null; - } - return super.eIsSet(featureID); - } - -} //ConfigDeclarationImpl +/** + * generated by Xtext 2.21.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.ConfigDeclaration; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigSpecification; + +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 'Config Declaration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ConfigDeclarationImpl#getSpecification Specification}
  • + *
+ * + * @generated + */ +public class ConfigDeclarationImpl extends DeclarationImpl implements ConfigDeclaration +{ + /** + * The cached value of the '{@link #getSpecification() Specification}' containment reference. + * + * + * @see #getSpecification() + * @generated + * @ordered + */ + protected ConfigSpecification specification; + + /** + * + * + * @generated + */ + protected ConfigDeclarationImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.CONFIG_DECLARATION; + } + + /** + * + * + * @generated + */ + @Override + public ConfigSpecification getSpecification() + { + return specification; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetSpecification(ConfigSpecification newSpecification, NotificationChain msgs) + { + ConfigSpecification oldSpecification = specification; + specification = newSpecification; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.CONFIG_DECLARATION__SPECIFICATION, oldSpecification, newSpecification); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + @Override + public void setSpecification(ConfigSpecification newSpecification) + { + if (newSpecification != specification) + { + NotificationChain msgs = null; + if (specification != null) + msgs = ((InternalEObject)specification).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.CONFIG_DECLARATION__SPECIFICATION, null, msgs); + if (newSpecification != null) + msgs = ((InternalEObject)newSpecification).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.CONFIG_DECLARATION__SPECIFICATION, null, msgs); + msgs = basicSetSpecification(newSpecification, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.CONFIG_DECLARATION__SPECIFICATION, newSpecification, newSpecification)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CONFIG_DECLARATION__SPECIFICATION: + return basicSetSpecification(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CONFIG_DECLARATION__SPECIFICATION: + return getSpecification(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CONFIG_DECLARATION__SPECIFICATION: + setSpecification((ConfigSpecification)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CONFIG_DECLARATION__SPECIFICATION: + setSpecification((ConfigSpecification)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CONFIG_DECLARATION__SPECIFICATION: + return specification != null; + } + return super.eIsSet(featureID); + } + +} //ConfigDeclarationImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigEntryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigEntryImpl.java index 66ebb270..4be87b6d 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigEntryImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigEntryImpl.java @@ -1,43 +1,43 @@ -/** - * generated by Xtext 2.21.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.ConfigEntry; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -/** - * - * An implementation of the model object 'Config Entry'. - * - * - * @generated - */ -public class ConfigEntryImpl extends MinimalEObjectImpl.Container implements ConfigEntry -{ - /** - * - * - * @generated - */ - protected ConfigEntryImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.CONFIG_ENTRY; - } - -} //ConfigEntryImpl +/** + * generated by Xtext 2.21.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.ConfigEntry; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Config Entry'. + * + * + * @generated + */ +public class ConfigEntryImpl extends MinimalEObjectImpl.Container implements ConfigEntry +{ + /** + * + * + * @generated + */ + protected ConfigEntryImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.CONFIG_ENTRY; + } + +} //ConfigEntryImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigImpl.java index 21b873fb..19ac6a05 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigImpl.java @@ -1,43 +1,43 @@ -/** - * generated by Xtext 2.21.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.Config; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -/** - * - * An implementation of the model object 'Config'. - * - * - * @generated - */ -public class ConfigImpl extends MinimalEObjectImpl.Container implements Config -{ - /** - * - * - * @generated - */ - protected ConfigImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.CONFIG; - } - -} //ConfigImpl +/** + * generated by Xtext 2.21.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.Config; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Config'. + * + * + * @generated + */ +public class ConfigImpl extends MinimalEObjectImpl.Container implements Config +{ + /** + * + * + * @generated + */ + protected ConfigImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.CONFIG; + } + +} //ConfigImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigReferenceImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigReferenceImpl.java index 3e543afd..5bae4cf5 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigReferenceImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigReferenceImpl.java @@ -1,175 +1,175 @@ -/** - * generated by Xtext 2.21.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.ConfigDeclaration; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigReference; - -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 'Config Reference'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ConfigReferenceImpl#getConfig Config}
  • - *
- * - * @generated - */ -public class ConfigReferenceImpl extends ConfigImpl implements ConfigReference -{ - /** - * The cached value of the '{@link #getConfig() Config}' reference. - * - * - * @see #getConfig() - * @generated - * @ordered - */ - protected ConfigDeclaration config; - - /** - * - * - * @generated - */ - protected ConfigReferenceImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.CONFIG_REFERENCE; - } - - /** - * - * - * @generated - */ - @Override - public ConfigDeclaration getConfig() - { - if (config != null && config.eIsProxy()) - { - InternalEObject oldConfig = (InternalEObject)config; - config = (ConfigDeclaration)eResolveProxy(oldConfig); - if (config != oldConfig) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.CONFIG_REFERENCE__CONFIG, oldConfig, config)); - } - } - return config; - } - - /** - * - * - * @generated - */ - public ConfigDeclaration basicGetConfig() - { - return config; - } - - /** - * - * - * @generated - */ - @Override - public void setConfig(ConfigDeclaration newConfig) - { - ConfigDeclaration oldConfig = config; - config = newConfig; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.CONFIG_REFERENCE__CONFIG, oldConfig, config)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CONFIG_REFERENCE__CONFIG: - if (resolve) return getConfig(); - return basicGetConfig(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CONFIG_REFERENCE__CONFIG: - setConfig((ConfigDeclaration)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CONFIG_REFERENCE__CONFIG: - setConfig((ConfigDeclaration)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CONFIG_REFERENCE__CONFIG: - return config != null; - } - return super.eIsSet(featureID); - } - -} //ConfigReferenceImpl +/** + * generated by Xtext 2.21.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.ConfigDeclaration; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigReference; + +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 'Config Reference'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ConfigReferenceImpl#getConfig Config}
  • + *
+ * + * @generated + */ +public class ConfigReferenceImpl extends ConfigImpl implements ConfigReference +{ + /** + * The cached value of the '{@link #getConfig() Config}' reference. + * + * + * @see #getConfig() + * @generated + * @ordered + */ + protected ConfigDeclaration config; + + /** + * + * + * @generated + */ + protected ConfigReferenceImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.CONFIG_REFERENCE; + } + + /** + * + * + * @generated + */ + @Override + public ConfigDeclaration getConfig() + { + if (config != null && config.eIsProxy()) + { + InternalEObject oldConfig = (InternalEObject)config; + config = (ConfigDeclaration)eResolveProxy(oldConfig); + if (config != oldConfig) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.CONFIG_REFERENCE__CONFIG, oldConfig, config)); + } + } + return config; + } + + /** + * + * + * @generated + */ + public ConfigDeclaration basicGetConfig() + { + return config; + } + + /** + * + * + * @generated + */ + @Override + public void setConfig(ConfigDeclaration newConfig) + { + ConfigDeclaration oldConfig = config; + config = newConfig; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.CONFIG_REFERENCE__CONFIG, oldConfig, config)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CONFIG_REFERENCE__CONFIG: + if (resolve) return getConfig(); + return basicGetConfig(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CONFIG_REFERENCE__CONFIG: + setConfig((ConfigDeclaration)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CONFIG_REFERENCE__CONFIG: + setConfig((ConfigDeclaration)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CONFIG_REFERENCE__CONFIG: + return config != null; + } + return super.eIsSet(featureID); + } + +} //ConfigReferenceImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigSpecificationImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigSpecificationImpl.java index cda3b016..66251019 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigSpecificationImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigSpecificationImpl.java @@ -1,167 +1,167 @@ -/** - * generated by Xtext 2.21.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.ConfigEntry; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigSpecification; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -/** - * - * An implementation of the model object 'Config Specification'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ConfigSpecificationImpl#getEntries Entries}
  • - *
- * - * @generated - */ -public class ConfigSpecificationImpl extends ConfigImpl implements ConfigSpecification -{ - /** - * The cached value of the '{@link #getEntries() Entries}' containment reference list. - * - * - * @see #getEntries() - * @generated - * @ordered - */ - protected EList entries; - - /** - * - * - * @generated - */ - protected ConfigSpecificationImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.CONFIG_SPECIFICATION; - } - - /** - * - * - * @generated - */ - @Override - public EList getEntries() - { - if (entries == null) - { - entries = new EObjectContainmentEList(ConfigEntry.class, this, ApplicationConfigurationPackage.CONFIG_SPECIFICATION__ENTRIES); - } - return entries; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CONFIG_SPECIFICATION__ENTRIES: - return ((InternalEList)getEntries()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CONFIG_SPECIFICATION__ENTRIES: - return getEntries(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CONFIG_SPECIFICATION__ENTRIES: - getEntries().clear(); - getEntries().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CONFIG_SPECIFICATION__ENTRIES: - getEntries().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CONFIG_SPECIFICATION__ENTRIES: - return entries != null && !entries.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //ConfigSpecificationImpl +/** + * generated by Xtext 2.21.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.ConfigEntry; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigSpecification; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Config Specification'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ConfigSpecificationImpl#getEntries Entries}
  • + *
+ * + * @generated + */ +public class ConfigSpecificationImpl extends ConfigImpl implements ConfigSpecification +{ + /** + * The cached value of the '{@link #getEntries() Entries}' containment reference list. + * + * + * @see #getEntries() + * @generated + * @ordered + */ + protected EList entries; + + /** + * + * + * @generated + */ + protected ConfigSpecificationImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.CONFIG_SPECIFICATION; + } + + /** + * + * + * @generated + */ + @Override + public EList getEntries() + { + if (entries == null) + { + entries = new EObjectContainmentEList(ConfigEntry.class, this, ApplicationConfigurationPackage.CONFIG_SPECIFICATION__ENTRIES); + } + return entries; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CONFIG_SPECIFICATION__ENTRIES: + return ((InternalEList)getEntries()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CONFIG_SPECIFICATION__ENTRIES: + return getEntries(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CONFIG_SPECIFICATION__ENTRIES: + getEntries().clear(); + getEntries().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CONFIG_SPECIFICATION__ENTRIES: + getEntries().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CONFIG_SPECIFICATION__ENTRIES: + return entries != null && !entries.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //ConfigSpecificationImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigurationScriptImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigurationScriptImpl.java index 6dd4a34d..a45f68c2 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigurationScriptImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigurationScriptImpl.java @@ -1,209 +1,209 @@ -/** - * generated by Xtext 2.21.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.Command; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigurationScript; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Import; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -/** - * - * An implementation of the model object 'Configuration Script'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ConfigurationScriptImpl#getImports Imports}
  • - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ConfigurationScriptImpl#getCommands Commands}
  • - *
- * - * @generated - */ -public class ConfigurationScriptImpl extends MinimalEObjectImpl.Container implements ConfigurationScript -{ - /** - * The cached value of the '{@link #getImports() Imports}' containment reference list. - * - * - * @see #getImports() - * @generated - * @ordered - */ - protected EList imports; - - /** - * The cached value of the '{@link #getCommands() Commands}' containment reference list. - * - * - * @see #getCommands() - * @generated - * @ordered - */ - protected EList commands; - - /** - * - * - * @generated - */ - protected ConfigurationScriptImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.CONFIGURATION_SCRIPT; - } - - /** - * - * - * @generated - */ - @Override - public EList getImports() - { - if (imports == null) - { - imports = new EObjectContainmentEList(Import.class, this, ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__IMPORTS); - } - return imports; - } - - /** - * - * - * @generated - */ - @Override - public EList getCommands() - { - if (commands == null) - { - commands = new EObjectContainmentEList(Command.class, this, ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__COMMANDS); - } - return commands; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__IMPORTS: - return ((InternalEList)getImports()).basicRemove(otherEnd, msgs); - case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__COMMANDS: - return ((InternalEList)getCommands()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__IMPORTS: - return getImports(); - case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__COMMANDS: - return getCommands(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__IMPORTS: - getImports().clear(); - getImports().addAll((Collection)newValue); - return; - case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__COMMANDS: - getCommands().clear(); - getCommands().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__IMPORTS: - getImports().clear(); - return; - case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__COMMANDS: - getCommands().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__IMPORTS: - return imports != null && !imports.isEmpty(); - case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__COMMANDS: - return commands != null && !commands.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //ConfigurationScriptImpl +/** + * generated by Xtext 2.21.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.Command; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigurationScript; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Import; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Configuration Script'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ConfigurationScriptImpl#getImports Imports}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ConfigurationScriptImpl#getCommands Commands}
  • + *
+ * + * @generated + */ +public class ConfigurationScriptImpl extends MinimalEObjectImpl.Container implements ConfigurationScript +{ + /** + * The cached value of the '{@link #getImports() Imports}' containment reference list. + * + * + * @see #getImports() + * @generated + * @ordered + */ + protected EList imports; + + /** + * The cached value of the '{@link #getCommands() Commands}' containment reference list. + * + * + * @see #getCommands() + * @generated + * @ordered + */ + protected EList commands; + + /** + * + * + * @generated + */ + protected ConfigurationScriptImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.CONFIGURATION_SCRIPT; + } + + /** + * + * + * @generated + */ + @Override + public EList getImports() + { + if (imports == null) + { + imports = new EObjectContainmentEList(Import.class, this, ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__IMPORTS); + } + return imports; + } + + /** + * + * + * @generated + */ + @Override + public EList getCommands() + { + if (commands == null) + { + commands = new EObjectContainmentEList(Command.class, this, ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__COMMANDS); + } + return commands; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__IMPORTS: + return ((InternalEList)getImports()).basicRemove(otherEnd, msgs); + case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__COMMANDS: + return ((InternalEList)getCommands()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__IMPORTS: + return getImports(); + case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__COMMANDS: + return getCommands(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__IMPORTS: + getImports().clear(); + getImports().addAll((Collection)newValue); + return; + case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__COMMANDS: + getCommands().clear(); + getCommands().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__IMPORTS: + getImports().clear(); + return; + case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__COMMANDS: + getCommands().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__IMPORTS: + return imports != null && !imports.isEmpty(); + case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__COMMANDS: + return commands != null && !commands.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //ConfigurationScriptImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CostEntryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CostEntryImpl.java index c5f60bd0..bac57db4 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CostEntryImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CostEntryImpl.java @@ -1,270 +1,270 @@ -/** - * generated by Xtext 2.21.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.CostEntry; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PatternElement; - -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; -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -/** - * - * An implementation of the model object 'Cost Entry'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.CostEntryImpl#getPatternElement Pattern Element}
  • - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.CostEntryImpl#getWeight Weight}
  • - *
- * - * @generated - */ -public class CostEntryImpl extends MinimalEObjectImpl.Container implements CostEntry -{ - /** - * The cached value of the '{@link #getPatternElement() Pattern Element}' containment reference. - * - * - * @see #getPatternElement() - * @generated - * @ordered - */ - protected PatternElement patternElement; - - /** - * The default value of the '{@link #getWeight() Weight}' attribute. - * - * - * @see #getWeight() - * @generated - * @ordered - */ - protected static final int WEIGHT_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getWeight() Weight}' attribute. - * - * - * @see #getWeight() - * @generated - * @ordered - */ - protected int weight = WEIGHT_EDEFAULT; - - /** - * - * - * @generated - */ - protected CostEntryImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.COST_ENTRY; - } - - /** - * - * - * @generated - */ - @Override - public PatternElement getPatternElement() - { - return patternElement; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetPatternElement(PatternElement newPatternElement, NotificationChain msgs) - { - PatternElement oldPatternElement = patternElement; - patternElement = newPatternElement; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.COST_ENTRY__PATTERN_ELEMENT, oldPatternElement, newPatternElement); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setPatternElement(PatternElement newPatternElement) - { - if (newPatternElement != patternElement) - { - NotificationChain msgs = null; - if (patternElement != null) - msgs = ((InternalEObject)patternElement).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.COST_ENTRY__PATTERN_ELEMENT, null, msgs); - if (newPatternElement != null) - msgs = ((InternalEObject)newPatternElement).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.COST_ENTRY__PATTERN_ELEMENT, null, msgs); - msgs = basicSetPatternElement(newPatternElement, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.COST_ENTRY__PATTERN_ELEMENT, newPatternElement, newPatternElement)); - } - - /** - * - * - * @generated - */ - @Override - public int getWeight() - { - return weight; - } - - /** - * - * - * @generated - */ - @Override - public void setWeight(int newWeight) - { - int oldWeight = weight; - weight = newWeight; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.COST_ENTRY__WEIGHT, oldWeight, weight)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ApplicationConfigurationPackage.COST_ENTRY__PATTERN_ELEMENT: - return basicSetPatternElement(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.COST_ENTRY__PATTERN_ELEMENT: - return getPatternElement(); - case ApplicationConfigurationPackage.COST_ENTRY__WEIGHT: - return getWeight(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.COST_ENTRY__PATTERN_ELEMENT: - setPatternElement((PatternElement)newValue); - return; - case ApplicationConfigurationPackage.COST_ENTRY__WEIGHT: - setWeight((Integer)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.COST_ENTRY__PATTERN_ELEMENT: - setPatternElement((PatternElement)null); - return; - case ApplicationConfigurationPackage.COST_ENTRY__WEIGHT: - setWeight(WEIGHT_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.COST_ENTRY__PATTERN_ELEMENT: - return patternElement != null; - case ApplicationConfigurationPackage.COST_ENTRY__WEIGHT: - return weight != WEIGHT_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (weight: "); - result.append(weight); - result.append(')'); - return result.toString(); - } - -} //CostEntryImpl +/** + * generated by Xtext 2.21.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.CostEntry; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PatternElement; + +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; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Cost Entry'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.CostEntryImpl#getPatternElement Pattern Element}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.CostEntryImpl#getWeight Weight}
  • + *
+ * + * @generated + */ +public class CostEntryImpl extends MinimalEObjectImpl.Container implements CostEntry +{ + /** + * The cached value of the '{@link #getPatternElement() Pattern Element}' containment reference. + * + * + * @see #getPatternElement() + * @generated + * @ordered + */ + protected PatternElement patternElement; + + /** + * The default value of the '{@link #getWeight() Weight}' attribute. + * + * + * @see #getWeight() + * @generated + * @ordered + */ + protected static final int WEIGHT_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getWeight() Weight}' attribute. + * + * + * @see #getWeight() + * @generated + * @ordered + */ + protected int weight = WEIGHT_EDEFAULT; + + /** + * + * + * @generated + */ + protected CostEntryImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.COST_ENTRY; + } + + /** + * + * + * @generated + */ + @Override + public PatternElement getPatternElement() + { + return patternElement; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetPatternElement(PatternElement newPatternElement, NotificationChain msgs) + { + PatternElement oldPatternElement = patternElement; + patternElement = newPatternElement; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.COST_ENTRY__PATTERN_ELEMENT, oldPatternElement, newPatternElement); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + @Override + public void setPatternElement(PatternElement newPatternElement) + { + if (newPatternElement != patternElement) + { + NotificationChain msgs = null; + if (patternElement != null) + msgs = ((InternalEObject)patternElement).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.COST_ENTRY__PATTERN_ELEMENT, null, msgs); + if (newPatternElement != null) + msgs = ((InternalEObject)newPatternElement).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.COST_ENTRY__PATTERN_ELEMENT, null, msgs); + msgs = basicSetPatternElement(newPatternElement, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.COST_ENTRY__PATTERN_ELEMENT, newPatternElement, newPatternElement)); + } + + /** + * + * + * @generated + */ + @Override + public int getWeight() + { + return weight; + } + + /** + * + * + * @generated + */ + @Override + public void setWeight(int newWeight) + { + int oldWeight = weight; + weight = newWeight; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.COST_ENTRY__WEIGHT, oldWeight, weight)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case ApplicationConfigurationPackage.COST_ENTRY__PATTERN_ELEMENT: + return basicSetPatternElement(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.COST_ENTRY__PATTERN_ELEMENT: + return getPatternElement(); + case ApplicationConfigurationPackage.COST_ENTRY__WEIGHT: + return getWeight(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.COST_ENTRY__PATTERN_ELEMENT: + setPatternElement((PatternElement)newValue); + return; + case ApplicationConfigurationPackage.COST_ENTRY__WEIGHT: + setWeight((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.COST_ENTRY__PATTERN_ELEMENT: + setPatternElement((PatternElement)null); + return; + case ApplicationConfigurationPackage.COST_ENTRY__WEIGHT: + setWeight(WEIGHT_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.COST_ENTRY__PATTERN_ELEMENT: + return patternElement != null; + case ApplicationConfigurationPackage.COST_ENTRY__WEIGHT: + return weight != WEIGHT_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (weight: "); + result.append(weight); + result.append(')'); + return result.toString(); + } + +} //CostEntryImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CostObjectiveFunctionImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CostObjectiveFunctionImpl.java index 6ad71301..6def9616 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CostObjectiveFunctionImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CostObjectiveFunctionImpl.java @@ -1,167 +1,167 @@ -/** - * generated by Xtext 2.21.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.CostEntry; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.CostObjectiveFunction; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -/** - * - * An implementation of the model object 'Cost Objective Function'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.CostObjectiveFunctionImpl#getEntries Entries}
  • - *
- * - * @generated - */ -public class CostObjectiveFunctionImpl extends ObjectiveFunctionImpl implements CostObjectiveFunction -{ - /** - * The cached value of the '{@link #getEntries() Entries}' containment reference list. - * - * - * @see #getEntries() - * @generated - * @ordered - */ - protected EList entries; - - /** - * - * - * @generated - */ - protected CostObjectiveFunctionImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.COST_OBJECTIVE_FUNCTION; - } - - /** - * - * - * @generated - */ - @Override - public EList getEntries() - { - if (entries == null) - { - entries = new EObjectContainmentEList(CostEntry.class, this, ApplicationConfigurationPackage.COST_OBJECTIVE_FUNCTION__ENTRIES); - } - return entries; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ApplicationConfigurationPackage.COST_OBJECTIVE_FUNCTION__ENTRIES: - return ((InternalEList)getEntries()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.COST_OBJECTIVE_FUNCTION__ENTRIES: - return getEntries(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.COST_OBJECTIVE_FUNCTION__ENTRIES: - getEntries().clear(); - getEntries().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.COST_OBJECTIVE_FUNCTION__ENTRIES: - getEntries().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.COST_OBJECTIVE_FUNCTION__ENTRIES: - return entries != null && !entries.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //CostObjectiveFunctionImpl +/** + * generated by Xtext 2.21.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.CostEntry; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.CostObjectiveFunction; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Cost Objective Function'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.CostObjectiveFunctionImpl#getEntries Entries}
  • + *
+ * + * @generated + */ +public class CostObjectiveFunctionImpl extends ObjectiveFunctionImpl implements CostObjectiveFunction +{ + /** + * The cached value of the '{@link #getEntries() Entries}' containment reference list. + * + * + * @see #getEntries() + * @generated + * @ordered + */ + protected EList entries; + + /** + * + * + * @generated + */ + protected CostObjectiveFunctionImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.COST_OBJECTIVE_FUNCTION; + } + + /** + * + * + * @generated + */ + @Override + public EList getEntries() + { + if (entries == null) + { + entries = new EObjectContainmentEList(CostEntry.class, this, ApplicationConfigurationPackage.COST_OBJECTIVE_FUNCTION__ENTRIES); + } + return entries; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case ApplicationConfigurationPackage.COST_OBJECTIVE_FUNCTION__ENTRIES: + return ((InternalEList)getEntries()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.COST_OBJECTIVE_FUNCTION__ENTRIES: + return getEntries(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.COST_OBJECTIVE_FUNCTION__ENTRIES: + getEntries().clear(); + getEntries().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.COST_OBJECTIVE_FUNCTION__ENTRIES: + getEntries().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.COST_OBJECTIVE_FUNCTION__ENTRIES: + return entries != null && !entries.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //CostObjectiveFunctionImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CustomEntryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CustomEntryImpl.java index aa7249ae..b8fdeb0a 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CustomEntryImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CustomEntryImpl.java @@ -1,237 +1,237 @@ -/** - * generated by Xtext 2.21.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.CustomEntry; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Custom Entry'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.CustomEntryImpl#getKey Key}
  • - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.CustomEntryImpl#getValue Value}
  • - *
- * - * @generated - */ -public class CustomEntryImpl extends ConfigEntryImpl implements CustomEntry -{ - /** - * The default value of the '{@link #getKey() Key}' attribute. - * - * - * @see #getKey() - * @generated - * @ordered - */ - protected static final String KEY_EDEFAULT = null; - - /** - * The cached value of the '{@link #getKey() Key}' attribute. - * - * - * @see #getKey() - * @generated - * @ordered - */ - protected String key = KEY_EDEFAULT; - - /** - * The default value of the '{@link #getValue() Value}' attribute. - * - * - * @see #getValue() - * @generated - * @ordered - */ - protected static final String VALUE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getValue() Value}' attribute. - * - * - * @see #getValue() - * @generated - * @ordered - */ - protected String value = VALUE_EDEFAULT; - - /** - * - * - * @generated - */ - protected CustomEntryImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.CUSTOM_ENTRY; - } - - /** - * - * - * @generated - */ - @Override - public String getKey() - { - return key; - } - - /** - * - * - * @generated - */ - @Override - public void setKey(String newKey) - { - String oldKey = key; - key = newKey; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.CUSTOM_ENTRY__KEY, oldKey, key)); - } - - /** - * - * - * @generated - */ - @Override - public String getValue() - { - return value; - } - - /** - * - * - * @generated - */ - @Override - public void setValue(String newValue) - { - String oldValue = value; - value = newValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.CUSTOM_ENTRY__VALUE, oldValue, value)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CUSTOM_ENTRY__KEY: - return getKey(); - case ApplicationConfigurationPackage.CUSTOM_ENTRY__VALUE: - return getValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CUSTOM_ENTRY__KEY: - setKey((String)newValue); - return; - case ApplicationConfigurationPackage.CUSTOM_ENTRY__VALUE: - setValue((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CUSTOM_ENTRY__KEY: - setKey(KEY_EDEFAULT); - return; - case ApplicationConfigurationPackage.CUSTOM_ENTRY__VALUE: - setValue(VALUE_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CUSTOM_ENTRY__KEY: - return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key); - case ApplicationConfigurationPackage.CUSTOM_ENTRY__VALUE: - return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (key: "); - result.append(key); - result.append(", value: "); - result.append(value); - result.append(')'); - return result.toString(); - } - -} //CustomEntryImpl +/** + * generated by Xtext 2.21.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.CustomEntry; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Custom Entry'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.CustomEntryImpl#getKey Key}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.CustomEntryImpl#getValue Value}
  • + *
+ * + * @generated + */ +public class CustomEntryImpl extends ConfigEntryImpl implements CustomEntry +{ + /** + * The default value of the '{@link #getKey() Key}' attribute. + * + * + * @see #getKey() + * @generated + * @ordered + */ + protected static final String KEY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getKey() Key}' attribute. + * + * + * @see #getKey() + * @generated + * @ordered + */ + protected String key = KEY_EDEFAULT; + + /** + * The default value of the '{@link #getValue() Value}' attribute. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected static final String VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getValue() Value}' attribute. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected String value = VALUE_EDEFAULT; + + /** + * + * + * @generated + */ + protected CustomEntryImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.CUSTOM_ENTRY; + } + + /** + * + * + * @generated + */ + @Override + public String getKey() + { + return key; + } + + /** + * + * + * @generated + */ + @Override + public void setKey(String newKey) + { + String oldKey = key; + key = newKey; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.CUSTOM_ENTRY__KEY, oldKey, key)); + } + + /** + * + * + * @generated + */ + @Override + public String getValue() + { + return value; + } + + /** + * + * + * @generated + */ + @Override + public void setValue(String newValue) + { + String oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.CUSTOM_ENTRY__VALUE, oldValue, value)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CUSTOM_ENTRY__KEY: + return getKey(); + case ApplicationConfigurationPackage.CUSTOM_ENTRY__VALUE: + return getValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CUSTOM_ENTRY__KEY: + setKey((String)newValue); + return; + case ApplicationConfigurationPackage.CUSTOM_ENTRY__VALUE: + setValue((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CUSTOM_ENTRY__KEY: + setKey(KEY_EDEFAULT); + return; + case ApplicationConfigurationPackage.CUSTOM_ENTRY__VALUE: + setValue(VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.CUSTOM_ENTRY__KEY: + return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key); + case ApplicationConfigurationPackage.CUSTOM_ENTRY__VALUE: + return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (key: "); + result.append(key); + result.append(", value: "); + result.append(value); + result.append(')'); + return result.toString(); + } + +} //CustomEntryImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/DeclarationImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/DeclarationImpl.java index 8d760550..5eae552b 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/DeclarationImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/DeclarationImpl.java @@ -1,179 +1,179 @@ -/** - * generated by Xtext 2.21.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.Declaration; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Declaration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.DeclarationImpl#getName Name}
  • - *
- * - * @generated - */ -public class DeclarationImpl extends CommandImpl implements Declaration -{ - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * - * - * @generated - */ - protected DeclarationImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.DECLARATION; - } - - /** - * - * - * @generated - */ - @Override - public String getName() - { - return name; - } - - /** - * - * - * @generated - */ - @Override - public void setName(String newName) - { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.DECLARATION__NAME, oldName, name)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.DECLARATION__NAME: - return getName(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.DECLARATION__NAME: - setName((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.DECLARATION__NAME: - setName(NAME_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.DECLARATION__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -} //DeclarationImpl +/** + * generated by Xtext 2.21.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.Declaration; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Declaration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.DeclarationImpl#getName Name}
  • + *
+ * + * @generated + */ +public class DeclarationImpl extends CommandImpl implements Declaration +{ + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * + * + * @generated + */ + protected DeclarationImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.DECLARATION; + } + + /** + * + * + * @generated + */ + @Override + public String getName() + { + return name; + } + + /** + * + * + * @generated + */ + @Override + public void setName(String newName) + { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.DECLARATION__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.DECLARATION__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.DECLARATION__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.DECLARATION__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.DECLARATION__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //DeclarationImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/DocumentationEntryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/DocumentationEntryImpl.java index 5c2543a9..79b25430 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/DocumentationEntryImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/DocumentationEntryImpl.java @@ -1,180 +1,180 @@ -/** - * generated by Xtext 2.21.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.DocumentLevelSpecification; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.DocumentationEntry; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Documentation Entry'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.DocumentationEntryImpl#getLevel Level}
  • - *
- * - * @generated - */ -public class DocumentationEntryImpl extends ConfigEntryImpl implements DocumentationEntry -{ - /** - * The default value of the '{@link #getLevel() Level}' attribute. - * - * - * @see #getLevel() - * @generated - * @ordered - */ - protected static final DocumentLevelSpecification LEVEL_EDEFAULT = DocumentLevelSpecification.NONE; - - /** - * The cached value of the '{@link #getLevel() Level}' attribute. - * - * - * @see #getLevel() - * @generated - * @ordered - */ - protected DocumentLevelSpecification level = LEVEL_EDEFAULT; - - /** - * - * - * @generated - */ - protected DocumentationEntryImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.DOCUMENTATION_ENTRY; - } - - /** - * - * - * @generated - */ - @Override - public DocumentLevelSpecification getLevel() - { - return level; - } - - /** - * - * - * @generated - */ - @Override - public void setLevel(DocumentLevelSpecification newLevel) - { - DocumentLevelSpecification oldLevel = level; - level = newLevel == null ? LEVEL_EDEFAULT : newLevel; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.DOCUMENTATION_ENTRY__LEVEL, oldLevel, level)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.DOCUMENTATION_ENTRY__LEVEL: - return getLevel(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.DOCUMENTATION_ENTRY__LEVEL: - setLevel((DocumentLevelSpecification)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.DOCUMENTATION_ENTRY__LEVEL: - setLevel(LEVEL_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.DOCUMENTATION_ENTRY__LEVEL: - return level != LEVEL_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (level: "); - result.append(level); - result.append(')'); - return result.toString(); - } - -} //DocumentationEntryImpl +/** + * generated by Xtext 2.21.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.DocumentLevelSpecification; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.DocumentationEntry; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Documentation Entry'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.DocumentationEntryImpl#getLevel Level}
  • + *
+ * + * @generated + */ +public class DocumentationEntryImpl extends ConfigEntryImpl implements DocumentationEntry +{ + /** + * The default value of the '{@link #getLevel() Level}' attribute. + * + * + * @see #getLevel() + * @generated + * @ordered + */ + protected static final DocumentLevelSpecification LEVEL_EDEFAULT = DocumentLevelSpecification.NONE; + + /** + * The cached value of the '{@link #getLevel() Level}' attribute. + * + * + * @see #getLevel() + * @generated + * @ordered + */ + protected DocumentLevelSpecification level = LEVEL_EDEFAULT; + + /** + * + * + * @generated + */ + protected DocumentationEntryImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.DOCUMENTATION_ENTRY; + } + + /** + * + * + * @generated + */ + @Override + public DocumentLevelSpecification getLevel() + { + return level; + } + + /** + * + * + * @generated + */ + @Override + public void setLevel(DocumentLevelSpecification newLevel) + { + DocumentLevelSpecification oldLevel = level; + level = newLevel == null ? LEVEL_EDEFAULT : newLevel; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.DOCUMENTATION_ENTRY__LEVEL, oldLevel, level)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.DOCUMENTATION_ENTRY__LEVEL: + return getLevel(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.DOCUMENTATION_ENTRY__LEVEL: + setLevel((DocumentLevelSpecification)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.DOCUMENTATION_ENTRY__LEVEL: + setLevel(LEVEL_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.DOCUMENTATION_ENTRY__LEVEL: + return level != LEVEL_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (level: "); + result.append(level); + result.append(')'); + return result.toString(); + } + +} //DocumentationEntryImpl 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 29b28ec8..5192a52c 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,175 +1,175 @@ -/** - * generated by Xtext 2.21.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: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.EPackageImportImpl#getImportedPackage Imported Package}
  • - *
- * - * @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 +/** + * generated by Xtext 2.21.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: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.EPackageImportImpl#getImportedPackage Imported Package}
  • + *
+ * + * @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 diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ExactNumberImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ExactNumberImpl.java index 4c9a9f4e..bf33c471 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ExactNumberImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ExactNumberImpl.java @@ -1,237 +1,237 @@ -/** - * generated by Xtext 2.21.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.ExactNumber; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Exact Number'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ExactNumberImpl#getExactNumber Exact Number}
  • - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ExactNumberImpl#isExactUnlimited Exact Unlimited}
  • - *
- * - * @generated - */ -public class ExactNumberImpl extends NumberSpecificationImpl implements ExactNumber -{ - /** - * The default value of the '{@link #getExactNumber() Exact Number}' attribute. - * - * - * @see #getExactNumber() - * @generated - * @ordered - */ - protected static final int EXACT_NUMBER_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getExactNumber() Exact Number}' attribute. - * - * - * @see #getExactNumber() - * @generated - * @ordered - */ - protected int exactNumber = EXACT_NUMBER_EDEFAULT; - - /** - * The default value of the '{@link #isExactUnlimited() Exact Unlimited}' attribute. - * - * - * @see #isExactUnlimited() - * @generated - * @ordered - */ - protected static final boolean EXACT_UNLIMITED_EDEFAULT = false; - - /** - * The cached value of the '{@link #isExactUnlimited() Exact Unlimited}' attribute. - * - * - * @see #isExactUnlimited() - * @generated - * @ordered - */ - protected boolean exactUnlimited = EXACT_UNLIMITED_EDEFAULT; - - /** - * - * - * @generated - */ - protected ExactNumberImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.EXACT_NUMBER; - } - - /** - * - * - * @generated - */ - @Override - public int getExactNumber() - { - return exactNumber; - } - - /** - * - * - * @generated - */ - @Override - public void setExactNumber(int newExactNumber) - { - int oldExactNumber = exactNumber; - exactNumber = newExactNumber; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER, oldExactNumber, exactNumber)); - } - - /** - * - * - * @generated - */ - @Override - public boolean isExactUnlimited() - { - return exactUnlimited; - } - - /** - * - * - * @generated - */ - @Override - public void setExactUnlimited(boolean newExactUnlimited) - { - boolean oldExactUnlimited = exactUnlimited; - exactUnlimited = newExactUnlimited; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED, oldExactUnlimited, exactUnlimited)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: - return getExactNumber(); - case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: - return isExactUnlimited(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: - setExactNumber((Integer)newValue); - return; - case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: - setExactUnlimited((Boolean)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: - setExactNumber(EXACT_NUMBER_EDEFAULT); - return; - case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: - setExactUnlimited(EXACT_UNLIMITED_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: - return exactNumber != EXACT_NUMBER_EDEFAULT; - case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: - return exactUnlimited != EXACT_UNLIMITED_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (exactNumber: "); - result.append(exactNumber); - result.append(", exactUnlimited: "); - result.append(exactUnlimited); - result.append(')'); - return result.toString(); - } - -} //ExactNumberImpl +/** + * generated by Xtext 2.21.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.ExactNumber; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Exact Number'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ExactNumberImpl#getExactNumber Exact Number}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ExactNumberImpl#isExactUnlimited Exact Unlimited}
  • + *
+ * + * @generated + */ +public class ExactNumberImpl extends NumberSpecificationImpl implements ExactNumber +{ + /** + * The default value of the '{@link #getExactNumber() Exact Number}' attribute. + * + * + * @see #getExactNumber() + * @generated + * @ordered + */ + protected static final int EXACT_NUMBER_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getExactNumber() Exact Number}' attribute. + * + * + * @see #getExactNumber() + * @generated + * @ordered + */ + protected int exactNumber = EXACT_NUMBER_EDEFAULT; + + /** + * The default value of the '{@link #isExactUnlimited() Exact Unlimited}' attribute. + * + * + * @see #isExactUnlimited() + * @generated + * @ordered + */ + protected static final boolean EXACT_UNLIMITED_EDEFAULT = false; + + /** + * The cached value of the '{@link #isExactUnlimited() Exact Unlimited}' attribute. + * + * + * @see #isExactUnlimited() + * @generated + * @ordered + */ + protected boolean exactUnlimited = EXACT_UNLIMITED_EDEFAULT; + + /** + * + * + * @generated + */ + protected ExactNumberImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.EXACT_NUMBER; + } + + /** + * + * + * @generated + */ + @Override + public int getExactNumber() + { + return exactNumber; + } + + /** + * + * + * @generated + */ + @Override + public void setExactNumber(int newExactNumber) + { + int oldExactNumber = exactNumber; + exactNumber = newExactNumber; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER, oldExactNumber, exactNumber)); + } + + /** + * + * + * @generated + */ + @Override + public boolean isExactUnlimited() + { + return exactUnlimited; + } + + /** + * + * + * @generated + */ + @Override + public void setExactUnlimited(boolean newExactUnlimited) + { + boolean oldExactUnlimited = exactUnlimited; + exactUnlimited = newExactUnlimited; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED, oldExactUnlimited, exactUnlimited)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: + return getExactNumber(); + case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: + return isExactUnlimited(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: + setExactNumber((Integer)newValue); + return; + case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: + setExactUnlimited((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: + setExactNumber(EXACT_NUMBER_EDEFAULT); + return; + case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: + setExactUnlimited(EXACT_UNLIMITED_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: + return exactNumber != EXACT_NUMBER_EDEFAULT; + case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: + return exactUnlimited != EXACT_UNLIMITED_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (exactNumber: "); + result.append(exactNumber); + result.append(", exactUnlimited: "); + result.append(exactUnlimited); + result.append(')'); + return result.toString(); + } + +} //ExactNumberImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/FileDeclarationImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/FileDeclarationImpl.java index 879aefd8..6860497c 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/FileDeclarationImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/FileDeclarationImpl.java @@ -1,196 +1,196 @@ -/** - * generated by Xtext 2.21.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.FileDeclaration; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.FileSpecification; - -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 'File Declaration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.FileDeclarationImpl#getSpecification Specification}
  • - *
- * - * @generated - */ -public class FileDeclarationImpl extends DeclarationImpl implements FileDeclaration -{ - /** - * The cached value of the '{@link #getSpecification() Specification}' containment reference. - * - * - * @see #getSpecification() - * @generated - * @ordered - */ - protected FileSpecification specification; - - /** - * - * - * @generated - */ - protected FileDeclarationImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.FILE_DECLARATION; - } - - /** - * - * - * @generated - */ - @Override - public FileSpecification getSpecification() - { - return specification; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetSpecification(FileSpecification newSpecification, NotificationChain msgs) - { - FileSpecification oldSpecification = specification; - specification = newSpecification; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.FILE_DECLARATION__SPECIFICATION, oldSpecification, newSpecification); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setSpecification(FileSpecification newSpecification) - { - if (newSpecification != specification) - { - NotificationChain msgs = null; - if (specification != null) - msgs = ((InternalEObject)specification).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.FILE_DECLARATION__SPECIFICATION, null, msgs); - if (newSpecification != null) - msgs = ((InternalEObject)newSpecification).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.FILE_DECLARATION__SPECIFICATION, null, msgs); - msgs = basicSetSpecification(newSpecification, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.FILE_DECLARATION__SPECIFICATION, newSpecification, newSpecification)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ApplicationConfigurationPackage.FILE_DECLARATION__SPECIFICATION: - return basicSetSpecification(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.FILE_DECLARATION__SPECIFICATION: - return getSpecification(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.FILE_DECLARATION__SPECIFICATION: - setSpecification((FileSpecification)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.FILE_DECLARATION__SPECIFICATION: - setSpecification((FileSpecification)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.FILE_DECLARATION__SPECIFICATION: - return specification != null; - } - return super.eIsSet(featureID); - } - -} //FileDeclarationImpl +/** + * generated by Xtext 2.21.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.FileDeclaration; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.FileSpecification; + +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 'File Declaration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.FileDeclarationImpl#getSpecification Specification}
  • + *
+ * + * @generated + */ +public class FileDeclarationImpl extends DeclarationImpl implements FileDeclaration +{ + /** + * The cached value of the '{@link #getSpecification() Specification}' containment reference. + * + * + * @see #getSpecification() + * @generated + * @ordered + */ + protected FileSpecification specification; + + /** + * + * + * @generated + */ + protected FileDeclarationImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.FILE_DECLARATION; + } + + /** + * + * + * @generated + */ + @Override + public FileSpecification getSpecification() + { + return specification; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetSpecification(FileSpecification newSpecification, NotificationChain msgs) + { + FileSpecification oldSpecification = specification; + specification = newSpecification; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.FILE_DECLARATION__SPECIFICATION, oldSpecification, newSpecification); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + @Override + public void setSpecification(FileSpecification newSpecification) + { + if (newSpecification != specification) + { + NotificationChain msgs = null; + if (specification != null) + msgs = ((InternalEObject)specification).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.FILE_DECLARATION__SPECIFICATION, null, msgs); + if (newSpecification != null) + msgs = ((InternalEObject)newSpecification).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.FILE_DECLARATION__SPECIFICATION, null, msgs); + msgs = basicSetSpecification(newSpecification, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.FILE_DECLARATION__SPECIFICATION, newSpecification, newSpecification)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case ApplicationConfigurationPackage.FILE_DECLARATION__SPECIFICATION: + return basicSetSpecification(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.FILE_DECLARATION__SPECIFICATION: + return getSpecification(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.FILE_DECLARATION__SPECIFICATION: + setSpecification((FileSpecification)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.FILE_DECLARATION__SPECIFICATION: + setSpecification((FileSpecification)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.FILE_DECLARATION__SPECIFICATION: + return specification != null; + } + return super.eIsSet(featureID); + } + +} //FileDeclarationImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/FileImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/FileImpl.java index 4d526bd4..4c32277a 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/FileImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/FileImpl.java @@ -1,43 +1,43 @@ -/** - * generated by Xtext 2.21.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.File; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -/** - * - * An implementation of the model object 'File'. - * - * - * @generated - */ -public class FileImpl extends MinimalEObjectImpl.Container implements File -{ - /** - * - * - * @generated - */ - protected FileImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.FILE; - } - -} //FileImpl +/** + * generated by Xtext 2.21.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.File; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'File'. + * + * + * @generated + */ +public class FileImpl extends MinimalEObjectImpl.Container implements File +{ + /** + * + * + * @generated + */ + protected FileImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.FILE; + } + +} //FileImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/FileReferenceImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/FileReferenceImpl.java index ab08fd97..cb3b8f23 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/FileReferenceImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/FileReferenceImpl.java @@ -1,175 +1,175 @@ -/** - * generated by Xtext 2.21.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.FileDeclaration; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.FileReference; - -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 'File Reference'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.FileReferenceImpl#getReferred Referred}
  • - *
- * - * @generated - */ -public class FileReferenceImpl extends FileImpl implements FileReference -{ - /** - * The cached value of the '{@link #getReferred() Referred}' reference. - * - * - * @see #getReferred() - * @generated - * @ordered - */ - protected FileDeclaration referred; - - /** - * - * - * @generated - */ - protected FileReferenceImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.FILE_REFERENCE; - } - - /** - * - * - * @generated - */ - @Override - public FileDeclaration getReferred() - { - if (referred != null && referred.eIsProxy()) - { - InternalEObject oldReferred = (InternalEObject)referred; - referred = (FileDeclaration)eResolveProxy(oldReferred); - if (referred != oldReferred) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.FILE_REFERENCE__REFERRED, oldReferred, referred)); - } - } - return referred; - } - - /** - * - * - * @generated - */ - public FileDeclaration basicGetReferred() - { - return referred; - } - - /** - * - * - * @generated - */ - @Override - public void setReferred(FileDeclaration newReferred) - { - FileDeclaration oldReferred = referred; - referred = newReferred; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.FILE_REFERENCE__REFERRED, oldReferred, referred)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.FILE_REFERENCE__REFERRED: - if (resolve) return getReferred(); - return basicGetReferred(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.FILE_REFERENCE__REFERRED: - setReferred((FileDeclaration)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.FILE_REFERENCE__REFERRED: - setReferred((FileDeclaration)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.FILE_REFERENCE__REFERRED: - return referred != null; - } - return super.eIsSet(featureID); - } - -} //FileReferenceImpl +/** + * generated by Xtext 2.21.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.FileDeclaration; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.FileReference; + +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 'File Reference'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.FileReferenceImpl#getReferred Referred}
  • + *
+ * + * @generated + */ +public class FileReferenceImpl extends FileImpl implements FileReference +{ + /** + * The cached value of the '{@link #getReferred() Referred}' reference. + * + * + * @see #getReferred() + * @generated + * @ordered + */ + protected FileDeclaration referred; + + /** + * + * + * @generated + */ + protected FileReferenceImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.FILE_REFERENCE; + } + + /** + * + * + * @generated + */ + @Override + public FileDeclaration getReferred() + { + if (referred != null && referred.eIsProxy()) + { + InternalEObject oldReferred = (InternalEObject)referred; + referred = (FileDeclaration)eResolveProxy(oldReferred); + if (referred != oldReferred) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.FILE_REFERENCE__REFERRED, oldReferred, referred)); + } + } + return referred; + } + + /** + * + * + * @generated + */ + public FileDeclaration basicGetReferred() + { + return referred; + } + + /** + * + * + * @generated + */ + @Override + public void setReferred(FileDeclaration newReferred) + { + FileDeclaration oldReferred = referred; + referred = newReferred; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.FILE_REFERENCE__REFERRED, oldReferred, referred)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.FILE_REFERENCE__REFERRED: + if (resolve) return getReferred(); + return basicGetReferred(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.FILE_REFERENCE__REFERRED: + setReferred((FileDeclaration)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.FILE_REFERENCE__REFERRED: + setReferred((FileDeclaration)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.FILE_REFERENCE__REFERRED: + return referred != null; + } + return super.eIsSet(featureID); + } + +} //FileReferenceImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/FileSpecificationImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/FileSpecificationImpl.java index a53064e0..65364312 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/FileSpecificationImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/FileSpecificationImpl.java @@ -1,179 +1,179 @@ -/** - * generated by Xtext 2.21.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.FileSpecification; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'File Specification'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.FileSpecificationImpl#getPath Path}
  • - *
- * - * @generated - */ -public class FileSpecificationImpl extends FileImpl implements FileSpecification -{ - /** - * The default value of the '{@link #getPath() Path}' attribute. - * - * - * @see #getPath() - * @generated - * @ordered - */ - protected static final String PATH_EDEFAULT = null; - - /** - * The cached value of the '{@link #getPath() Path}' attribute. - * - * - * @see #getPath() - * @generated - * @ordered - */ - protected String path = PATH_EDEFAULT; - - /** - * - * - * @generated - */ - protected FileSpecificationImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.FILE_SPECIFICATION; - } - - /** - * - * - * @generated - */ - @Override - public String getPath() - { - return path; - } - - /** - * - * - * @generated - */ - @Override - public void setPath(String newPath) - { - String oldPath = path; - path = newPath; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.FILE_SPECIFICATION__PATH, oldPath, path)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.FILE_SPECIFICATION__PATH: - return getPath(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.FILE_SPECIFICATION__PATH: - setPath((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.FILE_SPECIFICATION__PATH: - setPath(PATH_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.FILE_SPECIFICATION__PATH: - return PATH_EDEFAULT == null ? path != null : !PATH_EDEFAULT.equals(path); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (path: "); - result.append(path); - result.append(')'); - return result.toString(); - } - -} //FileSpecificationImpl +/** + * generated by Xtext 2.21.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.FileSpecification; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'File Specification'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.FileSpecificationImpl#getPath Path}
  • + *
+ * + * @generated + */ +public class FileSpecificationImpl extends FileImpl implements FileSpecification +{ + /** + * The default value of the '{@link #getPath() Path}' attribute. + * + * + * @see #getPath() + * @generated + * @ordered + */ + protected static final String PATH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPath() Path}' attribute. + * + * + * @see #getPath() + * @generated + * @ordered + */ + protected String path = PATH_EDEFAULT; + + /** + * + * + * @generated + */ + protected FileSpecificationImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.FILE_SPECIFICATION; + } + + /** + * + * + * @generated + */ + @Override + public String getPath() + { + return path; + } + + /** + * + * + * @generated + */ + @Override + public void setPath(String newPath) + { + String oldPath = path; + path = newPath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.FILE_SPECIFICATION__PATH, oldPath, path)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.FILE_SPECIFICATION__PATH: + return getPath(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.FILE_SPECIFICATION__PATH: + setPath((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.FILE_SPECIFICATION__PATH: + setPath(PATH_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.FILE_SPECIFICATION__PATH: + return PATH_EDEFAULT == null ? path != null : !PATH_EDEFAULT.equals(path); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (path: "); + result.append(path); + result.append(')'); + return result.toString(); + } + +} //FileSpecificationImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/FolderEntryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/FolderEntryImpl.java index 748f2c0a..deddbe74 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/FolderEntryImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/FolderEntryImpl.java @@ -1,167 +1,167 @@ -/** - * generated by Xtext 2.21.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.FolderEntry; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ModelEntry; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -/** - * - * An implementation of the model object 'Folder Entry'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.FolderEntryImpl#getExclusion Exclusion}
  • - *
- * - * @generated - */ -public class FolderEntryImpl extends PartialModelEntryImpl implements FolderEntry -{ - /** - * The cached value of the '{@link #getExclusion() Exclusion}' containment reference list. - * - * - * @see #getExclusion() - * @generated - * @ordered - */ - protected EList exclusion; - - /** - * - * - * @generated - */ - protected FolderEntryImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.FOLDER_ENTRY; - } - - /** - * - * - * @generated - */ - @Override - public EList getExclusion() - { - if (exclusion == null) - { - exclusion = new EObjectContainmentEList(ModelEntry.class, this, ApplicationConfigurationPackage.FOLDER_ENTRY__EXCLUSION); - } - return exclusion; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ApplicationConfigurationPackage.FOLDER_ENTRY__EXCLUSION: - return ((InternalEList)getExclusion()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.FOLDER_ENTRY__EXCLUSION: - return getExclusion(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.FOLDER_ENTRY__EXCLUSION: - getExclusion().clear(); - getExclusion().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.FOLDER_ENTRY__EXCLUSION: - getExclusion().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.FOLDER_ENTRY__EXCLUSION: - return exclusion != null && !exclusion.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //FolderEntryImpl +/** + * generated by Xtext 2.21.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.FolderEntry; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ModelEntry; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Folder Entry'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.FolderEntryImpl#getExclusion Exclusion}
  • + *
+ * + * @generated + */ +public class FolderEntryImpl extends PartialModelEntryImpl implements FolderEntry +{ + /** + * The cached value of the '{@link #getExclusion() Exclusion}' containment reference list. + * + * + * @see #getExclusion() + * @generated + * @ordered + */ + protected EList exclusion; + + /** + * + * + * @generated + */ + protected FolderEntryImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.FOLDER_ENTRY; + } + + /** + * + * + * @generated + */ + @Override + public EList getExclusion() + { + if (exclusion == null) + { + exclusion = new EObjectContainmentEList(ModelEntry.class, this, ApplicationConfigurationPackage.FOLDER_ENTRY__EXCLUSION); + } + return exclusion; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case ApplicationConfigurationPackage.FOLDER_ENTRY__EXCLUSION: + return ((InternalEList)getExclusion()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.FOLDER_ENTRY__EXCLUSION: + return getExclusion(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.FOLDER_ENTRY__EXCLUSION: + getExclusion().clear(); + getExclusion().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.FOLDER_ENTRY__EXCLUSION: + getExclusion().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.FOLDER_ENTRY__EXCLUSION: + return exclusion != null && !exclusion.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //FolderEntryImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/GenerationTaskImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/GenerationTaskImpl.java index 38a81bc3..cc1270bf 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/GenerationTaskImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/GenerationTaskImpl.java @@ -1,1165 +1,1165 @@ -/** - * generated by Xtext 2.21.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.Config; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.File; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.GenerationTask; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.GraphPattern; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Metamodel; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Objective; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PartialModel; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Scope; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Solver; - -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 'Generation Task'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getMetamodel Metamodel}
  • - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getPartialModel Partial Model}
  • - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getPatterns Patterns}
  • - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getObjectives Objectives}
  • - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getScope Scope}
  • - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#isNumberSpecified Number Specified}
  • - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getNumber Number}
  • - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#isRunSpecified Run Specified}
  • - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getRuns Runs}
  • - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getSolver Solver}
  • - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getConfig Config}
  • - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getDebugFolder Debug Folder}
  • - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getTargetLogFile Target Log File}
  • - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getTargetStatisticsFile Target Statistics File}
  • - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getTagetFolder Taget Folder}
  • - *
- * - * @generated - */ -public class GenerationTaskImpl extends TaskImpl implements GenerationTask -{ - /** - * The cached value of the '{@link #getMetamodel() Metamodel}' containment reference. - * - * - * @see #getMetamodel() - * @generated - * @ordered - */ - protected Metamodel metamodel; - - /** - * The cached value of the '{@link #getPartialModel() Partial Model}' containment reference. - * - * - * @see #getPartialModel() - * @generated - * @ordered - */ - protected PartialModel partialModel; - - /** - * The cached value of the '{@link #getPatterns() Patterns}' containment reference. - * - * - * @see #getPatterns() - * @generated - * @ordered - */ - protected GraphPattern patterns; - - /** - * The cached value of the '{@link #getObjectives() Objectives}' containment reference. - * - * - * @see #getObjectives() - * @generated - * @ordered - */ - protected Objective objectives; - - /** - * The cached value of the '{@link #getScope() Scope}' containment reference. - * - * - * @see #getScope() - * @generated - * @ordered - */ - protected Scope scope; - - /** - * The default value of the '{@link #isNumberSpecified() Number Specified}' attribute. - * - * - * @see #isNumberSpecified() - * @generated - * @ordered - */ - protected static final boolean NUMBER_SPECIFIED_EDEFAULT = false; - - /** - * The cached value of the '{@link #isNumberSpecified() Number Specified}' attribute. - * - * - * @see #isNumberSpecified() - * @generated - * @ordered - */ - protected boolean numberSpecified = NUMBER_SPECIFIED_EDEFAULT; - - /** - * The default value of the '{@link #getNumber() Number}' attribute. - * - * - * @see #getNumber() - * @generated - * @ordered - */ - protected static final int NUMBER_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getNumber() Number}' attribute. - * - * - * @see #getNumber() - * @generated - * @ordered - */ - protected int number = NUMBER_EDEFAULT; - - /** - * The default value of the '{@link #isRunSpecified() Run Specified}' attribute. - * - * - * @see #isRunSpecified() - * @generated - * @ordered - */ - protected static final boolean RUN_SPECIFIED_EDEFAULT = false; - - /** - * The cached value of the '{@link #isRunSpecified() Run Specified}' attribute. - * - * - * @see #isRunSpecified() - * @generated - * @ordered - */ - protected boolean runSpecified = RUN_SPECIFIED_EDEFAULT; - - /** - * The default value of the '{@link #getRuns() Runs}' attribute. - * - * - * @see #getRuns() - * @generated - * @ordered - */ - protected static final int RUNS_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getRuns() Runs}' attribute. - * - * - * @see #getRuns() - * @generated - * @ordered - */ - protected int runs = RUNS_EDEFAULT; - - /** - * The default value of the '{@link #getSolver() Solver}' attribute. - * - * - * @see #getSolver() - * @generated - * @ordered - */ - protected static final Solver SOLVER_EDEFAULT = Solver.SMT_SOLVER; - - /** - * The cached value of the '{@link #getSolver() Solver}' attribute. - * - * - * @see #getSolver() - * @generated - * @ordered - */ - protected Solver solver = SOLVER_EDEFAULT; - - /** - * The cached value of the '{@link #getConfig() Config}' containment reference. - * - * - * @see #getConfig() - * @generated - * @ordered - */ - protected Config config; - - /** - * The cached value of the '{@link #getDebugFolder() Debug Folder}' containment reference. - * - * - * @see #getDebugFolder() - * @generated - * @ordered - */ - protected File debugFolder; - - /** - * The cached value of the '{@link #getTargetLogFile() Target Log File}' containment reference. - * - * - * @see #getTargetLogFile() - * @generated - * @ordered - */ - protected File targetLogFile; - - /** - * The cached value of the '{@link #getTargetStatisticsFile() Target Statistics File}' containment reference. - * - * - * @see #getTargetStatisticsFile() - * @generated - * @ordered - */ - protected File targetStatisticsFile; - - /** - * The cached value of the '{@link #getTagetFolder() Taget Folder}' containment reference. - * - * - * @see #getTagetFolder() - * @generated - * @ordered - */ - protected File tagetFolder; - - /** - * - * - * @generated - */ - protected GenerationTaskImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.GENERATION_TASK; - } - - /** - * - * - * @generated - */ - @Override - public Metamodel getMetamodel() - { - return metamodel; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetMetamodel(Metamodel newMetamodel, NotificationChain msgs) - { - Metamodel oldMetamodel = metamodel; - metamodel = newMetamodel; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__METAMODEL, oldMetamodel, newMetamodel); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setMetamodel(Metamodel newMetamodel) - { - if (newMetamodel != metamodel) - { - NotificationChain msgs = null; - if (metamodel != null) - msgs = ((InternalEObject)metamodel).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__METAMODEL, null, msgs); - if (newMetamodel != null) - msgs = ((InternalEObject)newMetamodel).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__METAMODEL, null, msgs); - msgs = basicSetMetamodel(newMetamodel, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__METAMODEL, newMetamodel, newMetamodel)); - } - - /** - * - * - * @generated - */ - @Override - public PartialModel getPartialModel() - { - return partialModel; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetPartialModel(PartialModel newPartialModel, NotificationChain msgs) - { - PartialModel oldPartialModel = partialModel; - partialModel = newPartialModel; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__PARTIAL_MODEL, oldPartialModel, newPartialModel); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setPartialModel(PartialModel newPartialModel) - { - if (newPartialModel != partialModel) - { - NotificationChain msgs = null; - if (partialModel != null) - msgs = ((InternalEObject)partialModel).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__PARTIAL_MODEL, null, msgs); - if (newPartialModel != null) - msgs = ((InternalEObject)newPartialModel).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__PARTIAL_MODEL, null, msgs); - msgs = basicSetPartialModel(newPartialModel, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__PARTIAL_MODEL, newPartialModel, newPartialModel)); - } - - /** - * - * - * @generated - */ - @Override - public GraphPattern getPatterns() - { - return patterns; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetPatterns(GraphPattern newPatterns, NotificationChain msgs) - { - GraphPattern oldPatterns = patterns; - patterns = newPatterns; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__PATTERNS, oldPatterns, newPatterns); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setPatterns(GraphPattern newPatterns) - { - if (newPatterns != patterns) - { - NotificationChain msgs = null; - if (patterns != null) - msgs = ((InternalEObject)patterns).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__PATTERNS, null, msgs); - if (newPatterns != null) - msgs = ((InternalEObject)newPatterns).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__PATTERNS, null, msgs); - msgs = basicSetPatterns(newPatterns, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__PATTERNS, newPatterns, newPatterns)); - } - - /** - * - * - * @generated - */ - @Override - public Objective getObjectives() - { - return objectives; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetObjectives(Objective newObjectives, NotificationChain msgs) - { - Objective oldObjectives = objectives; - objectives = newObjectives; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__OBJECTIVES, oldObjectives, newObjectives); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setObjectives(Objective newObjectives) - { - if (newObjectives != objectives) - { - NotificationChain msgs = null; - if (objectives != null) - msgs = ((InternalEObject)objectives).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__OBJECTIVES, null, msgs); - if (newObjectives != null) - msgs = ((InternalEObject)newObjectives).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__OBJECTIVES, null, msgs); - msgs = basicSetObjectives(newObjectives, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__OBJECTIVES, newObjectives, newObjectives)); - } - - /** - * - * - * @generated - */ - @Override - public Scope getScope() - { - return scope; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetScope(Scope newScope, NotificationChain msgs) - { - Scope oldScope = scope; - scope = newScope; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__SCOPE, oldScope, newScope); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setScope(Scope newScope) - { - if (newScope != scope) - { - NotificationChain msgs = null; - if (scope != null) - msgs = ((InternalEObject)scope).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__SCOPE, null, msgs); - if (newScope != null) - msgs = ((InternalEObject)newScope).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__SCOPE, null, msgs); - msgs = basicSetScope(newScope, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__SCOPE, newScope, newScope)); - } - - /** - * - * - * @generated - */ - @Override - public boolean isNumberSpecified() - { - return numberSpecified; - } - - /** - * - * - * @generated - */ - @Override - public void setNumberSpecified(boolean newNumberSpecified) - { - boolean oldNumberSpecified = numberSpecified; - numberSpecified = newNumberSpecified; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__NUMBER_SPECIFIED, oldNumberSpecified, numberSpecified)); - } - - /** - * - * - * @generated - */ - @Override - public int getNumber() - { - return number; - } - - /** - * - * - * @generated - */ - @Override - public void setNumber(int newNumber) - { - int oldNumber = number; - number = newNumber; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__NUMBER, oldNumber, number)); - } - - /** - * - * - * @generated - */ - @Override - public boolean isRunSpecified() - { - return runSpecified; - } - - /** - * - * - * @generated - */ - @Override - public void setRunSpecified(boolean newRunSpecified) - { - boolean oldRunSpecified = runSpecified; - runSpecified = newRunSpecified; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__RUN_SPECIFIED, oldRunSpecified, runSpecified)); - } - - /** - * - * - * @generated - */ - @Override - public int getRuns() - { - return runs; - } - - /** - * - * - * @generated - */ - @Override - public void setRuns(int newRuns) - { - int oldRuns = runs; - runs = newRuns; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__RUNS, oldRuns, runs)); - } - - /** - * - * - * @generated - */ - @Override - public Solver getSolver() - { - return solver; - } - - /** - * - * - * @generated - */ - @Override - public void setSolver(Solver newSolver) - { - Solver oldSolver = solver; - solver = newSolver == null ? SOLVER_EDEFAULT : newSolver; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__SOLVER, oldSolver, solver)); - } - - /** - * - * - * @generated - */ - @Override - public Config getConfig() - { - return config; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetConfig(Config newConfig, NotificationChain msgs) - { - Config oldConfig = config; - config = newConfig; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__CONFIG, oldConfig, newConfig); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setConfig(Config newConfig) - { - if (newConfig != config) - { - NotificationChain msgs = null; - if (config != null) - msgs = ((InternalEObject)config).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__CONFIG, null, msgs); - if (newConfig != null) - msgs = ((InternalEObject)newConfig).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__CONFIG, null, msgs); - msgs = basicSetConfig(newConfig, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__CONFIG, newConfig, newConfig)); - } - - /** - * - * - * @generated - */ - @Override - public File getDebugFolder() - { - return debugFolder; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetDebugFolder(File newDebugFolder, NotificationChain msgs) - { - File oldDebugFolder = debugFolder; - debugFolder = newDebugFolder; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__DEBUG_FOLDER, oldDebugFolder, newDebugFolder); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setDebugFolder(File newDebugFolder) - { - if (newDebugFolder != debugFolder) - { - NotificationChain msgs = null; - if (debugFolder != null) - msgs = ((InternalEObject)debugFolder).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__DEBUG_FOLDER, null, msgs); - if (newDebugFolder != null) - msgs = ((InternalEObject)newDebugFolder).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__DEBUG_FOLDER, null, msgs); - msgs = basicSetDebugFolder(newDebugFolder, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__DEBUG_FOLDER, newDebugFolder, newDebugFolder)); - } - - /** - * - * - * @generated - */ - @Override - public File getTargetLogFile() - { - return targetLogFile; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetTargetLogFile(File newTargetLogFile, NotificationChain msgs) - { - File oldTargetLogFile = targetLogFile; - targetLogFile = newTargetLogFile; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__TARGET_LOG_FILE, oldTargetLogFile, newTargetLogFile); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setTargetLogFile(File newTargetLogFile) - { - if (newTargetLogFile != targetLogFile) - { - NotificationChain msgs = null; - if (targetLogFile != null) - msgs = ((InternalEObject)targetLogFile).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__TARGET_LOG_FILE, null, msgs); - if (newTargetLogFile != null) - msgs = ((InternalEObject)newTargetLogFile).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__TARGET_LOG_FILE, null, msgs); - msgs = basicSetTargetLogFile(newTargetLogFile, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__TARGET_LOG_FILE, newTargetLogFile, newTargetLogFile)); - } - - /** - * - * - * @generated - */ - @Override - public File getTargetStatisticsFile() - { - return targetStatisticsFile; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetTargetStatisticsFile(File newTargetStatisticsFile, NotificationChain msgs) - { - File oldTargetStatisticsFile = targetStatisticsFile; - targetStatisticsFile = newTargetStatisticsFile; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__TARGET_STATISTICS_FILE, oldTargetStatisticsFile, newTargetStatisticsFile); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setTargetStatisticsFile(File newTargetStatisticsFile) - { - if (newTargetStatisticsFile != targetStatisticsFile) - { - NotificationChain msgs = null; - if (targetStatisticsFile != null) - msgs = ((InternalEObject)targetStatisticsFile).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__TARGET_STATISTICS_FILE, null, msgs); - if (newTargetStatisticsFile != null) - msgs = ((InternalEObject)newTargetStatisticsFile).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__TARGET_STATISTICS_FILE, null, msgs); - msgs = basicSetTargetStatisticsFile(newTargetStatisticsFile, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__TARGET_STATISTICS_FILE, newTargetStatisticsFile, newTargetStatisticsFile)); - } - - /** - * - * - * @generated - */ - @Override - public File getTagetFolder() - { - return tagetFolder; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetTagetFolder(File newTagetFolder, NotificationChain msgs) - { - File oldTagetFolder = tagetFolder; - tagetFolder = newTagetFolder; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__TAGET_FOLDER, oldTagetFolder, newTagetFolder); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setTagetFolder(File newTagetFolder) - { - if (newTagetFolder != tagetFolder) - { - NotificationChain msgs = null; - if (tagetFolder != null) - msgs = ((InternalEObject)tagetFolder).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__TAGET_FOLDER, null, msgs); - if (newTagetFolder != null) - msgs = ((InternalEObject)newTagetFolder).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__TAGET_FOLDER, null, msgs); - msgs = basicSetTagetFolder(newTagetFolder, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__TAGET_FOLDER, newTagetFolder, newTagetFolder)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ApplicationConfigurationPackage.GENERATION_TASK__METAMODEL: - return basicSetMetamodel(null, msgs); - case ApplicationConfigurationPackage.GENERATION_TASK__PARTIAL_MODEL: - return basicSetPartialModel(null, msgs); - case ApplicationConfigurationPackage.GENERATION_TASK__PATTERNS: - return basicSetPatterns(null, msgs); - case ApplicationConfigurationPackage.GENERATION_TASK__OBJECTIVES: - return basicSetObjectives(null, msgs); - case ApplicationConfigurationPackage.GENERATION_TASK__SCOPE: - return basicSetScope(null, msgs); - case ApplicationConfigurationPackage.GENERATION_TASK__CONFIG: - return basicSetConfig(null, msgs); - case ApplicationConfigurationPackage.GENERATION_TASK__DEBUG_FOLDER: - return basicSetDebugFolder(null, msgs); - case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_LOG_FILE: - return basicSetTargetLogFile(null, msgs); - case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_STATISTICS_FILE: - return basicSetTargetStatisticsFile(null, msgs); - case ApplicationConfigurationPackage.GENERATION_TASK__TAGET_FOLDER: - return basicSetTagetFolder(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.GENERATION_TASK__METAMODEL: - return getMetamodel(); - case ApplicationConfigurationPackage.GENERATION_TASK__PARTIAL_MODEL: - return getPartialModel(); - case ApplicationConfigurationPackage.GENERATION_TASK__PATTERNS: - return getPatterns(); - case ApplicationConfigurationPackage.GENERATION_TASK__OBJECTIVES: - return getObjectives(); - case ApplicationConfigurationPackage.GENERATION_TASK__SCOPE: - return getScope(); - case ApplicationConfigurationPackage.GENERATION_TASK__NUMBER_SPECIFIED: - return isNumberSpecified(); - case ApplicationConfigurationPackage.GENERATION_TASK__NUMBER: - return getNumber(); - case ApplicationConfigurationPackage.GENERATION_TASK__RUN_SPECIFIED: - return isRunSpecified(); - case ApplicationConfigurationPackage.GENERATION_TASK__RUNS: - return getRuns(); - case ApplicationConfigurationPackage.GENERATION_TASK__SOLVER: - return getSolver(); - case ApplicationConfigurationPackage.GENERATION_TASK__CONFIG: - return getConfig(); - case ApplicationConfigurationPackage.GENERATION_TASK__DEBUG_FOLDER: - return getDebugFolder(); - case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_LOG_FILE: - return getTargetLogFile(); - case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_STATISTICS_FILE: - return getTargetStatisticsFile(); - case ApplicationConfigurationPackage.GENERATION_TASK__TAGET_FOLDER: - return getTagetFolder(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.GENERATION_TASK__METAMODEL: - setMetamodel((Metamodel)newValue); - return; - case ApplicationConfigurationPackage.GENERATION_TASK__PARTIAL_MODEL: - setPartialModel((PartialModel)newValue); - return; - case ApplicationConfigurationPackage.GENERATION_TASK__PATTERNS: - setPatterns((GraphPattern)newValue); - return; - case ApplicationConfigurationPackage.GENERATION_TASK__OBJECTIVES: - setObjectives((Objective)newValue); - return; - case ApplicationConfigurationPackage.GENERATION_TASK__SCOPE: - setScope((Scope)newValue); - return; - case ApplicationConfigurationPackage.GENERATION_TASK__NUMBER_SPECIFIED: - setNumberSpecified((Boolean)newValue); - return; - case ApplicationConfigurationPackage.GENERATION_TASK__NUMBER: - setNumber((Integer)newValue); - return; - case ApplicationConfigurationPackage.GENERATION_TASK__RUN_SPECIFIED: - setRunSpecified((Boolean)newValue); - return; - case ApplicationConfigurationPackage.GENERATION_TASK__RUNS: - setRuns((Integer)newValue); - return; - case ApplicationConfigurationPackage.GENERATION_TASK__SOLVER: - setSolver((Solver)newValue); - return; - case ApplicationConfigurationPackage.GENERATION_TASK__CONFIG: - setConfig((Config)newValue); - return; - case ApplicationConfigurationPackage.GENERATION_TASK__DEBUG_FOLDER: - setDebugFolder((File)newValue); - return; - case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_LOG_FILE: - setTargetLogFile((File)newValue); - return; - case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_STATISTICS_FILE: - setTargetStatisticsFile((File)newValue); - return; - case ApplicationConfigurationPackage.GENERATION_TASK__TAGET_FOLDER: - setTagetFolder((File)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.GENERATION_TASK__METAMODEL: - setMetamodel((Metamodel)null); - return; - case ApplicationConfigurationPackage.GENERATION_TASK__PARTIAL_MODEL: - setPartialModel((PartialModel)null); - return; - case ApplicationConfigurationPackage.GENERATION_TASK__PATTERNS: - setPatterns((GraphPattern)null); - return; - case ApplicationConfigurationPackage.GENERATION_TASK__OBJECTIVES: - setObjectives((Objective)null); - return; - case ApplicationConfigurationPackage.GENERATION_TASK__SCOPE: - setScope((Scope)null); - return; - case ApplicationConfigurationPackage.GENERATION_TASK__NUMBER_SPECIFIED: - setNumberSpecified(NUMBER_SPECIFIED_EDEFAULT); - return; - case ApplicationConfigurationPackage.GENERATION_TASK__NUMBER: - setNumber(NUMBER_EDEFAULT); - return; - case ApplicationConfigurationPackage.GENERATION_TASK__RUN_SPECIFIED: - setRunSpecified(RUN_SPECIFIED_EDEFAULT); - return; - case ApplicationConfigurationPackage.GENERATION_TASK__RUNS: - setRuns(RUNS_EDEFAULT); - return; - case ApplicationConfigurationPackage.GENERATION_TASK__SOLVER: - setSolver(SOLVER_EDEFAULT); - return; - case ApplicationConfigurationPackage.GENERATION_TASK__CONFIG: - setConfig((Config)null); - return; - case ApplicationConfigurationPackage.GENERATION_TASK__DEBUG_FOLDER: - setDebugFolder((File)null); - return; - case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_LOG_FILE: - setTargetLogFile((File)null); - return; - case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_STATISTICS_FILE: - setTargetStatisticsFile((File)null); - return; - case ApplicationConfigurationPackage.GENERATION_TASK__TAGET_FOLDER: - setTagetFolder((File)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.GENERATION_TASK__METAMODEL: - return metamodel != null; - case ApplicationConfigurationPackage.GENERATION_TASK__PARTIAL_MODEL: - return partialModel != null; - case ApplicationConfigurationPackage.GENERATION_TASK__PATTERNS: - return patterns != null; - case ApplicationConfigurationPackage.GENERATION_TASK__OBJECTIVES: - return objectives != null; - case ApplicationConfigurationPackage.GENERATION_TASK__SCOPE: - return scope != null; - case ApplicationConfigurationPackage.GENERATION_TASK__NUMBER_SPECIFIED: - return numberSpecified != NUMBER_SPECIFIED_EDEFAULT; - case ApplicationConfigurationPackage.GENERATION_TASK__NUMBER: - return number != NUMBER_EDEFAULT; - case ApplicationConfigurationPackage.GENERATION_TASK__RUN_SPECIFIED: - return runSpecified != RUN_SPECIFIED_EDEFAULT; - case ApplicationConfigurationPackage.GENERATION_TASK__RUNS: - return runs != RUNS_EDEFAULT; - case ApplicationConfigurationPackage.GENERATION_TASK__SOLVER: - return solver != SOLVER_EDEFAULT; - case ApplicationConfigurationPackage.GENERATION_TASK__CONFIG: - return config != null; - case ApplicationConfigurationPackage.GENERATION_TASK__DEBUG_FOLDER: - return debugFolder != null; - case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_LOG_FILE: - return targetLogFile != null; - case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_STATISTICS_FILE: - return targetStatisticsFile != null; - case ApplicationConfigurationPackage.GENERATION_TASK__TAGET_FOLDER: - return tagetFolder != null; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (numberSpecified: "); - result.append(numberSpecified); - result.append(", number: "); - result.append(number); - result.append(", runSpecified: "); - result.append(runSpecified); - result.append(", runs: "); - result.append(runs); - result.append(", solver: "); - result.append(solver); - result.append(')'); - return result.toString(); - } - -} //GenerationTaskImpl +/** + * generated by Xtext 2.21.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.Config; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.File; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.GenerationTask; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.GraphPattern; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Metamodel; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Objective; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PartialModel; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Scope; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Solver; + +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 'Generation Task'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getMetamodel Metamodel}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getPartialModel Partial Model}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getPatterns Patterns}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getObjectives Objectives}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getScope Scope}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#isNumberSpecified Number Specified}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getNumber Number}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#isRunSpecified Run Specified}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getRuns Runs}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getSolver Solver}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getConfig Config}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getDebugFolder Debug Folder}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getTargetLogFile Target Log File}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getTargetStatisticsFile Target Statistics File}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getTagetFolder Taget Folder}
  • + *
+ * + * @generated + */ +public class GenerationTaskImpl extends TaskImpl implements GenerationTask +{ + /** + * The cached value of the '{@link #getMetamodel() Metamodel}' containment reference. + * + * + * @see #getMetamodel() + * @generated + * @ordered + */ + protected Metamodel metamodel; + + /** + * The cached value of the '{@link #getPartialModel() Partial Model}' containment reference. + * + * + * @see #getPartialModel() + * @generated + * @ordered + */ + protected PartialModel partialModel; + + /** + * The cached value of the '{@link #getPatterns() Patterns}' containment reference. + * + * + * @see #getPatterns() + * @generated + * @ordered + */ + protected GraphPattern patterns; + + /** + * The cached value of the '{@link #getObjectives() Objectives}' containment reference. + * + * + * @see #getObjectives() + * @generated + * @ordered + */ + protected Objective objectives; + + /** + * The cached value of the '{@link #getScope() Scope}' containment reference. + * + * + * @see #getScope() + * @generated + * @ordered + */ + protected Scope scope; + + /** + * The default value of the '{@link #isNumberSpecified() Number Specified}' attribute. + * + * + * @see #isNumberSpecified() + * @generated + * @ordered + */ + protected static final boolean NUMBER_SPECIFIED_EDEFAULT = false; + + /** + * The cached value of the '{@link #isNumberSpecified() Number Specified}' attribute. + * + * + * @see #isNumberSpecified() + * @generated + * @ordered + */ + protected boolean numberSpecified = NUMBER_SPECIFIED_EDEFAULT; + + /** + * The default value of the '{@link #getNumber() Number}' attribute. + * + * + * @see #getNumber() + * @generated + * @ordered + */ + protected static final int NUMBER_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getNumber() Number}' attribute. + * + * + * @see #getNumber() + * @generated + * @ordered + */ + protected int number = NUMBER_EDEFAULT; + + /** + * The default value of the '{@link #isRunSpecified() Run Specified}' attribute. + * + * + * @see #isRunSpecified() + * @generated + * @ordered + */ + protected static final boolean RUN_SPECIFIED_EDEFAULT = false; + + /** + * The cached value of the '{@link #isRunSpecified() Run Specified}' attribute. + * + * + * @see #isRunSpecified() + * @generated + * @ordered + */ + protected boolean runSpecified = RUN_SPECIFIED_EDEFAULT; + + /** + * The default value of the '{@link #getRuns() Runs}' attribute. + * + * + * @see #getRuns() + * @generated + * @ordered + */ + protected static final int RUNS_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getRuns() Runs}' attribute. + * + * + * @see #getRuns() + * @generated + * @ordered + */ + protected int runs = RUNS_EDEFAULT; + + /** + * The default value of the '{@link #getSolver() Solver}' attribute. + * + * + * @see #getSolver() + * @generated + * @ordered + */ + protected static final Solver SOLVER_EDEFAULT = Solver.SMT_SOLVER; + + /** + * The cached value of the '{@link #getSolver() Solver}' attribute. + * + * + * @see #getSolver() + * @generated + * @ordered + */ + protected Solver solver = SOLVER_EDEFAULT; + + /** + * The cached value of the '{@link #getConfig() Config}' containment reference. + * + * + * @see #getConfig() + * @generated + * @ordered + */ + protected Config config; + + /** + * The cached value of the '{@link #getDebugFolder() Debug Folder}' containment reference. + * + * + * @see #getDebugFolder() + * @generated + * @ordered + */ + protected File debugFolder; + + /** + * The cached value of the '{@link #getTargetLogFile() Target Log File}' containment reference. + * + * + * @see #getTargetLogFile() + * @generated + * @ordered + */ + protected File targetLogFile; + + /** + * The cached value of the '{@link #getTargetStatisticsFile() Target Statistics File}' containment reference. + * + * + * @see #getTargetStatisticsFile() + * @generated + * @ordered + */ + protected File targetStatisticsFile; + + /** + * The cached value of the '{@link #getTagetFolder() Taget Folder}' containment reference. + * + * + * @see #getTagetFolder() + * @generated + * @ordered + */ + protected File tagetFolder; + + /** + * + * + * @generated + */ + protected GenerationTaskImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.GENERATION_TASK; + } + + /** + * + * + * @generated + */ + @Override + public Metamodel getMetamodel() + { + return metamodel; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetMetamodel(Metamodel newMetamodel, NotificationChain msgs) + { + Metamodel oldMetamodel = metamodel; + metamodel = newMetamodel; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__METAMODEL, oldMetamodel, newMetamodel); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + @Override + public void setMetamodel(Metamodel newMetamodel) + { + if (newMetamodel != metamodel) + { + NotificationChain msgs = null; + if (metamodel != null) + msgs = ((InternalEObject)metamodel).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__METAMODEL, null, msgs); + if (newMetamodel != null) + msgs = ((InternalEObject)newMetamodel).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__METAMODEL, null, msgs); + msgs = basicSetMetamodel(newMetamodel, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__METAMODEL, newMetamodel, newMetamodel)); + } + + /** + * + * + * @generated + */ + @Override + public PartialModel getPartialModel() + { + return partialModel; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetPartialModel(PartialModel newPartialModel, NotificationChain msgs) + { + PartialModel oldPartialModel = partialModel; + partialModel = newPartialModel; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__PARTIAL_MODEL, oldPartialModel, newPartialModel); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + @Override + public void setPartialModel(PartialModel newPartialModel) + { + if (newPartialModel != partialModel) + { + NotificationChain msgs = null; + if (partialModel != null) + msgs = ((InternalEObject)partialModel).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__PARTIAL_MODEL, null, msgs); + if (newPartialModel != null) + msgs = ((InternalEObject)newPartialModel).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__PARTIAL_MODEL, null, msgs); + msgs = basicSetPartialModel(newPartialModel, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__PARTIAL_MODEL, newPartialModel, newPartialModel)); + } + + /** + * + * + * @generated + */ + @Override + public GraphPattern getPatterns() + { + return patterns; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetPatterns(GraphPattern newPatterns, NotificationChain msgs) + { + GraphPattern oldPatterns = patterns; + patterns = newPatterns; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__PATTERNS, oldPatterns, newPatterns); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + @Override + public void setPatterns(GraphPattern newPatterns) + { + if (newPatterns != patterns) + { + NotificationChain msgs = null; + if (patterns != null) + msgs = ((InternalEObject)patterns).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__PATTERNS, null, msgs); + if (newPatterns != null) + msgs = ((InternalEObject)newPatterns).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__PATTERNS, null, msgs); + msgs = basicSetPatterns(newPatterns, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__PATTERNS, newPatterns, newPatterns)); + } + + /** + * + * + * @generated + */ + @Override + public Objective getObjectives() + { + return objectives; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetObjectives(Objective newObjectives, NotificationChain msgs) + { + Objective oldObjectives = objectives; + objectives = newObjectives; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__OBJECTIVES, oldObjectives, newObjectives); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + @Override + public void setObjectives(Objective newObjectives) + { + if (newObjectives != objectives) + { + NotificationChain msgs = null; + if (objectives != null) + msgs = ((InternalEObject)objectives).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__OBJECTIVES, null, msgs); + if (newObjectives != null) + msgs = ((InternalEObject)newObjectives).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__OBJECTIVES, null, msgs); + msgs = basicSetObjectives(newObjectives, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__OBJECTIVES, newObjectives, newObjectives)); + } + + /** + * + * + * @generated + */ + @Override + public Scope getScope() + { + return scope; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetScope(Scope newScope, NotificationChain msgs) + { + Scope oldScope = scope; + scope = newScope; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__SCOPE, oldScope, newScope); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + @Override + public void setScope(Scope newScope) + { + if (newScope != scope) + { + NotificationChain msgs = null; + if (scope != null) + msgs = ((InternalEObject)scope).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__SCOPE, null, msgs); + if (newScope != null) + msgs = ((InternalEObject)newScope).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__SCOPE, null, msgs); + msgs = basicSetScope(newScope, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__SCOPE, newScope, newScope)); + } + + /** + * + * + * @generated + */ + @Override + public boolean isNumberSpecified() + { + return numberSpecified; + } + + /** + * + * + * @generated + */ + @Override + public void setNumberSpecified(boolean newNumberSpecified) + { + boolean oldNumberSpecified = numberSpecified; + numberSpecified = newNumberSpecified; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__NUMBER_SPECIFIED, oldNumberSpecified, numberSpecified)); + } + + /** + * + * + * @generated + */ + @Override + public int getNumber() + { + return number; + } + + /** + * + * + * @generated + */ + @Override + public void setNumber(int newNumber) + { + int oldNumber = number; + number = newNumber; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__NUMBER, oldNumber, number)); + } + + /** + * + * + * @generated + */ + @Override + public boolean isRunSpecified() + { + return runSpecified; + } + + /** + * + * + * @generated + */ + @Override + public void setRunSpecified(boolean newRunSpecified) + { + boolean oldRunSpecified = runSpecified; + runSpecified = newRunSpecified; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__RUN_SPECIFIED, oldRunSpecified, runSpecified)); + } + + /** + * + * + * @generated + */ + @Override + public int getRuns() + { + return runs; + } + + /** + * + * + * @generated + */ + @Override + public void setRuns(int newRuns) + { + int oldRuns = runs; + runs = newRuns; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__RUNS, oldRuns, runs)); + } + + /** + * + * + * @generated + */ + @Override + public Solver getSolver() + { + return solver; + } + + /** + * + * + * @generated + */ + @Override + public void setSolver(Solver newSolver) + { + Solver oldSolver = solver; + solver = newSolver == null ? SOLVER_EDEFAULT : newSolver; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__SOLVER, oldSolver, solver)); + } + + /** + * + * + * @generated + */ + @Override + public Config getConfig() + { + return config; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetConfig(Config newConfig, NotificationChain msgs) + { + Config oldConfig = config; + config = newConfig; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__CONFIG, oldConfig, newConfig); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + @Override + public void setConfig(Config newConfig) + { + if (newConfig != config) + { + NotificationChain msgs = null; + if (config != null) + msgs = ((InternalEObject)config).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__CONFIG, null, msgs); + if (newConfig != null) + msgs = ((InternalEObject)newConfig).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__CONFIG, null, msgs); + msgs = basicSetConfig(newConfig, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__CONFIG, newConfig, newConfig)); + } + + /** + * + * + * @generated + */ + @Override + public File getDebugFolder() + { + return debugFolder; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetDebugFolder(File newDebugFolder, NotificationChain msgs) + { + File oldDebugFolder = debugFolder; + debugFolder = newDebugFolder; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__DEBUG_FOLDER, oldDebugFolder, newDebugFolder); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + @Override + public void setDebugFolder(File newDebugFolder) + { + if (newDebugFolder != debugFolder) + { + NotificationChain msgs = null; + if (debugFolder != null) + msgs = ((InternalEObject)debugFolder).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__DEBUG_FOLDER, null, msgs); + if (newDebugFolder != null) + msgs = ((InternalEObject)newDebugFolder).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__DEBUG_FOLDER, null, msgs); + msgs = basicSetDebugFolder(newDebugFolder, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__DEBUG_FOLDER, newDebugFolder, newDebugFolder)); + } + + /** + * + * + * @generated + */ + @Override + public File getTargetLogFile() + { + return targetLogFile; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetTargetLogFile(File newTargetLogFile, NotificationChain msgs) + { + File oldTargetLogFile = targetLogFile; + targetLogFile = newTargetLogFile; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__TARGET_LOG_FILE, oldTargetLogFile, newTargetLogFile); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + @Override + public void setTargetLogFile(File newTargetLogFile) + { + if (newTargetLogFile != targetLogFile) + { + NotificationChain msgs = null; + if (targetLogFile != null) + msgs = ((InternalEObject)targetLogFile).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__TARGET_LOG_FILE, null, msgs); + if (newTargetLogFile != null) + msgs = ((InternalEObject)newTargetLogFile).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__TARGET_LOG_FILE, null, msgs); + msgs = basicSetTargetLogFile(newTargetLogFile, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__TARGET_LOG_FILE, newTargetLogFile, newTargetLogFile)); + } + + /** + * + * + * @generated + */ + @Override + public File getTargetStatisticsFile() + { + return targetStatisticsFile; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetTargetStatisticsFile(File newTargetStatisticsFile, NotificationChain msgs) + { + File oldTargetStatisticsFile = targetStatisticsFile; + targetStatisticsFile = newTargetStatisticsFile; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__TARGET_STATISTICS_FILE, oldTargetStatisticsFile, newTargetStatisticsFile); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + @Override + public void setTargetStatisticsFile(File newTargetStatisticsFile) + { + if (newTargetStatisticsFile != targetStatisticsFile) + { + NotificationChain msgs = null; + if (targetStatisticsFile != null) + msgs = ((InternalEObject)targetStatisticsFile).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__TARGET_STATISTICS_FILE, null, msgs); + if (newTargetStatisticsFile != null) + msgs = ((InternalEObject)newTargetStatisticsFile).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__TARGET_STATISTICS_FILE, null, msgs); + msgs = basicSetTargetStatisticsFile(newTargetStatisticsFile, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__TARGET_STATISTICS_FILE, newTargetStatisticsFile, newTargetStatisticsFile)); + } + + /** + * + * + * @generated + */ + @Override + public File getTagetFolder() + { + return tagetFolder; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetTagetFolder(File newTagetFolder, NotificationChain msgs) + { + File oldTagetFolder = tagetFolder; + tagetFolder = newTagetFolder; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__TAGET_FOLDER, oldTagetFolder, newTagetFolder); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + @Override + public void setTagetFolder(File newTagetFolder) + { + if (newTagetFolder != tagetFolder) + { + NotificationChain msgs = null; + if (tagetFolder != null) + msgs = ((InternalEObject)tagetFolder).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__TAGET_FOLDER, null, msgs); + if (newTagetFolder != null) + msgs = ((InternalEObject)newTagetFolder).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__TAGET_FOLDER, null, msgs); + msgs = basicSetTagetFolder(newTagetFolder, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__TAGET_FOLDER, newTagetFolder, newTagetFolder)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case ApplicationConfigurationPackage.GENERATION_TASK__METAMODEL: + return basicSetMetamodel(null, msgs); + case ApplicationConfigurationPackage.GENERATION_TASK__PARTIAL_MODEL: + return basicSetPartialModel(null, msgs); + case ApplicationConfigurationPackage.GENERATION_TASK__PATTERNS: + return basicSetPatterns(null, msgs); + case ApplicationConfigurationPackage.GENERATION_TASK__OBJECTIVES: + return basicSetObjectives(null, msgs); + case ApplicationConfigurationPackage.GENERATION_TASK__SCOPE: + return basicSetScope(null, msgs); + case ApplicationConfigurationPackage.GENERATION_TASK__CONFIG: + return basicSetConfig(null, msgs); + case ApplicationConfigurationPackage.GENERATION_TASK__DEBUG_FOLDER: + return basicSetDebugFolder(null, msgs); + case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_LOG_FILE: + return basicSetTargetLogFile(null, msgs); + case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_STATISTICS_FILE: + return basicSetTargetStatisticsFile(null, msgs); + case ApplicationConfigurationPackage.GENERATION_TASK__TAGET_FOLDER: + return basicSetTagetFolder(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.GENERATION_TASK__METAMODEL: + return getMetamodel(); + case ApplicationConfigurationPackage.GENERATION_TASK__PARTIAL_MODEL: + return getPartialModel(); + case ApplicationConfigurationPackage.GENERATION_TASK__PATTERNS: + return getPatterns(); + case ApplicationConfigurationPackage.GENERATION_TASK__OBJECTIVES: + return getObjectives(); + case ApplicationConfigurationPackage.GENERATION_TASK__SCOPE: + return getScope(); + case ApplicationConfigurationPackage.GENERATION_TASK__NUMBER_SPECIFIED: + return isNumberSpecified(); + case ApplicationConfigurationPackage.GENERATION_TASK__NUMBER: + return getNumber(); + case ApplicationConfigurationPackage.GENERATION_TASK__RUN_SPECIFIED: + return isRunSpecified(); + case ApplicationConfigurationPackage.GENERATION_TASK__RUNS: + return getRuns(); + case ApplicationConfigurationPackage.GENERATION_TASK__SOLVER: + return getSolver(); + case ApplicationConfigurationPackage.GENERATION_TASK__CONFIG: + return getConfig(); + case ApplicationConfigurationPackage.GENERATION_TASK__DEBUG_FOLDER: + return getDebugFolder(); + case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_LOG_FILE: + return getTargetLogFile(); + case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_STATISTICS_FILE: + return getTargetStatisticsFile(); + case ApplicationConfigurationPackage.GENERATION_TASK__TAGET_FOLDER: + return getTagetFolder(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.GENERATION_TASK__METAMODEL: + setMetamodel((Metamodel)newValue); + return; + case ApplicationConfigurationPackage.GENERATION_TASK__PARTIAL_MODEL: + setPartialModel((PartialModel)newValue); + return; + case ApplicationConfigurationPackage.GENERATION_TASK__PATTERNS: + setPatterns((GraphPattern)newValue); + return; + case ApplicationConfigurationPackage.GENERATION_TASK__OBJECTIVES: + setObjectives((Objective)newValue); + return; + case ApplicationConfigurationPackage.GENERATION_TASK__SCOPE: + setScope((Scope)newValue); + return; + case ApplicationConfigurationPackage.GENERATION_TASK__NUMBER_SPECIFIED: + setNumberSpecified((Boolean)newValue); + return; + case ApplicationConfigurationPackage.GENERATION_TASK__NUMBER: + setNumber((Integer)newValue); + return; + case ApplicationConfigurationPackage.GENERATION_TASK__RUN_SPECIFIED: + setRunSpecified((Boolean)newValue); + return; + case ApplicationConfigurationPackage.GENERATION_TASK__RUNS: + setRuns((Integer)newValue); + return; + case ApplicationConfigurationPackage.GENERATION_TASK__SOLVER: + setSolver((Solver)newValue); + return; + case ApplicationConfigurationPackage.GENERATION_TASK__CONFIG: + setConfig((Config)newValue); + return; + case ApplicationConfigurationPackage.GENERATION_TASK__DEBUG_FOLDER: + setDebugFolder((File)newValue); + return; + case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_LOG_FILE: + setTargetLogFile((File)newValue); + return; + case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_STATISTICS_FILE: + setTargetStatisticsFile((File)newValue); + return; + case ApplicationConfigurationPackage.GENERATION_TASK__TAGET_FOLDER: + setTagetFolder((File)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.GENERATION_TASK__METAMODEL: + setMetamodel((Metamodel)null); + return; + case ApplicationConfigurationPackage.GENERATION_TASK__PARTIAL_MODEL: + setPartialModel((PartialModel)null); + return; + case ApplicationConfigurationPackage.GENERATION_TASK__PATTERNS: + setPatterns((GraphPattern)null); + return; + case ApplicationConfigurationPackage.GENERATION_TASK__OBJECTIVES: + setObjectives((Objective)null); + return; + case ApplicationConfigurationPackage.GENERATION_TASK__SCOPE: + setScope((Scope)null); + return; + case ApplicationConfigurationPackage.GENERATION_TASK__NUMBER_SPECIFIED: + setNumberSpecified(NUMBER_SPECIFIED_EDEFAULT); + return; + case ApplicationConfigurationPackage.GENERATION_TASK__NUMBER: + setNumber(NUMBER_EDEFAULT); + return; + case ApplicationConfigurationPackage.GENERATION_TASK__RUN_SPECIFIED: + setRunSpecified(RUN_SPECIFIED_EDEFAULT); + return; + case ApplicationConfigurationPackage.GENERATION_TASK__RUNS: + setRuns(RUNS_EDEFAULT); + return; + case ApplicationConfigurationPackage.GENERATION_TASK__SOLVER: + setSolver(SOLVER_EDEFAULT); + return; + case ApplicationConfigurationPackage.GENERATION_TASK__CONFIG: + setConfig((Config)null); + return; + case ApplicationConfigurationPackage.GENERATION_TASK__DEBUG_FOLDER: + setDebugFolder((File)null); + return; + case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_LOG_FILE: + setTargetLogFile((File)null); + return; + case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_STATISTICS_FILE: + setTargetStatisticsFile((File)null); + return; + case ApplicationConfigurationPackage.GENERATION_TASK__TAGET_FOLDER: + setTagetFolder((File)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.GENERATION_TASK__METAMODEL: + return metamodel != null; + case ApplicationConfigurationPackage.GENERATION_TASK__PARTIAL_MODEL: + return partialModel != null; + case ApplicationConfigurationPackage.GENERATION_TASK__PATTERNS: + return patterns != null; + case ApplicationConfigurationPackage.GENERATION_TASK__OBJECTIVES: + return objectives != null; + case ApplicationConfigurationPackage.GENERATION_TASK__SCOPE: + return scope != null; + case ApplicationConfigurationPackage.GENERATION_TASK__NUMBER_SPECIFIED: + return numberSpecified != NUMBER_SPECIFIED_EDEFAULT; + case ApplicationConfigurationPackage.GENERATION_TASK__NUMBER: + return number != NUMBER_EDEFAULT; + case ApplicationConfigurationPackage.GENERATION_TASK__RUN_SPECIFIED: + return runSpecified != RUN_SPECIFIED_EDEFAULT; + case ApplicationConfigurationPackage.GENERATION_TASK__RUNS: + return runs != RUNS_EDEFAULT; + case ApplicationConfigurationPackage.GENERATION_TASK__SOLVER: + return solver != SOLVER_EDEFAULT; + case ApplicationConfigurationPackage.GENERATION_TASK__CONFIG: + return config != null; + case ApplicationConfigurationPackage.GENERATION_TASK__DEBUG_FOLDER: + return debugFolder != null; + case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_LOG_FILE: + return targetLogFile != null; + case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_STATISTICS_FILE: + return targetStatisticsFile != null; + case ApplicationConfigurationPackage.GENERATION_TASK__TAGET_FOLDER: + return tagetFolder != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (numberSpecified: "); + result.append(numberSpecified); + result.append(", number: "); + result.append(number); + result.append(", runSpecified: "); + result.append(runSpecified); + result.append(", runs: "); + result.append(runs); + result.append(", solver: "); + result.append(solver); + result.append(')'); + return result.toString(); + } + +} //GenerationTaskImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/GraphPatternDeclarationImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/GraphPatternDeclarationImpl.java index 5220ee0c..5a239301 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/GraphPatternDeclarationImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/GraphPatternDeclarationImpl.java @@ -1,196 +1,196 @@ -/** - * generated by Xtext 2.21.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.GraphPatternDeclaration; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PatternSpecification; - -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 'Graph Pattern Declaration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GraphPatternDeclarationImpl#getSpecification Specification}
  • - *
- * - * @generated - */ -public class GraphPatternDeclarationImpl extends DeclarationImpl implements GraphPatternDeclaration -{ - /** - * The cached value of the '{@link #getSpecification() Specification}' containment reference. - * - * - * @see #getSpecification() - * @generated - * @ordered - */ - protected PatternSpecification specification; - - /** - * - * - * @generated - */ - protected GraphPatternDeclarationImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.GRAPH_PATTERN_DECLARATION; - } - - /** - * - * - * @generated - */ - @Override - public PatternSpecification getSpecification() - { - return specification; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetSpecification(PatternSpecification newSpecification, NotificationChain msgs) - { - PatternSpecification oldSpecification = specification; - specification = newSpecification; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GRAPH_PATTERN_DECLARATION__SPECIFICATION, oldSpecification, newSpecification); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setSpecification(PatternSpecification newSpecification) - { - if (newSpecification != specification) - { - NotificationChain msgs = null; - if (specification != null) - msgs = ((InternalEObject)specification).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GRAPH_PATTERN_DECLARATION__SPECIFICATION, null, msgs); - if (newSpecification != null) - msgs = ((InternalEObject)newSpecification).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GRAPH_PATTERN_DECLARATION__SPECIFICATION, null, msgs); - msgs = basicSetSpecification(newSpecification, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GRAPH_PATTERN_DECLARATION__SPECIFICATION, newSpecification, newSpecification)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ApplicationConfigurationPackage.GRAPH_PATTERN_DECLARATION__SPECIFICATION: - return basicSetSpecification(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.GRAPH_PATTERN_DECLARATION__SPECIFICATION: - return getSpecification(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.GRAPH_PATTERN_DECLARATION__SPECIFICATION: - setSpecification((PatternSpecification)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.GRAPH_PATTERN_DECLARATION__SPECIFICATION: - setSpecification((PatternSpecification)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.GRAPH_PATTERN_DECLARATION__SPECIFICATION: - return specification != null; - } - return super.eIsSet(featureID); - } - -} //GraphPatternDeclarationImpl +/** + * generated by Xtext 2.21.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.GraphPatternDeclaration; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PatternSpecification; + +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 'Graph Pattern Declaration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GraphPatternDeclarationImpl#getSpecification Specification}
  • + *
+ * + * @generated + */ +public class GraphPatternDeclarationImpl extends DeclarationImpl implements GraphPatternDeclaration +{ + /** + * The cached value of the '{@link #getSpecification() Specification}' containment reference. + * + * + * @see #getSpecification() + * @generated + * @ordered + */ + protected PatternSpecification specification; + + /** + * + * + * @generated + */ + protected GraphPatternDeclarationImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.GRAPH_PATTERN_DECLARATION; + } + + /** + * + * + * @generated + */ + @Override + public PatternSpecification getSpecification() + { + return specification; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetSpecification(PatternSpecification newSpecification, NotificationChain msgs) + { + PatternSpecification oldSpecification = specification; + specification = newSpecification; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GRAPH_PATTERN_DECLARATION__SPECIFICATION, oldSpecification, newSpecification); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + @Override + public void setSpecification(PatternSpecification newSpecification) + { + if (newSpecification != specification) + { + NotificationChain msgs = null; + if (specification != null) + msgs = ((InternalEObject)specification).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GRAPH_PATTERN_DECLARATION__SPECIFICATION, null, msgs); + if (newSpecification != null) + msgs = ((InternalEObject)newSpecification).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GRAPH_PATTERN_DECLARATION__SPECIFICATION, null, msgs); + msgs = basicSetSpecification(newSpecification, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GRAPH_PATTERN_DECLARATION__SPECIFICATION, newSpecification, newSpecification)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case ApplicationConfigurationPackage.GRAPH_PATTERN_DECLARATION__SPECIFICATION: + return basicSetSpecification(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.GRAPH_PATTERN_DECLARATION__SPECIFICATION: + return getSpecification(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.GRAPH_PATTERN_DECLARATION__SPECIFICATION: + setSpecification((PatternSpecification)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.GRAPH_PATTERN_DECLARATION__SPECIFICATION: + setSpecification((PatternSpecification)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.GRAPH_PATTERN_DECLARATION__SPECIFICATION: + return specification != null; + } + return super.eIsSet(featureID); + } + +} //GraphPatternDeclarationImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/GraphPatternImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/GraphPatternImpl.java index 25fcdff7..45a44d92 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/GraphPatternImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/GraphPatternImpl.java @@ -1,43 +1,43 @@ -/** - * generated by Xtext 2.21.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.GraphPattern; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -/** - * - * An implementation of the model object 'Graph Pattern'. - * - * - * @generated - */ -public class GraphPatternImpl extends MinimalEObjectImpl.Container implements GraphPattern -{ - /** - * - * - * @generated - */ - protected GraphPatternImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.GRAPH_PATTERN; - } - -} //GraphPatternImpl +/** + * generated by Xtext 2.21.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.GraphPattern; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Graph Pattern'. + * + * + * @generated + */ +public class GraphPatternImpl extends MinimalEObjectImpl.Container implements GraphPattern +{ + /** + * + * + * @generated + */ + protected GraphPatternImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.GRAPH_PATTERN; + } + +} //GraphPatternImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/GraphPatternReferenceImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/GraphPatternReferenceImpl.java index 6d285112..efd945a6 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/GraphPatternReferenceImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/GraphPatternReferenceImpl.java @@ -1,175 +1,175 @@ -/** - * generated by Xtext 2.21.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.GraphPatternDeclaration; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.GraphPatternReference; - -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 'Graph Pattern Reference'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GraphPatternReferenceImpl#getReferred Referred}
  • - *
- * - * @generated - */ -public class GraphPatternReferenceImpl extends GraphPatternImpl implements GraphPatternReference -{ - /** - * The cached value of the '{@link #getReferred() Referred}' reference. - * - * - * @see #getReferred() - * @generated - * @ordered - */ - protected GraphPatternDeclaration referred; - - /** - * - * - * @generated - */ - protected GraphPatternReferenceImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.GRAPH_PATTERN_REFERENCE; - } - - /** - * - * - * @generated - */ - @Override - public GraphPatternDeclaration getReferred() - { - if (referred != null && referred.eIsProxy()) - { - InternalEObject oldReferred = (InternalEObject)referred; - referred = (GraphPatternDeclaration)eResolveProxy(oldReferred); - if (referred != oldReferred) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.GRAPH_PATTERN_REFERENCE__REFERRED, oldReferred, referred)); - } - } - return referred; - } - - /** - * - * - * @generated - */ - public GraphPatternDeclaration basicGetReferred() - { - return referred; - } - - /** - * - * - * @generated - */ - @Override - public void setReferred(GraphPatternDeclaration newReferred) - { - GraphPatternDeclaration oldReferred = referred; - referred = newReferred; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GRAPH_PATTERN_REFERENCE__REFERRED, oldReferred, referred)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.GRAPH_PATTERN_REFERENCE__REFERRED: - if (resolve) return getReferred(); - return basicGetReferred(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.GRAPH_PATTERN_REFERENCE__REFERRED: - setReferred((GraphPatternDeclaration)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.GRAPH_PATTERN_REFERENCE__REFERRED: - setReferred((GraphPatternDeclaration)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.GRAPH_PATTERN_REFERENCE__REFERRED: - return referred != null; - } - return super.eIsSet(featureID); - } - -} //GraphPatternReferenceImpl +/** + * generated by Xtext 2.21.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.GraphPatternDeclaration; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.GraphPatternReference; + +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 'Graph Pattern Reference'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GraphPatternReferenceImpl#getReferred Referred}
  • + *
+ * + * @generated + */ +public class GraphPatternReferenceImpl extends GraphPatternImpl implements GraphPatternReference +{ + /** + * The cached value of the '{@link #getReferred() Referred}' reference. + * + * + * @see #getReferred() + * @generated + * @ordered + */ + protected GraphPatternDeclaration referred; + + /** + * + * + * @generated + */ + protected GraphPatternReferenceImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.GRAPH_PATTERN_REFERENCE; + } + + /** + * + * + * @generated + */ + @Override + public GraphPatternDeclaration getReferred() + { + if (referred != null && referred.eIsProxy()) + { + InternalEObject oldReferred = (InternalEObject)referred; + referred = (GraphPatternDeclaration)eResolveProxy(oldReferred); + if (referred != oldReferred) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.GRAPH_PATTERN_REFERENCE__REFERRED, oldReferred, referred)); + } + } + return referred; + } + + /** + * + * + * @generated + */ + public GraphPatternDeclaration basicGetReferred() + { + return referred; + } + + /** + * + * + * @generated + */ + @Override + public void setReferred(GraphPatternDeclaration newReferred) + { + GraphPatternDeclaration oldReferred = referred; + referred = newReferred; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GRAPH_PATTERN_REFERENCE__REFERRED, oldReferred, referred)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.GRAPH_PATTERN_REFERENCE__REFERRED: + if (resolve) return getReferred(); + return basicGetReferred(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.GRAPH_PATTERN_REFERENCE__REFERRED: + setReferred((GraphPatternDeclaration)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.GRAPH_PATTERN_REFERENCE__REFERRED: + setReferred((GraphPatternDeclaration)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.GRAPH_PATTERN_REFERENCE__REFERRED: + return referred != null; + } + return super.eIsSet(featureID); + } + +} //GraphPatternReferenceImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ImportImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ImportImpl.java index 3e3d80cb..b2ec8a64 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ImportImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ImportImpl.java @@ -1,43 +1,43 @@ -/** - * generated by Xtext 2.21.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.Import; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -/** - * - * An implementation of the model object 'Import'. - * - * - * @generated - */ -public class ImportImpl extends MinimalEObjectImpl.Container implements Import -{ - /** - * - * - * @generated - */ - protected ImportImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.IMPORT; - } - -} //ImportImpl +/** + * generated by Xtext 2.21.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.Import; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Import'. + * + * + * @generated + */ +public class ImportImpl extends MinimalEObjectImpl.Container implements Import +{ + /** + * + * + * @generated + */ + protected ImportImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.IMPORT; + } + +} //ImportImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/IntEnumberationImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/IntEnumberationImpl.java index d1730a5a..13af71e6 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/IntEnumberationImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/IntEnumberationImpl.java @@ -1,163 +1,163 @@ -/** - * generated by Xtext 2.21.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.IntEnumberation; - -import java.util.Collection; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.util.EDataTypeEList; - -/** - * - * An implementation of the model object 'Int Enumberation'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.IntEnumberationImpl#getEntry Entry}
  • - *
- * - * @generated - */ -public class IntEnumberationImpl extends NumberSpecificationImpl implements IntEnumberation -{ - /** - * The cached value of the '{@link #getEntry() Entry}' attribute list. - * - * - * @see #getEntry() - * @generated - * @ordered - */ - protected EList entry; - - /** - * - * - * @generated - */ - protected IntEnumberationImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.INT_ENUMBERATION; - } - - /** - * - * - * @generated - */ - @Override - public EList getEntry() - { - if (entry == null) - { - entry = new EDataTypeEList(Integer.class, this, ApplicationConfigurationPackage.INT_ENUMBERATION__ENTRY); - } - return entry; - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.INT_ENUMBERATION__ENTRY: - return getEntry(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.INT_ENUMBERATION__ENTRY: - getEntry().clear(); - getEntry().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.INT_ENUMBERATION__ENTRY: - getEntry().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.INT_ENUMBERATION__ENTRY: - return entry != null && !entry.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (entry: "); - result.append(entry); - result.append(')'); - return result.toString(); - } - -} //IntEnumberationImpl +/** + * generated by Xtext 2.21.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.IntEnumberation; + +import java.util.Collection; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.util.EDataTypeEList; + +/** + * + * An implementation of the model object 'Int Enumberation'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.IntEnumberationImpl#getEntry Entry}
  • + *
+ * + * @generated + */ +public class IntEnumberationImpl extends NumberSpecificationImpl implements IntEnumberation +{ + /** + * The cached value of the '{@link #getEntry() Entry}' attribute list. + * + * + * @see #getEntry() + * @generated + * @ordered + */ + protected EList entry; + + /** + * + * + * @generated + */ + protected IntEnumberationImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.INT_ENUMBERATION; + } + + /** + * + * + * @generated + */ + @Override + public EList getEntry() + { + if (entry == null) + { + entry = new EDataTypeEList(Integer.class, this, ApplicationConfigurationPackage.INT_ENUMBERATION__ENTRY); + } + return entry; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.INT_ENUMBERATION__ENTRY: + return getEntry(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.INT_ENUMBERATION__ENTRY: + getEntry().clear(); + getEntry().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.INT_ENUMBERATION__ENTRY: + getEntry().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.INT_ENUMBERATION__ENTRY: + return entry != null && !entry.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (entry: "); + result.append(entry); + result.append(')'); + return result.toString(); + } + +} //IntEnumberationImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/IntegerReferenceImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/IntegerReferenceImpl.java index e41a758c..a04ea7d8 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/IntegerReferenceImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/IntegerReferenceImpl.java @@ -1,41 +1,41 @@ -/** - * generated by Xtext 2.21.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.IntegerReference; - -import org.eclipse.emf.ecore.EClass; - -/** - * - * An implementation of the model object 'Integer Reference'. - * - * - * @generated - */ -public class IntegerReferenceImpl extends TypeReferenceImpl implements IntegerReference -{ - /** - * - * - * @generated - */ - protected IntegerReferenceImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.INTEGER_REFERENCE; - } - -} //IntegerReferenceImpl +/** + * generated by Xtext 2.21.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.IntegerReference; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'Integer Reference'. + * + * + * @generated + */ +public class IntegerReferenceImpl extends TypeReferenceImpl implements IntegerReference +{ + /** + * + * + * @generated + */ + protected IntegerReferenceImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.INTEGER_REFERENCE; + } + +} //IntegerReferenceImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/IntegerScopeImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/IntegerScopeImpl.java index 88ebcead..3958c8f3 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/IntegerScopeImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/IntegerScopeImpl.java @@ -1,41 +1,41 @@ -/** - * generated by Xtext 2.21.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.IntegerScope; - -import org.eclipse.emf.ecore.EClass; - -/** - * - * An implementation of the model object 'Integer Scope'. - * - * - * @generated - */ -public class IntegerScopeImpl extends IntegerReferenceImpl implements IntegerScope -{ - /** - * - * - * @generated - */ - protected IntegerScopeImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.INTEGER_SCOPE; - } - -} //IntegerScopeImpl +/** + * generated by Xtext 2.21.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.IntegerScope; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'Integer Scope'. + * + * + * @generated + */ +public class IntegerScopeImpl extends IntegerReferenceImpl implements IntegerScope +{ + /** + * + * + * @generated + */ + protected IntegerScopeImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.INTEGER_SCOPE; + } + +} //IntegerScopeImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/IntegerTypeScopeImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/IntegerTypeScopeImpl.java index 95d32fd9..c5f3dde8 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/IntegerTypeScopeImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/IntegerTypeScopeImpl.java @@ -1,196 +1,196 @@ -/** - * generated by Xtext 2.21.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.IntegerReference; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.IntegerTypeScope; - -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 'Integer Type Scope'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.IntegerTypeScopeImpl#getType Type}
  • - *
- * - * @generated - */ -public class IntegerTypeScopeImpl extends TypeScopeImpl implements IntegerTypeScope -{ - /** - * The cached value of the '{@link #getType() Type}' containment reference. - * - * - * @see #getType() - * @generated - * @ordered - */ - protected IntegerReference type; - - /** - * - * - * @generated - */ - protected IntegerTypeScopeImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.INTEGER_TYPE_SCOPE; - } - - /** - * - * - * @generated - */ - @Override - public IntegerReference getType() - { - return type; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetType(IntegerReference newType, NotificationChain msgs) - { - IntegerReference oldType = type; - type = newType; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.INTEGER_TYPE_SCOPE__TYPE, oldType, newType); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setType(IntegerReference newType) - { - if (newType != type) - { - NotificationChain msgs = null; - if (type != null) - msgs = ((InternalEObject)type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.INTEGER_TYPE_SCOPE__TYPE, null, msgs); - if (newType != null) - msgs = ((InternalEObject)newType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.INTEGER_TYPE_SCOPE__TYPE, null, msgs); - msgs = basicSetType(newType, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.INTEGER_TYPE_SCOPE__TYPE, newType, newType)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ApplicationConfigurationPackage.INTEGER_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.INTEGER_TYPE_SCOPE__TYPE: - return getType(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.INTEGER_TYPE_SCOPE__TYPE: - setType((IntegerReference)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.INTEGER_TYPE_SCOPE__TYPE: - setType((IntegerReference)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.INTEGER_TYPE_SCOPE__TYPE: - return type != null; - } - return super.eIsSet(featureID); - } - -} //IntegerTypeScopeImpl +/** + * generated by Xtext 2.21.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.IntegerReference; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.IntegerTypeScope; + +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 'Integer Type Scope'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.IntegerTypeScopeImpl#getType Type}
  • + *
+ * + * @generated + */ +public class IntegerTypeScopeImpl extends TypeScopeImpl implements IntegerTypeScope +{ + /** + * The cached value of the '{@link #getType() Type}' containment reference. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected IntegerReference type; + + /** + * + * + * @generated + */ + protected IntegerTypeScopeImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.INTEGER_TYPE_SCOPE; + } + + /** + * + * + * @generated + */ + @Override + public IntegerReference getType() + { + return type; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetType(IntegerReference newType, NotificationChain msgs) + { + IntegerReference oldType = type; + type = newType; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.INTEGER_TYPE_SCOPE__TYPE, oldType, newType); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + @Override + public void setType(IntegerReference newType) + { + if (newType != type) + { + NotificationChain msgs = null; + if (type != null) + msgs = ((InternalEObject)type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.INTEGER_TYPE_SCOPE__TYPE, null, msgs); + if (newType != null) + msgs = ((InternalEObject)newType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.INTEGER_TYPE_SCOPE__TYPE, null, msgs); + msgs = basicSetType(newType, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.INTEGER_TYPE_SCOPE__TYPE, newType, newType)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case ApplicationConfigurationPackage.INTEGER_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.INTEGER_TYPE_SCOPE__TYPE: + return getType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.INTEGER_TYPE_SCOPE__TYPE: + setType((IntegerReference)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.INTEGER_TYPE_SCOPE__TYPE: + setType((IntegerReference)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.INTEGER_TYPE_SCOPE__TYPE: + return type != null; + } + return super.eIsSet(featureID); + } + +} //IntegerTypeScopeImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/IntervallNumberImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/IntervallNumberImpl.java index f3956c2e..dcbaed1d 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/IntervallNumberImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/IntervallNumberImpl.java @@ -1,295 +1,295 @@ -/** - * generated by Xtext 2.21.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.IntervallNumber; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Intervall Number'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.IntervallNumberImpl#getMin Min}
  • - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.IntervallNumberImpl#getMaxNumber Max Number}
  • - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.IntervallNumberImpl#isMaxUnlimited Max Unlimited}
  • - *
- * - * @generated - */ -public class IntervallNumberImpl extends NumberSpecificationImpl implements IntervallNumber -{ - /** - * The default value of the '{@link #getMin() Min}' attribute. - * - * - * @see #getMin() - * @generated - * @ordered - */ - protected static final int MIN_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getMin() Min}' attribute. - * - * - * @see #getMin() - * @generated - * @ordered - */ - protected int min = MIN_EDEFAULT; - - /** - * The default value of the '{@link #getMaxNumber() Max Number}' attribute. - * - * - * @see #getMaxNumber() - * @generated - * @ordered - */ - protected static final int MAX_NUMBER_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getMaxNumber() Max Number}' attribute. - * - * - * @see #getMaxNumber() - * @generated - * @ordered - */ - protected int maxNumber = MAX_NUMBER_EDEFAULT; - - /** - * The default value of the '{@link #isMaxUnlimited() Max Unlimited}' attribute. - * - * - * @see #isMaxUnlimited() - * @generated - * @ordered - */ - protected static final boolean MAX_UNLIMITED_EDEFAULT = false; - - /** - * The cached value of the '{@link #isMaxUnlimited() Max Unlimited}' attribute. - * - * - * @see #isMaxUnlimited() - * @generated - * @ordered - */ - protected boolean maxUnlimited = MAX_UNLIMITED_EDEFAULT; - - /** - * - * - * @generated - */ - protected IntervallNumberImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.INTERVALL_NUMBER; - } - - /** - * - * - * @generated - */ - @Override - public int getMin() - { - return min; - } - - /** - * - * - * @generated - */ - @Override - public void setMin(int newMin) - { - int oldMin = min; - min = newMin; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.INTERVALL_NUMBER__MIN, oldMin, min)); - } - - /** - * - * - * @generated - */ - @Override - public int getMaxNumber() - { - return maxNumber; - } - - /** - * - * - * @generated - */ - @Override - public void setMaxNumber(int newMaxNumber) - { - int oldMaxNumber = maxNumber; - maxNumber = newMaxNumber; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_NUMBER, oldMaxNumber, maxNumber)); - } - - /** - * - * - * @generated - */ - @Override - public boolean isMaxUnlimited() - { - return maxUnlimited; - } - - /** - * - * - * @generated - */ - @Override - public void setMaxUnlimited(boolean newMaxUnlimited) - { - boolean oldMaxUnlimited = maxUnlimited; - maxUnlimited = newMaxUnlimited; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_UNLIMITED, oldMaxUnlimited, maxUnlimited)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.INTERVALL_NUMBER__MIN: - return getMin(); - case ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_NUMBER: - return getMaxNumber(); - case ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_UNLIMITED: - return isMaxUnlimited(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.INTERVALL_NUMBER__MIN: - setMin((Integer)newValue); - return; - case ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_NUMBER: - setMaxNumber((Integer)newValue); - return; - case ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_UNLIMITED: - setMaxUnlimited((Boolean)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.INTERVALL_NUMBER__MIN: - setMin(MIN_EDEFAULT); - return; - case ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_NUMBER: - setMaxNumber(MAX_NUMBER_EDEFAULT); - return; - case ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_UNLIMITED: - setMaxUnlimited(MAX_UNLIMITED_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.INTERVALL_NUMBER__MIN: - return min != MIN_EDEFAULT; - case ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_NUMBER: - return maxNumber != MAX_NUMBER_EDEFAULT; - case ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_UNLIMITED: - return maxUnlimited != MAX_UNLIMITED_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (min: "); - result.append(min); - result.append(", maxNumber: "); - result.append(maxNumber); - result.append(", maxUnlimited: "); - result.append(maxUnlimited); - result.append(')'); - return result.toString(); - } - -} //IntervallNumberImpl +/** + * generated by Xtext 2.21.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.IntervallNumber; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Intervall Number'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.IntervallNumberImpl#getMin Min}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.IntervallNumberImpl#getMaxNumber Max Number}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.IntervallNumberImpl#isMaxUnlimited Max Unlimited}
  • + *
+ * + * @generated + */ +public class IntervallNumberImpl extends NumberSpecificationImpl implements IntervallNumber +{ + /** + * The default value of the '{@link #getMin() Min}' attribute. + * + * + * @see #getMin() + * @generated + * @ordered + */ + protected static final int MIN_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getMin() Min}' attribute. + * + * + * @see #getMin() + * @generated + * @ordered + */ + protected int min = MIN_EDEFAULT; + + /** + * The default value of the '{@link #getMaxNumber() Max Number}' attribute. + * + * + * @see #getMaxNumber() + * @generated + * @ordered + */ + protected static final int MAX_NUMBER_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getMaxNumber() Max Number}' attribute. + * + * + * @see #getMaxNumber() + * @generated + * @ordered + */ + protected int maxNumber = MAX_NUMBER_EDEFAULT; + + /** + * The default value of the '{@link #isMaxUnlimited() Max Unlimited}' attribute. + * + * + * @see #isMaxUnlimited() + * @generated + * @ordered + */ + protected static final boolean MAX_UNLIMITED_EDEFAULT = false; + + /** + * The cached value of the '{@link #isMaxUnlimited() Max Unlimited}' attribute. + * + * + * @see #isMaxUnlimited() + * @generated + * @ordered + */ + protected boolean maxUnlimited = MAX_UNLIMITED_EDEFAULT; + + /** + * + * + * @generated + */ + protected IntervallNumberImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.INTERVALL_NUMBER; + } + + /** + * + * + * @generated + */ + @Override + public int getMin() + { + return min; + } + + /** + * + * + * @generated + */ + @Override + public void setMin(int newMin) + { + int oldMin = min; + min = newMin; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.INTERVALL_NUMBER__MIN, oldMin, min)); + } + + /** + * + * + * @generated + */ + @Override + public int getMaxNumber() + { + return maxNumber; + } + + /** + * + * + * @generated + */ + @Override + public void setMaxNumber(int newMaxNumber) + { + int oldMaxNumber = maxNumber; + maxNumber = newMaxNumber; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_NUMBER, oldMaxNumber, maxNumber)); + } + + /** + * + * + * @generated + */ + @Override + public boolean isMaxUnlimited() + { + return maxUnlimited; + } + + /** + * + * + * @generated + */ + @Override + public void setMaxUnlimited(boolean newMaxUnlimited) + { + boolean oldMaxUnlimited = maxUnlimited; + maxUnlimited = newMaxUnlimited; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_UNLIMITED, oldMaxUnlimited, maxUnlimited)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.INTERVALL_NUMBER__MIN: + return getMin(); + case ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_NUMBER: + return getMaxNumber(); + case ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_UNLIMITED: + return isMaxUnlimited(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.INTERVALL_NUMBER__MIN: + setMin((Integer)newValue); + return; + case ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_NUMBER: + setMaxNumber((Integer)newValue); + return; + case ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_UNLIMITED: + setMaxUnlimited((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.INTERVALL_NUMBER__MIN: + setMin(MIN_EDEFAULT); + return; + case ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_NUMBER: + setMaxNumber(MAX_NUMBER_EDEFAULT); + return; + case ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_UNLIMITED: + setMaxUnlimited(MAX_UNLIMITED_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.INTERVALL_NUMBER__MIN: + return min != MIN_EDEFAULT; + case ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_NUMBER: + return maxNumber != MAX_NUMBER_EDEFAULT; + case ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_UNLIMITED: + return maxUnlimited != MAX_UNLIMITED_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (min: "); + result.append(min); + result.append(", maxNumber: "); + result.append(maxNumber); + result.append(", maxUnlimited: "); + result.append(maxUnlimited); + result.append(')'); + return result.toString(); + } + +} //IntervallNumberImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MemoryEntryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MemoryEntryImpl.java index d0af36c4..1379e2ea 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MemoryEntryImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MemoryEntryImpl.java @@ -1,179 +1,179 @@ -/** - * generated by Xtext 2.21.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.MemoryEntry; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Memory Entry'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MemoryEntryImpl#getMegabyteLimit Megabyte Limit}
  • - *
- * - * @generated - */ -public class MemoryEntryImpl extends ConfigEntryImpl implements MemoryEntry -{ - /** - * The default value of the '{@link #getMegabyteLimit() Megabyte Limit}' attribute. - * - * - * @see #getMegabyteLimit() - * @generated - * @ordered - */ - protected static final int MEGABYTE_LIMIT_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getMegabyteLimit() Megabyte Limit}' attribute. - * - * - * @see #getMegabyteLimit() - * @generated - * @ordered - */ - protected int megabyteLimit = MEGABYTE_LIMIT_EDEFAULT; - - /** - * - * - * @generated - */ - protected MemoryEntryImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.MEMORY_ENTRY; - } - - /** - * - * - * @generated - */ - @Override - public int getMegabyteLimit() - { - return megabyteLimit; - } - - /** - * - * - * @generated - */ - @Override - public void setMegabyteLimit(int newMegabyteLimit) - { - int oldMegabyteLimit = megabyteLimit; - megabyteLimit = newMegabyteLimit; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.MEMORY_ENTRY__MEGABYTE_LIMIT, oldMegabyteLimit, megabyteLimit)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.MEMORY_ENTRY__MEGABYTE_LIMIT: - return getMegabyteLimit(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.MEMORY_ENTRY__MEGABYTE_LIMIT: - setMegabyteLimit((Integer)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.MEMORY_ENTRY__MEGABYTE_LIMIT: - setMegabyteLimit(MEGABYTE_LIMIT_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.MEMORY_ENTRY__MEGABYTE_LIMIT: - return megabyteLimit != MEGABYTE_LIMIT_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (megabyteLimit: "); - result.append(megabyteLimit); - result.append(')'); - return result.toString(); - } - -} //MemoryEntryImpl +/** + * generated by Xtext 2.21.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.MemoryEntry; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Memory Entry'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MemoryEntryImpl#getMegabyteLimit Megabyte Limit}
  • + *
+ * + * @generated + */ +public class MemoryEntryImpl extends ConfigEntryImpl implements MemoryEntry +{ + /** + * The default value of the '{@link #getMegabyteLimit() Megabyte Limit}' attribute. + * + * + * @see #getMegabyteLimit() + * @generated + * @ordered + */ + protected static final int MEGABYTE_LIMIT_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getMegabyteLimit() Megabyte Limit}' attribute. + * + * + * @see #getMegabyteLimit() + * @generated + * @ordered + */ + protected int megabyteLimit = MEGABYTE_LIMIT_EDEFAULT; + + /** + * + * + * @generated + */ + protected MemoryEntryImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.MEMORY_ENTRY; + } + + /** + * + * + * @generated + */ + @Override + public int getMegabyteLimit() + { + return megabyteLimit; + } + + /** + * + * + * @generated + */ + @Override + public void setMegabyteLimit(int newMegabyteLimit) + { + int oldMegabyteLimit = megabyteLimit; + megabyteLimit = newMegabyteLimit; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.MEMORY_ENTRY__MEGABYTE_LIMIT, oldMegabyteLimit, megabyteLimit)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.MEMORY_ENTRY__MEGABYTE_LIMIT: + return getMegabyteLimit(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.MEMORY_ENTRY__MEGABYTE_LIMIT: + setMegabyteLimit((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.MEMORY_ENTRY__MEGABYTE_LIMIT: + setMegabyteLimit(MEGABYTE_LIMIT_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.MEMORY_ENTRY__MEGABYTE_LIMIT: + return megabyteLimit != MEGABYTE_LIMIT_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (megabyteLimit: "); + result.append(megabyteLimit); + result.append(')'); + return result.toString(); + } + +} //MemoryEntryImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelDeclarationImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelDeclarationImpl.java index fdbfc184..59495fb5 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelDeclarationImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelDeclarationImpl.java @@ -1,196 +1,196 @@ -/** - * generated by Xtext 2.21.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.MetamodelDeclaration; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelSpecification; - -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 'Metamodel Declaration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelDeclarationImpl#getSpecification Specification}
  • - *
- * - * @generated - */ -public class MetamodelDeclarationImpl extends DeclarationImpl implements MetamodelDeclaration -{ - /** - * The cached value of the '{@link #getSpecification() Specification}' containment reference. - * - * - * @see #getSpecification() - * @generated - * @ordered - */ - protected MetamodelSpecification specification; - - /** - * - * - * @generated - */ - protected MetamodelDeclarationImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.METAMODEL_DECLARATION; - } - - /** - * - * - * @generated - */ - @Override - public MetamodelSpecification getSpecification() - { - return specification; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetSpecification(MetamodelSpecification newSpecification, NotificationChain msgs) - { - MetamodelSpecification oldSpecification = specification; - specification = newSpecification; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.METAMODEL_DECLARATION__SPECIFICATION, oldSpecification, newSpecification); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setSpecification(MetamodelSpecification newSpecification) - { - if (newSpecification != specification) - { - NotificationChain msgs = null; - if (specification != null) - msgs = ((InternalEObject)specification).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.METAMODEL_DECLARATION__SPECIFICATION, null, msgs); - if (newSpecification != null) - msgs = ((InternalEObject)newSpecification).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.METAMODEL_DECLARATION__SPECIFICATION, null, msgs); - msgs = basicSetSpecification(newSpecification, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.METAMODEL_DECLARATION__SPECIFICATION, newSpecification, newSpecification)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ApplicationConfigurationPackage.METAMODEL_DECLARATION__SPECIFICATION: - return basicSetSpecification(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.METAMODEL_DECLARATION__SPECIFICATION: - return getSpecification(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.METAMODEL_DECLARATION__SPECIFICATION: - setSpecification((MetamodelSpecification)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.METAMODEL_DECLARATION__SPECIFICATION: - setSpecification((MetamodelSpecification)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.METAMODEL_DECLARATION__SPECIFICATION: - return specification != null; - } - return super.eIsSet(featureID); - } - -} //MetamodelDeclarationImpl +/** + * generated by Xtext 2.21.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.MetamodelDeclaration; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelSpecification; + +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 'Metamodel Declaration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelDeclarationImpl#getSpecification Specification}
  • + *
+ * + * @generated + */ +public class MetamodelDeclarationImpl extends DeclarationImpl implements MetamodelDeclaration +{ + /** + * The cached value of the '{@link #getSpecification() Specification}' containment reference. + * + * + * @see #getSpecification() + * @generated + * @ordered + */ + protected MetamodelSpecification specification; + + /** + * + * + * @generated + */ + protected MetamodelDeclarationImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.METAMODEL_DECLARATION; + } + + /** + * + * + * @generated + */ + @Override + public MetamodelSpecification getSpecification() + { + return specification; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetSpecification(MetamodelSpecification newSpecification, NotificationChain msgs) + { + MetamodelSpecification oldSpecification = specification; + specification = newSpecification; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.METAMODEL_DECLARATION__SPECIFICATION, oldSpecification, newSpecification); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + @Override + public void setSpecification(MetamodelSpecification newSpecification) + { + if (newSpecification != specification) + { + NotificationChain msgs = null; + if (specification != null) + msgs = ((InternalEObject)specification).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.METAMODEL_DECLARATION__SPECIFICATION, null, msgs); + if (newSpecification != null) + msgs = ((InternalEObject)newSpecification).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.METAMODEL_DECLARATION__SPECIFICATION, null, msgs); + msgs = basicSetSpecification(newSpecification, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.METAMODEL_DECLARATION__SPECIFICATION, newSpecification, newSpecification)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case ApplicationConfigurationPackage.METAMODEL_DECLARATION__SPECIFICATION: + return basicSetSpecification(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.METAMODEL_DECLARATION__SPECIFICATION: + return getSpecification(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.METAMODEL_DECLARATION__SPECIFICATION: + setSpecification((MetamodelSpecification)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.METAMODEL_DECLARATION__SPECIFICATION: + setSpecification((MetamodelSpecification)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.METAMODEL_DECLARATION__SPECIFICATION: + return specification != null; + } + return super.eIsSet(featureID); + } + +} //MetamodelDeclarationImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelElementImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelElementImpl.java index 7f2e34ef..045814f7 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelElementImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelElementImpl.java @@ -1,243 +1,243 @@ -/** - * generated by Xtext 2.21.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.MetamodelElement; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EClassifier; -import org.eclipse.emf.ecore.ENamedElement; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Metamodel Element'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelElementImpl#getClassifier Classifier}
  • - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelElementImpl#getFeature Feature}
  • - *
- * - * @generated - */ -public class MetamodelElementImpl extends MetamodelEntryImpl implements MetamodelElement -{ - /** - * The cached value of the '{@link #getClassifier() Classifier}' reference. - * - * - * @see #getClassifier() - * @generated - * @ordered - */ - protected EClassifier classifier; - - /** - * The cached value of the '{@link #getFeature() Feature}' reference. - * - * - * @see #getFeature() - * @generated - * @ordered - */ - protected ENamedElement feature; - - /** - * - * - * @generated - */ - protected MetamodelElementImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.METAMODEL_ELEMENT; - } - - /** - * - * - * @generated - */ - @Override - public EClassifier getClassifier() - { - if (classifier != null && classifier.eIsProxy()) - { - InternalEObject oldClassifier = (InternalEObject)classifier; - classifier = (EClassifier)eResolveProxy(oldClassifier); - if (classifier != oldClassifier) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.METAMODEL_ELEMENT__CLASSIFIER, oldClassifier, classifier)); - } - } - return classifier; - } - - /** - * - * - * @generated - */ - public EClassifier basicGetClassifier() - { - return classifier; - } - - /** - * - * - * @generated - */ - @Override - public void setClassifier(EClassifier newClassifier) - { - EClassifier oldClassifier = classifier; - classifier = newClassifier; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.METAMODEL_ELEMENT__CLASSIFIER, oldClassifier, classifier)); - } - - /** - * - * - * @generated - */ - @Override - public ENamedElement getFeature() - { - if (feature != null && feature.eIsProxy()) - { - InternalEObject oldFeature = (InternalEObject)feature; - feature = (ENamedElement)eResolveProxy(oldFeature); - if (feature != oldFeature) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.METAMODEL_ELEMENT__FEATURE, oldFeature, feature)); - } - } - return feature; - } - - /** - * - * - * @generated - */ - public ENamedElement basicGetFeature() - { - return feature; - } - - /** - * - * - * @generated - */ - @Override - public void setFeature(ENamedElement newFeature) - { - ENamedElement oldFeature = feature; - feature = newFeature; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.METAMODEL_ELEMENT__FEATURE, oldFeature, feature)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.METAMODEL_ELEMENT__CLASSIFIER: - if (resolve) return getClassifier(); - return basicGetClassifier(); - case ApplicationConfigurationPackage.METAMODEL_ELEMENT__FEATURE: - if (resolve) return getFeature(); - return basicGetFeature(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.METAMODEL_ELEMENT__CLASSIFIER: - setClassifier((EClassifier)newValue); - return; - case ApplicationConfigurationPackage.METAMODEL_ELEMENT__FEATURE: - setFeature((ENamedElement)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.METAMODEL_ELEMENT__CLASSIFIER: - setClassifier((EClassifier)null); - return; - case ApplicationConfigurationPackage.METAMODEL_ELEMENT__FEATURE: - setFeature((ENamedElement)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.METAMODEL_ELEMENT__CLASSIFIER: - return classifier != null; - case ApplicationConfigurationPackage.METAMODEL_ELEMENT__FEATURE: - return feature != null; - } - return super.eIsSet(featureID); - } - -} //MetamodelElementImpl +/** + * generated by Xtext 2.21.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.MetamodelElement; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EClassifier; +import org.eclipse.emf.ecore.ENamedElement; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Metamodel Element'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelElementImpl#getClassifier Classifier}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelElementImpl#getFeature Feature}
  • + *
+ * + * @generated + */ +public class MetamodelElementImpl extends MetamodelEntryImpl implements MetamodelElement +{ + /** + * The cached value of the '{@link #getClassifier() Classifier}' reference. + * + * + * @see #getClassifier() + * @generated + * @ordered + */ + protected EClassifier classifier; + + /** + * The cached value of the '{@link #getFeature() Feature}' reference. + * + * + * @see #getFeature() + * @generated + * @ordered + */ + protected ENamedElement feature; + + /** + * + * + * @generated + */ + protected MetamodelElementImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.METAMODEL_ELEMENT; + } + + /** + * + * + * @generated + */ + @Override + public EClassifier getClassifier() + { + if (classifier != null && classifier.eIsProxy()) + { + InternalEObject oldClassifier = (InternalEObject)classifier; + classifier = (EClassifier)eResolveProxy(oldClassifier); + if (classifier != oldClassifier) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.METAMODEL_ELEMENT__CLASSIFIER, oldClassifier, classifier)); + } + } + return classifier; + } + + /** + * + * + * @generated + */ + public EClassifier basicGetClassifier() + { + return classifier; + } + + /** + * + * + * @generated + */ + @Override + public void setClassifier(EClassifier newClassifier) + { + EClassifier oldClassifier = classifier; + classifier = newClassifier; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.METAMODEL_ELEMENT__CLASSIFIER, oldClassifier, classifier)); + } + + /** + * + * + * @generated + */ + @Override + public ENamedElement getFeature() + { + if (feature != null && feature.eIsProxy()) + { + InternalEObject oldFeature = (InternalEObject)feature; + feature = (ENamedElement)eResolveProxy(oldFeature); + if (feature != oldFeature) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.METAMODEL_ELEMENT__FEATURE, oldFeature, feature)); + } + } + return feature; + } + + /** + * + * + * @generated + */ + public ENamedElement basicGetFeature() + { + return feature; + } + + /** + * + * + * @generated + */ + @Override + public void setFeature(ENamedElement newFeature) + { + ENamedElement oldFeature = feature; + feature = newFeature; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.METAMODEL_ELEMENT__FEATURE, oldFeature, feature)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.METAMODEL_ELEMENT__CLASSIFIER: + if (resolve) return getClassifier(); + return basicGetClassifier(); + case ApplicationConfigurationPackage.METAMODEL_ELEMENT__FEATURE: + if (resolve) return getFeature(); + return basicGetFeature(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.METAMODEL_ELEMENT__CLASSIFIER: + setClassifier((EClassifier)newValue); + return; + case ApplicationConfigurationPackage.METAMODEL_ELEMENT__FEATURE: + setFeature((ENamedElement)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.METAMODEL_ELEMENT__CLASSIFIER: + setClassifier((EClassifier)null); + return; + case ApplicationConfigurationPackage.METAMODEL_ELEMENT__FEATURE: + setFeature((ENamedElement)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.METAMODEL_ELEMENT__CLASSIFIER: + return classifier != null; + case ApplicationConfigurationPackage.METAMODEL_ELEMENT__FEATURE: + return feature != null; + } + return super.eIsSet(featureID); + } + +} //MetamodelElementImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelEntryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelEntryImpl.java index 1ab18c42..94d09a82 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelEntryImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelEntryImpl.java @@ -1,176 +1,176 @@ -/** - * generated by Xtext 2.21.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.MetamodelEntry; - -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; -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -/** - * - * An implementation of the model object 'Metamodel Entry'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelEntryImpl#getPackage Package}
  • - *
- * - * @generated - */ -public class MetamodelEntryImpl extends MinimalEObjectImpl.Container implements MetamodelEntry -{ - /** - * The cached value of the '{@link #getPackage() Package}' reference. - * - * - * @see #getPackage() - * @generated - * @ordered - */ - protected EPackage package_; - - /** - * - * - * @generated - */ - protected MetamodelEntryImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.METAMODEL_ENTRY; - } - - /** - * - * - * @generated - */ - @Override - public EPackage getPackage() - { - if (package_ != null && package_.eIsProxy()) - { - InternalEObject oldPackage = (InternalEObject)package_; - package_ = (EPackage)eResolveProxy(oldPackage); - if (package_ != oldPackage) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.METAMODEL_ENTRY__PACKAGE, oldPackage, package_)); - } - } - return package_; - } - - /** - * - * - * @generated - */ - public EPackage basicGetPackage() - { - return package_; - } - - /** - * - * - * @generated - */ - @Override - public void setPackage(EPackage newPackage) - { - EPackage oldPackage = package_; - package_ = newPackage; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.METAMODEL_ENTRY__PACKAGE, oldPackage, package_)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.METAMODEL_ENTRY__PACKAGE: - if (resolve) return getPackage(); - return basicGetPackage(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.METAMODEL_ENTRY__PACKAGE: - setPackage((EPackage)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.METAMODEL_ENTRY__PACKAGE: - setPackage((EPackage)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.METAMODEL_ENTRY__PACKAGE: - return package_ != null; - } - return super.eIsSet(featureID); - } - -} //MetamodelEntryImpl +/** + * generated by Xtext 2.21.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.MetamodelEntry; + +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; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Metamodel Entry'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelEntryImpl#getPackage Package}
  • + *
+ * + * @generated + */ +public class MetamodelEntryImpl extends MinimalEObjectImpl.Container implements MetamodelEntry +{ + /** + * The cached value of the '{@link #getPackage() Package}' reference. + * + * + * @see #getPackage() + * @generated + * @ordered + */ + protected EPackage package_; + + /** + * + * + * @generated + */ + protected MetamodelEntryImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.METAMODEL_ENTRY; + } + + /** + * + * + * @generated + */ + @Override + public EPackage getPackage() + { + if (package_ != null && package_.eIsProxy()) + { + InternalEObject oldPackage = (InternalEObject)package_; + package_ = (EPackage)eResolveProxy(oldPackage); + if (package_ != oldPackage) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.METAMODEL_ENTRY__PACKAGE, oldPackage, package_)); + } + } + return package_; + } + + /** + * + * + * @generated + */ + public EPackage basicGetPackage() + { + return package_; + } + + /** + * + * + * @generated + */ + @Override + public void setPackage(EPackage newPackage) + { + EPackage oldPackage = package_; + package_ = newPackage; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.METAMODEL_ENTRY__PACKAGE, oldPackage, package_)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.METAMODEL_ENTRY__PACKAGE: + if (resolve) return getPackage(); + return basicGetPackage(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.METAMODEL_ENTRY__PACKAGE: + setPackage((EPackage)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.METAMODEL_ENTRY__PACKAGE: + setPackage((EPackage)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.METAMODEL_ENTRY__PACKAGE: + return package_ != null; + } + return super.eIsSet(featureID); + } + +} //MetamodelEntryImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelImpl.java index 9cafb36a..3446fcf4 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelImpl.java @@ -1,43 +1,43 @@ -/** - * generated by Xtext 2.21.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.Metamodel; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -/** - * - * An implementation of the model object 'Metamodel'. - * - * - * @generated - */ -public class MetamodelImpl extends MinimalEObjectImpl.Container implements Metamodel -{ - /** - * - * - * @generated - */ - protected MetamodelImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.METAMODEL; - } - -} //MetamodelImpl +/** + * generated by Xtext 2.21.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.Metamodel; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Metamodel'. + * + * + * @generated + */ +public class MetamodelImpl extends MinimalEObjectImpl.Container implements Metamodel +{ + /** + * + * + * @generated + */ + protected MetamodelImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.METAMODEL; + } + +} //MetamodelImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelReferenceImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelReferenceImpl.java index e4e4f7fb..7556f014 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelReferenceImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelReferenceImpl.java @@ -1,175 +1,175 @@ -/** - * generated by Xtext 2.21.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.MetamodelDeclaration; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelReference; - -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 'Metamodel Reference'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelReferenceImpl#getReferred Referred}
  • - *
- * - * @generated - */ -public class MetamodelReferenceImpl extends MetamodelImpl implements MetamodelReference -{ - /** - * The cached value of the '{@link #getReferred() Referred}' reference. - * - * - * @see #getReferred() - * @generated - * @ordered - */ - protected MetamodelDeclaration referred; - - /** - * - * - * @generated - */ - protected MetamodelReferenceImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.METAMODEL_REFERENCE; - } - - /** - * - * - * @generated - */ - @Override - public MetamodelDeclaration getReferred() - { - if (referred != null && referred.eIsProxy()) - { - InternalEObject oldReferred = (InternalEObject)referred; - referred = (MetamodelDeclaration)eResolveProxy(oldReferred); - if (referred != oldReferred) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.METAMODEL_REFERENCE__REFERRED, oldReferred, referred)); - } - } - return referred; - } - - /** - * - * - * @generated - */ - public MetamodelDeclaration basicGetReferred() - { - return referred; - } - - /** - * - * - * @generated - */ - @Override - public void setReferred(MetamodelDeclaration newReferred) - { - MetamodelDeclaration oldReferred = referred; - referred = newReferred; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.METAMODEL_REFERENCE__REFERRED, oldReferred, referred)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.METAMODEL_REFERENCE__REFERRED: - if (resolve) return getReferred(); - return basicGetReferred(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.METAMODEL_REFERENCE__REFERRED: - setReferred((MetamodelDeclaration)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.METAMODEL_REFERENCE__REFERRED: - setReferred((MetamodelDeclaration)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.METAMODEL_REFERENCE__REFERRED: - return referred != null; - } - return super.eIsSet(featureID); - } - -} //MetamodelReferenceImpl +/** + * generated by Xtext 2.21.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.MetamodelDeclaration; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelReference; + +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 'Metamodel Reference'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelReferenceImpl#getReferred Referred}
  • + *
+ * + * @generated + */ +public class MetamodelReferenceImpl extends MetamodelImpl implements MetamodelReference +{ + /** + * The cached value of the '{@link #getReferred() Referred}' reference. + * + * + * @see #getReferred() + * @generated + * @ordered + */ + protected MetamodelDeclaration referred; + + /** + * + * + * @generated + */ + protected MetamodelReferenceImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.METAMODEL_REFERENCE; + } + + /** + * + * + * @generated + */ + @Override + public MetamodelDeclaration getReferred() + { + if (referred != null && referred.eIsProxy()) + { + InternalEObject oldReferred = (InternalEObject)referred; + referred = (MetamodelDeclaration)eResolveProxy(oldReferred); + if (referred != oldReferred) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.METAMODEL_REFERENCE__REFERRED, oldReferred, referred)); + } + } + return referred; + } + + /** + * + * + * @generated + */ + public MetamodelDeclaration basicGetReferred() + { + return referred; + } + + /** + * + * + * @generated + */ + @Override + public void setReferred(MetamodelDeclaration newReferred) + { + MetamodelDeclaration oldReferred = referred; + referred = newReferred; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.METAMODEL_REFERENCE__REFERRED, oldReferred, referred)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.METAMODEL_REFERENCE__REFERRED: + if (resolve) return getReferred(); + return basicGetReferred(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.METAMODEL_REFERENCE__REFERRED: + setReferred((MetamodelDeclaration)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.METAMODEL_REFERENCE__REFERRED: + setReferred((MetamodelDeclaration)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.METAMODEL_REFERENCE__REFERRED: + return referred != null; + } + return super.eIsSet(featureID); + } + +} //MetamodelReferenceImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelSpecificationImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelSpecificationImpl.java index 345b09ce..3d04a447 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelSpecificationImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelSpecificationImpl.java @@ -1,167 +1,167 @@ -/** - * generated by Xtext 2.21.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.MetamodelEntry; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelSpecification; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -/** - * - * An implementation of the model object 'Metamodel Specification'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelSpecificationImpl#getEntries Entries}
  • - *
- * - * @generated - */ -public class MetamodelSpecificationImpl extends MetamodelImpl implements MetamodelSpecification -{ - /** - * The cached value of the '{@link #getEntries() Entries}' containment reference list. - * - * - * @see #getEntries() - * @generated - * @ordered - */ - protected EList entries; - - /** - * - * - * @generated - */ - protected MetamodelSpecificationImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.METAMODEL_SPECIFICATION; - } - - /** - * - * - * @generated - */ - @Override - public EList getEntries() - { - if (entries == null) - { - entries = new EObjectContainmentEList(MetamodelEntry.class, this, ApplicationConfigurationPackage.METAMODEL_SPECIFICATION__ENTRIES); - } - return entries; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ApplicationConfigurationPackage.METAMODEL_SPECIFICATION__ENTRIES: - return ((InternalEList)getEntries()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.METAMODEL_SPECIFICATION__ENTRIES: - return getEntries(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.METAMODEL_SPECIFICATION__ENTRIES: - getEntries().clear(); - getEntries().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.METAMODEL_SPECIFICATION__ENTRIES: - getEntries().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.METAMODEL_SPECIFICATION__ENTRIES: - return entries != null && !entries.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //MetamodelSpecificationImpl +/** + * generated by Xtext 2.21.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.MetamodelEntry; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelSpecification; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Metamodel Specification'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelSpecificationImpl#getEntries Entries}
  • + *
+ * + * @generated + */ +public class MetamodelSpecificationImpl extends MetamodelImpl implements MetamodelSpecification +{ + /** + * The cached value of the '{@link #getEntries() Entries}' containment reference list. + * + * + * @see #getEntries() + * @generated + * @ordered + */ + protected EList entries; + + /** + * + * + * @generated + */ + protected MetamodelSpecificationImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.METAMODEL_SPECIFICATION; + } + + /** + * + * + * @generated + */ + @Override + public EList getEntries() + { + if (entries == null) + { + entries = new EObjectContainmentEList(MetamodelEntry.class, this, ApplicationConfigurationPackage.METAMODEL_SPECIFICATION__ENTRIES); + } + return entries; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case ApplicationConfigurationPackage.METAMODEL_SPECIFICATION__ENTRIES: + return ((InternalEList)getEntries()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.METAMODEL_SPECIFICATION__ENTRIES: + return getEntries(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.METAMODEL_SPECIFICATION__ENTRIES: + getEntries().clear(); + getEntries().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.METAMODEL_SPECIFICATION__ENTRIES: + getEntries().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.METAMODEL_SPECIFICATION__ENTRIES: + return entries != null && !entries.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //MetamodelSpecificationImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ModelEntryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ModelEntryImpl.java index fb94ae3e..c716cbe1 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ModelEntryImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ModelEntryImpl.java @@ -1,41 +1,41 @@ -/** - * generated by Xtext 2.21.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.ModelEntry; - -import org.eclipse.emf.ecore.EClass; - -/** - * - * An implementation of the model object 'Model Entry'. - * - * - * @generated - */ -public class ModelEntryImpl extends PartialModelEntryImpl implements ModelEntry -{ - /** - * - * - * @generated - */ - protected ModelEntryImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.MODEL_ENTRY; - } - -} //ModelEntryImpl +/** + * generated by Xtext 2.21.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.ModelEntry; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'Model Entry'. + * + * + * @generated + */ +public class ModelEntryImpl extends PartialModelEntryImpl implements ModelEntry +{ + /** + * + * + * @generated + */ + protected ModelEntryImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.MODEL_ENTRY; + } + +} //ModelEntryImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/NumberSpecificationImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/NumberSpecificationImpl.java index 83e10ed4..9b6a8c8f 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/NumberSpecificationImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/NumberSpecificationImpl.java @@ -1,43 +1,43 @@ -/** - * generated by Xtext 2.21.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.NumberSpecification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -/** - * - * An implementation of the model object 'Number Specification'. - * - * - * @generated - */ -public class NumberSpecificationImpl extends MinimalEObjectImpl.Container implements NumberSpecification -{ - /** - * - * - * @generated - */ - protected NumberSpecificationImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.NUMBER_SPECIFICATION; - } - -} //NumberSpecificationImpl +/** + * generated by Xtext 2.21.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.NumberSpecification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Number Specification'. + * + * + * @generated + */ +public class NumberSpecificationImpl extends MinimalEObjectImpl.Container implements NumberSpecification +{ + /** + * + * + * @generated + */ + protected NumberSpecificationImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.NUMBER_SPECIFICATION; + } + +} //NumberSpecificationImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectReferenceImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectReferenceImpl.java index 5ee4a7ca..ea84742b 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectReferenceImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectReferenceImpl.java @@ -1,41 +1,41 @@ -/** - * generated by Xtext 2.21.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 org.eclipse.emf.ecore.EClass; - -/** - * - * An implementation of the model object 'Object Reference'. - * - * - * @generated - */ -public class ObjectReferenceImpl extends TypeReferenceImpl implements ObjectReference -{ - /** - * - * - * @generated - */ - protected ObjectReferenceImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.OBJECT_REFERENCE; - } - -} //ObjectReferenceImpl +/** + * generated by Xtext 2.21.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 org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'Object Reference'. + * + * + * @generated + */ +public class ObjectReferenceImpl extends TypeReferenceImpl implements ObjectReference +{ + /** + * + * + * @generated + */ + protected ObjectReferenceImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.OBJECT_REFERENCE; + } + +} //ObjectReferenceImpl 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 index 67a57d59..764381ff 100644 --- 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 @@ -1,196 +1,196 @@ -/** - * generated by Xtext 2.21.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: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ObjectTypeScopeImpl#getType Type}
  • - *
- * - * @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 - */ - @Override - 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 - */ - @Override - 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 +/** + * generated by Xtext 2.21.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: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ObjectTypeScopeImpl#getType Type}
  • + *
+ * + * @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 + */ + @Override + 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 + */ + @Override + 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 diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveDeclarationImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveDeclarationImpl.java index 29dc49ff..ca16538f 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveDeclarationImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveDeclarationImpl.java @@ -1,196 +1,196 @@ -/** - * generated by Xtext 2.21.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.ObjectiveDeclaration; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectiveSpecification; - -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 'Objective Declaration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ObjectiveDeclarationImpl#getSpecification Specification}
  • - *
- * - * @generated - */ -public class ObjectiveDeclarationImpl extends DeclarationImpl implements ObjectiveDeclaration -{ - /** - * The cached value of the '{@link #getSpecification() Specification}' containment reference. - * - * - * @see #getSpecification() - * @generated - * @ordered - */ - protected ObjectiveSpecification specification; - - /** - * - * - * @generated - */ - protected ObjectiveDeclarationImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.OBJECTIVE_DECLARATION; - } - - /** - * - * - * @generated - */ - @Override - public ObjectiveSpecification getSpecification() - { - return specification; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetSpecification(ObjectiveSpecification newSpecification, NotificationChain msgs) - { - ObjectiveSpecification oldSpecification = specification; - specification = newSpecification; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.OBJECTIVE_DECLARATION__SPECIFICATION, oldSpecification, newSpecification); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setSpecification(ObjectiveSpecification newSpecification) - { - if (newSpecification != specification) - { - NotificationChain msgs = null; - if (specification != null) - msgs = ((InternalEObject)specification).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.OBJECTIVE_DECLARATION__SPECIFICATION, null, msgs); - if (newSpecification != null) - msgs = ((InternalEObject)newSpecification).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.OBJECTIVE_DECLARATION__SPECIFICATION, null, msgs); - msgs = basicSetSpecification(newSpecification, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.OBJECTIVE_DECLARATION__SPECIFICATION, newSpecification, newSpecification)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ApplicationConfigurationPackage.OBJECTIVE_DECLARATION__SPECIFICATION: - return basicSetSpecification(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.OBJECTIVE_DECLARATION__SPECIFICATION: - return getSpecification(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.OBJECTIVE_DECLARATION__SPECIFICATION: - setSpecification((ObjectiveSpecification)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.OBJECTIVE_DECLARATION__SPECIFICATION: - setSpecification((ObjectiveSpecification)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.OBJECTIVE_DECLARATION__SPECIFICATION: - return specification != null; - } - return super.eIsSet(featureID); - } - -} //ObjectiveDeclarationImpl +/** + * generated by Xtext 2.21.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.ObjectiveDeclaration; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectiveSpecification; + +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 'Objective Declaration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ObjectiveDeclarationImpl#getSpecification Specification}
  • + *
+ * + * @generated + */ +public class ObjectiveDeclarationImpl extends DeclarationImpl implements ObjectiveDeclaration +{ + /** + * The cached value of the '{@link #getSpecification() Specification}' containment reference. + * + * + * @see #getSpecification() + * @generated + * @ordered + */ + protected ObjectiveSpecification specification; + + /** + * + * + * @generated + */ + protected ObjectiveDeclarationImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.OBJECTIVE_DECLARATION; + } + + /** + * + * + * @generated + */ + @Override + public ObjectiveSpecification getSpecification() + { + return specification; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetSpecification(ObjectiveSpecification newSpecification, NotificationChain msgs) + { + ObjectiveSpecification oldSpecification = specification; + specification = newSpecification; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.OBJECTIVE_DECLARATION__SPECIFICATION, oldSpecification, newSpecification); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + @Override + public void setSpecification(ObjectiveSpecification newSpecification) + { + if (newSpecification != specification) + { + NotificationChain msgs = null; + if (specification != null) + msgs = ((InternalEObject)specification).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.OBJECTIVE_DECLARATION__SPECIFICATION, null, msgs); + if (newSpecification != null) + msgs = ((InternalEObject)newSpecification).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.OBJECTIVE_DECLARATION__SPECIFICATION, null, msgs); + msgs = basicSetSpecification(newSpecification, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.OBJECTIVE_DECLARATION__SPECIFICATION, newSpecification, newSpecification)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case ApplicationConfigurationPackage.OBJECTIVE_DECLARATION__SPECIFICATION: + return basicSetSpecification(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.OBJECTIVE_DECLARATION__SPECIFICATION: + return getSpecification(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.OBJECTIVE_DECLARATION__SPECIFICATION: + setSpecification((ObjectiveSpecification)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.OBJECTIVE_DECLARATION__SPECIFICATION: + setSpecification((ObjectiveSpecification)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.OBJECTIVE_DECLARATION__SPECIFICATION: + return specification != null; + } + return super.eIsSet(featureID); + } + +} //ObjectiveDeclarationImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveEntryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveEntryImpl.java index b4c550ac..df03e568 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveEntryImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveEntryImpl.java @@ -1,197 +1,197 @@ -/** - * generated by Xtext 2.21.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.ObjectiveEntry; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectiveFunction; - -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; -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -/** - * - * An implementation of the model object 'Objective Entry'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ObjectiveEntryImpl#getFunction Function}
  • - *
- * - * @generated - */ -public class ObjectiveEntryImpl extends MinimalEObjectImpl.Container implements ObjectiveEntry -{ - /** - * The cached value of the '{@link #getFunction() Function}' containment reference. - * - * - * @see #getFunction() - * @generated - * @ordered - */ - protected ObjectiveFunction function; - - /** - * - * - * @generated - */ - protected ObjectiveEntryImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.OBJECTIVE_ENTRY; - } - - /** - * - * - * @generated - */ - @Override - public ObjectiveFunction getFunction() - { - return function; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetFunction(ObjectiveFunction newFunction, NotificationChain msgs) - { - ObjectiveFunction oldFunction = function; - function = newFunction; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION, oldFunction, newFunction); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setFunction(ObjectiveFunction newFunction) - { - if (newFunction != function) - { - NotificationChain msgs = null; - if (function != null) - msgs = ((InternalEObject)function).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION, null, msgs); - if (newFunction != null) - msgs = ((InternalEObject)newFunction).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION, null, msgs); - msgs = basicSetFunction(newFunction, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION, newFunction, newFunction)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION: - return basicSetFunction(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION: - return getFunction(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION: - setFunction((ObjectiveFunction)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION: - setFunction((ObjectiveFunction)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION: - return function != null; - } - return super.eIsSet(featureID); - } - -} //ObjectiveEntryImpl +/** + * generated by Xtext 2.21.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.ObjectiveEntry; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectiveFunction; + +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; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Objective Entry'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ObjectiveEntryImpl#getFunction Function}
  • + *
+ * + * @generated + */ +public class ObjectiveEntryImpl extends MinimalEObjectImpl.Container implements ObjectiveEntry +{ + /** + * The cached value of the '{@link #getFunction() Function}' containment reference. + * + * + * @see #getFunction() + * @generated + * @ordered + */ + protected ObjectiveFunction function; + + /** + * + * + * @generated + */ + protected ObjectiveEntryImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.OBJECTIVE_ENTRY; + } + + /** + * + * + * @generated + */ + @Override + public ObjectiveFunction getFunction() + { + return function; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetFunction(ObjectiveFunction newFunction, NotificationChain msgs) + { + ObjectiveFunction oldFunction = function; + function = newFunction; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION, oldFunction, newFunction); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + @Override + public void setFunction(ObjectiveFunction newFunction) + { + if (newFunction != function) + { + NotificationChain msgs = null; + if (function != null) + msgs = ((InternalEObject)function).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION, null, msgs); + if (newFunction != null) + msgs = ((InternalEObject)newFunction).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION, null, msgs); + msgs = basicSetFunction(newFunction, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION, newFunction, newFunction)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION: + return basicSetFunction(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION: + return getFunction(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION: + setFunction((ObjectiveFunction)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION: + setFunction((ObjectiveFunction)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION: + return function != null; + } + return super.eIsSet(featureID); + } + +} //ObjectiveEntryImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveFunctionImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveFunctionImpl.java index 08c7b296..c7982201 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveFunctionImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveFunctionImpl.java @@ -1,43 +1,43 @@ -/** - * generated by Xtext 2.21.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.ObjectiveFunction; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -/** - * - * An implementation of the model object 'Objective Function'. - * - * - * @generated - */ -public class ObjectiveFunctionImpl extends MinimalEObjectImpl.Container implements ObjectiveFunction -{ - /** - * - * - * @generated - */ - protected ObjectiveFunctionImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.OBJECTIVE_FUNCTION; - } - -} //ObjectiveFunctionImpl +/** + * generated by Xtext 2.21.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.ObjectiveFunction; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Objective Function'. + * + * + * @generated + */ +public class ObjectiveFunctionImpl extends MinimalEObjectImpl.Container implements ObjectiveFunction +{ + /** + * + * + * @generated + */ + protected ObjectiveFunctionImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.OBJECTIVE_FUNCTION; + } + +} //ObjectiveFunctionImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveImpl.java index 30ce8bf3..3e960b47 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveImpl.java @@ -1,43 +1,43 @@ -/** - * generated by Xtext 2.21.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.Objective; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -/** - * - * An implementation of the model object 'Objective'. - * - * - * @generated - */ -public class ObjectiveImpl extends MinimalEObjectImpl.Container implements Objective -{ - /** - * - * - * @generated - */ - protected ObjectiveImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.OBJECTIVE; - } - -} //ObjectiveImpl +/** + * generated by Xtext 2.21.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.Objective; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Objective'. + * + * + * @generated + */ +public class ObjectiveImpl extends MinimalEObjectImpl.Container implements Objective +{ + /** + * + * + * @generated + */ + protected ObjectiveImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.OBJECTIVE; + } + +} //ObjectiveImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveReferenceImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveReferenceImpl.java index 45c55462..57fb42b4 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveReferenceImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveReferenceImpl.java @@ -1,175 +1,175 @@ -/** - * generated by Xtext 2.21.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.ObjectiveDeclaration; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectiveReference; - -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 'Objective Reference'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ObjectiveReferenceImpl#getReferred Referred}
  • - *
- * - * @generated - */ -public class ObjectiveReferenceImpl extends ObjectiveImpl implements ObjectiveReference -{ - /** - * The cached value of the '{@link #getReferred() Referred}' reference. - * - * - * @see #getReferred() - * @generated - * @ordered - */ - protected ObjectiveDeclaration referred; - - /** - * - * - * @generated - */ - protected ObjectiveReferenceImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.OBJECTIVE_REFERENCE; - } - - /** - * - * - * @generated - */ - @Override - public ObjectiveDeclaration getReferred() - { - if (referred != null && referred.eIsProxy()) - { - InternalEObject oldReferred = (InternalEObject)referred; - referred = (ObjectiveDeclaration)eResolveProxy(oldReferred); - if (referred != oldReferred) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.OBJECTIVE_REFERENCE__REFERRED, oldReferred, referred)); - } - } - return referred; - } - - /** - * - * - * @generated - */ - public ObjectiveDeclaration basicGetReferred() - { - return referred; - } - - /** - * - * - * @generated - */ - @Override - public void setReferred(ObjectiveDeclaration newReferred) - { - ObjectiveDeclaration oldReferred = referred; - referred = newReferred; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.OBJECTIVE_REFERENCE__REFERRED, oldReferred, referred)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.OBJECTIVE_REFERENCE__REFERRED: - if (resolve) return getReferred(); - return basicGetReferred(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.OBJECTIVE_REFERENCE__REFERRED: - setReferred((ObjectiveDeclaration)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.OBJECTIVE_REFERENCE__REFERRED: - setReferred((ObjectiveDeclaration)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.OBJECTIVE_REFERENCE__REFERRED: - return referred != null; - } - return super.eIsSet(featureID); - } - -} //ObjectiveReferenceImpl +/** + * generated by Xtext 2.21.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.ObjectiveDeclaration; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectiveReference; + +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 'Objective Reference'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ObjectiveReferenceImpl#getReferred Referred}
  • + *
+ * + * @generated + */ +public class ObjectiveReferenceImpl extends ObjectiveImpl implements ObjectiveReference +{ + /** + * The cached value of the '{@link #getReferred() Referred}' reference. + * + * + * @see #getReferred() + * @generated + * @ordered + */ + protected ObjectiveDeclaration referred; + + /** + * + * + * @generated + */ + protected ObjectiveReferenceImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.OBJECTIVE_REFERENCE; + } + + /** + * + * + * @generated + */ + @Override + public ObjectiveDeclaration getReferred() + { + if (referred != null && referred.eIsProxy()) + { + InternalEObject oldReferred = (InternalEObject)referred; + referred = (ObjectiveDeclaration)eResolveProxy(oldReferred); + if (referred != oldReferred) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.OBJECTIVE_REFERENCE__REFERRED, oldReferred, referred)); + } + } + return referred; + } + + /** + * + * + * @generated + */ + public ObjectiveDeclaration basicGetReferred() + { + return referred; + } + + /** + * + * + * @generated + */ + @Override + public void setReferred(ObjectiveDeclaration newReferred) + { + ObjectiveDeclaration oldReferred = referred; + referred = newReferred; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.OBJECTIVE_REFERENCE__REFERRED, oldReferred, referred)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.OBJECTIVE_REFERENCE__REFERRED: + if (resolve) return getReferred(); + return basicGetReferred(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.OBJECTIVE_REFERENCE__REFERRED: + setReferred((ObjectiveDeclaration)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.OBJECTIVE_REFERENCE__REFERRED: + setReferred((ObjectiveDeclaration)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.OBJECTIVE_REFERENCE__REFERRED: + return referred != null; + } + return super.eIsSet(featureID); + } + +} //ObjectiveReferenceImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveSpecificationImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveSpecificationImpl.java index 94bde3de..78b937eb 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveSpecificationImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveSpecificationImpl.java @@ -1,167 +1,167 @@ -/** - * generated by Xtext 2.21.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.ObjectiveEntry; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectiveSpecification; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -/** - * - * An implementation of the model object 'Objective Specification'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ObjectiveSpecificationImpl#getEntries Entries}
  • - *
- * - * @generated - */ -public class ObjectiveSpecificationImpl extends ObjectiveImpl implements ObjectiveSpecification -{ - /** - * The cached value of the '{@link #getEntries() Entries}' containment reference list. - * - * - * @see #getEntries() - * @generated - * @ordered - */ - protected EList entries; - - /** - * - * - * @generated - */ - protected ObjectiveSpecificationImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.OBJECTIVE_SPECIFICATION; - } - - /** - * - * - * @generated - */ - @Override - public EList getEntries() - { - if (entries == null) - { - entries = new EObjectContainmentEList(ObjectiveEntry.class, this, ApplicationConfigurationPackage.OBJECTIVE_SPECIFICATION__ENTRIES); - } - return entries; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ApplicationConfigurationPackage.OBJECTIVE_SPECIFICATION__ENTRIES: - return ((InternalEList)getEntries()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.OBJECTIVE_SPECIFICATION__ENTRIES: - return getEntries(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.OBJECTIVE_SPECIFICATION__ENTRIES: - getEntries().clear(); - getEntries().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.OBJECTIVE_SPECIFICATION__ENTRIES: - getEntries().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.OBJECTIVE_SPECIFICATION__ENTRIES: - return entries != null && !entries.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //ObjectiveSpecificationImpl +/** + * generated by Xtext 2.21.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.ObjectiveEntry; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectiveSpecification; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Objective Specification'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ObjectiveSpecificationImpl#getEntries Entries}
  • + *
+ * + * @generated + */ +public class ObjectiveSpecificationImpl extends ObjectiveImpl implements ObjectiveSpecification +{ + /** + * The cached value of the '{@link #getEntries() Entries}' containment reference list. + * + * + * @see #getEntries() + * @generated + * @ordered + */ + protected EList entries; + + /** + * + * + * @generated + */ + protected ObjectiveSpecificationImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.OBJECTIVE_SPECIFICATION; + } + + /** + * + * + * @generated + */ + @Override + public EList getEntries() + { + if (entries == null) + { + entries = new EObjectContainmentEList(ObjectiveEntry.class, this, ApplicationConfigurationPackage.OBJECTIVE_SPECIFICATION__ENTRIES); + } + return entries; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case ApplicationConfigurationPackage.OBJECTIVE_SPECIFICATION__ENTRIES: + return ((InternalEList)getEntries()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.OBJECTIVE_SPECIFICATION__ENTRIES: + return getEntries(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.OBJECTIVE_SPECIFICATION__ENTRIES: + getEntries().clear(); + getEntries().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.OBJECTIVE_SPECIFICATION__ENTRIES: + getEntries().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.OBJECTIVE_SPECIFICATION__ENTRIES: + return entries != null && !entries.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //ObjectiveSpecificationImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/OptimizationEntryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/OptimizationEntryImpl.java index 168b573a..762aa7d8 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/OptimizationEntryImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/OptimizationEntryImpl.java @@ -1,180 +1,180 @@ -/** - * generated by Xtext 2.21.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.OptimizationDirection; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.OptimizationEntry; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Optimization Entry'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.OptimizationEntryImpl#getDirection Direction}
  • - *
- * - * @generated - */ -public class OptimizationEntryImpl extends ObjectiveEntryImpl implements OptimizationEntry -{ - /** - * The default value of the '{@link #getDirection() Direction}' attribute. - * - * - * @see #getDirection() - * @generated - * @ordered - */ - protected static final OptimizationDirection DIRECTION_EDEFAULT = OptimizationDirection.MINIMIZE; - - /** - * The cached value of the '{@link #getDirection() Direction}' attribute. - * - * - * @see #getDirection() - * @generated - * @ordered - */ - protected OptimizationDirection direction = DIRECTION_EDEFAULT; - - /** - * - * - * @generated - */ - protected OptimizationEntryImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.OPTIMIZATION_ENTRY; - } - - /** - * - * - * @generated - */ - @Override - public OptimizationDirection getDirection() - { - return direction; - } - - /** - * - * - * @generated - */ - @Override - public void setDirection(OptimizationDirection newDirection) - { - OptimizationDirection oldDirection = direction; - direction = newDirection == null ? DIRECTION_EDEFAULT : newDirection; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.OPTIMIZATION_ENTRY__DIRECTION, oldDirection, direction)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.OPTIMIZATION_ENTRY__DIRECTION: - return getDirection(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.OPTIMIZATION_ENTRY__DIRECTION: - setDirection((OptimizationDirection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.OPTIMIZATION_ENTRY__DIRECTION: - setDirection(DIRECTION_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.OPTIMIZATION_ENTRY__DIRECTION: - return direction != DIRECTION_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (direction: "); - result.append(direction); - result.append(')'); - return result.toString(); - } - -} //OptimizationEntryImpl +/** + * generated by Xtext 2.21.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.OptimizationDirection; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.OptimizationEntry; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Optimization Entry'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.OptimizationEntryImpl#getDirection Direction}
  • + *
+ * + * @generated + */ +public class OptimizationEntryImpl extends ObjectiveEntryImpl implements OptimizationEntry +{ + /** + * The default value of the '{@link #getDirection() Direction}' attribute. + * + * + * @see #getDirection() + * @generated + * @ordered + */ + protected static final OptimizationDirection DIRECTION_EDEFAULT = OptimizationDirection.MINIMIZE; + + /** + * The cached value of the '{@link #getDirection() Direction}' attribute. + * + * + * @see #getDirection() + * @generated + * @ordered + */ + protected OptimizationDirection direction = DIRECTION_EDEFAULT; + + /** + * + * + * @generated + */ + protected OptimizationEntryImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.OPTIMIZATION_ENTRY; + } + + /** + * + * + * @generated + */ + @Override + public OptimizationDirection getDirection() + { + return direction; + } + + /** + * + * + * @generated + */ + @Override + public void setDirection(OptimizationDirection newDirection) + { + OptimizationDirection oldDirection = direction; + direction = newDirection == null ? DIRECTION_EDEFAULT : newDirection; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.OPTIMIZATION_ENTRY__DIRECTION, oldDirection, direction)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.OPTIMIZATION_ENTRY__DIRECTION: + return getDirection(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.OPTIMIZATION_ENTRY__DIRECTION: + setDirection((OptimizationDirection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.OPTIMIZATION_ENTRY__DIRECTION: + setDirection(DIRECTION_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.OPTIMIZATION_ENTRY__DIRECTION: + return direction != DIRECTION_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (direction: "); + result.append(direction); + result.append(')'); + return result.toString(); + } + +} //OptimizationEntryImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelDeclarationImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelDeclarationImpl.java index 9ae56d76..385e4251 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelDeclarationImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelDeclarationImpl.java @@ -1,196 +1,196 @@ -/** - * generated by Xtext 2.21.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.PartialModelDeclaration; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PartialModelSpecification; - -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 'Partial Model Declaration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.PartialModelDeclarationImpl#getSpecification Specification}
  • - *
- * - * @generated - */ -public class PartialModelDeclarationImpl extends DeclarationImpl implements PartialModelDeclaration -{ - /** - * The cached value of the '{@link #getSpecification() Specification}' containment reference. - * - * - * @see #getSpecification() - * @generated - * @ordered - */ - protected PartialModelSpecification specification; - - /** - * - * - * @generated - */ - protected PartialModelDeclarationImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.PARTIAL_MODEL_DECLARATION; - } - - /** - * - * - * @generated - */ - @Override - public PartialModelSpecification getSpecification() - { - return specification; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetSpecification(PartialModelSpecification newSpecification, NotificationChain msgs) - { - PartialModelSpecification oldSpecification = specification; - specification = newSpecification; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.PARTIAL_MODEL_DECLARATION__SPECIFICATION, oldSpecification, newSpecification); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setSpecification(PartialModelSpecification newSpecification) - { - if (newSpecification != specification) - { - NotificationChain msgs = null; - if (specification != null) - msgs = ((InternalEObject)specification).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.PARTIAL_MODEL_DECLARATION__SPECIFICATION, null, msgs); - if (newSpecification != null) - msgs = ((InternalEObject)newSpecification).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.PARTIAL_MODEL_DECLARATION__SPECIFICATION, null, msgs); - msgs = basicSetSpecification(newSpecification, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.PARTIAL_MODEL_DECLARATION__SPECIFICATION, newSpecification, newSpecification)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PARTIAL_MODEL_DECLARATION__SPECIFICATION: - return basicSetSpecification(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PARTIAL_MODEL_DECLARATION__SPECIFICATION: - return getSpecification(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PARTIAL_MODEL_DECLARATION__SPECIFICATION: - setSpecification((PartialModelSpecification)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PARTIAL_MODEL_DECLARATION__SPECIFICATION: - setSpecification((PartialModelSpecification)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PARTIAL_MODEL_DECLARATION__SPECIFICATION: - return specification != null; - } - return super.eIsSet(featureID); - } - -} //PartialModelDeclarationImpl +/** + * generated by Xtext 2.21.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.PartialModelDeclaration; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PartialModelSpecification; + +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 'Partial Model Declaration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.PartialModelDeclarationImpl#getSpecification Specification}
  • + *
+ * + * @generated + */ +public class PartialModelDeclarationImpl extends DeclarationImpl implements PartialModelDeclaration +{ + /** + * The cached value of the '{@link #getSpecification() Specification}' containment reference. + * + * + * @see #getSpecification() + * @generated + * @ordered + */ + protected PartialModelSpecification specification; + + /** + * + * + * @generated + */ + protected PartialModelDeclarationImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.PARTIAL_MODEL_DECLARATION; + } + + /** + * + * + * @generated + */ + @Override + public PartialModelSpecification getSpecification() + { + return specification; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetSpecification(PartialModelSpecification newSpecification, NotificationChain msgs) + { + PartialModelSpecification oldSpecification = specification; + specification = newSpecification; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.PARTIAL_MODEL_DECLARATION__SPECIFICATION, oldSpecification, newSpecification); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + @Override + public void setSpecification(PartialModelSpecification newSpecification) + { + if (newSpecification != specification) + { + NotificationChain msgs = null; + if (specification != null) + msgs = ((InternalEObject)specification).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.PARTIAL_MODEL_DECLARATION__SPECIFICATION, null, msgs); + if (newSpecification != null) + msgs = ((InternalEObject)newSpecification).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.PARTIAL_MODEL_DECLARATION__SPECIFICATION, null, msgs); + msgs = basicSetSpecification(newSpecification, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.PARTIAL_MODEL_DECLARATION__SPECIFICATION, newSpecification, newSpecification)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PARTIAL_MODEL_DECLARATION__SPECIFICATION: + return basicSetSpecification(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PARTIAL_MODEL_DECLARATION__SPECIFICATION: + return getSpecification(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PARTIAL_MODEL_DECLARATION__SPECIFICATION: + setSpecification((PartialModelSpecification)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PARTIAL_MODEL_DECLARATION__SPECIFICATION: + setSpecification((PartialModelSpecification)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PARTIAL_MODEL_DECLARATION__SPECIFICATION: + return specification != null; + } + return super.eIsSet(featureID); + } + +} //PartialModelDeclarationImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelEntryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelEntryImpl.java index 40b7ebd1..c37b4f0e 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelEntryImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelEntryImpl.java @@ -1,197 +1,197 @@ -/** - * generated by Xtext 2.21.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.File; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PartialModelEntry; - -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; -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -/** - * - * An implementation of the model object 'Partial Model Entry'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.PartialModelEntryImpl#getPath Path}
  • - *
- * - * @generated - */ -public class PartialModelEntryImpl extends MinimalEObjectImpl.Container implements PartialModelEntry -{ - /** - * The cached value of the '{@link #getPath() Path}' containment reference. - * - * - * @see #getPath() - * @generated - * @ordered - */ - protected File path; - - /** - * - * - * @generated - */ - protected PartialModelEntryImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.PARTIAL_MODEL_ENTRY; - } - - /** - * - * - * @generated - */ - @Override - public File getPath() - { - return path; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetPath(File newPath, NotificationChain msgs) - { - File oldPath = path; - path = newPath; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.PARTIAL_MODEL_ENTRY__PATH, oldPath, newPath); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setPath(File newPath) - { - if (newPath != path) - { - NotificationChain msgs = null; - if (path != null) - msgs = ((InternalEObject)path).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.PARTIAL_MODEL_ENTRY__PATH, null, msgs); - if (newPath != null) - msgs = ((InternalEObject)newPath).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.PARTIAL_MODEL_ENTRY__PATH, null, msgs); - msgs = basicSetPath(newPath, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.PARTIAL_MODEL_ENTRY__PATH, newPath, newPath)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PARTIAL_MODEL_ENTRY__PATH: - return basicSetPath(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PARTIAL_MODEL_ENTRY__PATH: - return getPath(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PARTIAL_MODEL_ENTRY__PATH: - setPath((File)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PARTIAL_MODEL_ENTRY__PATH: - setPath((File)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PARTIAL_MODEL_ENTRY__PATH: - return path != null; - } - return super.eIsSet(featureID); - } - -} //PartialModelEntryImpl +/** + * generated by Xtext 2.21.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.File; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PartialModelEntry; + +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; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Partial Model Entry'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.PartialModelEntryImpl#getPath Path}
  • + *
+ * + * @generated + */ +public class PartialModelEntryImpl extends MinimalEObjectImpl.Container implements PartialModelEntry +{ + /** + * The cached value of the '{@link #getPath() Path}' containment reference. + * + * + * @see #getPath() + * @generated + * @ordered + */ + protected File path; + + /** + * + * + * @generated + */ + protected PartialModelEntryImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.PARTIAL_MODEL_ENTRY; + } + + /** + * + * + * @generated + */ + @Override + public File getPath() + { + return path; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetPath(File newPath, NotificationChain msgs) + { + File oldPath = path; + path = newPath; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.PARTIAL_MODEL_ENTRY__PATH, oldPath, newPath); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + @Override + public void setPath(File newPath) + { + if (newPath != path) + { + NotificationChain msgs = null; + if (path != null) + msgs = ((InternalEObject)path).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.PARTIAL_MODEL_ENTRY__PATH, null, msgs); + if (newPath != null) + msgs = ((InternalEObject)newPath).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.PARTIAL_MODEL_ENTRY__PATH, null, msgs); + msgs = basicSetPath(newPath, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.PARTIAL_MODEL_ENTRY__PATH, newPath, newPath)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PARTIAL_MODEL_ENTRY__PATH: + return basicSetPath(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PARTIAL_MODEL_ENTRY__PATH: + return getPath(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PARTIAL_MODEL_ENTRY__PATH: + setPath((File)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PARTIAL_MODEL_ENTRY__PATH: + setPath((File)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PARTIAL_MODEL_ENTRY__PATH: + return path != null; + } + return super.eIsSet(featureID); + } + +} //PartialModelEntryImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelImpl.java index b5ab1ca4..20863076 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelImpl.java @@ -1,43 +1,43 @@ -/** - * generated by Xtext 2.21.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.PartialModel; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -/** - * - * An implementation of the model object 'Partial Model'. - * - * - * @generated - */ -public class PartialModelImpl extends MinimalEObjectImpl.Container implements PartialModel -{ - /** - * - * - * @generated - */ - protected PartialModelImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.PARTIAL_MODEL; - } - -} //PartialModelImpl +/** + * generated by Xtext 2.21.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.PartialModel; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Partial Model'. + * + * + * @generated + */ +public class PartialModelImpl extends MinimalEObjectImpl.Container implements PartialModel +{ + /** + * + * + * @generated + */ + protected PartialModelImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.PARTIAL_MODEL; + } + +} //PartialModelImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelReferenceImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelReferenceImpl.java index a7d46f85..7aea4c33 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelReferenceImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelReferenceImpl.java @@ -1,175 +1,175 @@ -/** - * generated by Xtext 2.21.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.PartialModelDeclaration; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PartialModelReference; - -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 'Partial Model Reference'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.PartialModelReferenceImpl#getReferred Referred}
  • - *
- * - * @generated - */ -public class PartialModelReferenceImpl extends PartialModelImpl implements PartialModelReference -{ - /** - * The cached value of the '{@link #getReferred() Referred}' reference. - * - * - * @see #getReferred() - * @generated - * @ordered - */ - protected PartialModelDeclaration referred; - - /** - * - * - * @generated - */ - protected PartialModelReferenceImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.PARTIAL_MODEL_REFERENCE; - } - - /** - * - * - * @generated - */ - @Override - public PartialModelDeclaration getReferred() - { - if (referred != null && referred.eIsProxy()) - { - InternalEObject oldReferred = (InternalEObject)referred; - referred = (PartialModelDeclaration)eResolveProxy(oldReferred); - if (referred != oldReferred) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.PARTIAL_MODEL_REFERENCE__REFERRED, oldReferred, referred)); - } - } - return referred; - } - - /** - * - * - * @generated - */ - public PartialModelDeclaration basicGetReferred() - { - return referred; - } - - /** - * - * - * @generated - */ - @Override - public void setReferred(PartialModelDeclaration newReferred) - { - PartialModelDeclaration oldReferred = referred; - referred = newReferred; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.PARTIAL_MODEL_REFERENCE__REFERRED, oldReferred, referred)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PARTIAL_MODEL_REFERENCE__REFERRED: - if (resolve) return getReferred(); - return basicGetReferred(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PARTIAL_MODEL_REFERENCE__REFERRED: - setReferred((PartialModelDeclaration)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PARTIAL_MODEL_REFERENCE__REFERRED: - setReferred((PartialModelDeclaration)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PARTIAL_MODEL_REFERENCE__REFERRED: - return referred != null; - } - return super.eIsSet(featureID); - } - -} //PartialModelReferenceImpl +/** + * generated by Xtext 2.21.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.PartialModelDeclaration; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PartialModelReference; + +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 'Partial Model Reference'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.PartialModelReferenceImpl#getReferred Referred}
  • + *
+ * + * @generated + */ +public class PartialModelReferenceImpl extends PartialModelImpl implements PartialModelReference +{ + /** + * The cached value of the '{@link #getReferred() Referred}' reference. + * + * + * @see #getReferred() + * @generated + * @ordered + */ + protected PartialModelDeclaration referred; + + /** + * + * + * @generated + */ + protected PartialModelReferenceImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.PARTIAL_MODEL_REFERENCE; + } + + /** + * + * + * @generated + */ + @Override + public PartialModelDeclaration getReferred() + { + if (referred != null && referred.eIsProxy()) + { + InternalEObject oldReferred = (InternalEObject)referred; + referred = (PartialModelDeclaration)eResolveProxy(oldReferred); + if (referred != oldReferred) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.PARTIAL_MODEL_REFERENCE__REFERRED, oldReferred, referred)); + } + } + return referred; + } + + /** + * + * + * @generated + */ + public PartialModelDeclaration basicGetReferred() + { + return referred; + } + + /** + * + * + * @generated + */ + @Override + public void setReferred(PartialModelDeclaration newReferred) + { + PartialModelDeclaration oldReferred = referred; + referred = newReferred; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.PARTIAL_MODEL_REFERENCE__REFERRED, oldReferred, referred)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PARTIAL_MODEL_REFERENCE__REFERRED: + if (resolve) return getReferred(); + return basicGetReferred(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PARTIAL_MODEL_REFERENCE__REFERRED: + setReferred((PartialModelDeclaration)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PARTIAL_MODEL_REFERENCE__REFERRED: + setReferred((PartialModelDeclaration)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PARTIAL_MODEL_REFERENCE__REFERRED: + return referred != null; + } + return super.eIsSet(featureID); + } + +} //PartialModelReferenceImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelSpecificationImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelSpecificationImpl.java index cf1b697a..8cbbfc75 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelSpecificationImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelSpecificationImpl.java @@ -1,167 +1,167 @@ -/** - * generated by Xtext 2.21.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.PartialModelEntry; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PartialModelSpecification; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -/** - * - * An implementation of the model object 'Partial Model Specification'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.PartialModelSpecificationImpl#getEntry Entry}
  • - *
- * - * @generated - */ -public class PartialModelSpecificationImpl extends PartialModelImpl implements PartialModelSpecification -{ - /** - * The cached value of the '{@link #getEntry() Entry}' containment reference list. - * - * - * @see #getEntry() - * @generated - * @ordered - */ - protected EList entry; - - /** - * - * - * @generated - */ - protected PartialModelSpecificationImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.PARTIAL_MODEL_SPECIFICATION; - } - - /** - * - * - * @generated - */ - @Override - public EList getEntry() - { - if (entry == null) - { - entry = new EObjectContainmentEList(PartialModelEntry.class, this, ApplicationConfigurationPackage.PARTIAL_MODEL_SPECIFICATION__ENTRY); - } - return entry; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PARTIAL_MODEL_SPECIFICATION__ENTRY: - return ((InternalEList)getEntry()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PARTIAL_MODEL_SPECIFICATION__ENTRY: - return getEntry(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PARTIAL_MODEL_SPECIFICATION__ENTRY: - getEntry().clear(); - getEntry().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PARTIAL_MODEL_SPECIFICATION__ENTRY: - getEntry().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PARTIAL_MODEL_SPECIFICATION__ENTRY: - return entry != null && !entry.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //PartialModelSpecificationImpl +/** + * generated by Xtext 2.21.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.PartialModelEntry; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PartialModelSpecification; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Partial Model Specification'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.PartialModelSpecificationImpl#getEntry Entry}
  • + *
+ * + * @generated + */ +public class PartialModelSpecificationImpl extends PartialModelImpl implements PartialModelSpecification +{ + /** + * The cached value of the '{@link #getEntry() Entry}' containment reference list. + * + * + * @see #getEntry() + * @generated + * @ordered + */ + protected EList entry; + + /** + * + * + * @generated + */ + protected PartialModelSpecificationImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.PARTIAL_MODEL_SPECIFICATION; + } + + /** + * + * + * @generated + */ + @Override + public EList getEntry() + { + if (entry == null) + { + entry = new EObjectContainmentEList(PartialModelEntry.class, this, ApplicationConfigurationPackage.PARTIAL_MODEL_SPECIFICATION__ENTRY); + } + return entry; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PARTIAL_MODEL_SPECIFICATION__ENTRY: + return ((InternalEList)getEntry()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PARTIAL_MODEL_SPECIFICATION__ENTRY: + return getEntry(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PARTIAL_MODEL_SPECIFICATION__ENTRY: + getEntry().clear(); + getEntry().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PARTIAL_MODEL_SPECIFICATION__ENTRY: + getEntry().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PARTIAL_MODEL_SPECIFICATION__ENTRY: + return entry != null && !entry.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //PartialModelSpecificationImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PatternElementImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PatternElementImpl.java index 101840d2..74f93f35 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PatternElementImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PatternElementImpl.java @@ -1,176 +1,176 @@ -/** - * generated by Xtext 2.21.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.PatternElement; - -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; - -import org.eclipse.viatra.query.patternlanguage.emf.vql.Pattern; - -/** - * - * An implementation of the model object 'Pattern Element'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.PatternElementImpl#getPattern Pattern}
  • - *
- * - * @generated - */ -public class PatternElementImpl extends PatternEntryImpl implements PatternElement -{ - /** - * The cached value of the '{@link #getPattern() Pattern}' reference. - * - * - * @see #getPattern() - * @generated - * @ordered - */ - protected Pattern pattern; - - /** - * - * - * @generated - */ - protected PatternElementImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.PATTERN_ELEMENT; - } - - /** - * - * - * @generated - */ - @Override - public Pattern getPattern() - { - if (pattern != null && pattern.eIsProxy()) - { - InternalEObject oldPattern = (InternalEObject)pattern; - pattern = (Pattern)eResolveProxy(oldPattern); - if (pattern != oldPattern) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.PATTERN_ELEMENT__PATTERN, oldPattern, pattern)); - } - } - return pattern; - } - - /** - * - * - * @generated - */ - public Pattern basicGetPattern() - { - return pattern; - } - - /** - * - * - * @generated - */ - @Override - public void setPattern(Pattern newPattern) - { - Pattern oldPattern = pattern; - pattern = newPattern; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.PATTERN_ELEMENT__PATTERN, oldPattern, pattern)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PATTERN_ELEMENT__PATTERN: - if (resolve) return getPattern(); - return basicGetPattern(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PATTERN_ELEMENT__PATTERN: - setPattern((Pattern)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PATTERN_ELEMENT__PATTERN: - setPattern((Pattern)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PATTERN_ELEMENT__PATTERN: - return pattern != null; - } - return super.eIsSet(featureID); - } - -} //PatternElementImpl +/** + * generated by Xtext 2.21.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.PatternElement; + +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; + +import org.eclipse.viatra.query.patternlanguage.emf.vql.Pattern; + +/** + * + * An implementation of the model object 'Pattern Element'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.PatternElementImpl#getPattern Pattern}
  • + *
+ * + * @generated + */ +public class PatternElementImpl extends PatternEntryImpl implements PatternElement +{ + /** + * The cached value of the '{@link #getPattern() Pattern}' reference. + * + * + * @see #getPattern() + * @generated + * @ordered + */ + protected Pattern pattern; + + /** + * + * + * @generated + */ + protected PatternElementImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.PATTERN_ELEMENT; + } + + /** + * + * + * @generated + */ + @Override + public Pattern getPattern() + { + if (pattern != null && pattern.eIsProxy()) + { + InternalEObject oldPattern = (InternalEObject)pattern; + pattern = (Pattern)eResolveProxy(oldPattern); + if (pattern != oldPattern) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.PATTERN_ELEMENT__PATTERN, oldPattern, pattern)); + } + } + return pattern; + } + + /** + * + * + * @generated + */ + public Pattern basicGetPattern() + { + return pattern; + } + + /** + * + * + * @generated + */ + @Override + public void setPattern(Pattern newPattern) + { + Pattern oldPattern = pattern; + pattern = newPattern; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.PATTERN_ELEMENT__PATTERN, oldPattern, pattern)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PATTERN_ELEMENT__PATTERN: + if (resolve) return getPattern(); + return basicGetPattern(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PATTERN_ELEMENT__PATTERN: + setPattern((Pattern)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PATTERN_ELEMENT__PATTERN: + setPattern((Pattern)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PATTERN_ELEMENT__PATTERN: + return pattern != null; + } + return super.eIsSet(featureID); + } + +} //PatternElementImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PatternEntryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PatternEntryImpl.java index cb39def4..8d1df054 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PatternEntryImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PatternEntryImpl.java @@ -1,177 +1,177 @@ -/** - * generated by Xtext 2.21.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.PatternEntry; - -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; -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -import org.eclipse.viatra.query.patternlanguage.emf.vql.PatternModel; - -/** - * - * An implementation of the model object 'Pattern Entry'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.PatternEntryImpl#getPackage Package}
  • - *
- * - * @generated - */ -public class PatternEntryImpl extends MinimalEObjectImpl.Container implements PatternEntry -{ - /** - * The cached value of the '{@link #getPackage() Package}' reference. - * - * - * @see #getPackage() - * @generated - * @ordered - */ - protected PatternModel package_; - - /** - * - * - * @generated - */ - protected PatternEntryImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.PATTERN_ENTRY; - } - - /** - * - * - * @generated - */ - @Override - public PatternModel getPackage() - { - if (package_ != null && package_.eIsProxy()) - { - InternalEObject oldPackage = (InternalEObject)package_; - package_ = (PatternModel)eResolveProxy(oldPackage); - if (package_ != oldPackage) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.PATTERN_ENTRY__PACKAGE, oldPackage, package_)); - } - } - return package_; - } - - /** - * - * - * @generated - */ - public PatternModel basicGetPackage() - { - return package_; - } - - /** - * - * - * @generated - */ - @Override - public void setPackage(PatternModel newPackage) - { - PatternModel oldPackage = package_; - package_ = newPackage; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.PATTERN_ENTRY__PACKAGE, oldPackage, package_)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PATTERN_ENTRY__PACKAGE: - if (resolve) return getPackage(); - return basicGetPackage(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PATTERN_ENTRY__PACKAGE: - setPackage((PatternModel)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PATTERN_ENTRY__PACKAGE: - setPackage((PatternModel)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PATTERN_ENTRY__PACKAGE: - return package_ != null; - } - return super.eIsSet(featureID); - } - -} //PatternEntryImpl +/** + * generated by Xtext 2.21.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.PatternEntry; + +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; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.viatra.query.patternlanguage.emf.vql.PatternModel; + +/** + * + * An implementation of the model object 'Pattern Entry'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.PatternEntryImpl#getPackage Package}
  • + *
+ * + * @generated + */ +public class PatternEntryImpl extends MinimalEObjectImpl.Container implements PatternEntry +{ + /** + * The cached value of the '{@link #getPackage() Package}' reference. + * + * + * @see #getPackage() + * @generated + * @ordered + */ + protected PatternModel package_; + + /** + * + * + * @generated + */ + protected PatternEntryImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.PATTERN_ENTRY; + } + + /** + * + * + * @generated + */ + @Override + public PatternModel getPackage() + { + if (package_ != null && package_.eIsProxy()) + { + InternalEObject oldPackage = (InternalEObject)package_; + package_ = (PatternModel)eResolveProxy(oldPackage); + if (package_ != oldPackage) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.PATTERN_ENTRY__PACKAGE, oldPackage, package_)); + } + } + return package_; + } + + /** + * + * + * @generated + */ + public PatternModel basicGetPackage() + { + return package_; + } + + /** + * + * + * @generated + */ + @Override + public void setPackage(PatternModel newPackage) + { + PatternModel oldPackage = package_; + package_ = newPackage; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.PATTERN_ENTRY__PACKAGE, oldPackage, package_)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PATTERN_ENTRY__PACKAGE: + if (resolve) return getPackage(); + return basicGetPackage(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PATTERN_ENTRY__PACKAGE: + setPackage((PatternModel)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PATTERN_ENTRY__PACKAGE: + setPackage((PatternModel)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PATTERN_ENTRY__PACKAGE: + return package_ != null; + } + return super.eIsSet(featureID); + } + +} //PatternEntryImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PatternSpecificationImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PatternSpecificationImpl.java index 5240cfd4..4f1d658b 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PatternSpecificationImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PatternSpecificationImpl.java @@ -1,167 +1,167 @@ -/** - * generated by Xtext 2.21.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.PatternEntry; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PatternSpecification; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -/** - * - * An implementation of the model object 'Pattern Specification'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.PatternSpecificationImpl#getEntries Entries}
  • - *
- * - * @generated - */ -public class PatternSpecificationImpl extends GraphPatternImpl implements PatternSpecification -{ - /** - * The cached value of the '{@link #getEntries() Entries}' containment reference list. - * - * - * @see #getEntries() - * @generated - * @ordered - */ - protected EList entries; - - /** - * - * - * @generated - */ - protected PatternSpecificationImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.PATTERN_SPECIFICATION; - } - - /** - * - * - * @generated - */ - @Override - public EList getEntries() - { - if (entries == null) - { - entries = new EObjectContainmentEList(PatternEntry.class, this, ApplicationConfigurationPackage.PATTERN_SPECIFICATION__ENTRIES); - } - return entries; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PATTERN_SPECIFICATION__ENTRIES: - return ((InternalEList)getEntries()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PATTERN_SPECIFICATION__ENTRIES: - return getEntries(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PATTERN_SPECIFICATION__ENTRIES: - getEntries().clear(); - getEntries().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PATTERN_SPECIFICATION__ENTRIES: - getEntries().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.PATTERN_SPECIFICATION__ENTRIES: - return entries != null && !entries.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //PatternSpecificationImpl +/** + * generated by Xtext 2.21.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.PatternEntry; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PatternSpecification; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Pattern Specification'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.PatternSpecificationImpl#getEntries Entries}
  • + *
+ * + * @generated + */ +public class PatternSpecificationImpl extends GraphPatternImpl implements PatternSpecification +{ + /** + * The cached value of the '{@link #getEntries() Entries}' containment reference list. + * + * + * @see #getEntries() + * @generated + * @ordered + */ + protected EList entries; + + /** + * + * + * @generated + */ + protected PatternSpecificationImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.PATTERN_SPECIFICATION; + } + + /** + * + * + * @generated + */ + @Override + public EList getEntries() + { + if (entries == null) + { + entries = new EObjectContainmentEList(PatternEntry.class, this, ApplicationConfigurationPackage.PATTERN_SPECIFICATION__ENTRIES); + } + return entries; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PATTERN_SPECIFICATION__ENTRIES: + return ((InternalEList)getEntries()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PATTERN_SPECIFICATION__ENTRIES: + return getEntries(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PATTERN_SPECIFICATION__ENTRIES: + getEntries().clear(); + getEntries().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PATTERN_SPECIFICATION__ENTRIES: + getEntries().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.PATTERN_SPECIFICATION__ENTRIES: + return entries != null && !entries.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //PatternSpecificationImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/RealEnumerationImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/RealEnumerationImpl.java index dd476591..47825fad 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/RealEnumerationImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/RealEnumerationImpl.java @@ -1,165 +1,163 @@ -/** - * generated by Xtext 2.21.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.RealEnumeration; - -import java.math.BigDecimal; - -import java.util.Collection; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.util.EDataTypeEList; - -/** - * - * An implementation of the model object 'Real Enumeration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.RealEnumerationImpl#getEntry Entry}
  • - *
- * - * @generated - */ -public class RealEnumerationImpl extends NumberSpecificationImpl implements RealEnumeration -{ - /** - * The cached value of the '{@link #getEntry() Entry}' attribute list. - * - * - * @see #getEntry() - * @generated - * @ordered - */ - protected EList entry; - - /** - * - * - * @generated - */ - protected RealEnumerationImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.REAL_ENUMERATION; - } - - /** - * - * - * @generated - */ - @Override - public EList getEntry() - { - if (entry == null) - { - entry = new EDataTypeEList(BigDecimal.class, this, ApplicationConfigurationPackage.REAL_ENUMERATION__ENTRY); - } - return entry; - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.REAL_ENUMERATION__ENTRY: - return getEntry(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.REAL_ENUMERATION__ENTRY: - getEntry().clear(); - getEntry().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.REAL_ENUMERATION__ENTRY: - getEntry().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.REAL_ENUMERATION__ENTRY: - return entry != null && !entry.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (entry: "); - result.append(entry); - result.append(')'); - return result.toString(); - } - -} //RealEnumerationImpl +/** + * generated by Xtext 2.21.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.RealEnumeration; + +import java.util.Collection; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.util.EDataTypeEList; + +/** + * + * An implementation of the model object 'Real Enumeration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.RealEnumerationImpl#getEntry Entry}
  • + *
+ * + * @generated + */ +public class RealEnumerationImpl extends NumberSpecificationImpl implements RealEnumeration +{ + /** + * The cached value of the '{@link #getEntry() Entry}' attribute list. + * + * + * @see #getEntry() + * @generated + * @ordered + */ + protected EList entry; + + /** + * + * + * @generated + */ + protected RealEnumerationImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.REAL_ENUMERATION; + } + + /** + * + * + * @generated + */ + @Override + public EList getEntry() + { + if (entry == null) + { + entry = new EDataTypeEList(Double.class, this, ApplicationConfigurationPackage.REAL_ENUMERATION__ENTRY); + } + return entry; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.REAL_ENUMERATION__ENTRY: + return getEntry(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.REAL_ENUMERATION__ENTRY: + getEntry().clear(); + getEntry().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.REAL_ENUMERATION__ENTRY: + getEntry().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.REAL_ENUMERATION__ENTRY: + return entry != null && !entry.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (entry: "); + result.append(entry); + result.append(')'); + return result.toString(); + } + +} //RealEnumerationImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/RealReferenceImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/RealReferenceImpl.java index 02642d6b..bb84a7a0 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/RealReferenceImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/RealReferenceImpl.java @@ -1,41 +1,41 @@ -/** - * generated by Xtext 2.21.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.RealReference; - -import org.eclipse.emf.ecore.EClass; - -/** - * - * An implementation of the model object 'Real Reference'. - * - * - * @generated - */ -public class RealReferenceImpl extends TypeReferenceImpl implements RealReference -{ - /** - * - * - * @generated - */ - protected RealReferenceImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.REAL_REFERENCE; - } - -} //RealReferenceImpl +/** + * generated by Xtext 2.21.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.RealReference; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'Real Reference'. + * + * + * @generated + */ +public class RealReferenceImpl extends TypeReferenceImpl implements RealReference +{ + /** + * + * + * @generated + */ + protected RealReferenceImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.REAL_REFERENCE; + } + +} //RealReferenceImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/RealScopeImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/RealScopeImpl.java index eb2685d9..0c056561 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/RealScopeImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/RealScopeImpl.java @@ -1,41 +1,41 @@ -/** - * generated by Xtext 2.21.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.RealScope; - -import org.eclipse.emf.ecore.EClass; - -/** - * - * An implementation of the model object 'Real Scope'. - * - * - * @generated - */ -public class RealScopeImpl extends RealReferenceImpl implements RealScope -{ - /** - * - * - * @generated - */ - protected RealScopeImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.REAL_SCOPE; - } - -} //RealScopeImpl +/** + * generated by Xtext 2.21.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.RealScope; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'Real Scope'. + * + * + * @generated + */ +public class RealScopeImpl extends RealReferenceImpl implements RealScope +{ + /** + * + * + * @generated + */ + protected RealScopeImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.REAL_SCOPE; + } + +} //RealScopeImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/RealTypeScopeImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/RealTypeScopeImpl.java index cb2576d5..d0e208ea 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/RealTypeScopeImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/RealTypeScopeImpl.java @@ -1,196 +1,196 @@ -/** - * generated by Xtext 2.21.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.RealReference; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.RealTypeScope; - -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 'Real Type Scope'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.RealTypeScopeImpl#getType Type}
  • - *
- * - * @generated - */ -public class RealTypeScopeImpl extends TypeScopeImpl implements RealTypeScope -{ - /** - * The cached value of the '{@link #getType() Type}' containment reference. - * - * - * @see #getType() - * @generated - * @ordered - */ - protected RealReference type; - - /** - * - * - * @generated - */ - protected RealTypeScopeImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.REAL_TYPE_SCOPE; - } - - /** - * - * - * @generated - */ - @Override - public RealReference getType() - { - return type; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetType(RealReference newType, NotificationChain msgs) - { - RealReference oldType = type; - type = newType; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.REAL_TYPE_SCOPE__TYPE, oldType, newType); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setType(RealReference newType) - { - if (newType != type) - { - NotificationChain msgs = null; - if (type != null) - msgs = ((InternalEObject)type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.REAL_TYPE_SCOPE__TYPE, null, msgs); - if (newType != null) - msgs = ((InternalEObject)newType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.REAL_TYPE_SCOPE__TYPE, null, msgs); - msgs = basicSetType(newType, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.REAL_TYPE_SCOPE__TYPE, newType, newType)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ApplicationConfigurationPackage.REAL_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.REAL_TYPE_SCOPE__TYPE: - return getType(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.REAL_TYPE_SCOPE__TYPE: - setType((RealReference)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.REAL_TYPE_SCOPE__TYPE: - setType((RealReference)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.REAL_TYPE_SCOPE__TYPE: - return type != null; - } - return super.eIsSet(featureID); - } - -} //RealTypeScopeImpl +/** + * generated by Xtext 2.21.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.RealReference; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.RealTypeScope; + +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 'Real Type Scope'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.RealTypeScopeImpl#getType Type}
  • + *
+ * + * @generated + */ +public class RealTypeScopeImpl extends TypeScopeImpl implements RealTypeScope +{ + /** + * The cached value of the '{@link #getType() Type}' containment reference. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected RealReference type; + + /** + * + * + * @generated + */ + protected RealTypeScopeImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.REAL_TYPE_SCOPE; + } + + /** + * + * + * @generated + */ + @Override + public RealReference getType() + { + return type; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetType(RealReference newType, NotificationChain msgs) + { + RealReference oldType = type; + type = newType; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.REAL_TYPE_SCOPE__TYPE, oldType, newType); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + @Override + public void setType(RealReference newType) + { + if (newType != type) + { + NotificationChain msgs = null; + if (type != null) + msgs = ((InternalEObject)type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.REAL_TYPE_SCOPE__TYPE, null, msgs); + if (newType != null) + msgs = ((InternalEObject)newType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.REAL_TYPE_SCOPE__TYPE, null, msgs); + msgs = basicSetType(newType, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.REAL_TYPE_SCOPE__TYPE, newType, newType)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case ApplicationConfigurationPackage.REAL_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.REAL_TYPE_SCOPE__TYPE: + return getType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.REAL_TYPE_SCOPE__TYPE: + setType((RealReference)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.REAL_TYPE_SCOPE__TYPE: + setType((RealReference)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.REAL_TYPE_SCOPE__TYPE: + return type != null; + } + return super.eIsSet(featureID); + } + +} //RealTypeScopeImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/RuntimeEntryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/RuntimeEntryImpl.java index e2728fe9..cf1f7277 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/RuntimeEntryImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/RuntimeEntryImpl.java @@ -1,179 +1,179 @@ -/** - * generated by Xtext 2.21.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.RuntimeEntry; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Runtime Entry'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.RuntimeEntryImpl#getMillisecLimit Millisec Limit}
  • - *
- * - * @generated - */ -public class RuntimeEntryImpl extends ConfigEntryImpl implements RuntimeEntry -{ - /** - * The default value of the '{@link #getMillisecLimit() Millisec Limit}' attribute. - * - * - * @see #getMillisecLimit() - * @generated - * @ordered - */ - protected static final int MILLISEC_LIMIT_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getMillisecLimit() Millisec Limit}' attribute. - * - * - * @see #getMillisecLimit() - * @generated - * @ordered - */ - protected int millisecLimit = MILLISEC_LIMIT_EDEFAULT; - - /** - * - * - * @generated - */ - protected RuntimeEntryImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.RUNTIME_ENTRY; - } - - /** - * - * - * @generated - */ - @Override - public int getMillisecLimit() - { - return millisecLimit; - } - - /** - * - * - * @generated - */ - @Override - public void setMillisecLimit(int newMillisecLimit) - { - int oldMillisecLimit = millisecLimit; - millisecLimit = newMillisecLimit; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.RUNTIME_ENTRY__MILLISEC_LIMIT, oldMillisecLimit, millisecLimit)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.RUNTIME_ENTRY__MILLISEC_LIMIT: - return getMillisecLimit(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.RUNTIME_ENTRY__MILLISEC_LIMIT: - setMillisecLimit((Integer)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.RUNTIME_ENTRY__MILLISEC_LIMIT: - setMillisecLimit(MILLISEC_LIMIT_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.RUNTIME_ENTRY__MILLISEC_LIMIT: - return millisecLimit != MILLISEC_LIMIT_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (millisecLimit: "); - result.append(millisecLimit); - result.append(')'); - return result.toString(); - } - -} //RuntimeEntryImpl +/** + * generated by Xtext 2.21.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.RuntimeEntry; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Runtime Entry'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.RuntimeEntryImpl#getMillisecLimit Millisec Limit}
  • + *
+ * + * @generated + */ +public class RuntimeEntryImpl extends ConfigEntryImpl implements RuntimeEntry +{ + /** + * The default value of the '{@link #getMillisecLimit() Millisec Limit}' attribute. + * + * + * @see #getMillisecLimit() + * @generated + * @ordered + */ + protected static final int MILLISEC_LIMIT_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getMillisecLimit() Millisec Limit}' attribute. + * + * + * @see #getMillisecLimit() + * @generated + * @ordered + */ + protected int millisecLimit = MILLISEC_LIMIT_EDEFAULT; + + /** + * + * + * @generated + */ + protected RuntimeEntryImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.RUNTIME_ENTRY; + } + + /** + * + * + * @generated + */ + @Override + public int getMillisecLimit() + { + return millisecLimit; + } + + /** + * + * + * @generated + */ + @Override + public void setMillisecLimit(int newMillisecLimit) + { + int oldMillisecLimit = millisecLimit; + millisecLimit = newMillisecLimit; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.RUNTIME_ENTRY__MILLISEC_LIMIT, oldMillisecLimit, millisecLimit)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.RUNTIME_ENTRY__MILLISEC_LIMIT: + return getMillisecLimit(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.RUNTIME_ENTRY__MILLISEC_LIMIT: + setMillisecLimit((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.RUNTIME_ENTRY__MILLISEC_LIMIT: + setMillisecLimit(MILLISEC_LIMIT_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.RUNTIME_ENTRY__MILLISEC_LIMIT: + return millisecLimit != MILLISEC_LIMIT_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (millisecLimit: "); + result.append(millisecLimit); + result.append(')'); + return result.toString(); + } + +} //RuntimeEntryImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ScopeDeclarationImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ScopeDeclarationImpl.java index 7b833c37..f511fd58 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ScopeDeclarationImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ScopeDeclarationImpl.java @@ -1,196 +1,196 @@ -/** - * generated by Xtext 2.21.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.ScopeDeclaration; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ScopeSpecification; - -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 'Scope Declaration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ScopeDeclarationImpl#getSpecification Specification}
  • - *
- * - * @generated - */ -public class ScopeDeclarationImpl extends DeclarationImpl implements ScopeDeclaration -{ - /** - * The cached value of the '{@link #getSpecification() Specification}' containment reference. - * - * - * @see #getSpecification() - * @generated - * @ordered - */ - protected ScopeSpecification specification; - - /** - * - * - * @generated - */ - protected ScopeDeclarationImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.SCOPE_DECLARATION; - } - - /** - * - * - * @generated - */ - @Override - public ScopeSpecification getSpecification() - { - return specification; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetSpecification(ScopeSpecification newSpecification, NotificationChain msgs) - { - ScopeSpecification oldSpecification = specification; - specification = newSpecification; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.SCOPE_DECLARATION__SPECIFICATION, oldSpecification, newSpecification); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setSpecification(ScopeSpecification newSpecification) - { - if (newSpecification != specification) - { - NotificationChain msgs = null; - if (specification != null) - msgs = ((InternalEObject)specification).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.SCOPE_DECLARATION__SPECIFICATION, null, msgs); - if (newSpecification != null) - msgs = ((InternalEObject)newSpecification).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.SCOPE_DECLARATION__SPECIFICATION, null, msgs); - msgs = basicSetSpecification(newSpecification, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.SCOPE_DECLARATION__SPECIFICATION, newSpecification, newSpecification)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ApplicationConfigurationPackage.SCOPE_DECLARATION__SPECIFICATION: - return basicSetSpecification(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.SCOPE_DECLARATION__SPECIFICATION: - return getSpecification(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.SCOPE_DECLARATION__SPECIFICATION: - setSpecification((ScopeSpecification)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.SCOPE_DECLARATION__SPECIFICATION: - setSpecification((ScopeSpecification)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.SCOPE_DECLARATION__SPECIFICATION: - return specification != null; - } - return super.eIsSet(featureID); - } - -} //ScopeDeclarationImpl +/** + * generated by Xtext 2.21.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.ScopeDeclaration; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ScopeSpecification; + +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 'Scope Declaration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ScopeDeclarationImpl#getSpecification Specification}
  • + *
+ * + * @generated + */ +public class ScopeDeclarationImpl extends DeclarationImpl implements ScopeDeclaration +{ + /** + * The cached value of the '{@link #getSpecification() Specification}' containment reference. + * + * + * @see #getSpecification() + * @generated + * @ordered + */ + protected ScopeSpecification specification; + + /** + * + * + * @generated + */ + protected ScopeDeclarationImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.SCOPE_DECLARATION; + } + + /** + * + * + * @generated + */ + @Override + public ScopeSpecification getSpecification() + { + return specification; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetSpecification(ScopeSpecification newSpecification, NotificationChain msgs) + { + ScopeSpecification oldSpecification = specification; + specification = newSpecification; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.SCOPE_DECLARATION__SPECIFICATION, oldSpecification, newSpecification); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + @Override + public void setSpecification(ScopeSpecification newSpecification) + { + if (newSpecification != specification) + { + NotificationChain msgs = null; + if (specification != null) + msgs = ((InternalEObject)specification).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.SCOPE_DECLARATION__SPECIFICATION, null, msgs); + if (newSpecification != null) + msgs = ((InternalEObject)newSpecification).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.SCOPE_DECLARATION__SPECIFICATION, null, msgs); + msgs = basicSetSpecification(newSpecification, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.SCOPE_DECLARATION__SPECIFICATION, newSpecification, newSpecification)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case ApplicationConfigurationPackage.SCOPE_DECLARATION__SPECIFICATION: + return basicSetSpecification(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.SCOPE_DECLARATION__SPECIFICATION: + return getSpecification(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.SCOPE_DECLARATION__SPECIFICATION: + setSpecification((ScopeSpecification)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.SCOPE_DECLARATION__SPECIFICATION: + setSpecification((ScopeSpecification)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.SCOPE_DECLARATION__SPECIFICATION: + return specification != null; + } + return super.eIsSet(featureID); + } + +} //ScopeDeclarationImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ScopeImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ScopeImpl.java index 704f35dd..60c41361 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ScopeImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ScopeImpl.java @@ -1,43 +1,43 @@ -/** - * generated by Xtext 2.21.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.Scope; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -/** - * - * An implementation of the model object 'Scope'. - * - * - * @generated - */ -public class ScopeImpl extends MinimalEObjectImpl.Container implements Scope -{ - /** - * - * - * @generated - */ - protected ScopeImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.SCOPE; - } - -} //ScopeImpl +/** + * generated by Xtext 2.21.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.Scope; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Scope'. + * + * + * @generated + */ +public class ScopeImpl extends MinimalEObjectImpl.Container implements Scope +{ + /** + * + * + * @generated + */ + protected ScopeImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.SCOPE; + } + +} //ScopeImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ScopeReferenceImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ScopeReferenceImpl.java index b02e2129..20690057 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ScopeReferenceImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ScopeReferenceImpl.java @@ -1,175 +1,175 @@ -/** - * generated by Xtext 2.21.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.ScopeDeclaration; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ScopeReference; - -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 'Scope Reference'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ScopeReferenceImpl#getReferred Referred}
  • - *
- * - * @generated - */ -public class ScopeReferenceImpl extends ScopeImpl implements ScopeReference -{ - /** - * The cached value of the '{@link #getReferred() Referred}' reference. - * - * - * @see #getReferred() - * @generated - * @ordered - */ - protected ScopeDeclaration referred; - - /** - * - * - * @generated - */ - protected ScopeReferenceImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.SCOPE_REFERENCE; - } - - /** - * - * - * @generated - */ - @Override - public ScopeDeclaration getReferred() - { - if (referred != null && referred.eIsProxy()) - { - InternalEObject oldReferred = (InternalEObject)referred; - referred = (ScopeDeclaration)eResolveProxy(oldReferred); - if (referred != oldReferred) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.SCOPE_REFERENCE__REFERRED, oldReferred, referred)); - } - } - return referred; - } - - /** - * - * - * @generated - */ - public ScopeDeclaration basicGetReferred() - { - return referred; - } - - /** - * - * - * @generated - */ - @Override - public void setReferred(ScopeDeclaration newReferred) - { - ScopeDeclaration oldReferred = referred; - referred = newReferred; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.SCOPE_REFERENCE__REFERRED, oldReferred, referred)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.SCOPE_REFERENCE__REFERRED: - if (resolve) return getReferred(); - return basicGetReferred(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.SCOPE_REFERENCE__REFERRED: - setReferred((ScopeDeclaration)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.SCOPE_REFERENCE__REFERRED: - setReferred((ScopeDeclaration)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.SCOPE_REFERENCE__REFERRED: - return referred != null; - } - return super.eIsSet(featureID); - } - -} //ScopeReferenceImpl +/** + * generated by Xtext 2.21.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.ScopeDeclaration; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ScopeReference; + +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 'Scope Reference'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ScopeReferenceImpl#getReferred Referred}
  • + *
+ * + * @generated + */ +public class ScopeReferenceImpl extends ScopeImpl implements ScopeReference +{ + /** + * The cached value of the '{@link #getReferred() Referred}' reference. + * + * + * @see #getReferred() + * @generated + * @ordered + */ + protected ScopeDeclaration referred; + + /** + * + * + * @generated + */ + protected ScopeReferenceImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.SCOPE_REFERENCE; + } + + /** + * + * + * @generated + */ + @Override + public ScopeDeclaration getReferred() + { + if (referred != null && referred.eIsProxy()) + { + InternalEObject oldReferred = (InternalEObject)referred; + referred = (ScopeDeclaration)eResolveProxy(oldReferred); + if (referred != oldReferred) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.SCOPE_REFERENCE__REFERRED, oldReferred, referred)); + } + } + return referred; + } + + /** + * + * + * @generated + */ + public ScopeDeclaration basicGetReferred() + { + return referred; + } + + /** + * + * + * @generated + */ + @Override + public void setReferred(ScopeDeclaration newReferred) + { + ScopeDeclaration oldReferred = referred; + referred = newReferred; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.SCOPE_REFERENCE__REFERRED, oldReferred, referred)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.SCOPE_REFERENCE__REFERRED: + if (resolve) return getReferred(); + return basicGetReferred(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.SCOPE_REFERENCE__REFERRED: + setReferred((ScopeDeclaration)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.SCOPE_REFERENCE__REFERRED: + setReferred((ScopeDeclaration)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.SCOPE_REFERENCE__REFERRED: + return referred != null; + } + return super.eIsSet(featureID); + } + +} //ScopeReferenceImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ScopeSpecificationImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ScopeSpecificationImpl.java index 4d0cdf68..fa2dc2fa 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ScopeSpecificationImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ScopeSpecificationImpl.java @@ -1,167 +1,167 @@ -/** - * generated by Xtext 2.21.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.ScopeSpecification; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.TypeScope; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -/** - * - * An implementation of the model object 'Scope Specification'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ScopeSpecificationImpl#getScopes Scopes}
  • - *
- * - * @generated - */ -public class ScopeSpecificationImpl extends ScopeImpl implements ScopeSpecification -{ - /** - * The cached value of the '{@link #getScopes() Scopes}' containment reference list. - * - * - * @see #getScopes() - * @generated - * @ordered - */ - protected EList scopes; - - /** - * - * - * @generated - */ - protected ScopeSpecificationImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.SCOPE_SPECIFICATION; - } - - /** - * - * - * @generated - */ - @Override - public EList getScopes() - { - if (scopes == null) - { - scopes = new EObjectContainmentEList(TypeScope.class, this, ApplicationConfigurationPackage.SCOPE_SPECIFICATION__SCOPES); - } - return scopes; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ApplicationConfigurationPackage.SCOPE_SPECIFICATION__SCOPES: - return ((InternalEList)getScopes()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.SCOPE_SPECIFICATION__SCOPES: - return getScopes(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.SCOPE_SPECIFICATION__SCOPES: - getScopes().clear(); - getScopes().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.SCOPE_SPECIFICATION__SCOPES: - getScopes().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.SCOPE_SPECIFICATION__SCOPES: - return scopes != null && !scopes.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //ScopeSpecificationImpl +/** + * generated by Xtext 2.21.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.ScopeSpecification; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.TypeScope; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Scope Specification'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ScopeSpecificationImpl#getScopes Scopes}
  • + *
+ * + * @generated + */ +public class ScopeSpecificationImpl extends ScopeImpl implements ScopeSpecification +{ + /** + * The cached value of the '{@link #getScopes() Scopes}' containment reference list. + * + * + * @see #getScopes() + * @generated + * @ordered + */ + protected EList scopes; + + /** + * + * + * @generated + */ + protected ScopeSpecificationImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.SCOPE_SPECIFICATION; + } + + /** + * + * + * @generated + */ + @Override + public EList getScopes() + { + if (scopes == null) + { + scopes = new EObjectContainmentEList(TypeScope.class, this, ApplicationConfigurationPackage.SCOPE_SPECIFICATION__SCOPES); + } + return scopes; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case ApplicationConfigurationPackage.SCOPE_SPECIFICATION__SCOPES: + return ((InternalEList)getScopes()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.SCOPE_SPECIFICATION__SCOPES: + return getScopes(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.SCOPE_SPECIFICATION__SCOPES: + getScopes().clear(); + getScopes().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.SCOPE_SPECIFICATION__SCOPES: + getScopes().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.SCOPE_SPECIFICATION__SCOPES: + return scopes != null && !scopes.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //ScopeSpecificationImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/StringEnumerationImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/StringEnumerationImpl.java index fcc1e5bf..d7099377 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/StringEnumerationImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/StringEnumerationImpl.java @@ -1,163 +1,163 @@ -/** - * generated by Xtext 2.21.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.StringEnumeration; - -import java.util.Collection; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.util.EDataTypeEList; - -/** - * - * An implementation of the model object 'String Enumeration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.StringEnumerationImpl#getEntry Entry}
  • - *
- * - * @generated - */ -public class StringEnumerationImpl extends NumberSpecificationImpl implements StringEnumeration -{ - /** - * The cached value of the '{@link #getEntry() Entry}' attribute list. - * - * - * @see #getEntry() - * @generated - * @ordered - */ - protected EList entry; - - /** - * - * - * @generated - */ - protected StringEnumerationImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.STRING_ENUMERATION; - } - - /** - * - * - * @generated - */ - @Override - public EList getEntry() - { - if (entry == null) - { - entry = new EDataTypeEList(String.class, this, ApplicationConfigurationPackage.STRING_ENUMERATION__ENTRY); - } - return entry; - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.STRING_ENUMERATION__ENTRY: - return getEntry(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.STRING_ENUMERATION__ENTRY: - getEntry().clear(); - getEntry().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.STRING_ENUMERATION__ENTRY: - getEntry().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.STRING_ENUMERATION__ENTRY: - return entry != null && !entry.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (entry: "); - result.append(entry); - result.append(')'); - return result.toString(); - } - -} //StringEnumerationImpl +/** + * generated by Xtext 2.21.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.StringEnumeration; + +import java.util.Collection; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.util.EDataTypeEList; + +/** + * + * An implementation of the model object 'String Enumeration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.StringEnumerationImpl#getEntry Entry}
  • + *
+ * + * @generated + */ +public class StringEnumerationImpl extends NumberSpecificationImpl implements StringEnumeration +{ + /** + * The cached value of the '{@link #getEntry() Entry}' attribute list. + * + * + * @see #getEntry() + * @generated + * @ordered + */ + protected EList entry; + + /** + * + * + * @generated + */ + protected StringEnumerationImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.STRING_ENUMERATION; + } + + /** + * + * + * @generated + */ + @Override + public EList getEntry() + { + if (entry == null) + { + entry = new EDataTypeEList(String.class, this, ApplicationConfigurationPackage.STRING_ENUMERATION__ENTRY); + } + return entry; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.STRING_ENUMERATION__ENTRY: + return getEntry(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.STRING_ENUMERATION__ENTRY: + getEntry().clear(); + getEntry().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.STRING_ENUMERATION__ENTRY: + getEntry().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.STRING_ENUMERATION__ENTRY: + return entry != null && !entry.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (entry: "); + result.append(entry); + result.append(')'); + return result.toString(); + } + +} //StringEnumerationImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/StringReferenceImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/StringReferenceImpl.java index 4963a8f9..fdadc041 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/StringReferenceImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/StringReferenceImpl.java @@ -1,41 +1,41 @@ -/** - * generated by Xtext 2.21.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.StringReference; - -import org.eclipse.emf.ecore.EClass; - -/** - * - * An implementation of the model object 'String Reference'. - * - * - * @generated - */ -public class StringReferenceImpl extends TypeReferenceImpl implements StringReference -{ - /** - * - * - * @generated - */ - protected StringReferenceImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.STRING_REFERENCE; - } - -} //StringReferenceImpl +/** + * generated by Xtext 2.21.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.StringReference; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'String Reference'. + * + * + * @generated + */ +public class StringReferenceImpl extends TypeReferenceImpl implements StringReference +{ + /** + * + * + * @generated + */ + protected StringReferenceImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.STRING_REFERENCE; + } + +} //StringReferenceImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/StringScopeImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/StringScopeImpl.java index 8fb2b6de..73954749 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/StringScopeImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/StringScopeImpl.java @@ -1,41 +1,41 @@ -/** - * generated by Xtext 2.21.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.StringScope; - -import org.eclipse.emf.ecore.EClass; - -/** - * - * An implementation of the model object 'String Scope'. - * - * - * @generated - */ -public class StringScopeImpl extends StringReferenceImpl implements StringScope -{ - /** - * - * - * @generated - */ - protected StringScopeImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.STRING_SCOPE; - } - -} //StringScopeImpl +/** + * generated by Xtext 2.21.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.StringScope; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'String Scope'. + * + * + * @generated + */ +public class StringScopeImpl extends StringReferenceImpl implements StringScope +{ + /** + * + * + * @generated + */ + protected StringScopeImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.STRING_SCOPE; + } + +} //StringScopeImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/StringTypeScopeImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/StringTypeScopeImpl.java index 0c113e4c..ca34c856 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/StringTypeScopeImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/StringTypeScopeImpl.java @@ -1,196 +1,196 @@ -/** - * generated by Xtext 2.21.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.StringReference; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.StringTypeScope; - -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 'String Type Scope'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.StringTypeScopeImpl#getType Type}
  • - *
- * - * @generated - */ -public class StringTypeScopeImpl extends TypeScopeImpl implements StringTypeScope -{ - /** - * The cached value of the '{@link #getType() Type}' containment reference. - * - * - * @see #getType() - * @generated - * @ordered - */ - protected StringReference type; - - /** - * - * - * @generated - */ - protected StringTypeScopeImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.STRING_TYPE_SCOPE; - } - - /** - * - * - * @generated - */ - @Override - public StringReference getType() - { - return type; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetType(StringReference newType, NotificationChain msgs) - { - StringReference oldType = type; - type = newType; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.STRING_TYPE_SCOPE__TYPE, oldType, newType); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setType(StringReference newType) - { - if (newType != type) - { - NotificationChain msgs = null; - if (type != null) - msgs = ((InternalEObject)type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.STRING_TYPE_SCOPE__TYPE, null, msgs); - if (newType != null) - msgs = ((InternalEObject)newType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.STRING_TYPE_SCOPE__TYPE, null, msgs); - msgs = basicSetType(newType, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.STRING_TYPE_SCOPE__TYPE, newType, newType)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ApplicationConfigurationPackage.STRING_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.STRING_TYPE_SCOPE__TYPE: - return getType(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.STRING_TYPE_SCOPE__TYPE: - setType((StringReference)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.STRING_TYPE_SCOPE__TYPE: - setType((StringReference)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.STRING_TYPE_SCOPE__TYPE: - return type != null; - } - return super.eIsSet(featureID); - } - -} //StringTypeScopeImpl +/** + * generated by Xtext 2.21.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.StringReference; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.StringTypeScope; + +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 'String Type Scope'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.StringTypeScopeImpl#getType Type}
  • + *
+ * + * @generated + */ +public class StringTypeScopeImpl extends TypeScopeImpl implements StringTypeScope +{ + /** + * The cached value of the '{@link #getType() Type}' containment reference. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected StringReference type; + + /** + * + * + * @generated + */ + protected StringTypeScopeImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.STRING_TYPE_SCOPE; + } + + /** + * + * + * @generated + */ + @Override + public StringReference getType() + { + return type; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetType(StringReference newType, NotificationChain msgs) + { + StringReference oldType = type; + type = newType; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.STRING_TYPE_SCOPE__TYPE, oldType, newType); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + @Override + public void setType(StringReference newType) + { + if (newType != type) + { + NotificationChain msgs = null; + if (type != null) + msgs = ((InternalEObject)type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.STRING_TYPE_SCOPE__TYPE, null, msgs); + if (newType != null) + msgs = ((InternalEObject)newType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.STRING_TYPE_SCOPE__TYPE, null, msgs); + msgs = basicSetType(newType, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.STRING_TYPE_SCOPE__TYPE, newType, newType)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case ApplicationConfigurationPackage.STRING_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.STRING_TYPE_SCOPE__TYPE: + return getType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.STRING_TYPE_SCOPE__TYPE: + setType((StringReference)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.STRING_TYPE_SCOPE__TYPE: + setType((StringReference)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.STRING_TYPE_SCOPE__TYPE: + return type != null; + } + return super.eIsSet(featureID); + } + +} //StringTypeScopeImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/TaskImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/TaskImpl.java index 575258f9..566ad8a8 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/TaskImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/TaskImpl.java @@ -1,41 +1,41 @@ -/** - * generated by Xtext 2.21.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.Task; - -import org.eclipse.emf.ecore.EClass; - -/** - * - * An implementation of the model object 'Task'. - * - * - * @generated - */ -public class TaskImpl extends CommandImpl implements Task -{ - /** - * - * - * @generated - */ - protected TaskImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.TASK; - } - -} //TaskImpl +/** + * generated by Xtext 2.21.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.Task; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'Task'. + * + * + * @generated + */ +public class TaskImpl extends CommandImpl implements Task +{ + /** + * + * + * @generated + */ + protected TaskImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.TASK; + } + +} //TaskImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ThresholdEntryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ThresholdEntryImpl.java index 4e968236..728d4972 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ThresholdEntryImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ThresholdEntryImpl.java @@ -1,240 +1,238 @@ -/** - * generated by Xtext 2.21.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.ComparisonOperator; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ThresholdEntry; - -import java.math.BigDecimal; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Threshold Entry'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ThresholdEntryImpl#getOperator Operator}
  • - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ThresholdEntryImpl#getThreshold Threshold}
  • - *
- * - * @generated - */ -public class ThresholdEntryImpl extends ObjectiveEntryImpl implements ThresholdEntry -{ - /** - * The default value of the '{@link #getOperator() Operator}' attribute. - * - * - * @see #getOperator() - * @generated - * @ordered - */ - protected static final ComparisonOperator OPERATOR_EDEFAULT = ComparisonOperator.LESS; - - /** - * The cached value of the '{@link #getOperator() Operator}' attribute. - * - * - * @see #getOperator() - * @generated - * @ordered - */ - protected ComparisonOperator operator = OPERATOR_EDEFAULT; - - /** - * The default value of the '{@link #getThreshold() Threshold}' attribute. - * - * - * @see #getThreshold() - * @generated - * @ordered - */ - protected static final BigDecimal THRESHOLD_EDEFAULT = null; - - /** - * The cached value of the '{@link #getThreshold() Threshold}' attribute. - * - * - * @see #getThreshold() - * @generated - * @ordered - */ - protected BigDecimal threshold = THRESHOLD_EDEFAULT; - - /** - * - * - * @generated - */ - protected ThresholdEntryImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.THRESHOLD_ENTRY; - } - - /** - * - * - * @generated - */ - @Override - public ComparisonOperator getOperator() - { - return operator; - } - - /** - * - * - * @generated - */ - @Override - public void setOperator(ComparisonOperator newOperator) - { - ComparisonOperator oldOperator = operator; - operator = newOperator == null ? OPERATOR_EDEFAULT : newOperator; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.THRESHOLD_ENTRY__OPERATOR, oldOperator, operator)); - } - - /** - * - * - * @generated - */ - @Override - public BigDecimal getThreshold() - { - return threshold; - } - - /** - * - * - * @generated - */ - @Override - public void setThreshold(BigDecimal newThreshold) - { - BigDecimal oldThreshold = threshold; - threshold = newThreshold; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.THRESHOLD_ENTRY__THRESHOLD, oldThreshold, threshold)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.THRESHOLD_ENTRY__OPERATOR: - return getOperator(); - case ApplicationConfigurationPackage.THRESHOLD_ENTRY__THRESHOLD: - return getThreshold(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.THRESHOLD_ENTRY__OPERATOR: - setOperator((ComparisonOperator)newValue); - return; - case ApplicationConfigurationPackage.THRESHOLD_ENTRY__THRESHOLD: - setThreshold((BigDecimal)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.THRESHOLD_ENTRY__OPERATOR: - setOperator(OPERATOR_EDEFAULT); - return; - case ApplicationConfigurationPackage.THRESHOLD_ENTRY__THRESHOLD: - setThreshold(THRESHOLD_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.THRESHOLD_ENTRY__OPERATOR: - return operator != OPERATOR_EDEFAULT; - case ApplicationConfigurationPackage.THRESHOLD_ENTRY__THRESHOLD: - return THRESHOLD_EDEFAULT == null ? threshold != null : !THRESHOLD_EDEFAULT.equals(threshold); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (operator: "); - result.append(operator); - result.append(", threshold: "); - result.append(threshold); - result.append(')'); - return result.toString(); - } - -} //ThresholdEntryImpl +/** + * generated by Xtext 2.21.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.ComparisonOperator; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ThresholdEntry; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Threshold Entry'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ThresholdEntryImpl#getOperator Operator}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ThresholdEntryImpl#getThreshold Threshold}
  • + *
+ * + * @generated + */ +public class ThresholdEntryImpl extends ObjectiveEntryImpl implements ThresholdEntry +{ + /** + * The default value of the '{@link #getOperator() Operator}' attribute. + * + * + * @see #getOperator() + * @generated + * @ordered + */ + protected static final ComparisonOperator OPERATOR_EDEFAULT = ComparisonOperator.LESS; + + /** + * The cached value of the '{@link #getOperator() Operator}' attribute. + * + * + * @see #getOperator() + * @generated + * @ordered + */ + protected ComparisonOperator operator = OPERATOR_EDEFAULT; + + /** + * The default value of the '{@link #getThreshold() Threshold}' attribute. + * + * + * @see #getThreshold() + * @generated + * @ordered + */ + protected static final double THRESHOLD_EDEFAULT = 0.0; + + /** + * The cached value of the '{@link #getThreshold() Threshold}' attribute. + * + * + * @see #getThreshold() + * @generated + * @ordered + */ + protected double threshold = THRESHOLD_EDEFAULT; + + /** + * + * + * @generated + */ + protected ThresholdEntryImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.THRESHOLD_ENTRY; + } + + /** + * + * + * @generated + */ + @Override + public ComparisonOperator getOperator() + { + return operator; + } + + /** + * + * + * @generated + */ + @Override + public void setOperator(ComparisonOperator newOperator) + { + ComparisonOperator oldOperator = operator; + operator = newOperator == null ? OPERATOR_EDEFAULT : newOperator; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.THRESHOLD_ENTRY__OPERATOR, oldOperator, operator)); + } + + /** + * + * + * @generated + */ + @Override + public double getThreshold() + { + return threshold; + } + + /** + * + * + * @generated + */ + @Override + public void setThreshold(double newThreshold) + { + double oldThreshold = threshold; + threshold = newThreshold; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.THRESHOLD_ENTRY__THRESHOLD, oldThreshold, threshold)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.THRESHOLD_ENTRY__OPERATOR: + return getOperator(); + case ApplicationConfigurationPackage.THRESHOLD_ENTRY__THRESHOLD: + return getThreshold(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.THRESHOLD_ENTRY__OPERATOR: + setOperator((ComparisonOperator)newValue); + return; + case ApplicationConfigurationPackage.THRESHOLD_ENTRY__THRESHOLD: + setThreshold((Double)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.THRESHOLD_ENTRY__OPERATOR: + setOperator(OPERATOR_EDEFAULT); + return; + case ApplicationConfigurationPackage.THRESHOLD_ENTRY__THRESHOLD: + setThreshold(THRESHOLD_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.THRESHOLD_ENTRY__OPERATOR: + return operator != OPERATOR_EDEFAULT; + case ApplicationConfigurationPackage.THRESHOLD_ENTRY__THRESHOLD: + return threshold != THRESHOLD_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (operator: "); + result.append(operator); + result.append(", threshold: "); + result.append(threshold); + result.append(')'); + return result.toString(); + } + +} //ThresholdEntryImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/TypeReferenceImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/TypeReferenceImpl.java index 254e585d..eecca2dc 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/TypeReferenceImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/TypeReferenceImpl.java @@ -1,43 +1,43 @@ -/** - * generated by Xtext 2.21.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.TypeReference; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -/** - * - * An implementation of the model object 'Type Reference'. - * - * - * @generated - */ -public class TypeReferenceImpl extends MinimalEObjectImpl.Container implements TypeReference -{ - /** - * - * - * @generated - */ - protected TypeReferenceImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.TYPE_REFERENCE; - } - -} //TypeReferenceImpl +/** + * generated by Xtext 2.21.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.TypeReference; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Type Reference'. + * + * + * @generated + */ +public class TypeReferenceImpl extends MinimalEObjectImpl.Container implements TypeReference +{ + /** + * + * + * @generated + */ + protected TypeReferenceImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.TYPE_REFERENCE; + } + +} //TypeReferenceImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/TypeScopeImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/TypeScopeImpl.java index de983d7b..7f88e02d 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/TypeScopeImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/TypeScopeImpl.java @@ -1,328 +1,328 @@ -/** - * generated by Xtext 2.21.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.NumberSpecification; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.TypeScope; - -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; -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -/** - * - * An implementation of the model object 'Type Scope'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.TypeScopeImpl#isSetsNew Sets New}
  • - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.TypeScopeImpl#isSetsSum Sets Sum}
  • - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.TypeScopeImpl#getNumber Number}
  • - *
- * - * @generated - */ -public class TypeScopeImpl extends MinimalEObjectImpl.Container implements TypeScope -{ - /** - * The default value of the '{@link #isSetsNew() Sets New}' attribute. - * - * - * @see #isSetsNew() - * @generated - * @ordered - */ - protected static final boolean SETS_NEW_EDEFAULT = false; - - /** - * The cached value of the '{@link #isSetsNew() Sets New}' attribute. - * - * - * @see #isSetsNew() - * @generated - * @ordered - */ - protected boolean setsNew = SETS_NEW_EDEFAULT; - - /** - * The default value of the '{@link #isSetsSum() Sets Sum}' attribute. - * - * - * @see #isSetsSum() - * @generated - * @ordered - */ - protected static final boolean SETS_SUM_EDEFAULT = false; - - /** - * The cached value of the '{@link #isSetsSum() Sets Sum}' attribute. - * - * - * @see #isSetsSum() - * @generated - * @ordered - */ - protected boolean setsSum = SETS_SUM_EDEFAULT; - - /** - * The cached value of the '{@link #getNumber() Number}' containment reference. - * - * - * @see #getNumber() - * @generated - * @ordered - */ - protected NumberSpecification number; - - /** - * - * - * @generated - */ - protected TypeScopeImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.TYPE_SCOPE; - } - - /** - * - * - * @generated - */ - @Override - public boolean isSetsNew() - { - return setsNew; - } - - /** - * - * - * @generated - */ - @Override - public void setSetsNew(boolean newSetsNew) - { - boolean oldSetsNew = setsNew; - setsNew = newSetsNew; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW, oldSetsNew, setsNew)); - } - - /** - * - * - * @generated - */ - @Override - public boolean isSetsSum() - { - return setsSum; - } - - /** - * - * - * @generated - */ - @Override - public void setSetsSum(boolean newSetsSum) - { - boolean oldSetsSum = setsSum; - setsSum = newSetsSum; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM, oldSetsSum, setsSum)); - } - - /** - * - * - * @generated - */ - @Override - public NumberSpecification getNumber() - { - return number; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetNumber(NumberSpecification newNumber, NotificationChain msgs) - { - NumberSpecification oldNumber = number; - number = newNumber; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER, oldNumber, newNumber); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setNumber(NumberSpecification newNumber) - { - if (newNumber != number) - { - NotificationChain msgs = null; - if (number != null) - msgs = ((InternalEObject)number).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER, null, msgs); - if (newNumber != null) - msgs = ((InternalEObject)newNumber).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER, null, msgs); - msgs = basicSetNumber(newNumber, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER, newNumber, newNumber)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER: - return basicSetNumber(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW: - return isSetsNew(); - case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM: - return isSetsSum(); - case ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER: - return getNumber(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW: - setSetsNew((Boolean)newValue); - return; - case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM: - setSetsSum((Boolean)newValue); - return; - case ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER: - setNumber((NumberSpecification)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW: - setSetsNew(SETS_NEW_EDEFAULT); - return; - case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM: - setSetsSum(SETS_SUM_EDEFAULT); - return; - case ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER: - setNumber((NumberSpecification)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW: - return setsNew != SETS_NEW_EDEFAULT; - case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM: - return setsSum != SETS_SUM_EDEFAULT; - case ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER: - return number != null; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (setsNew: "); - result.append(setsNew); - result.append(", setsSum: "); - result.append(setsSum); - result.append(')'); - return result.toString(); - } - -} //TypeScopeImpl +/** + * generated by Xtext 2.21.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.NumberSpecification; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.TypeScope; + +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; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Type Scope'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.TypeScopeImpl#isSetsNew Sets New}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.TypeScopeImpl#isSetsSum Sets Sum}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.TypeScopeImpl#getNumber Number}
  • + *
+ * + * @generated + */ +public class TypeScopeImpl extends MinimalEObjectImpl.Container implements TypeScope +{ + /** + * The default value of the '{@link #isSetsNew() Sets New}' attribute. + * + * + * @see #isSetsNew() + * @generated + * @ordered + */ + protected static final boolean SETS_NEW_EDEFAULT = false; + + /** + * The cached value of the '{@link #isSetsNew() Sets New}' attribute. + * + * + * @see #isSetsNew() + * @generated + * @ordered + */ + protected boolean setsNew = SETS_NEW_EDEFAULT; + + /** + * The default value of the '{@link #isSetsSum() Sets Sum}' attribute. + * + * + * @see #isSetsSum() + * @generated + * @ordered + */ + protected static final boolean SETS_SUM_EDEFAULT = false; + + /** + * The cached value of the '{@link #isSetsSum() Sets Sum}' attribute. + * + * + * @see #isSetsSum() + * @generated + * @ordered + */ + protected boolean setsSum = SETS_SUM_EDEFAULT; + + /** + * The cached value of the '{@link #getNumber() Number}' containment reference. + * + * + * @see #getNumber() + * @generated + * @ordered + */ + protected NumberSpecification number; + + /** + * + * + * @generated + */ + protected TypeScopeImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.TYPE_SCOPE; + } + + /** + * + * + * @generated + */ + @Override + public boolean isSetsNew() + { + return setsNew; + } + + /** + * + * + * @generated + */ + @Override + public void setSetsNew(boolean newSetsNew) + { + boolean oldSetsNew = setsNew; + setsNew = newSetsNew; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW, oldSetsNew, setsNew)); + } + + /** + * + * + * @generated + */ + @Override + public boolean isSetsSum() + { + return setsSum; + } + + /** + * + * + * @generated + */ + @Override + public void setSetsSum(boolean newSetsSum) + { + boolean oldSetsSum = setsSum; + setsSum = newSetsSum; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM, oldSetsSum, setsSum)); + } + + /** + * + * + * @generated + */ + @Override + public NumberSpecification getNumber() + { + return number; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetNumber(NumberSpecification newNumber, NotificationChain msgs) + { + NumberSpecification oldNumber = number; + number = newNumber; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER, oldNumber, newNumber); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + @Override + public void setNumber(NumberSpecification newNumber) + { + if (newNumber != number) + { + NotificationChain msgs = null; + if (number != null) + msgs = ((InternalEObject)number).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER, null, msgs); + if (newNumber != null) + msgs = ((InternalEObject)newNumber).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER, null, msgs); + msgs = basicSetNumber(newNumber, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER, newNumber, newNumber)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER: + return basicSetNumber(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW: + return isSetsNew(); + case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM: + return isSetsSum(); + case ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER: + return getNumber(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW: + setSetsNew((Boolean)newValue); + return; + case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM: + setSetsSum((Boolean)newValue); + return; + case ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER: + setNumber((NumberSpecification)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW: + setSetsNew(SETS_NEW_EDEFAULT); + return; + case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM: + setSetsSum(SETS_SUM_EDEFAULT); + return; + case ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER: + setNumber((NumberSpecification)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW: + return setsNew != SETS_NEW_EDEFAULT; + case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM: + return setsSum != SETS_SUM_EDEFAULT; + case ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER: + return number != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (setsNew: "); + result.append(setsNew); + result.append(", setsSum: "); + result.append(setsSum); + result.append(')'); + return result.toString(); + } + +} //TypeScopeImpl diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ViatraImportImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ViatraImportImpl.java index 80b48b41..bb635f63 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ViatraImportImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ViatraImportImpl.java @@ -1,176 +1,176 @@ -/** - * generated by Xtext 2.21.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.ViatraImport; - -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; - -import org.eclipse.viatra.query.patternlanguage.emf.vql.PatternModel; - -/** - * - * An implementation of the model object 'Viatra Import'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ViatraImportImpl#getImportedViatra Imported Viatra}
  • - *
- * - * @generated - */ -public class ViatraImportImpl extends ImportImpl implements ViatraImport -{ - /** - * The cached value of the '{@link #getImportedViatra() Imported Viatra}' reference. - * - * - * @see #getImportedViatra() - * @generated - * @ordered - */ - protected PatternModel importedViatra; - - /** - * - * - * @generated - */ - protected ViatraImportImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.VIATRA_IMPORT; - } - - /** - * - * - * @generated - */ - @Override - public PatternModel getImportedViatra() - { - if (importedViatra != null && importedViatra.eIsProxy()) - { - InternalEObject oldImportedViatra = (InternalEObject)importedViatra; - importedViatra = (PatternModel)eResolveProxy(oldImportedViatra); - if (importedViatra != oldImportedViatra) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.VIATRA_IMPORT__IMPORTED_VIATRA, oldImportedViatra, importedViatra)); - } - } - return importedViatra; - } - - /** - * - * - * @generated - */ - public PatternModel basicGetImportedViatra() - { - return importedViatra; - } - - /** - * - * - * @generated - */ - @Override - public void setImportedViatra(PatternModel newImportedViatra) - { - PatternModel oldImportedViatra = importedViatra; - importedViatra = newImportedViatra; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.VIATRA_IMPORT__IMPORTED_VIATRA, oldImportedViatra, importedViatra)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.VIATRA_IMPORT__IMPORTED_VIATRA: - if (resolve) return getImportedViatra(); - return basicGetImportedViatra(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.VIATRA_IMPORT__IMPORTED_VIATRA: - setImportedViatra((PatternModel)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.VIATRA_IMPORT__IMPORTED_VIATRA: - setImportedViatra((PatternModel)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.VIATRA_IMPORT__IMPORTED_VIATRA: - return importedViatra != null; - } - return super.eIsSet(featureID); - } - -} //ViatraImportImpl +/** + * generated by Xtext 2.21.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.ViatraImport; + +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; + +import org.eclipse.viatra.query.patternlanguage.emf.vql.PatternModel; + +/** + * + * An implementation of the model object 'Viatra Import'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ViatraImportImpl#getImportedViatra Imported Viatra}
  • + *
+ * + * @generated + */ +public class ViatraImportImpl extends ImportImpl implements ViatraImport +{ + /** + * The cached value of the '{@link #getImportedViatra() Imported Viatra}' reference. + * + * + * @see #getImportedViatra() + * @generated + * @ordered + */ + protected PatternModel importedViatra; + + /** + * + * + * @generated + */ + protected ViatraImportImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.VIATRA_IMPORT; + } + + /** + * + * + * @generated + */ + @Override + public PatternModel getImportedViatra() + { + if (importedViatra != null && importedViatra.eIsProxy()) + { + InternalEObject oldImportedViatra = (InternalEObject)importedViatra; + importedViatra = (PatternModel)eResolveProxy(oldImportedViatra); + if (importedViatra != oldImportedViatra) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.VIATRA_IMPORT__IMPORTED_VIATRA, oldImportedViatra, importedViatra)); + } + } + return importedViatra; + } + + /** + * + * + * @generated + */ + public PatternModel basicGetImportedViatra() + { + return importedViatra; + } + + /** + * + * + * @generated + */ + @Override + public void setImportedViatra(PatternModel newImportedViatra) + { + PatternModel oldImportedViatra = importedViatra; + importedViatra = newImportedViatra; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.VIATRA_IMPORT__IMPORTED_VIATRA, oldImportedViatra, importedViatra)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.VIATRA_IMPORT__IMPORTED_VIATRA: + if (resolve) return getImportedViatra(); + return basicGetImportedViatra(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.VIATRA_IMPORT__IMPORTED_VIATRA: + setImportedViatra((PatternModel)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.VIATRA_IMPORT__IMPORTED_VIATRA: + setImportedViatra((PatternModel)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.VIATRA_IMPORT__IMPORTED_VIATRA: + return importedViatra != null; + } + return super.eIsSet(featureID); + } + +} //ViatraImportImpl -- cgit v1.2.3-70-g09d2