Skip to content

Package: GenerationExporter

GenerationExporter

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: * Stefan Dirix - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emf.ecp.emf2web.exporter;
15:
16: import java.io.IOException;
17: import java.util.Collection;
18:
19: import org.eclipse.emf.ecp.emf2web.controller.xtend.GenerationInfo;
20:
21: /**
22: * Exporter responsible to export generated content.
23: *
24: * @author Stefan Dirix
25: *
26: */
27: public interface GenerationExporter {
28:
29:         /**
30:          * Export the given {@link GenerationInfo}s' content.
31:          *
32:          * @param generationInfos
33:          * A collection of {@link GenerationInfo}s which shall be exported.
34:          * @param userInteraction
35:          * Handles the communication with the user.
36:          * @throws IOException
37:          * If something went wrong during export.
38:          */
39:         void export(Collection<? extends GenerationInfo> generationInfos, UserInteraction userInteraction)
40:                 throws IOException;
41: }