protected abstract static class Script.Builder extends Object
Script
objects.Modifier and Type | Field and Description |
---|---|
protected String |
description |
protected String |
homepage |
protected String |
id |
protected List<String> |
inputFilesets |
protected Map<String,ScriptPort> |
inputPorts |
protected Map<String,ScriptOption> |
options |
protected List<String> |
outputFilesets |
protected Map<String,ScriptPort> |
outputPorts |
protected String |
shortName |
protected String |
version |
Constructor and Description |
---|
Builder(ScriptService<?> descriptor) |
Builder(String id,
String version) |
Modifier and Type | Method and Description |
---|---|
abstract Script |
build()
Builds the
Script instance. |
Script.Builder |
withDescription(String description)
With description.
|
Script.Builder |
withHomepage(String homepage)
With homepage.
|
Script.Builder |
withInputFileset(String fileset) |
Script.Builder |
withInputPort(String name,
ScriptPort port)
With input port
|
Script.Builder |
withOption(String name,
ScriptOption option)
With option.
|
Script.Builder |
withOutputFileset(String fileset) |
Script.Builder |
withOutputPort(String name,
ScriptPort port)
With output port
|
Script.Builder |
withShortName(String shortName)
With nice name.
|
protected String id
protected String version
protected String shortName
protected String description
protected String homepage
protected final Map<String,ScriptPort> inputPorts
protected final Map<String,ScriptPort> outputPorts
protected final Map<String,ScriptOption> options
public Builder(ScriptService<?> descriptor)
public Script.Builder withInputFileset(String fileset)
public Script.Builder withOutputFileset(String fileset)
public Script.Builder withShortName(String shortName)
public Script.Builder withDescription(String description)
public Script.Builder withHomepage(String homepage)
public Script.Builder withInputPort(String name, ScriptPort port)
public Script.Builder withOutputPort(String name, ScriptPort port)
public Script.Builder withOption(String name, ScriptOption option)
Copyright © 2010–2024 The DAISY Consortium. All rights reserved.