Commit 5a0bec3d authored by eric.duminil's avatar eric.duminil
Browse files

Removing CRLF from repository.

parent 3f54801c
package eu.simstadt.nf4j.async; package eu.simstadt.nf4j.async;
import java.io.File; import java.io.File;
import eu.simstadt.nf4j.ExportJobDescriptor; import eu.simstadt.nf4j.ExportJobDescriptor;
import eu.simstadt.nf4j.ImportJobDescriptor; import eu.simstadt.nf4j.ImportJobDescriptor;
import eu.simstadt.nf4j.InvalidJobDescriptorException; import eu.simstadt.nf4j.InvalidJobDescriptorException;
/** /**
* Implementations of JobBuilder build nF import and export jobs using nF's XML job format. There should be * Implementations of JobBuilder build nF import and export jobs using nF's XML job format. There should be
* one implementation for each version of novaFACTORY. The supported version should be returned by * one implementation for each version of novaFACTORY. The supported version should be returned by
* supportsNFVersion(). * supportsNFVersion().
* *
* @param <I> The import job descriptor implementation for this builder. * @param <I> The import job descriptor implementation for this builder.
* @param <E> The export job descriptor implementation for this builder. * @param <E> The export job descriptor implementation for this builder.
* *
* @author Marcel Bruse * @author Marcel Bruse
*/ */
public interface JobFileBuilder<I extends ImportJobDescriptor, E extends ExportJobDescriptor> { public interface JobFileBuilder<I extends ImportJobDescriptor, E extends ExportJobDescriptor> {
/** /**
* @return Tells the caller the supported version of novaFACTORY. * @return Tells the caller the supported version of novaFACTORY.
*/ */
public String supportsNFVersion(); public String supportsNFVersion();
/** /**
* @return The supported version of the XML export job format. * @return The supported version of the XML export job format.
*/ */
public String supportsExportJobVersion(); public String supportsExportJobVersion();
/** /**
* @return The supported version of the XML import job format. * @return The supported version of the XML import job format.
*/ */
public String supportsImportJobVersion(); public String supportsImportJobVersion();
/** /**
* Builds a XML export job document. This file can be sent to a nF server instance by the caller afterwards. * Builds a XML export job document. This file can be sent to a nF server instance by the caller afterwards.
* *
* @param jobDescriptor A job descriptor which describes the export job with all its attributes according to * @param jobDescriptor A job descriptor which describes the export job with all its attributes according to
* a valid nF export job DTD. * a valid nF export job DTD.
* @return Returns a XML export job document. * @return Returns a XML export job document.
*/ */
public File buildExportJobFile(E exportJobDescriptor) throws InvalidJobDescriptorException; public File buildExportJobFile(E exportJobDescriptor) throws InvalidJobDescriptorException;
/** /**
* Builds a zipped import job file. This file can be sent to a nF server instance by the caller afterwards. * Builds a zipped import job file. This file can be sent to a nF server instance by the caller afterwards.
* *
* @param jobDescriptor A job descriptor which describes the import job with all its attributes according to * @param jobDescriptor A job descriptor which describes the import job with all its attributes according to
* the nF manual. * the nF manual.
* @return Returns a zipped import job file. * @return Returns a zipped import job file.
*/ */
public File buildImportJobFile(I importJobDescriptor) throws InvalidJobDescriptorException; public File buildImportJobFile(I importJobDescriptor) throws InvalidJobDescriptorException;
} }
This diff is collapsed.
package eu.simstadt.nf4j.async; package eu.simstadt.nf4j.async;
/** /**
* These are the known operation modes of the nF import servlet. * These are the known operation modes of the nF import servlet.
* *
* @author Marcel Bruse * @author Marcel Bruse
*/ */
public enum Operation { public enum Operation {
REP, // Replaces whole existing buildings, REP, // Replaces whole existing buildings,
REPUPD, // Replaces whole existing buildings and adds new buildings, REPUPD, // Replaces whole existing buildings and adds new buildings,
UPD, // Update, same as REP, UPD, // Update, same as REP,
CHG, // Change, same as REPUPD, CHG, // Change, same as REPUPD,
DEL, // Deletes the geometry of a particular LOD, DEL, // Deletes the geometry of a particular LOD,
DELALL // Deletes a whole building DELALL // Deletes a whole building
} }
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment