blob: 56ab8659b4d3faf8e0a0994462bc0a5ae164de82 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009, 2019 Xored Software Inc and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* Xored Software Inc - initial API and implementation and/or initial documentation
*******************************************************************************/
package org.eclipse.rcptt.ecl.data.commands.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.rcptt.ecl.core.Command;
import org.eclipse.rcptt.ecl.data.commands.*;
/**
* <!-- 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.rcptt.ecl.data.commands.CommandsPackage
* @generated
*/
public class CommandsAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static CommandsPackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public CommandsAdapterFactory() {
if (modelPackage == null) {
modelPackage = CommandsPackage.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 CommandsSwitch<Adapter> modelSwitch =
new CommandsSwitch<Adapter>() {
@Override
public Adapter caseReadCsvFile(ReadCsvFile object) {
return createReadCsvFileAdapter();
}
@Override
public Adapter casePrint(Print object) {
return createPrintAdapter();
}
@Override
public Adapter caseWriteCsvFile(WriteCsvFile object) {
return createWriteCsvFileAdapter();
}
@Override
public Adapter caseExcludeColumns(ExcludeColumns object) {
return createExcludeColumnsAdapter();
}
@Override
public Adapter caseSelectColumns(SelectColumns object) {
return createSelectColumnsAdapter();
}
@Override
public Adapter caseAssertTablesMatch(AssertTablesMatch object) {
return createAssertTablesMatchAdapter();
}
@Override
public Adapter caseWriteLines(WriteLines object) {
return createWriteLinesAdapter();
}
@Override
public Adapter caseReadLines(ReadLines object) {
return createReadLinesAdapter();
}
@Override
public Adapter caseSelectRows(SelectRows object) {
return createSelectRowsAdapter();
}
@Override
public Adapter caseExcludeRows(ExcludeRows object) {
return createExcludeRowsAdapter();
}
@Override
public Adapter caseAsTableData(AsTableData object) {
return createAsTableDataAdapter();
}
@Override
public Adapter caseReadProperties(ReadProperties object) {
return createReadPropertiesAdapter();
}
@Override
public Adapter caseReadFile(ReadFile object) {
return createReadFileAdapter();
}
@Override
public Adapter caseSetPageName(SetPageName object) {
return createSetPageNameAdapter();
}
@Override
public Adapter caseListAsTableData(ListAsTableData object) {
return createListAsTableDataAdapter();
}
@Override
public Adapter caseReadXmlFile(ReadXmlFile object) {
return createReadXmlFileAdapter();
}
@Override
public Adapter caseWriteXmlFile(WriteXmlFile object) {
return createWriteXmlFileAdapter();
}
@Override
public Adapter caseTreeNode(TreeNode object) {
return createTreeNodeAdapter();
}
@Override
public Adapter caseGetAttrs(GetAttrs object) {
return createGetAttrsAdapter();
}
@Override
public Adapter caseGetAttr(GetAttr object) {
return createGetAttrAdapter();
}
@Override
public Adapter caseSetAttr(SetAttr object) {
return createSetAttrAdapter();
}
@Override
public Adapter caseHasAttr(HasAttr object) {
return createHasAttrAdapter();
}
@Override
public Adapter caseGetNodes(GetNodes object) {
return createGetNodesAdapter();
}
@Override
public Adapter caseAppend(Append object) {
return createAppendAdapter();
}
@Override
public Adapter caseRemove(Remove object) {
return createRemoveAdapter();
}
@Override
public Adapter caseCommand(Command object) {
return createCommandAdapter();
}
@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.rcptt.ecl.data.commands.ReadCsvFile <em>Read Csv 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.rcptt.ecl.data.commands.ReadCsvFile
* @generated
*/
public Adapter createReadCsvFileAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.ecl.data.commands.Print <em>Print</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.rcptt.ecl.data.commands.Print
* @generated
*/
public Adapter createPrintAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.ecl.data.commands.WriteCsvFile <em>Write Csv 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.rcptt.ecl.data.commands.WriteCsvFile
* @generated
*/
public Adapter createWriteCsvFileAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.ecl.data.commands.ExcludeColumns <em>Exclude Columns</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.rcptt.ecl.data.commands.ExcludeColumns
* @generated
*/
public Adapter createExcludeColumnsAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.ecl.data.commands.SelectColumns <em>Select Columns</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.rcptt.ecl.data.commands.SelectColumns
* @generated
*/
public Adapter createSelectColumnsAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.ecl.data.commands.AssertTablesMatch <em>Assert Tables Match</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.rcptt.ecl.data.commands.AssertTablesMatch
* @generated
*/
public Adapter createAssertTablesMatchAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.ecl.data.commands.WriteLines <em>Write Lines</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.rcptt.ecl.data.commands.WriteLines
* @generated
*/
public Adapter createWriteLinesAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.ecl.data.commands.ReadLines <em>Read Lines</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.rcptt.ecl.data.commands.ReadLines
* @generated
*/
public Adapter createReadLinesAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.ecl.data.commands.SelectRows <em>Select Rows</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.rcptt.ecl.data.commands.SelectRows
* @generated
*/
public Adapter createSelectRowsAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.ecl.data.commands.ExcludeRows <em>Exclude Rows</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.rcptt.ecl.data.commands.ExcludeRows
* @generated
*/
public Adapter createExcludeRowsAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.ecl.data.commands.AsTableData <em>As Table Data</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.rcptt.ecl.data.commands.AsTableData
* @generated
*/
public Adapter createAsTableDataAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.ecl.data.commands.ReadProperties <em>Read Properties</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.rcptt.ecl.data.commands.ReadProperties
* @generated
*/
public Adapter createReadPropertiesAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.ecl.data.commands.ReadFile <em>Read 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.rcptt.ecl.data.commands.ReadFile
* @generated
*/
public Adapter createReadFileAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.ecl.data.commands.SetPageName <em>Set Page Name</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.rcptt.ecl.data.commands.SetPageName
* @generated
*/
public Adapter createSetPageNameAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.ecl.data.commands.ListAsTableData <em>List As Table Data</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.rcptt.ecl.data.commands.ListAsTableData
* @generated
*/
public Adapter createListAsTableDataAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.ecl.data.commands.ReadXmlFile <em>Read Xml 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.rcptt.ecl.data.commands.ReadXmlFile
* @generated
*/
public Adapter createReadXmlFileAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.ecl.data.commands.WriteXmlFile <em>Write Xml 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.rcptt.ecl.data.commands.WriteXmlFile
* @generated
*/
public Adapter createWriteXmlFileAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.ecl.data.commands.TreeNode <em>Tree Node</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.rcptt.ecl.data.commands.TreeNode
* @generated
*/
public Adapter createTreeNodeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.ecl.data.commands.GetAttrs <em>Get Attrs</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.rcptt.ecl.data.commands.GetAttrs
* @generated
*/
public Adapter createGetAttrsAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.ecl.data.commands.GetAttr <em>Get Attr</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.rcptt.ecl.data.commands.GetAttr
* @generated
*/
public Adapter createGetAttrAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.ecl.data.commands.SetAttr <em>Set Attr</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.rcptt.ecl.data.commands.SetAttr
* @generated
*/
public Adapter createSetAttrAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.ecl.data.commands.HasAttr <em>Has Attr</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.rcptt.ecl.data.commands.HasAttr
* @generated
*/
public Adapter createHasAttrAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.ecl.data.commands.GetNodes <em>Get Nodes</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.rcptt.ecl.data.commands.GetNodes
* @generated
*/
public Adapter createGetNodesAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.ecl.data.commands.Append <em>Append</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.rcptt.ecl.data.commands.Append
* @generated
*/
public Adapter createAppendAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.ecl.data.commands.Remove <em>Remove</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.rcptt.ecl.data.commands.Remove
* @generated
*/
public Adapter createRemoveAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.ecl.core.Command <em>Command</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.rcptt.ecl.core.Command
* @generated
*/
public Adapter createCommandAdapter() {
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;
}
} //CommandsAdapterFactory