Class PromptTestFile
java.lang.Object
de.xima.fc.prompt.mgmt.gui.model.PromptTestFile
- All Implemented Interfaces:
Serializable
An input file for a prompt query uploaded by the user; or an output file (returned by a prompt query), used by
PromptQueryTestViewModel when testing prompt queries in the prompt query configuration UI.- Since:
- 8.5.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPromptTestFile(String fileName, String mimeType, Path file) Creates a new prompt test file uploaded by the user to test a prompt query. -
Method Summary
-
Constructor Details
-
PromptTestFile
Creates a new prompt test file uploaded by the user to test a prompt query.- Parameters:
fileName- The name of the file.mimeType- The MIME type of the file.file- Path on the file system where the data is stored. The actual name of the file may differ from the name of the file uploaded by the user.
-
-
Method Details
-
getFile
Gets the file on the file system where the data is stored. Only use this for reading the binary data, do not use the name of the file. The actual name of the file may differ from the name of the file uploaded by the user. UsegetFileName()to get the original name of the file.- Returns:
- The file.
-
getFileName
Gets the name of the file as uploaded by the user.- Returns:
- The name of the file.
-
getMimeType
Gets the MIME type of the file as uploaded by the user.- Returns:
- The MIME type of the file.
-
getPath
Gets the file on the file system where the data is stored. Only use this for reading the binary data, do not use the name of the file. The actual name of the file may differ from the name of the file uploaded by the user. UsegetFileName()to get the original name of the file.- Returns:
- The file.
-