public static final class AfterwardsOptions.Builder
extends java.lang.Object
AfterwardsOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AfterwardsOptions |
build()
Builds the configured instance.
|
AfterwardsOptions.Builder |
includeErrorHandlers(java.lang.Boolean includeErrorHandlers)
Sets the value of
AfterwardsOptions.getIncludeErrorHandlers() |
AfterwardsOptions.Builder |
includeOtherwise(java.lang.Boolean includeOtherwise)
Sets the value of
AfterwardsOptions.getIncludeOtherwise() |
public AfterwardsOptions.Builder includeErrorHandlers(java.lang.Boolean includeErrorHandlers)
AfterwardsOptions.getIncludeErrorHandlers()
includeErrorHandlers
- Whether to include error handling states.
If this is true, all states which are error handlers (added through 'onError')
and states reachable via error handlers will be included as well.this
public AfterwardsOptions.Builder includeOtherwise(java.lang.Boolean includeOtherwise)
AfterwardsOptions.getIncludeOtherwise()
includeOtherwise
- Whether to include the default/otherwise transition for the current Choice state.
If this is true and the current Choice does not have a default outgoing
transition, one will be added included when .next() is called on the chain.this
public AfterwardsOptions build()
AfterwardsOptions
java.lang.NullPointerException
- if any required attribute was not provided