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 TaskSketchBuilder
addInAttribute(String attributeName, DomainSketch domainSketch, io.vertigo.core.lang.Cardinality cardinality)
Adds an input attribute.TaskSketch
build()
TaskSketchBuilder
withDataSpace(String dataSpace)
Sets the dataSpaceTaskSketchBuilder
withEngine(String taskEngineClassName)
Defines the engine, used at runtime to process the task.TaskSketchBuilder
withOutAttribute(String attributeName, DomainSketch domainSketch, io.vertigo.core.lang.Cardinality cardinality)
Adds an output attribute.TaskSketchBuilder
withPackageName(String packageName)
TaskSketchBuilder
withRequest(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:
build
in interfaceio.vertigo.core.lang.Builder<TaskSketch>
-
-