Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.etrice.etunit.converter/src/org/eclipse/etrice/etunit/converter/Etunit/impl/TestcaseTypeImpl.java')
-rw-r--r--plugins/org.eclipse.etrice.etunit.converter/src/org/eclipse/etrice/etunit/converter/Etunit/impl/TestcaseTypeImpl.java850
1 files changed, 425 insertions, 425 deletions
diff --git a/plugins/org.eclipse.etrice.etunit.converter/src/org/eclipse/etrice/etunit/converter/Etunit/impl/TestcaseTypeImpl.java b/plugins/org.eclipse.etrice.etunit.converter/src/org/eclipse/etrice/etunit/converter/Etunit/impl/TestcaseTypeImpl.java
index a99bdcee1..bc26c7eb6 100644
--- a/plugins/org.eclipse.etrice.etunit.converter/src/org/eclipse/etrice/etunit/converter/Etunit/impl/TestcaseTypeImpl.java
+++ b/plugins/org.eclipse.etrice.etunit.converter/src/org/eclipse/etrice/etunit/converter/Etunit/impl/TestcaseTypeImpl.java
@@ -1,425 +1,425 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.etrice.etunit.converter.Etunit.impl;
-
-import java.math.BigDecimal;
-
-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.EObjectImpl;
-
-import org.eclipse.etrice.etunit.converter.Etunit.ErrorType;
-import org.eclipse.etrice.etunit.converter.Etunit.EtunitPackage;
-import org.eclipse.etrice.etunit.converter.Etunit.FailureType;
-import org.eclipse.etrice.etunit.converter.Etunit.TestcaseType;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Testcase Type</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.etrice.etunit.converter.Etunit.impl.TestcaseTypeImpl#getError <em>Error</em>}</li>
- * <li>{@link org.eclipse.etrice.etunit.converter.Etunit.impl.TestcaseTypeImpl#getFailure <em>Failure</em>}</li>
- * <li>{@link org.eclipse.etrice.etunit.converter.Etunit.impl.TestcaseTypeImpl#getClassname <em>Classname</em>}</li>
- * <li>{@link org.eclipse.etrice.etunit.converter.Etunit.impl.TestcaseTypeImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.etrice.etunit.converter.Etunit.impl.TestcaseTypeImpl#getTime <em>Time</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class TestcaseTypeImpl extends EObjectImpl implements TestcaseType {
- /**
- * The cached value of the '{@link #getError() <em>Error</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getError()
- * @generated
- * @ordered
- */
- protected ErrorType error;
-
- /**
- * The cached value of the '{@link #getFailure() <em>Failure</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getFailure()
- * @generated
- * @ordered
- */
- protected FailureType failure;
-
- /**
- * The default value of the '{@link #getClassname() <em>Classname</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getClassname()
- * @generated
- * @ordered
- */
- protected static final String CLASSNAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getClassname() <em>Classname</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getClassname()
- * @generated
- * @ordered
- */
- protected String classname = CLASSNAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getTime() <em>Time</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTime()
- * @generated
- * @ordered
- */
- protected static final BigDecimal TIME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getTime() <em>Time</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTime()
- * @generated
- * @ordered
- */
- protected BigDecimal time = TIME_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected TestcaseTypeImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return EtunitPackage.Literals.TESTCASE_TYPE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ErrorType getError() {
- return error;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetError(ErrorType newError, NotificationChain msgs) {
- ErrorType oldError = error;
- error = newError;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EtunitPackage.TESTCASE_TYPE__ERROR, oldError, newError);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setError(ErrorType newError) {
- if (newError != error) {
- NotificationChain msgs = null;
- if (error != null)
- msgs = ((InternalEObject)error).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EtunitPackage.TESTCASE_TYPE__ERROR, null, msgs);
- if (newError != null)
- msgs = ((InternalEObject)newError).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EtunitPackage.TESTCASE_TYPE__ERROR, null, msgs);
- msgs = basicSetError(newError, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, EtunitPackage.TESTCASE_TYPE__ERROR, newError, newError));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public FailureType getFailure() {
- return failure;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetFailure(FailureType newFailure, NotificationChain msgs) {
- FailureType oldFailure = failure;
- failure = newFailure;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EtunitPackage.TESTCASE_TYPE__FAILURE, oldFailure, newFailure);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setFailure(FailureType newFailure) {
- if (newFailure != failure) {
- NotificationChain msgs = null;
- if (failure != null)
- msgs = ((InternalEObject)failure).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EtunitPackage.TESTCASE_TYPE__FAILURE, null, msgs);
- if (newFailure != null)
- msgs = ((InternalEObject)newFailure).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EtunitPackage.TESTCASE_TYPE__FAILURE, null, msgs);
- msgs = basicSetFailure(newFailure, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, EtunitPackage.TESTCASE_TYPE__FAILURE, newFailure, newFailure));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getClassname() {
- return classname;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setClassname(String newClassname) {
- String oldClassname = classname;
- classname = newClassname;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, EtunitPackage.TESTCASE_TYPE__CLASSNAME, oldClassname, classname));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, EtunitPackage.TESTCASE_TYPE__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public BigDecimal getTime() {
- return time;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setTime(BigDecimal newTime) {
- BigDecimal oldTime = time;
- time = newTime;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, EtunitPackage.TESTCASE_TYPE__TIME, oldTime, time));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case EtunitPackage.TESTCASE_TYPE__ERROR:
- return basicSetError(null, msgs);
- case EtunitPackage.TESTCASE_TYPE__FAILURE:
- return basicSetFailure(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case EtunitPackage.TESTCASE_TYPE__ERROR:
- return getError();
- case EtunitPackage.TESTCASE_TYPE__FAILURE:
- return getFailure();
- case EtunitPackage.TESTCASE_TYPE__CLASSNAME:
- return getClassname();
- case EtunitPackage.TESTCASE_TYPE__NAME:
- return getName();
- case EtunitPackage.TESTCASE_TYPE__TIME:
- return getTime();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case EtunitPackage.TESTCASE_TYPE__ERROR:
- setError((ErrorType)newValue);
- return;
- case EtunitPackage.TESTCASE_TYPE__FAILURE:
- setFailure((FailureType)newValue);
- return;
- case EtunitPackage.TESTCASE_TYPE__CLASSNAME:
- setClassname((String)newValue);
- return;
- case EtunitPackage.TESTCASE_TYPE__NAME:
- setName((String)newValue);
- return;
- case EtunitPackage.TESTCASE_TYPE__TIME:
- setTime((BigDecimal)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case EtunitPackage.TESTCASE_TYPE__ERROR:
- setError((ErrorType)null);
- return;
- case EtunitPackage.TESTCASE_TYPE__FAILURE:
- setFailure((FailureType)null);
- return;
- case EtunitPackage.TESTCASE_TYPE__CLASSNAME:
- setClassname(CLASSNAME_EDEFAULT);
- return;
- case EtunitPackage.TESTCASE_TYPE__NAME:
- setName(NAME_EDEFAULT);
- return;
- case EtunitPackage.TESTCASE_TYPE__TIME:
- setTime(TIME_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case EtunitPackage.TESTCASE_TYPE__ERROR:
- return error != null;
- case EtunitPackage.TESTCASE_TYPE__FAILURE:
- return failure != null;
- case EtunitPackage.TESTCASE_TYPE__CLASSNAME:
- return CLASSNAME_EDEFAULT == null ? classname != null : !CLASSNAME_EDEFAULT.equals(classname);
- case EtunitPackage.TESTCASE_TYPE__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case EtunitPackage.TESTCASE_TYPE__TIME:
- return TIME_EDEFAULT == null ? time != null : !TIME_EDEFAULT.equals(time);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (classname: ");
- result.append(classname);
- result.append(", name: ");
- result.append(name);
- result.append(", time: ");
- result.append(time);
- result.append(')');
- return result.toString();
- }
-
-} //TestcaseTypeImpl
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.etrice.etunit.converter.Etunit.impl;
+
+import java.math.BigDecimal;
+
+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.EObjectImpl;
+
+import org.eclipse.etrice.etunit.converter.Etunit.ErrorType;
+import org.eclipse.etrice.etunit.converter.Etunit.EtunitPackage;
+import org.eclipse.etrice.etunit.converter.Etunit.FailureType;
+import org.eclipse.etrice.etunit.converter.Etunit.TestcaseType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Testcase Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.etrice.etunit.converter.Etunit.impl.TestcaseTypeImpl#getError <em>Error</em>}</li>
+ * <li>{@link org.eclipse.etrice.etunit.converter.Etunit.impl.TestcaseTypeImpl#getFailure <em>Failure</em>}</li>
+ * <li>{@link org.eclipse.etrice.etunit.converter.Etunit.impl.TestcaseTypeImpl#getClassname <em>Classname</em>}</li>
+ * <li>{@link org.eclipse.etrice.etunit.converter.Etunit.impl.TestcaseTypeImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.etrice.etunit.converter.Etunit.impl.TestcaseTypeImpl#getTime <em>Time</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class TestcaseTypeImpl extends EObjectImpl implements TestcaseType {
+ /**
+ * The cached value of the '{@link #getError() <em>Error</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getError()
+ * @generated
+ * @ordered
+ */
+ protected ErrorType error;
+
+ /**
+ * The cached value of the '{@link #getFailure() <em>Failure</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFailure()
+ * @generated
+ * @ordered
+ */
+ protected FailureType failure;
+
+ /**
+ * The default value of the '{@link #getClassname() <em>Classname</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getClassname()
+ * @generated
+ * @ordered
+ */
+ protected static final String CLASSNAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getClassname() <em>Classname</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getClassname()
+ * @generated
+ * @ordered
+ */
+ protected String classname = CLASSNAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getTime() <em>Time</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTime()
+ * @generated
+ * @ordered
+ */
+ protected static final BigDecimal TIME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getTime() <em>Time</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTime()
+ * @generated
+ * @ordered
+ */
+ protected BigDecimal time = TIME_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected TestcaseTypeImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return EtunitPackage.Literals.TESTCASE_TYPE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ErrorType getError() {
+ return error;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetError(ErrorType newError, NotificationChain msgs) {
+ ErrorType oldError = error;
+ error = newError;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EtunitPackage.TESTCASE_TYPE__ERROR, oldError, newError);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setError(ErrorType newError) {
+ if (newError != error) {
+ NotificationChain msgs = null;
+ if (error != null)
+ msgs = ((InternalEObject)error).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EtunitPackage.TESTCASE_TYPE__ERROR, null, msgs);
+ if (newError != null)
+ msgs = ((InternalEObject)newError).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EtunitPackage.TESTCASE_TYPE__ERROR, null, msgs);
+ msgs = basicSetError(newError, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, EtunitPackage.TESTCASE_TYPE__ERROR, newError, newError));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FailureType getFailure() {
+ return failure;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetFailure(FailureType newFailure, NotificationChain msgs) {
+ FailureType oldFailure = failure;
+ failure = newFailure;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EtunitPackage.TESTCASE_TYPE__FAILURE, oldFailure, newFailure);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setFailure(FailureType newFailure) {
+ if (newFailure != failure) {
+ NotificationChain msgs = null;
+ if (failure != null)
+ msgs = ((InternalEObject)failure).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EtunitPackage.TESTCASE_TYPE__FAILURE, null, msgs);
+ if (newFailure != null)
+ msgs = ((InternalEObject)newFailure).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EtunitPackage.TESTCASE_TYPE__FAILURE, null, msgs);
+ msgs = basicSetFailure(newFailure, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, EtunitPackage.TESTCASE_TYPE__FAILURE, newFailure, newFailure));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getClassname() {
+ return classname;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setClassname(String newClassname) {
+ String oldClassname = classname;
+ classname = newClassname;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, EtunitPackage.TESTCASE_TYPE__CLASSNAME, oldClassname, classname));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, EtunitPackage.TESTCASE_TYPE__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public BigDecimal getTime() {
+ return time;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setTime(BigDecimal newTime) {
+ BigDecimal oldTime = time;
+ time = newTime;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, EtunitPackage.TESTCASE_TYPE__TIME, oldTime, time));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case EtunitPackage.TESTCASE_TYPE__ERROR:
+ return basicSetError(null, msgs);
+ case EtunitPackage.TESTCASE_TYPE__FAILURE:
+ return basicSetFailure(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case EtunitPackage.TESTCASE_TYPE__ERROR:
+ return getError();
+ case EtunitPackage.TESTCASE_TYPE__FAILURE:
+ return getFailure();
+ case EtunitPackage.TESTCASE_TYPE__CLASSNAME:
+ return getClassname();
+ case EtunitPackage.TESTCASE_TYPE__NAME:
+ return getName();
+ case EtunitPackage.TESTCASE_TYPE__TIME:
+ return getTime();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case EtunitPackage.TESTCASE_TYPE__ERROR:
+ setError((ErrorType)newValue);
+ return;
+ case EtunitPackage.TESTCASE_TYPE__FAILURE:
+ setFailure((FailureType)newValue);
+ return;
+ case EtunitPackage.TESTCASE_TYPE__CLASSNAME:
+ setClassname((String)newValue);
+ return;
+ case EtunitPackage.TESTCASE_TYPE__NAME:
+ setName((String)newValue);
+ return;
+ case EtunitPackage.TESTCASE_TYPE__TIME:
+ setTime((BigDecimal)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case EtunitPackage.TESTCASE_TYPE__ERROR:
+ setError((ErrorType)null);
+ return;
+ case EtunitPackage.TESTCASE_TYPE__FAILURE:
+ setFailure((FailureType)null);
+ return;
+ case EtunitPackage.TESTCASE_TYPE__CLASSNAME:
+ setClassname(CLASSNAME_EDEFAULT);
+ return;
+ case EtunitPackage.TESTCASE_TYPE__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case EtunitPackage.TESTCASE_TYPE__TIME:
+ setTime(TIME_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case EtunitPackage.TESTCASE_TYPE__ERROR:
+ return error != null;
+ case EtunitPackage.TESTCASE_TYPE__FAILURE:
+ return failure != null;
+ case EtunitPackage.TESTCASE_TYPE__CLASSNAME:
+ return CLASSNAME_EDEFAULT == null ? classname != null : !CLASSNAME_EDEFAULT.equals(classname);
+ case EtunitPackage.TESTCASE_TYPE__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case EtunitPackage.TESTCASE_TYPE__TIME:
+ return TIME_EDEFAULT == null ? time != null : !TIME_EDEFAULT.equals(time);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (classname: ");
+ result.append(classname);
+ result.append(", name: ");
+ result.append(name);
+ result.append(", time: ");
+ result.append(time);
+ result.append(')');
+ return result.toString();
+ }
+
+} //TestcaseTypeImpl

Back to the top