Class SaltXMLExporter

  • All Implemented Interfaces:
    Thread.UncaughtExceptionHandler, PepperExporter, PepperModule

    public class SaltXMLExporter
    extends PepperExporterImpl
    implements PepperExporter
    This is a PepperExporter which exports a salt model to the SaltXML format. This module stores every document in a separate file. These files then contains the document structure. The corpus structure is stored in a single file called saltProject + SALT_FILE_ENDING. The value SALT_FILE_ENDING can be got by method getSaltFileEnding().

    When method start() is called, the saltProject will be attached to a resource with the uri "this.getCorpusDefinition().getCorpusPath().toFileString() +"/ "+ " saltProject"+ SALT_ENDING". Before it can be stored, all documents have to be processed.
    The module now waits for documents which can be exported. When a document finished all previous modules, it can be exported. This means, that 1) every document will also get a resource with the uri "this.getCorpusDefinition().getCorpusPath().toFileString() + " / " sElementId.getSElementPath()+ SALT_FILE_ENDING". And 2) the document structure will be stored to file.
    After all was done, the saltProject will be exported.
    Version:
    1.0
    Author:
    Florian Zipser