Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.actions.upload;
|
---|
3 |
|
---|
4 | import org.openstreetmap.josm.data.APIDataSet;
|
---|
5 |
|
---|
6 | /**
|
---|
7 | * A check right before the upload. The UploadHook may modify the uploaded data
|
---|
8 | * silently, it may display a warning message to the user or prevent the upload
|
---|
9 | * altogether.
|
---|
10 | */
|
---|
11 | @FunctionalInterface
|
---|
12 | public interface UploadHook {
|
---|
13 |
|
---|
14 | /**
|
---|
15 | * Checks the upload.
|
---|
16 | * @param apiDataSet the data to upload
|
---|
17 | * @return {@code true} if upload is possible
|
---|
18 | */
|
---|
19 | boolean checkUpload(APIDataSet apiDataSet);
|
---|
20 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.