Package de.xima.fc.formstore
Class ValidatedFormStoreFile
java.lang.Object
de.xima.fc.formstore.ValidatedFormStoreFile
- All Implemented Interfaces:
Serializable
,AutoCloseable
Model representing the result of reading and validating a form store file. The
close()
should be called when
the getExportFile()
is not needed anymore.- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionValidatedFormStoreFile
(String uuid, File exportFile, StoreFormMetaValidationResult validationResult, File tempDir) -
Method Summary
-
Constructor Details
-
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 Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
getExportFile
- Returns:
- The form export file (
.xfp
) that can be imported.
-
getUuid
- Returns:
- The ID that identifies this form. Can be used to check whether this form exists in the system already.
-
getValidationResult
- Returns:
- The result of validating the form store file.
-