| /** |
| * Copyright (c) 2014, Loetz GmbH&Co.KG (Heidelberg) |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Based on ideas from Xtext, Xtend, Xcore |
| * |
| * Contributors: |
| * Joerg Riegel - Initial implementation |
| * |
| */ |
| package org.eclipse.osbp.xtext.datainterchange.impl; |
| |
| import java.util.Collection; |
| |
| import org.eclipse.emf.common.notify.Notification; |
| 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.ENotificationImpl; |
| |
| import org.eclipse.emf.ecore.util.EObjectContainmentEList; |
| import org.eclipse.emf.ecore.util.InternalEList; |
| |
| import org.eclipse.osbp.xtext.datainterchange.DataDSLPackage; |
| import org.eclipse.osbp.xtext.datainterchange.DataInterchange; |
| import org.eclipse.osbp.xtext.datainterchange.DataInterchangeBean; |
| import org.eclipse.osbp.xtext.datainterchange.DataInterchangeFile; |
| import org.eclipse.osbp.xtext.datainterchange.EntityManagerMode; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model object '<em><b>Data Interchange</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * The following features are implemented: |
| * </p> |
| * <ul> |
| * <li>{@link org.eclipse.osbp.xtext.datainterchange.impl.DataInterchangeImpl#isDescription <em>Description</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.datainterchange.impl.DataInterchangeImpl#getDescriptionValue <em>Description Value</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.datainterchange.impl.DataInterchangeImpl#getVectorName <em>Vector Name</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.datainterchange.impl.DataInterchangeImpl#isHasVectorName <em>Has Vector Name</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.datainterchange.impl.DataInterchangeImpl#isCreateReport <em>Create Report</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.datainterchange.impl.DataInterchangeImpl#getElementSize <em>Element Size</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.datainterchange.impl.DataInterchangeImpl#getMode <em>Mode</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.datainterchange.impl.DataInterchangeImpl#getFileEndpoint <em>File Endpoint</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.datainterchange.impl.DataInterchangeImpl#getPath <em>Path</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.datainterchange.impl.DataInterchangeImpl#isDeleteFileAfterImport <em>Delete File After Import</em>}</li> |
| * </ul> |
| * |
| * @generated |
| */ |
| public class DataInterchangeImpl extends DataInterchangeBaseImpl implements DataInterchange { |
| /** |
| * The default value of the '{@link #isDescription() <em>Description</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isDescription() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean DESCRIPTION_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isDescription() <em>Description</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isDescription() |
| * @generated |
| * @ordered |
| */ |
| protected boolean description = DESCRIPTION_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getDescriptionValue() <em>Description Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDescriptionValue() |
| * @generated |
| * @ordered |
| */ |
| protected static final String DESCRIPTION_VALUE_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getDescriptionValue() <em>Description Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDescriptionValue() |
| * @generated |
| * @ordered |
| */ |
| protected String descriptionValue = DESCRIPTION_VALUE_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getVectorName() <em>Vector Name</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getVectorName() |
| * @generated |
| * @ordered |
| */ |
| protected static final String VECTOR_NAME_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getVectorName() <em>Vector Name</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getVectorName() |
| * @generated |
| * @ordered |
| */ |
| protected String vectorName = VECTOR_NAME_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #isHasVectorName() <em>Has Vector Name</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isHasVectorName() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean HAS_VECTOR_NAME_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isHasVectorName() <em>Has Vector Name</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isHasVectorName() |
| * @generated |
| * @ordered |
| */ |
| protected boolean hasVectorName = HAS_VECTOR_NAME_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #isCreateReport() <em>Create Report</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isCreateReport() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean CREATE_REPORT_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isCreateReport() <em>Create Report</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isCreateReport() |
| * @generated |
| * @ordered |
| */ |
| protected boolean createReport = CREATE_REPORT_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getElementSize() <em>Element Size</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getElementSize() |
| * @generated |
| * @ordered |
| */ |
| protected static final int ELEMENT_SIZE_EDEFAULT = 0; |
| |
| /** |
| * The cached value of the '{@link #getElementSize() <em>Element Size</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getElementSize() |
| * @generated |
| * @ordered |
| */ |
| protected int elementSize = ELEMENT_SIZE_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getMode() <em>Mode</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getMode() |
| * @generated |
| * @ordered |
| */ |
| protected static final EntityManagerMode MODE_EDEFAULT = EntityManagerMode.PERSIST; |
| |
| /** |
| * The cached value of the '{@link #getMode() <em>Mode</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getMode() |
| * @generated |
| * @ordered |
| */ |
| protected EntityManagerMode mode = MODE_EDEFAULT; |
| |
| /** |
| * The cached value of the '{@link #getFileEndpoint() <em>File Endpoint</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getFileEndpoint() |
| * @generated |
| * @ordered |
| */ |
| protected DataInterchangeFile fileEndpoint; |
| |
| /** |
| * The cached value of the '{@link #getPath() <em>Path</em>}' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPath() |
| * @generated |
| * @ordered |
| */ |
| protected EList<DataInterchangeBean> path; |
| |
| /** |
| * The default value of the '{@link #isDeleteFileAfterImport() <em>Delete File After Import</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isDeleteFileAfterImport() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean DELETE_FILE_AFTER_IMPORT_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isDeleteFileAfterImport() <em>Delete File After Import</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isDeleteFileAfterImport() |
| * @generated |
| * @ordered |
| */ |
| protected boolean deleteFileAfterImport = DELETE_FILE_AFTER_IMPORT_EDEFAULT; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected DataInterchangeImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| protected EClass eStaticClass() { |
| return DataDSLPackage.Literals.DATA_INTERCHANGE; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isDescription() { |
| return description; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setDescription(boolean newDescription) { |
| boolean oldDescription = description; |
| description = newDescription; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, DataDSLPackage.DATA_INTERCHANGE__DESCRIPTION, oldDescription, description)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getDescriptionValue() { |
| return descriptionValue; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setDescriptionValue(String newDescriptionValue) { |
| String oldDescriptionValue = descriptionValue; |
| descriptionValue = newDescriptionValue; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, DataDSLPackage.DATA_INTERCHANGE__DESCRIPTION_VALUE, oldDescriptionValue, descriptionValue)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getVectorName() { |
| return vectorName; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setVectorName(String newVectorName) { |
| String oldVectorName = vectorName; |
| vectorName = newVectorName; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, DataDSLPackage.DATA_INTERCHANGE__VECTOR_NAME, oldVectorName, vectorName)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isHasVectorName() { |
| return hasVectorName; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setHasVectorName(boolean newHasVectorName) { |
| boolean oldHasVectorName = hasVectorName; |
| hasVectorName = newHasVectorName; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, DataDSLPackage.DATA_INTERCHANGE__HAS_VECTOR_NAME, oldHasVectorName, hasVectorName)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isCreateReport() { |
| return createReport; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setCreateReport(boolean newCreateReport) { |
| boolean oldCreateReport = createReport; |
| createReport = newCreateReport; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, DataDSLPackage.DATA_INTERCHANGE__CREATE_REPORT, oldCreateReport, createReport)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public int getElementSize() { |
| return elementSize; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setElementSize(int newElementSize) { |
| int oldElementSize = elementSize; |
| elementSize = newElementSize; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, DataDSLPackage.DATA_INTERCHANGE__ELEMENT_SIZE, oldElementSize, elementSize)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EntityManagerMode getMode() { |
| return mode; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setMode(EntityManagerMode newMode) { |
| EntityManagerMode oldMode = mode; |
| mode = newMode == null ? MODE_EDEFAULT : newMode; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, DataDSLPackage.DATA_INTERCHANGE__MODE, oldMode, mode)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public DataInterchangeFile getFileEndpoint() { |
| return fileEndpoint; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetFileEndpoint(DataInterchangeFile newFileEndpoint, NotificationChain msgs) { |
| DataInterchangeFile oldFileEndpoint = fileEndpoint; |
| fileEndpoint = newFileEndpoint; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DataDSLPackage.DATA_INTERCHANGE__FILE_ENDPOINT, oldFileEndpoint, newFileEndpoint); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setFileEndpoint(DataInterchangeFile newFileEndpoint) { |
| if (newFileEndpoint != fileEndpoint) { |
| NotificationChain msgs = null; |
| if (fileEndpoint != null) |
| msgs = ((InternalEObject)fileEndpoint).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DataDSLPackage.DATA_INTERCHANGE__FILE_ENDPOINT, null, msgs); |
| if (newFileEndpoint != null) |
| msgs = ((InternalEObject)newFileEndpoint).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DataDSLPackage.DATA_INTERCHANGE__FILE_ENDPOINT, null, msgs); |
| msgs = basicSetFileEndpoint(newFileEndpoint, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, DataDSLPackage.DATA_INTERCHANGE__FILE_ENDPOINT, newFileEndpoint, newFileEndpoint)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<DataInterchangeBean> getPath() { |
| if (path == null) { |
| path = new EObjectContainmentEList<DataInterchangeBean>(DataInterchangeBean.class, this, DataDSLPackage.DATA_INTERCHANGE__PATH); |
| } |
| return path; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isDeleteFileAfterImport() { |
| return deleteFileAfterImport; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setDeleteFileAfterImport(boolean newDeleteFileAfterImport) { |
| boolean oldDeleteFileAfterImport = deleteFileAfterImport; |
| deleteFileAfterImport = newDeleteFileAfterImport; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, DataDSLPackage.DATA_INTERCHANGE__DELETE_FILE_AFTER_IMPORT, oldDeleteFileAfterImport, deleteFileAfterImport)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
| switch (featureID) { |
| case DataDSLPackage.DATA_INTERCHANGE__FILE_ENDPOINT: |
| return basicSetFileEndpoint(null, msgs); |
| case DataDSLPackage.DATA_INTERCHANGE__PATH: |
| return ((InternalEList<?>)getPath()).basicRemove(otherEnd, 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 DataDSLPackage.DATA_INTERCHANGE__DESCRIPTION: |
| return isDescription(); |
| case DataDSLPackage.DATA_INTERCHANGE__DESCRIPTION_VALUE: |
| return getDescriptionValue(); |
| case DataDSLPackage.DATA_INTERCHANGE__VECTOR_NAME: |
| return getVectorName(); |
| case DataDSLPackage.DATA_INTERCHANGE__HAS_VECTOR_NAME: |
| return isHasVectorName(); |
| case DataDSLPackage.DATA_INTERCHANGE__CREATE_REPORT: |
| return isCreateReport(); |
| case DataDSLPackage.DATA_INTERCHANGE__ELEMENT_SIZE: |
| return getElementSize(); |
| case DataDSLPackage.DATA_INTERCHANGE__MODE: |
| return getMode(); |
| case DataDSLPackage.DATA_INTERCHANGE__FILE_ENDPOINT: |
| return getFileEndpoint(); |
| case DataDSLPackage.DATA_INTERCHANGE__PATH: |
| return getPath(); |
| case DataDSLPackage.DATA_INTERCHANGE__DELETE_FILE_AFTER_IMPORT: |
| return isDeleteFileAfterImport(); |
| } |
| return super.eGet(featureID, resolve, coreType); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @SuppressWarnings("unchecked") |
| @Override |
| public void eSet(int featureID, Object newValue) { |
| switch (featureID) { |
| case DataDSLPackage.DATA_INTERCHANGE__DESCRIPTION: |
| setDescription((Boolean)newValue); |
| return; |
| case DataDSLPackage.DATA_INTERCHANGE__DESCRIPTION_VALUE: |
| setDescriptionValue((String)newValue); |
| return; |
| case DataDSLPackage.DATA_INTERCHANGE__VECTOR_NAME: |
| setVectorName((String)newValue); |
| return; |
| case DataDSLPackage.DATA_INTERCHANGE__HAS_VECTOR_NAME: |
| setHasVectorName((Boolean)newValue); |
| return; |
| case DataDSLPackage.DATA_INTERCHANGE__CREATE_REPORT: |
| setCreateReport((Boolean)newValue); |
| return; |
| case DataDSLPackage.DATA_INTERCHANGE__ELEMENT_SIZE: |
| setElementSize((Integer)newValue); |
| return; |
| case DataDSLPackage.DATA_INTERCHANGE__MODE: |
| setMode((EntityManagerMode)newValue); |
| return; |
| case DataDSLPackage.DATA_INTERCHANGE__FILE_ENDPOINT: |
| setFileEndpoint((DataInterchangeFile)newValue); |
| return; |
| case DataDSLPackage.DATA_INTERCHANGE__PATH: |
| getPath().clear(); |
| getPath().addAll((Collection<? extends DataInterchangeBean>)newValue); |
| return; |
| case DataDSLPackage.DATA_INTERCHANGE__DELETE_FILE_AFTER_IMPORT: |
| setDeleteFileAfterImport((Boolean)newValue); |
| return; |
| } |
| super.eSet(featureID, newValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void eUnset(int featureID) { |
| switch (featureID) { |
| case DataDSLPackage.DATA_INTERCHANGE__DESCRIPTION: |
| setDescription(DESCRIPTION_EDEFAULT); |
| return; |
| case DataDSLPackage.DATA_INTERCHANGE__DESCRIPTION_VALUE: |
| setDescriptionValue(DESCRIPTION_VALUE_EDEFAULT); |
| return; |
| case DataDSLPackage.DATA_INTERCHANGE__VECTOR_NAME: |
| setVectorName(VECTOR_NAME_EDEFAULT); |
| return; |
| case DataDSLPackage.DATA_INTERCHANGE__HAS_VECTOR_NAME: |
| setHasVectorName(HAS_VECTOR_NAME_EDEFAULT); |
| return; |
| case DataDSLPackage.DATA_INTERCHANGE__CREATE_REPORT: |
| setCreateReport(CREATE_REPORT_EDEFAULT); |
| return; |
| case DataDSLPackage.DATA_INTERCHANGE__ELEMENT_SIZE: |
| setElementSize(ELEMENT_SIZE_EDEFAULT); |
| return; |
| case DataDSLPackage.DATA_INTERCHANGE__MODE: |
| setMode(MODE_EDEFAULT); |
| return; |
| case DataDSLPackage.DATA_INTERCHANGE__FILE_ENDPOINT: |
| setFileEndpoint((DataInterchangeFile)null); |
| return; |
| case DataDSLPackage.DATA_INTERCHANGE__PATH: |
| getPath().clear(); |
| return; |
| case DataDSLPackage.DATA_INTERCHANGE__DELETE_FILE_AFTER_IMPORT: |
| setDeleteFileAfterImport(DELETE_FILE_AFTER_IMPORT_EDEFAULT); |
| return; |
| } |
| super.eUnset(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public boolean eIsSet(int featureID) { |
| switch (featureID) { |
| case DataDSLPackage.DATA_INTERCHANGE__DESCRIPTION: |
| return description != DESCRIPTION_EDEFAULT; |
| case DataDSLPackage.DATA_INTERCHANGE__DESCRIPTION_VALUE: |
| return DESCRIPTION_VALUE_EDEFAULT == null ? descriptionValue != null : !DESCRIPTION_VALUE_EDEFAULT.equals(descriptionValue); |
| case DataDSLPackage.DATA_INTERCHANGE__VECTOR_NAME: |
| return VECTOR_NAME_EDEFAULT == null ? vectorName != null : !VECTOR_NAME_EDEFAULT.equals(vectorName); |
| case DataDSLPackage.DATA_INTERCHANGE__HAS_VECTOR_NAME: |
| return hasVectorName != HAS_VECTOR_NAME_EDEFAULT; |
| case DataDSLPackage.DATA_INTERCHANGE__CREATE_REPORT: |
| return createReport != CREATE_REPORT_EDEFAULT; |
| case DataDSLPackage.DATA_INTERCHANGE__ELEMENT_SIZE: |
| return elementSize != ELEMENT_SIZE_EDEFAULT; |
| case DataDSLPackage.DATA_INTERCHANGE__MODE: |
| return mode != MODE_EDEFAULT; |
| case DataDSLPackage.DATA_INTERCHANGE__FILE_ENDPOINT: |
| return fileEndpoint != null; |
| case DataDSLPackage.DATA_INTERCHANGE__PATH: |
| return path != null && !path.isEmpty(); |
| case DataDSLPackage.DATA_INTERCHANGE__DELETE_FILE_AFTER_IMPORT: |
| return deleteFileAfterImport != DELETE_FILE_AFTER_IMPORT_EDEFAULT; |
| } |
| 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(" (description: "); |
| result.append(description); |
| result.append(", descriptionValue: "); |
| result.append(descriptionValue); |
| result.append(", vectorName: "); |
| result.append(vectorName); |
| result.append(", hasVectorName: "); |
| result.append(hasVectorName); |
| result.append(", createReport: "); |
| result.append(createReport); |
| result.append(", elementSize: "); |
| result.append(elementSize); |
| result.append(", mode: "); |
| result.append(mode); |
| result.append(", deleteFileAfterImport: "); |
| result.append(deleteFileAfterImport); |
| result.append(')'); |
| return result.toString(); |
| } |
| |
| } //DataInterchangeImpl |