blob: d7c6b5297397e30176a917db7c770714eda6d714 [file] [log] [blame]
/**
* 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.util;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.osbp.dsl.semantic.common.types.LLazyResolver;
import org.eclipse.osbp.dsl.semantic.common.types.LPackage;
import org.eclipse.osbp.xtext.datainterchange.*;
/**
* <!-- begin-user-doc -->
* The <b>Adapter Factory</b> for the model.
* It provides an adapter <code>createXXX</code> method for each class of the model.
* <!-- end-user-doc -->
* @see org.eclipse.osbp.xtext.datainterchange.DataDSLPackage
* @generated
*/
public class DataDSLAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static DataDSLPackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public DataDSLAdapterFactory() {
if (modelPackage == null) {
modelPackage = DataDSLPackage.eINSTANCE;
}
}
/**
* Returns whether this factory is applicable for the type of the object.
* <!-- begin-user-doc -->
* This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
* <!-- end-user-doc -->
* @return whether this factory is applicable for the type of the object.
* @generated
*/
@Override
public boolean isFactoryForType(Object object) {
if (object == modelPackage) {
return true;
}
if (object instanceof EObject) {
return ((EObject)object).eClass().getEPackage() == modelPackage;
}
return false;
}
/**
* The switch that delegates to the <code>createXXX</code> methods.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected DataDSLSwitch<Adapter> modelSwitch =
new DataDSLSwitch<Adapter>() {
@Override
public Adapter caseDataInterchangeModel(DataInterchangeModel object) {
return createDataInterchangeModelAdapter();
}
@Override
public Adapter caseDataInterchangeLazyResolver(DataInterchangeLazyResolver object) {
return createDataInterchangeLazyResolverAdapter();
}
@Override
public Adapter caseDataInterchangePackage(DataInterchangePackage object) {
return createDataInterchangePackageAdapter();
}
@Override
public Adapter caseDataInterchangeBase(DataInterchangeBase object) {
return createDataInterchangeBaseAdapter();
}
@Override
public Adapter caseDataInterchangeGroup(DataInterchangeGroup object) {
return createDataInterchangeGroupAdapter();
}
@Override
public Adapter caseDataInterchange(DataInterchange object) {
return createDataInterchangeAdapter();
}
@Override
public Adapter caseDataInterchangeFile(DataInterchangeFile object) {
return createDataInterchangeFileAdapter();
}
@Override
public Adapter caseDataInterchangeFileXML(DataInterchangeFileXML object) {
return createDataInterchangeFileXMLAdapter();
}
@Override
public Adapter caseDataInterchangeFileCSV(DataInterchangeFileCSV object) {
return createDataInterchangeFileCSVAdapter();
}
@Override
public Adapter caseDataInterchangeFileEDI(DataInterchangeFileEDI object) {
return createDataInterchangeFileEDIAdapter();
}
@Override
public Adapter caseDataInterchangeBean(DataInterchangeBean object) {
return createDataInterchangeBeanAdapter();
}
@Override
public Adapter caseDataInterchangeKey(DataInterchangeKey object) {
return createDataInterchangeKeyAdapter();
}
@Override
public Adapter caseDataInterchangeFormat(DataInterchangeFormat object) {
return createDataInterchangeFormatAdapter();
}
@Override
public Adapter caseDataInterchangeExpression(DataInterchangeExpression object) {
return createDataInterchangeExpressionAdapter();
}
@Override
public Adapter caseDataInterchangeEntityExpression(DataInterchangeEntityExpression object) {
return createDataInterchangeEntityExpressionAdapter();
}
@Override
public Adapter caseDataInterchangePredefinedExpression(DataInterchangePredefinedExpression object) {
return createDataInterchangePredefinedExpressionAdapter();
}
@Override
public Adapter caseDataInterchangeLookup(DataInterchangeLookup object) {
return createDataInterchangeLookupAdapter();
}
@Override
public Adapter caseDataInterchangeExpose(DataInterchangeExpose object) {
return createDataInterchangeExposeAdapter();
}
@Override
public Adapter caseDataInterchangeExportFilter(DataInterchangeExportFilter object) {
return createDataInterchangeExportFilterAdapter();
}
@Override
public Adapter caseDataInterchangeFilterCondition(DataInterchangeFilterCondition object) {
return createDataInterchangeFilterConditionAdapter();
}
@Override
public Adapter caseDataInterchangeExportHide(DataInterchangeExportHide object) {
return createDataInterchangeExportHideAdapter();
}
@Override
public Adapter caseDataInterchangeMarkerPath(DataInterchangeMarkerPath object) {
return createDataInterchangeMarkerPathAdapter();
}
@Override
public Adapter caseDataInterchangeMarkerEntity(DataInterchangeMarkerEntity object) {
return createDataInterchangeMarkerEntityAdapter();
}
@Override
public Adapter caseDataInterchangeMapping(DataInterchangeMapping object) {
return createDataInterchangeMappingAdapter();
}
@Override
public Adapter caseDataInterchangeValueMapping(DataInterchangeValueMapping object) {
return createDataInterchangeValueMappingAdapter();
}
@Override
public Adapter caseDataInterchangeBlobMapping(DataInterchangeBlobMapping object) {
return createDataInterchangeBlobMappingAdapter();
}
@Override
public Adapter caseLLazyResolver(LLazyResolver object) {
return createLLazyResolverAdapter();
}
@Override
public Adapter caseLPackage(LPackage object) {
return createLPackageAdapter();
}
@Override
public Adapter defaultCase(EObject object) {
return createEObjectAdapter();
}
};
/**
* Creates an adapter for the <code>target</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param target the object to adapt.
* @return the adapter for the <code>target</code>.
* @generated
*/
@Override
public Adapter createAdapter(Notifier target) {
return modelSwitch.doSwitch((EObject)target);
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.datainterchange.DataInterchangeModel <em>Data Interchange Model</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.osbp.xtext.datainterchange.DataInterchangeModel
* @generated
*/
public Adapter createDataInterchangeModelAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.datainterchange.DataInterchangeLazyResolver <em>Data Interchange Lazy Resolver</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.osbp.xtext.datainterchange.DataInterchangeLazyResolver
* @generated
*/
public Adapter createDataInterchangeLazyResolverAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.datainterchange.DataInterchangePackage <em>Data Interchange Package</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.osbp.xtext.datainterchange.DataInterchangePackage
* @generated
*/
public Adapter createDataInterchangePackageAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.datainterchange.DataInterchangeBase <em>Data Interchange Base</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.osbp.xtext.datainterchange.DataInterchangeBase
* @generated
*/
public Adapter createDataInterchangeBaseAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.datainterchange.DataInterchangeGroup <em>Data Interchange Group</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.osbp.xtext.datainterchange.DataInterchangeGroup
* @generated
*/
public Adapter createDataInterchangeGroupAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.datainterchange.DataInterchange <em>Data Interchange</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.osbp.xtext.datainterchange.DataInterchange
* @generated
*/
public Adapter createDataInterchangeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.datainterchange.DataInterchangeFile <em>Data Interchange File</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.osbp.xtext.datainterchange.DataInterchangeFile
* @generated
*/
public Adapter createDataInterchangeFileAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.datainterchange.DataInterchangeFileXML <em>Data Interchange File XML</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.osbp.xtext.datainterchange.DataInterchangeFileXML
* @generated
*/
public Adapter createDataInterchangeFileXMLAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.datainterchange.DataInterchangeFileCSV <em>Data Interchange File CSV</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.osbp.xtext.datainterchange.DataInterchangeFileCSV
* @generated
*/
public Adapter createDataInterchangeFileCSVAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.datainterchange.DataInterchangeFileEDI <em>Data Interchange File EDI</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.osbp.xtext.datainterchange.DataInterchangeFileEDI
* @generated
*/
public Adapter createDataInterchangeFileEDIAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.datainterchange.DataInterchangeBean <em>Data Interchange Bean</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.osbp.xtext.datainterchange.DataInterchangeBean
* @generated
*/
public Adapter createDataInterchangeBeanAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.datainterchange.DataInterchangeKey <em>Data Interchange Key</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.osbp.xtext.datainterchange.DataInterchangeKey
* @generated
*/
public Adapter createDataInterchangeKeyAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.datainterchange.DataInterchangeFormat <em>Data Interchange Format</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.osbp.xtext.datainterchange.DataInterchangeFormat
* @generated
*/
public Adapter createDataInterchangeFormatAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.datainterchange.DataInterchangeExpression <em>Data Interchange Expression</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.osbp.xtext.datainterchange.DataInterchangeExpression
* @generated
*/
public Adapter createDataInterchangeExpressionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.datainterchange.DataInterchangeEntityExpression <em>Data Interchange Entity Expression</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.osbp.xtext.datainterchange.DataInterchangeEntityExpression
* @generated
*/
public Adapter createDataInterchangeEntityExpressionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.datainterchange.DataInterchangePredefinedExpression <em>Data Interchange Predefined Expression</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.osbp.xtext.datainterchange.DataInterchangePredefinedExpression
* @generated
*/
public Adapter createDataInterchangePredefinedExpressionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.datainterchange.DataInterchangeLookup <em>Data Interchange Lookup</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.osbp.xtext.datainterchange.DataInterchangeLookup
* @generated
*/
public Adapter createDataInterchangeLookupAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.datainterchange.DataInterchangeExpose <em>Data Interchange Expose</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.osbp.xtext.datainterchange.DataInterchangeExpose
* @generated
*/
public Adapter createDataInterchangeExposeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.datainterchange.DataInterchangeExportFilter <em>Data Interchange Export Filter</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.osbp.xtext.datainterchange.DataInterchangeExportFilter
* @generated
*/
public Adapter createDataInterchangeExportFilterAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.datainterchange.DataInterchangeFilterCondition <em>Data Interchange Filter Condition</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.osbp.xtext.datainterchange.DataInterchangeFilterCondition
* @generated
*/
public Adapter createDataInterchangeFilterConditionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.datainterchange.DataInterchangeExportHide <em>Data Interchange Export Hide</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.osbp.xtext.datainterchange.DataInterchangeExportHide
* @generated
*/
public Adapter createDataInterchangeExportHideAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.datainterchange.DataInterchangeMarkerPath <em>Data Interchange Marker Path</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.osbp.xtext.datainterchange.DataInterchangeMarkerPath
* @generated
*/
public Adapter createDataInterchangeMarkerPathAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.datainterchange.DataInterchangeMarkerEntity <em>Data Interchange Marker Entity</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.osbp.xtext.datainterchange.DataInterchangeMarkerEntity
* @generated
*/
public Adapter createDataInterchangeMarkerEntityAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.datainterchange.DataInterchangeMapping <em>Data Interchange Mapping</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.osbp.xtext.datainterchange.DataInterchangeMapping
* @generated
*/
public Adapter createDataInterchangeMappingAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.datainterchange.DataInterchangeValueMapping <em>Data Interchange Value Mapping</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.osbp.xtext.datainterchange.DataInterchangeValueMapping
* @generated
*/
public Adapter createDataInterchangeValueMappingAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.datainterchange.DataInterchangeBlobMapping <em>Data Interchange Blob Mapping</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.osbp.xtext.datainterchange.DataInterchangeBlobMapping
* @generated
*/
public Adapter createDataInterchangeBlobMappingAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.dsl.semantic.common.types.LLazyResolver <em>LLazy Resolver</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.osbp.dsl.semantic.common.types.LLazyResolver
* @generated
*/
public Adapter createLLazyResolverAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.dsl.semantic.common.types.LPackage <em>LPackage</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.osbp.dsl.semantic.common.types.LPackage
* @generated
*/
public Adapter createLPackageAdapter() {
return null;
}
/**
* Creates a new adapter for the default case.
* <!-- begin-user-doc -->
* This default implementation returns null.
* <!-- end-user-doc -->
* @return the new adapter.
* @generated
*/
public Adapter createEObjectAdapter() {
return null;
}
} //DataDSLAdapterFactory