From 455c332357a1da6ee8073811b6aa72fc5edda51e Mon Sep 17 00:00:00 2001 From: OszkarSemerath Date: Sat, 24 Feb 2018 19:37:32 -0500 Subject: Application configuration update --- .../impl/ApplicationConfigurationFactoryImpl.java | 74 +++++++ .../impl/ApplicationConfigurationPackageImpl.java | 168 ++++++++++++++- .../impl/ConfigEntryImpl.java | 191 ----------------- .../impl/CustomEntryImpl.java | 233 +++++++++++++++++++++ .../impl/DocumentationEntryImpl.java | 178 ++++++++++++++++ .../impl/MemoryEntryImpl.java | 177 ++++++++++++++++ .../impl/RuntimeEntryImpl.java | 177 ++++++++++++++++ 7 files changed, 999 insertions(+), 199 deletions(-) create mode 100644 Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CustomEntryImpl.java create mode 100644 Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/DocumentationEntryImpl.java create mode 100644 Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MemoryEntryImpl.java create mode 100644 Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/RuntimeEntryImpl.java (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/ApplicationConfigurationFactoryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ApplicationConfigurationFactoryImpl.java index 8ecf838a..d20c3046 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 @@ -100,6 +100,10 @@ public class ApplicationConfigurationFactoryImpl extends EFactoryImpl implements 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(); @@ -144,6 +148,8 @@ public class ApplicationConfigurationFactoryImpl extends EFactoryImpl implements { switch (eDataType.getClassifierID()) { + case ApplicationConfigurationPackage.DOCUMENT_LEVEL_SPECIFICATION: + return createDocumentLevelSpecificationFromString(eDataType, initialValue); case ApplicationConfigurationPackage.SOLVER: return createSolverFromString(eDataType, initialValue); default: @@ -161,6 +167,8 @@ public class ApplicationConfigurationFactoryImpl extends EFactoryImpl implements { switch (eDataType.getClassifierID()) { + case ApplicationConfigurationPackage.DOCUMENT_LEVEL_SPECIFICATION: + return convertDocumentLevelSpecificationToString(eDataType, instanceValue); case ApplicationConfigurationPackage.SOLVER: return convertSolverToString(eDataType, instanceValue); default: @@ -542,6 +550,50 @@ public class ApplicationConfigurationFactoryImpl extends EFactoryImpl implements return configEntry; } + /** + * + * + * @generated + */ + public DocumentationEntry createDocumentationEntry() + { + DocumentationEntryImpl documentationEntry = new DocumentationEntryImpl(); + return documentationEntry; + } + + /** + * + * + * @generated + */ + public RuntimeEntry createRuntimeEntry() + { + RuntimeEntryImpl runtimeEntry = new RuntimeEntryImpl(); + return runtimeEntry; + } + + /** + * + * + * @generated + */ + public MemoryEntry createMemoryEntry() + { + MemoryEntryImpl memoryEntry = new MemoryEntryImpl(); + return memoryEntry; + } + + /** + * + * + * @generated + */ + public CustomEntry createCustomEntry() + { + CustomEntryImpl customEntry = new CustomEntryImpl(); + return customEntry; + } + /** * * @@ -861,6 +913,28 @@ public class ApplicationConfigurationFactoryImpl extends EFactoryImpl implements return stringScope; } + /** + * + * + * @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(); + } + /** * * 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 dd103901..ebf447ca 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 @@ -16,7 +16,10 @@ import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigEnt 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.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; @@ -34,6 +37,7 @@ import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.IntegerRe 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; @@ -56,6 +60,7 @@ import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.RealEnume 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; @@ -327,6 +332,34 @@ public class ApplicationConfigurationPackageImpl extends EPackageImpl implements */ private EClass configEntryEClass = null; + /** + * + * + * @generated + */ + private EClass documentationEntryEClass = null; + + /** + * + * + * @generated + */ + private EClass runtimeEntryEClass = null; + + /** + * + * + * @generated + */ + private EClass memoryEntryEClass = null; + + /** + * + * + * @generated + */ + private EClass customEntryEClass = null; + /** * * @@ -530,6 +563,13 @@ public class ApplicationConfigurationPackageImpl extends EPackageImpl implements */ private EClass stringScopeEClass = null; + /** + * + * + * @generated + */ + private EEnum documentLevelSpecificationEEnum = null; + /** * * @@ -1229,9 +1269,29 @@ public class ApplicationConfigurationPackageImpl extends EPackageImpl implements * * @generated */ - public EAttribute getConfigEntry_Key() + public EClass getDocumentationEntry() + { + return documentationEntryEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getDocumentationEntry_Level() + { + return (EAttribute)documentationEntryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getRuntimeEntry() { - return (EAttribute)configEntryEClass.getEStructuralFeatures().get(0); + return runtimeEntryEClass; } /** @@ -1239,9 +1299,59 @@ public class ApplicationConfigurationPackageImpl extends EPackageImpl implements * * @generated */ - public EAttribute getConfigEntry_Value() + public EAttribute getRuntimeEntry_MillisecLimit() { - return (EAttribute)configEntryEClass.getEStructuralFeatures().get(1); + return (EAttribute)runtimeEntryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getMemoryEntry() + { + return memoryEntryEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getMemoryEntry_MegabyteLimit() + { + return (EAttribute)memoryEntryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getCustomEntry() + { + return customEntryEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getCustomEntry_Key() + { + return (EAttribute)customEntryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getCustomEntry_Value() + { + return (EAttribute)customEntryEClass.getEStructuralFeatures().get(1); } /** @@ -1884,6 +1994,16 @@ public class ApplicationConfigurationPackageImpl extends EPackageImpl implements return stringScopeEClass; } + /** + * + * + * @generated + */ + public EEnum getDocumentLevelSpecification() + { + return documentLevelSpecificationEEnum; + } + /** * * @@ -2019,8 +2139,19 @@ public class ApplicationConfigurationPackageImpl extends EPackageImpl implements createEReference(configDeclarationEClass, CONFIG_DECLARATION__SPECIFICATION); configEntryEClass = createEClass(CONFIG_ENTRY); - createEAttribute(configEntryEClass, CONFIG_ENTRY__KEY); - createEAttribute(configEntryEClass, CONFIG_ENTRY__VALUE); + + 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); @@ -2116,6 +2247,7 @@ public class ApplicationConfigurationPackageImpl extends EPackageImpl implements stringScopeEClass = createEClass(STRING_SCOPE); // Create enums + documentLevelSpecificationEEnum = createEEnum(DOCUMENT_LEVEL_SPECIFICATION); solverEEnum = createEEnum(SOLVER); } @@ -2175,6 +2307,10 @@ public class ApplicationConfigurationPackageImpl extends EPackageImpl implements graphPatternReferenceEClass.getESuperTypes().add(this.getGraphPattern()); 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()); @@ -2296,8 +2432,19 @@ public class ApplicationConfigurationPackageImpl extends EPackageImpl implements 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); - initEAttribute(getConfigEntry_Key(), theEcorePackage.getEString(), "key", null, 0, 1, ConfigEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getConfigEntry_Value(), theEcorePackage.getEString(), "value", null, 0, 1, ConfigEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + 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); @@ -2393,6 +2540,11 @@ public class ApplicationConfigurationPackageImpl extends EPackageImpl implements initEClass(stringScopeEClass, StringScope.class, "StringScope", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); // Initialize enums and add enum literals + 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); 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 3ab3d587..191664c8 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 @@ -6,69 +6,19 @@ 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.common.notify.Notification; - import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; /** * * An implementation of the model object 'Config Entry'. * - *

- * The following features are implemented: - *

- * * * @generated */ public class ConfigEntryImpl extends MinimalEObjectImpl.Container implements ConfigEntry { - /** - * 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; - /** * * @@ -90,145 +40,4 @@ public class ConfigEntryImpl extends MinimalEObjectImpl.Container implements Con return ApplicationConfigurationPackage.Literals.CONFIG_ENTRY; } - /** - * - * - * @generated - */ - public String getKey() - { - return key; - } - - /** - * - * - * @generated - */ - public void setKey(String newKey) - { - String oldKey = key; - key = newKey; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.CONFIG_ENTRY__KEY, oldKey, key)); - } - - /** - * - * - * @generated - */ - public String getValue() - { - return value; - } - - /** - * - * - * @generated - */ - public void setValue(String newValue) - { - String oldValue = value; - value = newValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.CONFIG_ENTRY__VALUE, oldValue, value)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CONFIG_ENTRY__KEY: - return getKey(); - case ApplicationConfigurationPackage.CONFIG_ENTRY__VALUE: - return getValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CONFIG_ENTRY__KEY: - setKey((String)newValue); - return; - case ApplicationConfigurationPackage.CONFIG_ENTRY__VALUE: - setValue((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CONFIG_ENTRY__KEY: - setKey(KEY_EDEFAULT); - return; - case ApplicationConfigurationPackage.CONFIG_ENTRY__VALUE: - setValue(VALUE_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.CONFIG_ENTRY__KEY: - return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key); - case ApplicationConfigurationPackage.CONFIG_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(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (key: "); - result.append(key); - result.append(", value: "); - result.append(value); - result.append(')'); - return result.toString(); - } - } //ConfigEntryImpl 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 new file mode 100644 index 00000000..e25d9093 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CustomEntryImpl.java @@ -0,0 +1,233 @@ +/** + * generated by Xtext 2.10.0 + */ +package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; + +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.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: + *

+ * + * + * @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 + */ + public String getKey() + { + return key; + } + + /** + * + * + * @generated + */ + 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 + */ + public String getValue() + { + return value; + } + + /** + * + * + * @generated + */ + 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(); + + StringBuffer result = new StringBuffer(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/DocumentationEntryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/DocumentationEntryImpl.java new file mode 100644 index 00000000..b3f1b95b --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/DocumentationEntryImpl.java @@ -0,0 +1,178 @@ +/** + * generated by Xtext 2.10.0 + */ +package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; + +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.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: + *

+ * + * + * @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 + */ + public DocumentLevelSpecification getLevel() + { + return level; + } + + /** + * + * + * @generated + */ + 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(); + + StringBuffer result = new StringBuffer(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/MemoryEntryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MemoryEntryImpl.java new file mode 100644 index 00000000..7545982e --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MemoryEntryImpl.java @@ -0,0 +1,177 @@ +/** + * generated by Xtext 2.10.0 + */ +package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; + +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.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: + *

+ * + * + * @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 + */ + public int getMegabyteLimit() + { + return megabyteLimit; + } + + /** + * + * + * @generated + */ + 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(); + + StringBuffer result = new StringBuffer(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/RuntimeEntryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/RuntimeEntryImpl.java new file mode 100644 index 00000000..4e25ecb4 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/RuntimeEntryImpl.java @@ -0,0 +1,177 @@ +/** + * generated by Xtext 2.10.0 + */ +package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; + +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.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: + *

+ * + * + * @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 + */ + public int getMillisecLimit() + { + return millisecLimit; + } + + /** + * + * + * @generated + */ + 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(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (millisecLimit: "); + result.append(millisecLimit); + result.append(')'); + return result.toString(); + } + +} //RuntimeEntryImpl -- cgit v1.2.3-54-g00ecf