Skip to content

Package: EMFFormsSpreadsheetExporter

EMFFormsSpreadsheetExporter

nameinstructionbranchcomplexitylinemethod
static {...}
M: 0 C: 5
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2015 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * Eugen Neufeld - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emfforms.spi.spreadsheet.core.transfer;
15:
16: import java.util.Collection;
17:
18: import org.apache.poi.ss.usermodel.Workbook;
19: import org.eclipse.emf.ecore.EObject;
20: import org.eclipse.emf.ecp.view.spi.model.VViewModelProperties;
21: import org.eclipse.emfforms.internal.spreadsheet.core.transfer.EMFFormsSpreadsheetExporterImpl;
22:
23: /**
24: * Entry point for triggering the rendering to an Spreadsheet document.
25: *
26: * @author Eugen Neufeld
27: *
28: */
29: public interface EMFFormsSpreadsheetExporter {
30:
31:         /**
32:          * Singleton to get access to the exporter.
33:          */
34:         EMFFormsSpreadsheetExporter INSTANCE = new EMFFormsSpreadsheetExporterImpl();
35:
36:         /**
37:          * Starts the rendering to the Spreadsheet document.
38:          *
39:          * @param domainObjects The collection of {@link EObject} containing the data to export
40:          * @param viewEobject the eObject which will be used to determine the view model
41:          * @param properties the {@link VViewModelProperties properties} which will be used to determine the view model
42:          * @return The created {@link Workbook}
43:          */
44:         Workbook render(Collection<? extends EObject> domainObjects, EObject viewEobject, VViewModelProperties properties);
45: }