Package org.openstreetmap.josm.data.osm
Interface IOsmDataManager
-
- All Known Implementing Classes:
OsmDataManager
public interface IOsmDataManager
Global OSM dataset registry.- Since:
- 14143
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
containsDataSet(DataSet ds)
Determines if the list of data sets managed by JOSM containsds
.DataSet
getActiveDataSet()
Gets the active data set (can be read-only).DataSet
getEditDataSet()
Gets the active edit data set (not read-only).java.util.Collection<? extends IPrimitive>
getInProgressISelection()
Replies the current selected primitives, from a end-user point of view.java.util.Collection<OsmPrimitive>
getInProgressSelection()
Replies the current selected OSM primitives, from a end-user point of view.void
setActiveDataSet(DataSet ds)
Sets the active data set (and also edit data set if not read-only).
-
-
-
Method Detail
-
getInProgressSelection
java.util.Collection<OsmPrimitive> getInProgressSelection()
Replies the current selected OSM primitives, from a end-user point of view. It is not always technically the same collection of primitives thanOsmData.getSelected()
.- Returns:
- The current selected OSM primitives, from a end-user point of view. Can be
null
.
-
getInProgressISelection
java.util.Collection<? extends IPrimitive> getInProgressISelection()
Replies the current selected primitives, from a end-user point of view. It is not always technically the same collection of primitives thanOsmData.getSelected()
.- Returns:
- The current selected primitives, from a end-user point of view. Can be
null
.
-
getEditDataSet
DataSet getEditDataSet()
Gets the active edit data set (not read-only).- Returns:
- That data set,
null
. - See Also:
getActiveDataSet()
-
getActiveDataSet
DataSet getActiveDataSet()
Gets the active data set (can be read-only).- Returns:
- That data set,
null
. - See Also:
getEditDataSet()
-
setActiveDataSet
void setActiveDataSet(DataSet ds)
Sets the active data set (and also edit data set if not read-only).- Parameters:
ds
- New data set, ornull
-
containsDataSet
boolean containsDataSet(DataSet ds)
Determines if the list of data sets managed by JOSM containsds
.- Parameters:
ds
- the data set to look for- Returns:
true
if the list of data sets managed by JOSM containsds
-
-