Package net.datenwerke.eximport.ex
Class ExporterImpl<C extends ExportItemConfig<?>>
java.lang.Object
net.datenwerke.eximport.ex.ExporterImpl<C>
- Type Parameters:
C-
- All Implemented Interfaces:
Exporter
- Direct Known Subclasses:
GenericEntityExporter,TreeNodeExporter
public abstract class ExporterImpl<C extends ExportItemConfig<?>>
extends Object
implements Exporter
Provides a base implementation for simple exporters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Collection<EnclosedObjectConfig> addEnclosed(ExportSupervisor exportSupervisor, Collection<ExportItemConfig<?>> configItems) addEnclosed(ExportSupervisor exportSupervisor, EnclosedObjectConfig enclosedCon) final Collection<ExportItemConfig<?>> addReferences(ExportSupervisor exportSupervisor, Collection<ExportItemConfig<?>> configItems) addReferences(ExportSupervisor exportSupervisor, EnclosedObjectConfig enclosedCon) final voidconfigure(Collection<ExporterSpecificExportConfig> specificConfigs, Collection<ExportItemConfig<?>> configItems) Configures the exporter and tells it what items it should export.booleanconsumes(ExportItemConfig<?> config) Tells the exportservice whether this exporter can handle the given config item.booleanTells the exportservice if this exporter can export the given object.final voidexport(ExportSupervisor exportSupervisor) Starts the export of the given configuration.voidexportEnclosed(ExportSupervisor supervisor, EnclosedObjectConfig config) Exports an enclosed entity.getConfigFor(Object value) getDisplayNameFor(ExportedItem exportedItem) Generates a name for the ExportedItem to display to the userbooleanhasConfigFor(Object value) voidsetReflectionServices(ReflectionService reflectionServices) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.datenwerke.eximport.ex.Exporter
consumes, generateExportConfig, getExporterId
-
Constructor Details
-
ExporterImpl
public ExporterImpl()
-
-
Method Details
-
setReflectionServices
-
consumes
Description copied from interface:ExporterTells the exportservice whether this exporter can handle the given config item. -
configure
public final void configure(Collection<ExporterSpecificExportConfig> specificConfigs, Collection<ExportItemConfig<?>> configItems) Description copied from interface:ExporterConfigures the exporter and tells it what items it should export.Exporter should throw Exception in case the configuration is invalid.
-
export
Description copied from interface:ExporterStarts the export of the given configuration.- Specified by:
exportin interfaceExporter- Parameters:
exportSupervisor-- Throws:
XMLStreamException
-
consumesEnclosedObject
Description copied from interface:ExporterTells the exportservice if this exporter can export the given object.This case occurs if an enclosed entity is encountered and the exporter asks the supervisor for help
- Specified by:
consumesEnclosedObjectin interfaceExporter
-
exportEnclosed
Description copied from interface:ExporterExports an enclosed entity.- Specified by:
exportEnclosedin interfaceExporter
-
addReferences
public final Collection<ExportItemConfig<?>> addReferences(ExportSupervisor exportSupervisor, Collection<ExportItemConfig<?>> configItems) - Specified by:
addReferencesin interfaceExporter
-
addEnclosed
public final Collection<EnclosedObjectConfig> addEnclosed(ExportSupervisor exportSupervisor, Collection<ExportItemConfig<?>> configItems) - Specified by:
addEnclosedin interfaceExporter
-
addReferences
public Collection<ExportItemConfig<?>> addReferences(ExportSupervisor exportSupervisor, EnclosedObjectConfig enclosedCon) - Specified by:
addReferencesin interfaceExporter
-
addEnclosed
public Collection<EnclosedObjectConfig> addEnclosed(ExportSupervisor exportSupervisor, EnclosedObjectConfig enclosedCon) - Specified by:
addEnclosedin interfaceExporter
-
hasConfigFor
- Specified by:
hasConfigForin interfaceExporter
-
getConfigFor
- Specified by:
getConfigForin interfaceExporter
-
getDisplayNameFor
Description copied from interface:ExporterGenerates a name for the ExportedItem to display to the user- Specified by:
getDisplayNameForin interfaceExporter- Parameters:
exportedItem-
-