source: josm/trunk/src/org/openstreetmap/josm/data/osm/ReadOnly.java@ 13437

Last change on this file since 13437 was 13434, checked in by Don-vip, 6 years ago

see #8039, see #10456 - support read-only data layers

  • Property svn:eol-style set to native
File size: 532 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.osm;
3
4/**
5 * To be implemented by modifiable objects to offer a "read-only" mode.
6 * @since 13434
7 */
8public interface ReadOnly {
9
10 /**
11 * Enables the read-only mode.
12 */
13 void setReadOnly();
14
15 /**
16 * Disables the read-only mode.
17 */
18 void unsetReadOnly();
19
20 /**
21 * Determines if this is read-only (thus it cannot be modified).
22 * @return {@code true} if this is read-only
23 */
24 boolean isReadOnly();
25}
Note: See TracBrowser for help on using the repository browser.