Class PromptTestFileInput
java.lang.Object
de.xima.fc.prompt.mgmt.gui.model.PromptTestFileInput
- All Implemented Interfaces:
Serializable
View model for a file control in the prompt query test editor. Each prompt query can define an arbitrary number of
file inputs, each of which is represented by an instance of this class.
- Since:
- 8.5.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPromptTestFileInput(String fileKey, IFileListDescriptor fileListDescriptor) Constructs a new file control from the given file list descriptor. -
Method Summary
Modifier and TypeMethodDescriptionThe content types (mime types) accepted by this file control, e.g.Gets the localized description of this file control with additional information about the files.Gets the file extensions accepted by this file control, without a leading period, e.g.Gets the key of this file control, as defined by the prompt query input descriptor.getLabel()Gets the localized label (display name) of this file control.intGets the maximum number of files that can be provided.intGets the minimum number of files that must be provided.voidsetDescription(String description) Sets the localized description of this file control with additional information about the files.voidSets the localized label (display name) of this file control.
-
Constructor Details
-
PromptTestFileInput
Constructs a new file control from the given file list descriptor.- Parameters:
fileKey- The key of the file input, as defined in the prompt query.fileListDescriptor- The file list descriptor to construct the file control from.
-
-
Method Details
-
getContentTypes
-
getDescription
Gets the localized description of this file control with additional information about the files.- Returns:
- The description of this file control.
-
setDescription
Sets the localized description of this file control with additional information about the files.- Parameters:
description- The description to set.
-
getExtensions
-
getFileKey
Gets the key of this file control, as defined by the prompt query input descriptor.- Returns:
- The key of this file control.
-
getLabel
Gets the localized label (display name) of this file control.- Returns:
- The label of this file control.
-
setLabel
Sets the localized label (display name) of this file control.- Parameters:
label- The label to set.
-
getMaxFileCount
public int getMaxFileCount()Gets the maximum number of files that can be provided.- Returns:
- The maximum number of files that can be provided.
-
getMinFileCount
public int getMinFileCount()Gets the minimum number of files that must be provided.- Returns:
- The minimum number of files that must be provided.
-