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 protectedAbstractSessionExporter(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.booleanrequiresZip()Return true, if some data needs to be included in the zip archive.booleanshallExport()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:SessionLayerExporterReturn the Layers, this Layer depends on.- Specified by:
getDependenciesin interfaceSessionLayerExporter- Returns:
- the layer dependencies
-
shallExport
public boolean shallExport()
Description copied from interface:SessionLayerExporterReturn true, if the layer should be included in the list of exported layers. The user can veto this in the export panel.- Specified by:
shallExportin interfaceSessionLayerExporter- Returns:
trueif the layer should be included in the list of exported layers,falseotherwise.
-
requiresZip
public boolean requiresZip()
Description copied from interface:SessionLayerExporterReturn 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:
requiresZipin interfaceSessionLayerExporter- Returns:
trueif some data needs to be included in the zip archive,falseotherwise.
-
-