Class 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 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 attribute
        domainSketch - the domain of the attribute
        cardinality - 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 attribute
        domainSketch - the domain of the attribute
        cardinality - cadinality (one, optional, many)
        Returns:
        this builder
      • build

        public TaskSketch build()
        Specified by:
        build in interface io.vertigo.core.lang.Builder<TaskSketch>