source: josm/trunk/src/org/openstreetmap/josm/io/session/SessionLayerImporter.java@ 11035

Last change on this file since 11035 was 10600, checked in by Don-vip, 8 years ago

see #11390 - sonar - squid:S1609 - Java 8: @FunctionalInterface annotation should be used to flag Single Abstract Method interfaces

  • Property svn:eol-style set to native
File size: 1008 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.io.session;
3
4import java.io.IOException;
5
6import org.openstreetmap.josm.gui.layer.Layer;
7import org.openstreetmap.josm.gui.progress.ProgressMonitor;
8import org.openstreetmap.josm.io.IllegalDataException;
9import org.openstreetmap.josm.io.session.SessionReader.ImportSupport;
10import org.w3c.dom.Element;
11
12/**
13 * Session layer importer.
14 * @since 4668
15 * @since 10600 (functional interface)
16 */
17@FunctionalInterface
18public interface SessionLayerImporter {
19
20 /**
21 * Load the layer from xml meta-data.
22 * @param elem XML element
23 * @param support support class providing import utilities
24 * @param progressMonitor progress monitor
25 * @return the resulting layer
26 * @throws IOException if any I/O error occurs
27 * @throws IllegalDataException if invalid data is read
28 */
29 Layer load(Element elem, ImportSupport support, ProgressMonitor progressMonitor) throws IOException, IllegalDataException;
30}
31
Note: See TracBrowser for help on using the repository browser.