source: josm/trunk/src/org/openstreetmap/josm/actions/upload/UploadHook.java@ 12581

Last change on this file since 12581 was 12581, checked in by bastiK, 7 years ago

see #14794 - javadoc

  • Property svn:eol-style set to native
File size: 565 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.actions.upload;
3
4import 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
12public 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.