Class JMadModelDefinitionExporterImpl

    • Constructor Detail

      • JMadModelDefinitionExporterImpl

        public JMadModelDefinitionExporterImpl()
    • Method Detail

      • export

        public java.io.File export​(JMadModelDefinitionExportRequest exportRequest,
                                   java.io.File exportPath)
        Description copied from interface: JMadModelDefinitionExporter
        exports the model definition to the given path. If the path is a directory then it is exported as separated local files, If is a filename then it is exported as a jmd.zip file. only the optics, sequences and ranges according to the export request are actually exported.
        Specified by:
        export in interface JMadModelDefinitionExporter
        Parameters:
        exportRequest - the export request to select the scope of the export
        exportPath - the destination path
        Returns:
        either the xml file to which the model definition was written if the export was to separate files or the zip file to which the whole model definition and files were written.
      • exportAsFiles

        public java.io.File exportAsFiles​(JMadModelDefinitionExportRequest exportRequest,
                                          java.io.File exportPath)
        Description copied from interface: JMadModelDefinitionExporter
        exports the model definition to separate files within the destination directory only the optics, sequences and ranges according to the export request are actually exported.
        Specified by:
        exportAsFiles in interface JMadModelDefinitionExporter
        exportPath - the destination directory
        Returns:
        the xml file to which the model definition was written to
      • exportAsZip

        public java.io.File exportAsZip​(JMadModelDefinitionExportRequest exportRequest,
                                        java.io.File file)
        Description copied from interface: JMadModelDefinitionExporter
        exports the model definition to a zip file containing all the required files. only the optics, sequences and ranges according to the export request are actually exported.
        Specified by:
        exportAsZip in interface JMadModelDefinitionExporter
        file - the zip file which shall finally contain the model definitioin
        Returns:
        the zip file to which the data was written (can be different since the default extension might have been added)