From 3f5aaab5025b8eb243f414b1c789085327df04f4 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Wed, 20 Mar 2019 16:09:09 +0100 Subject: Fault tree transformation for partial models WIP --- .../impl/IntEnumberationImpl.java | 325 +++++++++++---------- 1 file changed, 163 insertions(+), 162 deletions(-) (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/IntEnumberationImpl.java') 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 0d851bc7..27427fc4 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,162 +1,163 @@ -/** - * generated by Xtext 2.12.0 - */ -package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; - -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.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: - *

- * - * - * @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 - */ - 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(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (entry: "); - result.append(entry); - result.append(')'); - return result.toString(); - } - -} //IntEnumberationImpl +/** + * generated by Xtext 2.16.0 + */ +package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; + +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.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 -- cgit v1.2.3-54-g00ecf