Class FileControl<Value>
java.lang.Object
de.xima.fc.workflow.designer.model.prompt_query.FileControl<Value>
- Type Parameters:
Value- The type of the file control value, eitherSingleFileorMultiFile.
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MultiFileControl, SingleFileControl
View model for a file control in the prompt query action editor, either a single or multi file control. 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
ConstructorsConstructorDescriptionFileControl(String type, Value value) Constructs a new file control with the given type and value. -
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.getLabel()Gets the localized label (display name) of this file control.getType()Gets the type of this file control, either "singleFile" or "multiFile".getValue()Gets the value of this file control, either aSingleFileorMultiFileinstance.booleanWhether this file input is required.voidsetContentTypes(Set<String> contentTypes) Sets the content types (mime types) accepted by this file control, e.g.voidsetDescription(String description) Sets the localized description of this file control with additional information about the files.voidsetExtensions(Set<String> extensions) Sets the file extensions accepted by this file control, swithout a leading period, e.g.voidSets the localized label (display name) of this file control.voidsetRequired(boolean required) Sets whether this file input is required.
-
Constructor Details
-
FileControl
Constructs a new file control with the given type and value.- Parameters:
type- The type of the file control, either "singleFile" or "multiFile".value- The value of the file control, either aSingleFileorMultiFileinstance.
-
-
Method Details
-
getContentTypes
-
setContentTypes
-
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
-
setExtensions
-
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.
-
getType
Gets the type of this file control, either "singleFile" or "multiFile".- Returns:
- The type of this file control.
-
getValue
Gets the value of this file control, either aSingleFileorMultiFileinstance.- Returns:
- The value of this file control.
-
isRequired
public boolean isRequired()Whether this file input is required. When true, at least one file must be provided.- Returns:
- True if the file input is required, false otherwise.
-
setRequired
public void setRequired(boolean required) Sets whether this file input is required. When true, at least one file must be provided.- Parameters:
required- True if the file input is required, false otherwise.
-