Package de.xima.fc.formstore
Class ValidatedFormStoreFile
- java.lang.Object
-
- de.xima.fc.formstore.ValidatedFormStoreFile
-
- All Implemented Interfaces:
Serializable
,AutoCloseable
public final class ValidatedFormStoreFile extends Object implements Serializable, AutoCloseable
Model representing the result of reading and validating a form store file. Theclose()
should be called when thegetExportFile()
is not needed anymore.- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ValidatedFormStoreFile(String uuid, File exportFile, StoreFormMetaValidationResult validationResult, File tempDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
File
getExportFile()
String
getUuid()
StoreFormMetaValidationResult
getValidationResult()
-
-
-
Constructor Detail
-
ValidatedFormStoreFile
public ValidatedFormStoreFile(String uuid, File exportFile, StoreFormMetaValidationResult validationResult, File tempDir)
- Parameters:
uuid
- Value returned bygetUuid()
.exportFile
- Value returned bygetExportFile()
.validationResult
- Value returned bygetValidationResult()
.tempDir
- Temporary directory that must be deleted when the export file is no longer needed.
-
-
Method Detail
-
close
public void close() throws Exception
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
getExportFile
public File getExportFile()
- Returns:
- The form export file (
.xfp
) that can be imported.
-
getUuid
public String getUuid()
- Returns:
- The ID that identifies this form. Can be used to check whether this form exists in the system already.
-
getValidationResult
public StoreFormMetaValidationResult getValidationResult()
- Returns:
- The result of validating the form store file.
-
-