blob: e4488fcef9e43d123ad7ac51da6d50b39b372d62 [file] [log] [blame]
/**
* Copyright (c) 2011-2013 EclipseSource Muenchen GmbH and others.
*
* 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
*
* Contributors:
* Eugen Neufeld - initial API and implementation
*/
package org.eclipse.emf.ecp.view.spi.table.model.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.emf.ecp.view.spi.model.VContainedElement;
import org.eclipse.emf.ecp.view.spi.model.VControl;
import org.eclipse.emf.ecp.view.spi.model.VDomainModelReference;
import org.eclipse.emf.ecp.view.spi.model.VElement;
import org.eclipse.emf.ecp.view.spi.model.VFeaturePathDomainModelReference;
import org.eclipse.emf.ecp.view.spi.table.model.VEnablementConfiguration;
import org.eclipse.emf.ecp.view.spi.table.model.VReadOnlyColumnConfiguration;
import org.eclipse.emf.ecp.view.spi.table.model.VSingleColumnConfiguration;
import org.eclipse.emf.ecp.view.spi.table.model.VTableColumnConfiguration;
import org.eclipse.emf.ecp.view.spi.table.model.VTableControl;
import org.eclipse.emf.ecp.view.spi.table.model.VTableDomainModelReference;
import org.eclipse.emf.ecp.view.spi.table.model.VTablePackage;
import org.eclipse.emf.ecp.view.spi.table.model.VWidthConfiguration;
/**
* <!-- 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.emf.ecp.view.spi.table.model.VTablePackage
* @generated
*/
public class TableAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
protected static VTablePackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
public TableAdapterFactory() {
if (modelPackage == null) {
modelPackage = VTablePackage.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 TableSwitch<Adapter> modelSwitch = new TableSwitch<Adapter>() {
@Override
public Adapter caseTableControl(VTableControl object) {
return createTableControlAdapter();
}
@Override
public Adapter caseTableColumnConfiguration(VTableColumnConfiguration object) {
return createTableColumnConfigurationAdapter();
}
@Override
public Adapter caseTableDomainModelReference(VTableDomainModelReference object) {
return createTableDomainModelReferenceAdapter();
}
@Override
public Adapter caseReadOnlyColumnConfiguration(VReadOnlyColumnConfiguration object) {
return createReadOnlyColumnConfigurationAdapter();
}
@Override
public Adapter caseWidthConfiguration(VWidthConfiguration object) {
return createWidthConfigurationAdapter();
}
@Override
public Adapter caseEnablementConfiguration(VEnablementConfiguration object) {
return createEnablementConfigurationAdapter();
}
@Override
public Adapter caseSingleColumnConfiguration(VSingleColumnConfiguration object) {
return createSingleColumnConfigurationAdapter();
}
@Override
public Adapter caseElement(VElement object) {
return createElementAdapter();
}
@Override
public Adapter caseContainedElement(VContainedElement object) {
return createContainedElementAdapter();
}
@Override
public Adapter caseControl(VControl object) {
return createControlAdapter();
}
@Override
public Adapter caseDomainModelReference(VDomainModelReference object) {
return createDomainModelReferenceAdapter();
}
@Override
public Adapter caseFeaturePathDomainModelReference(VFeaturePathDomainModelReference object) {
return createFeaturePathDomainModelReferenceAdapter();
}
@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.emf.ecp.view.spi.table.model.VTableControl
* <em>Control</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.emf.ecp.view.spi.table.model.VTableControl
* @generated
*/
public Adapter createTableControlAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class
* '{@link org.eclipse.emf.ecp.view.spi.table.model.VTableColumnConfiguration <em>Column Configuration</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.emf.ecp.view.spi.table.model.VTableColumnConfiguration
* @generated
*/
public Adapter createTableColumnConfigurationAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class
* '{@link org.eclipse.emf.ecp.view.spi.table.model.VTableDomainModelReference <em>Domain Model Reference</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.emf.ecp.view.spi.table.model.VTableDomainModelReference
* @generated
*/
public Adapter createTableDomainModelReferenceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class
* '{@link org.eclipse.emf.ecp.view.spi.table.model.VReadOnlyColumnConfiguration <em>Read Only Column
* Configuration</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.emf.ecp.view.spi.table.model.VReadOnlyColumnConfiguration
* @generated
*/
public Adapter createReadOnlyColumnConfigurationAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.ecp.view.spi.table.model.VWidthConfiguration
* <em>Width Configuration</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.
*
* @since 1.9
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.ecp.view.spi.table.model.VWidthConfiguration
* @generated
*/
public Adapter createWidthConfigurationAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class
* '{@link org.eclipse.emf.ecp.view.spi.table.model.VEnablementConfiguration <em>Enablement Configuration</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.
*
* @since 1.13
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.ecp.view.spi.table.model.VEnablementConfiguration
* @generated
*/
public Adapter createEnablementConfigurationAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class
* '{@link org.eclipse.emf.ecp.view.spi.table.model.VSingleColumnConfiguration <em>Single Column
* Configuration</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.
*
* @since 1.13
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.ecp.view.spi.table.model.VSingleColumnConfiguration
* @generated
*/
public Adapter createSingleColumnConfigurationAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.ecp.view.spi.model.VElement
* <em>Element</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.emf.ecp.view.spi.model.VElement
* @generated
*/
public Adapter createElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.ecp.view.spi.model.VContainedElement
* <em>Contained Element</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.emf.ecp.view.spi.model.VContainedElement
* @generated
*/
public Adapter createContainedElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.ecp.view.spi.model.VControl
* <em>Control</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.emf.ecp.view.spi.model.VControl
* @generated
*/
public Adapter createControlAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.ecp.view.spi.model.VDomainModelReference
* <em>Domain Model Reference</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.emf.ecp.view.spi.model.VDomainModelReference
* @generated
*/
public Adapter createDomainModelReferenceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class
* '{@link org.eclipse.emf.ecp.view.spi.model.VFeaturePathDomainModelReference <em>Feature Path Domain Model
* Reference</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.emf.ecp.view.spi.model.VFeaturePathDomainModelReference
* @generated
*/
public Adapter createFeaturePathDomainModelReferenceAdapter() {
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;
}
} // TableAdapterFactory