001// License: GPL. For details, see LICENSE file.
002package org.openstreetmap.josm.actions.upload;
003
004import org.openstreetmap.josm.data.APIDataSet;
005
006@FunctionalInterface
007public interface UploadHook {
008
009    /**
010     * Checks the upload.
011     * @param apiDataSet the data to upload
012     * @return {@code true} if upload is possible
013     */
014    boolean checkUpload(APIDataSet apiDataSet);
015}