Skip to content

Package: EMFFormsSpreadsheetStreamExporter

EMFFormsSpreadsheetStreamExporter

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

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.stream;
15:
16: import java.io.OutputStream;
17: import java.util.Collection;
18:
19: import org.eclipse.emf.ecore.EObject;
20: import org.eclipse.emf.ecp.view.spi.model.VViewModelProperties;
21: import org.eclipse.emfforms.internal.spreadsheet.stream.EMFFormsSpreadsheetStreamExporterImpl;
22:
23: /**
24: * Entry point for triggering the rendering to an Spreadsheet document.
25: *
26: * @author Eugen Neufeld
27: *
28: */
29: public interface EMFFormsSpreadsheetStreamExporter {
30:
31:         /**
32:          * Singleton to get access to the exporter.
33:          */
34:         EMFFormsSpreadsheetStreamExporter INSTANCE = new EMFFormsSpreadsheetStreamExporterImpl();
35:
36:         /**
37:          * Starts the rendering to the Spreadsheet document.
38:          *
39:          * @param outputStream The {@link OutputStream} to write to
40:          * @param domainObjects The collection of {@link EObject} containing the data to export
41:          * @param viewEobject the eObject which will be used to determine the view model
42:          * @param properties the {@link VViewModelProperties properties} which will be used to determine the view model
43:          */
44:         void render(OutputStream outputStream, Collection<EObject> domainObjects, EObject viewEobject,
45:                 VViewModelProperties properties);
46: }