Package com.github.searls.jasmine.runner
Class ImmutableHtmlGeneratorConfiguration.Builder
- java.lang.Object
-
- com.github.searls.jasmine.runner.ImmutableHtmlGeneratorConfiguration.Builder
-
- Enclosing class:
- ImmutableHtmlGeneratorConfiguration
@NotThreadSafe public static final class ImmutableHtmlGeneratorConfiguration.Builder extends Object
Builds instances of typeImmutableHtmlGeneratorConfiguration. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableHtmlGeneratorConfiguration.Builder from(HtmlGeneratorConfiguration instance)
Fill a builder with attribute values from the providedHtmlGeneratorConfigurationinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
sourceEncoding
@CanIgnoreReturnValue public final ImmutableHtmlGeneratorConfiguration.Builder sourceEncoding(String sourceEncoding)
Initializes the value for thesourceEncodingattribute.- Parameters:
sourceEncoding- The value for sourceEncoding- Returns:
thisbuilder for use in a chained invocation
-
reporterType
@CanIgnoreReturnValue public final ImmutableHtmlGeneratorConfiguration.Builder reporterType(ReporterType reporterType)
Initializes the value for thereporterTypeattribute.- Parameters:
reporterType- The value for reporterType- Returns:
thisbuilder for use in a chained invocation
-
runnerTemplate
@CanIgnoreReturnValue public final ImmutableHtmlGeneratorConfiguration.Builder runnerTemplate(String runnerTemplate)
Initializes the value for therunnerTemplateattribute.- Parameters:
runnerTemplate- The value for runnerTemplate- Returns:
thisbuilder for use in a chained invocation
-
specRunnerTemplate
@CanIgnoreReturnValue public final ImmutableHtmlGeneratorConfiguration.Builder specRunnerTemplate(SpecRunnerTemplate specRunnerTemplate)
Initializes the value for thespecRunnerTemplateattribute.- Parameters:
specRunnerTemplate- The value for specRunnerTemplate- Returns:
thisbuilder for use in a chained invocation
-
scriptResolver
@CanIgnoreReturnValue public final ImmutableHtmlGeneratorConfiguration.Builder scriptResolver(ScriptResolver scriptResolver)
Initializes the value for thescriptResolverattribute.- Parameters:
scriptResolver- The value for scriptResolver- Returns:
thisbuilder for use in a chained invocation
-
customRunnerConfiguration
@CanIgnoreReturnValue public final ImmutableHtmlGeneratorConfiguration.Builder customRunnerConfiguration(String customRunnerConfiguration)
Initializes the value for thecustomRunnerConfigurationattribute.- Parameters:
customRunnerConfiguration- The value for customRunnerConfiguration- Returns:
thisbuilder for use in a chained invocation
-
autoRefreshInterval
@CanIgnoreReturnValue public final ImmutableHtmlGeneratorConfiguration.Builder autoRefreshInterval(int autoRefreshInterval)
Initializes the value for theautoRefreshIntervalattribute.- Parameters:
autoRefreshInterval- The value for autoRefreshInterval- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableHtmlGeneratorConfiguration build()
Builds a newImmutableHtmlGeneratorConfiguration.- Returns:
- An immutable instance of HtmlGeneratorConfiguration
- Throws:
IllegalStateException- if any required attributes are missing
-
-