Package de.xima.fc.workflow
Class WorkflowFileValueBuilder
- java.lang.Object
-
- de.xima.fc.workflow.WorkflowFileValueBuilder
-
public final class WorkflowFileValueBuilder extends Object
Simple builder for aIWorkflowFileValue
.- Since:
- 8.2.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IWorkflowFileValue
build()
Creates a new file value with the current state of this builder.WorkflowFileValueBuilder
file(File file)
Adds files to this builder, using the default file type.WorkflowFileValueBuilder
file(File file, String contentType)
Adds files to this builder, using the default file type.WorkflowFileValueBuilder
file(String key, File file)
Adds files to this builder.WorkflowFileValueBuilder
file(String key, File file, String contentType)
Adds files to this builder.WorkflowFileValueBuilder
files(IWorkflowFile... files)
Adds files to this builder, using the default file type.WorkflowFileValueBuilder
files(Iterable<IWorkflowFile> files)
Adds files to this builder, using the default file type.WorkflowFileValueBuilder
files(String key, IWorkflowFile... files)
Adds files to this builder.WorkflowFileValueBuilder
files(String key, Iterable<IWorkflowFile> files)
Adds files to this builder.static WorkflowFileValueBuilder
workflowFileValueBuilder()
Creates a new builder for configuring a file value.
-
-
-
Method Detail
-
build
public IWorkflowFileValue build()
Creates a new file value with the current state of this builder. Any modifications to this builder after calling this method will not affect the returned file value.- Returns:
- A new file value with the current state of this builder.
-
file
public WorkflowFileValueBuilder file(File file)
Adds files to this builder, using the default file type. Guesses the content type.- Parameters:
file
- The files to add for the given file type.- Returns:
- This builder for chaining method calls.
-
file
public WorkflowFileValueBuilder file(File file, String contentType)
Adds files to this builder, using the default file type.- Parameters:
file
- The files to add for the given file type.contentType
- The content type of the file.- Returns:
- This builder for chaining method calls.
-
file
public WorkflowFileValueBuilder file(String key, File file)
Adds files to this builder. Guesses the content type.- Parameters:
key
- The type of the files.file
- The files to add for the given file type.- Returns:
- This builder for chaining method calls.
-
file
public WorkflowFileValueBuilder file(String key, File file, String contentType)
Adds files to this builder.- Parameters:
key
- The type of the files.file
- The files to add for the given file type.contentType
- The content type of the file.- Returns:
- This builder for chaining method calls.
-
files
public WorkflowFileValueBuilder files(IWorkflowFile... files)
Adds files to this builder, using the default file type.- Parameters:
files
- The files to add for the given file type.- Returns:
- This builder for chaining method calls.
-
files
public WorkflowFileValueBuilder files(Iterable<IWorkflowFile> files)
Adds files to this builder, using the default file type.- Parameters:
files
- The files to add for the given file type.- Returns:
- This builder for chaining method calls.
-
files
public WorkflowFileValueBuilder files(String key, IWorkflowFile... files)
Adds files to this builder.- Parameters:
key
- The type of the files.files
- The files to add for the given file type.- Returns:
- This builder for chaining method calls.
-
files
public WorkflowFileValueBuilder files(String key, Iterable<IWorkflowFile> files)
Adds files to this builder.- Parameters:
key
- The type of the files.files
- The files to add for the given file type.- Returns:
- This builder for chaining method calls.
-
workflowFileValueBuilder
public static WorkflowFileValueBuilder workflowFileValueBuilder()
Creates a new builder for configuring a file value.- Returns:
- A new builder for configuring a file value.
-
-