All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nasdanika.models.excel.util.ExcelAdapterFactory Maven / Gradle / Ivy

/**
 */
package org.nasdanika.models.excel.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.nasdanika.models.excel.*;

/**
 * 
 * The Adapter Factory for the model.
 * It provides an adapter createXXX method for each class of the model.
 * 
 * @see org.nasdanika.models.excel.ExcelPackage
 * @generated
 */
public class ExcelAdapterFactory extends AdapterFactoryImpl {
	/**
	 * The cached model package.
	 * 
	 * 
	 * @generated
	 */
	protected static ExcelPackage modelPackage;

	/**
	 * Creates an instance of the adapter factory.
	 * 
	 * 
	 * @generated
	 */
	public ExcelAdapterFactory() {
		if (modelPackage == null) {
			modelPackage = ExcelPackage.eINSTANCE;
		}
	}

	/**
	 * Returns whether this factory is applicable for the type of the object.
	 * 
	 * This implementation returns true if the object is either the model's package or is an instance object of the model.
	 * 
	 * @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 createXXX methods.
	 * 
	 * 
	 * @generated
	 */
	protected ExcelSwitch modelSwitch =
		new ExcelSwitch() {
			@Override
			public Adapter caseWorkbook(Workbook object) {
				return createWorkbookAdapter();
			}
			@Override
			public Adapter caseSheet(Sheet object) {
				return createSheetAdapter();
			}
			@Override
			public Adapter caseRowSheet(RowSheet object) {
				return createRowSheetAdapter();
			}
			@Override
			public Adapter caseListSheet(ListSheet object) {
				return createListSheetAdapter();
			}
			@Override
			public Adapter caseRow(Row object) {
				return createRowAdapter();
			}
			@Override
			public Adapter caseCellRow(CellRow object) {
				return createCellRowAdapter();
			}
			@Override
			public Adapter caseEObjectRow(EObjectRow object) {
				return createEObjectRowAdapter();
			}
			@Override
			public Adapter caseListRow(ListRow object) {
				return createListRowAdapter();
			}
			@Override
			public Adapter caseCell(Cell object) {
				return createCellAdapter();
			}
			@Override
			public Adapter caseBlankCell(BlankCell object) {
				return createBlankCellAdapter();
			}
			@Override
			public Adapter caseBooleanCell(BooleanCell object) {
				return createBooleanCellAdapter();
			}
			@Override
			public Adapter caseDateCell(DateCell object) {
				return createDateCellAdapter();
			}
			@Override
			public Adapter caseErrorCell(ErrorCell object) {
				return createErrorCellAdapter();
			}
			@Override
			public Adapter caseNumericCell(NumericCell object) {
				return createNumericCellAdapter();
			}
			@Override
			public Adapter caseStringCell(StringCell object) {
				return createStringCellAdapter();
			}
			@Override
			public Adapter caseEObjectCell(EObjectCell object) {
				return createEObjectCellAdapter();
			}
			@Override
			public Adapter caseReferenceCell(ReferenceCell object) {
				return createReferenceCellAdapter();
			}
			@Override
			public Adapter defaultCase(EObject object) {
				return createEObjectAdapter();
			}
		};

	/**
	 * Creates an adapter for the target.
	 * 
	 * 
	 * @param target the object to adapt.
	 * @return the adapter for the target.
	 * @generated
	 */
	@Override
	public Adapter createAdapter(Notifier target) {
		return modelSwitch.doSwitch((EObject)target);
	}


	/**
	 * Creates a new adapter for an object of class '{@link org.nasdanika.models.excel.Workbook Workbook}'.
	 * 
	 * 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.
	 * 
	 * @return the new adapter.
	 * @see org.nasdanika.models.excel.Workbook
	 * @generated
	 */
	public Adapter createWorkbookAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link org.nasdanika.models.excel.Sheet Sheet}'.
	 * 
	 * 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.
	 * 
	 * @return the new adapter.
	 * @see org.nasdanika.models.excel.Sheet
	 * @generated
	 */
	public Adapter createSheetAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link org.nasdanika.models.excel.RowSheet Row Sheet}'.
	 * 
	 * 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.
	 * 
	 * @return the new adapter.
	 * @see org.nasdanika.models.excel.RowSheet
	 * @generated
	 */
	public Adapter createRowSheetAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link org.nasdanika.models.excel.ListSheet List Sheet}'.
	 * 
	 * 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.
	 * 
	 * @return the new adapter.
	 * @see org.nasdanika.models.excel.ListSheet
	 * @generated
	 */
	public Adapter createListSheetAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link org.nasdanika.models.excel.Row Row}'.
	 * 
	 * 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.
	 * 
	 * @return the new adapter.
	 * @see org.nasdanika.models.excel.Row
	 * @generated
	 */
	public Adapter createRowAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link org.nasdanika.models.excel.CellRow Cell Row}'.
	 * 
	 * 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.
	 * 
	 * @return the new adapter.
	 * @see org.nasdanika.models.excel.CellRow
	 * @generated
	 */
	public Adapter createCellRowAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link org.nasdanika.models.excel.EObjectRow EObject Row}'.
	 * 
	 * 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.
	 * 
	 * @return the new adapter.
	 * @see org.nasdanika.models.excel.EObjectRow
	 * @generated
	 */
	public Adapter createEObjectRowAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link org.nasdanika.models.excel.ListRow List Row}'.
	 * 
	 * 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.
	 * 
	 * @return the new adapter.
	 * @see org.nasdanika.models.excel.ListRow
	 * @generated
	 */
	public Adapter createListRowAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link org.nasdanika.models.excel.Cell Cell}'.
	 * 
	 * 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.
	 * 
	 * @return the new adapter.
	 * @see org.nasdanika.models.excel.Cell
	 * @generated
	 */
	public Adapter createCellAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link org.nasdanika.models.excel.BlankCell Blank Cell}'.
	 * 
	 * 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.
	 * 
	 * @return the new adapter.
	 * @see org.nasdanika.models.excel.BlankCell
	 * @generated
	 */
	public Adapter createBlankCellAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link org.nasdanika.models.excel.BooleanCell Boolean Cell}'.
	 * 
	 * 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.
	 * 
	 * @return the new adapter.
	 * @see org.nasdanika.models.excel.BooleanCell
	 * @generated
	 */
	public Adapter createBooleanCellAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link org.nasdanika.models.excel.DateCell Date Cell}'.
	 * 
	 * 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.
	 * 
	 * @return the new adapter.
	 * @see org.nasdanika.models.excel.DateCell
	 * @generated
	 */
	public Adapter createDateCellAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link org.nasdanika.models.excel.ErrorCell Error Cell}'.
	 * 
	 * 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.
	 * 
	 * @return the new adapter.
	 * @see org.nasdanika.models.excel.ErrorCell
	 * @generated
	 */
	public Adapter createErrorCellAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link org.nasdanika.models.excel.NumericCell Numeric Cell}'.
	 * 
	 * 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.
	 * 
	 * @return the new adapter.
	 * @see org.nasdanika.models.excel.NumericCell
	 * @generated
	 */
	public Adapter createNumericCellAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link org.nasdanika.models.excel.StringCell String Cell}'.
	 * 
	 * 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.
	 * 
	 * @return the new adapter.
	 * @see org.nasdanika.models.excel.StringCell
	 * @generated
	 */
	public Adapter createStringCellAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link org.nasdanika.models.excel.EObjectCell EObject Cell}'.
	 * 
	 * 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.
	 * 
	 * @return the new adapter.
	 * @see org.nasdanika.models.excel.EObjectCell
	 * @generated
	 */
	public Adapter createEObjectCellAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link org.nasdanika.models.excel.ReferenceCell Reference Cell}'.
	 * 
	 * 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.
	 * 
	 * @return the new adapter.
	 * @see org.nasdanika.models.excel.ReferenceCell
	 * @generated
	 */
	public Adapter createReferenceCellAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for the default case.
	 * 
	 * This default implementation returns null.
	 * 
	 * @return the new adapter.
	 * @generated
	 */
	public Adapter createEObjectAdapter() {
		return null;
	}

} //ExcelAdapterFactory




© 2015 - 2024 Weber Informatics LLC | Privacy Policy