Class PromptFileSetParameter
java.lang.Object
de.xima.fc.prompt.service.support.PromptFileSetParameter
- All Implemented Interfaces:
Serializable
A set of files for dynamic file input parameters of a prompt query. When the query is executed, the user must provide
the files. This class describes the settings and constraints for these files.
- Since:
- 8.5.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the localized description of this set of files.Gets the file name for the set of files.A list of allowed file types for this set of files.getKey()Gets the key or ID of this parameter that uniquely identifies it.getLabel()Gets the localized label (display name) of this set of files.Gets how many files can or must be provided for this set of files.voidsetDescription(String description) Sets the localized description of this set of files.voidsetFileName(String fileName) Sets the file name for the set of files.voidsetFileTypes(List<PromptFileType> fileTypes) Sets the allowed file types for this set of files.voidSets the key or ID of this parameter that uniquely identifies it.voidSets the localized label (display name) of this set of files.voidsetMultiplicity(EPromptConfigParamFileMultiplicity multiplicity) Sets how many files can or must be provided for this set of files.
-
Constructor Details
-
PromptFileSetParameter
public PromptFileSetParameter()
-
-
Method Details
-
getDescription
Gets the localized description of this set of files. Can be empty when not description is available.- Returns:
- The localized description of this set of files.
-
setDescription
Sets the localized description of this set of files. Can be empty when no description is available.- Parameters:
description- The localized description of this set of files.
-
getFileName
Gets the file name for the set of files. When empty, uses the original file name. Otherwise, changes the file name to this value. When the fileset contains multiple files, appends an index to the end of each file name. Should not contain an extension, always uses the extension of the original file.- Returns:
- The file name for the set of files, or an empty string to use the original file name.
-
setFileName
Sets the file name for the set of files. When empty, uses the original file name. Otherwise, changes the file name to this value. When the fileset contains multiple files, appends an index to the end of each file name. Should not contain an extension, always uses the extension of the original file.- Parameters:
fileName- The file name for the set of files, or an empty string to use the original file name.
-
getFileTypes
A list of allowed file types for this set of files. If empty, all file types are allowed.- Returns:
- A list of allowed file types for this set of files, or an empty list to allow all file types.
-
setFileTypes
Sets the allowed file types for this set of files. If empty, all file types are allowed.- Parameters:
fileTypes- A list of allowed file types for this set of files, or an empty list to allow all file types.
-
getKey
Gets the key or ID of this parameter that uniquely identifies it.- Returns:
- The key or ID of this parameter.
-
setKey
Sets the key or ID of this parameter that uniquely identifies it.- Parameters:
key- The key or ID of this parameter.
-
getLabel
Gets the localized label (display name) of this set of files. Can be empty when no label is available.- Returns:
- The localized label of this set of files.
-
setLabel
Sets the localized label (display name) of this set of files. Can be empty when no label is available.- Parameters:
label- The localized label of this set of files.
-
getMultiplicity
Gets how many files can or must be provided for this set of files.- Returns:
- The number of files that can or must be provided for this set of files.
-
setMultiplicity
Sets how many files can or must be provided for this set of files.- Parameters:
multiplicity- The number of files that can or must be provided for this set of files.
-