Package org.openstreetmap.josm.data.osm
Class OsmDataManager
java.lang.Object
org.openstreetmap.josm.data.osm.OsmDataManager
- All Implemented Interfaces:
IOsmDataManager
Global OSM dataset registry.
- Since:
- 14143
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines if the list of data sets managed by JOSM containsds.Gets the active data set (can be read-only).Gets the active edit data set (not read-only).Collection<? extends IPrimitive>Replies the current selected primitives, from a end-user point of view.Replies the current selected OSM primitives, from a end-user point of view.static OsmDataManagerReturns the unique instance.voidSets the active data set (and also edit data set if not read-only).
-
Constructor Details
-
OsmDataManager
private OsmDataManager()
-
-
Method Details
-
getInstance
Returns the unique instance.- Returns:
- the unique instance
-
getInProgressSelection
Description copied from interface:IOsmDataManagerReplies the current selected OSM primitives, from a end-user point of view. It is not always technically the same collection of primitives thanOsmData.getSelected().- Specified by:
getInProgressSelectionin interfaceIOsmDataManager- Returns:
- The current selected OSM primitives, from a end-user point of view. Can be
null.
-
getInProgressISelection
Description copied from interface:IOsmDataManagerReplies the current selected primitives, from a end-user point of view. It is not always technically the same collection of primitives thanOsmData.getSelected().- Specified by:
getInProgressISelectionin interfaceIOsmDataManager- Returns:
- The current selected primitives, from a end-user point of view. Can be
null.
-
getEditDataSet
Description copied from interface:IOsmDataManagerGets the active edit data set (not read-only).- Specified by:
getEditDataSetin interfaceIOsmDataManager- Returns:
- That data set,
null. - See Also:
-
getActiveDataSet
Description copied from interface:IOsmDataManagerGets the active data set (can be read-only).- Specified by:
getActiveDataSetin interfaceIOsmDataManager- Returns:
- That data set,
null. - See Also:
-
setActiveDataSet
Description copied from interface:IOsmDataManagerSets the active data set (and also edit data set if not read-only).- Specified by:
setActiveDataSetin interfaceIOsmDataManager- Parameters:
ds- New data set, ornull
-
containsDataSet
Description copied from interface:IOsmDataManagerDetermines if the list of data sets managed by JOSM containsds.- Specified by:
containsDataSetin interfaceIOsmDataManager- Parameters:
ds- the data set to look for- Returns:
trueif the list of data sets managed by JOSM containsds
-