org.nasdanika.models.excel.impl.ExcelFactoryImpl Maven / Gradle / Ivy
/**
*/
package org.nasdanika.models.excel.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
import org.nasdanika.models.excel.*;
/**
*
* An implementation of the model Factory.
*
* @generated
*/
public class ExcelFactoryImpl extends EFactoryImpl implements ExcelFactory {
/**
* Creates the default factory implementation.
*
*
* @generated
*/
public static ExcelFactory init() {
try {
ExcelFactory theExcelFactory = (ExcelFactory)EPackage.Registry.INSTANCE.getEFactory(ExcelPackage.eNS_URI);
if (theExcelFactory != null) {
return theExcelFactory;
}
}
catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new ExcelFactoryImpl();
}
/**
* Creates an instance of the factory.
*
*
* @generated
*/
public ExcelFactoryImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
case ExcelPackage.WORKBOOK: return createWorkbook();
case ExcelPackage.ROW_SHEET: return createRowSheet();
case ExcelPackage.LIST_SHEET: return createListSheet();
case ExcelPackage.CELL_ROW: return createCellRow();
case ExcelPackage.EOBJECT_ROW: return createEObjectRow();
case ExcelPackage.LIST_ROW: return createListRow();
case ExcelPackage.CELL: return createCell();
case ExcelPackage.BLANK_CELL: return createBlankCell();
case ExcelPackage.BOOLEAN_CELL: return createBooleanCell();
case ExcelPackage.DATE_CELL: return createDateCell();
case ExcelPackage.ERROR_CELL: return createErrorCell();
case ExcelPackage.NUMERIC_CELL: return createNumericCell();
case ExcelPackage.STRING_CELL: return createStringCell();
case ExcelPackage.EOBJECT_CELL: return createEObjectCell();
case ExcelPackage.REFERENCE_CELL: return createReferenceCell();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
*
*
* @generated
*/
@Override
public Workbook createWorkbook() {
WorkbookImpl workbook = new WorkbookImpl();
return workbook;
}
/**
*
*
* @generated
*/
@Override
public RowSheet createRowSheet() {
RowSheetImpl rowSheet = new RowSheetImpl();
return rowSheet;
}
/**
*
*
* @generated
*/
@Override
public ListSheet createListSheet() {
ListSheetImpl listSheet = new ListSheetImpl();
return listSheet;
}
/**
*
*
* @generated
*/
@Override
public CellRow createCellRow() {
CellRowImpl cellRow = new CellRowImpl();
return cellRow;
}
/**
*
*
* @generated
*/
@Override
public EObjectRow createEObjectRow() {
EObjectRowImpl eObjectRow = new EObjectRowImpl();
return eObjectRow;
}
/**
*
*
* @generated
*/
@Override
public ListRow createListRow() {
ListRowImpl listRow = new ListRowImpl();
return listRow;
}
/**
*
*
* @generated
*/
@Override
public Cell createCell() {
CellImpl cell = new CellImpl();
return cell;
}
/**
*
*
* @generated
*/
@Override
public BlankCell createBlankCell() {
BlankCellImpl blankCell = new BlankCellImpl();
return blankCell;
}
/**
*
*
* @generated
*/
@Override
public BooleanCell createBooleanCell() {
BooleanCellImpl booleanCell = new BooleanCellImpl();
return booleanCell;
}
/**
*
*
* @generated
*/
@Override
public DateCell createDateCell() {
DateCellImpl dateCell = new DateCellImpl();
return dateCell;
}
/**
*
*
* @generated
*/
@Override
public ErrorCell createErrorCell() {
ErrorCellImpl errorCell = new ErrorCellImpl();
return errorCell;
}
/**
*
*
* @generated
*/
@Override
public NumericCell createNumericCell() {
NumericCellImpl numericCell = new NumericCellImpl();
return numericCell;
}
/**
*
*
* @generated
*/
@Override
public StringCell createStringCell() {
StringCellImpl stringCell = new StringCellImpl();
return stringCell;
}
/**
*
*
* @generated
*/
@Override
public EObjectCell createEObjectCell() {
EObjectCellImpl eObjectCell = new EObjectCellImpl();
return eObjectCell;
}
/**
*
*
* @generated
*/
@Override
public ReferenceCell createReferenceCell() {
ReferenceCellImpl referenceCell = new ReferenceCellImpl();
return referenceCell;
}
/**
*
*
* @generated
*/
@Override
public ExcelPackage getExcelPackage() {
return (ExcelPackage)getEPackage();
}
/**
*
*
* @deprecated
* @generated
*/
@Deprecated
public static ExcelPackage getPackage() {
return ExcelPackage.eINSTANCE;
}
} //ExcelFactoryImpl