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