Class AbstractSessionExporter<T extends Layer>
- java.lang.Object
-
- org.openstreetmap.josm.io.session.AbstractSessionExporter<T>
-
- Type Parameters:
T
- Type of exported layer
- All Implemented Interfaces:
SessionLayerExporter
- Direct Known Subclasses:
GenericSessionExporter
,GeoImageSessionExporter
,ImagerySessionExporter
,MarkerSessionExporter
public abstract class AbstractSessionExporter<T extends Layer> extends java.lang.Object implements SessionLayerExporter
Abstract superclass of all session layer exporters.- Since:
- 9455
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSessionExporter(T layer)
Constructs a newAbstractSessionExporter
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<Layer>
getDependencies()
Return the Layers, this Layer depends on.boolean
requiresZip()
Return true, if some data needs to be included in the zip archive.boolean
shallExport()
Return true, if the layer should be included in the list of exported layers.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openstreetmap.josm.io.session.SessionLayerExporter
export, getExportPanel
-
-
-
-
Constructor Detail
-
AbstractSessionExporter
protected AbstractSessionExporter(T layer)
Constructs a newAbstractSessionExporter
.- Parameters:
layer
- layer to export
-
-
Method Detail
-
getDependencies
public java.util.Collection<Layer> getDependencies()
Description copied from interface:SessionLayerExporter
Return the Layers, this Layer depends on.- Specified by:
getDependencies
in interfaceSessionLayerExporter
- Returns:
- the layer dependencies
-
shallExport
public boolean shallExport()
Description copied from interface:SessionLayerExporter
Return true, if the layer should be included in the list of exported layers. The user can veto this in the export panel.- Specified by:
shallExport
in interfaceSessionLayerExporter
- Returns:
true
if the layer should be included in the list of exported layers,false
otherwise.
-
requiresZip
public boolean requiresZip()
Description copied from interface:SessionLayerExporter
Return true, if some data needs to be included in the zip archive. This decision depends on the user selection in the export panel. If any layer requires zip, the user can only save as .joz. Otherwise both .jos and .joz are possible.- Specified by:
requiresZip
in interfaceSessionLayerExporter
- Returns:
true
if some data needs to be included in the zip archive,false
otherwise.
-
-