Package io.vertigo.studio.notebook.task
Class TaskSketchBuilder
- java.lang.Object
-
- io.vertigo.studio.notebook.task.TaskSketchBuilder
-
- All Implemented Interfaces:
io.vertigo.core.lang.Builder<TaskSketch>
public final class TaskSketchBuilder extends Object implements io.vertigo.core.lang.Builder<TaskSketch>
Builder of taskSketch.- Author:
- fconstantin, pchretien
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskSketchBuilderaddInAttribute(String attributeName, DomainSketch domainSketch, io.vertigo.core.lang.Cardinality cardinality)Adds an input attribute.TaskSketchbuild()TaskSketchBuilderwithDataSpace(String dataSpace)Sets the dataSpaceTaskSketchBuilderwithEngine(String taskEngineClassName)Defines the engine, used at runtime to process the task.TaskSketchBuilderwithOutAttribute(String attributeName, DomainSketch domainSketch, io.vertigo.core.lang.Cardinality cardinality)Adds an output attribute.TaskSketchBuilderwithPackageName(String packageName)TaskSketchBuilderwithRequest(String request)
-
-
-
Method Detail
-
withEngine
public TaskSketchBuilder withEngine(String taskEngineClassName)
Defines the engine, used at runtime to process the task.- Parameters:
taskEngineClassName- Class running the task- Returns:
- this builder
-
withRequest
public TaskSketchBuilder withRequest(String request)
- Parameters:
request- the request used to configure the task. (ldap request, sql request...)- Returns:
- this builder
-
withPackageName
public TaskSketchBuilder withPackageName(String packageName)
- Parameters:
packageName- the name of the package- Returns:
- this builder
-
withDataSpace
public TaskSketchBuilder withDataSpace(String dataSpace)
Sets the dataSpace- Parameters:
dataSpace- the dataSpace- Returns:
- this builder
-
addInAttribute
public TaskSketchBuilder addInAttribute(String attributeName, DomainSketch domainSketch, io.vertigo.core.lang.Cardinality cardinality)
Adds an input attribute.- Parameters:
attributeName- the name of the attributedomainSketch- the domain of the attributecardinality- cadinality (one, optional, many)- Returns:
- this builder
-
withOutAttribute
public TaskSketchBuilder withOutAttribute(String attributeName, DomainSketch domainSketch, io.vertigo.core.lang.Cardinality cardinality)
Adds an output attribute.- Parameters:
attributeName- the name of the attributedomainSketch- the domain of the attributecardinality- cadinality (one, optional, many)- Returns:
- this builder
-
build
public TaskSketch build()
- Specified by:
buildin interfaceio.vertigo.core.lang.Builder<TaskSketch>
-
-