001// License: GPL. For details, see LICENSE file.
002package org.openstreetmap.josm.gui.layer;
003
004/**
005 * Interface for layers that can download data.
006 * @see UploadToServer
007 * @since 13453
008 */
009public interface DownloadFromServer {
010
011    /**
012     * Determines if the layer is able to download data and implements the
013     * {@code DownloadFromServer} interface. A layer that implements the
014     * {@code DownloadFromServer} interface must return {@code true}.
015     *
016     * @return {@code true} if the layer is able to download data; {@code false}, otherwise
017     */
018    boolean isDownloadable();
019}