Interface ConfirmationInputSpec
- All Superinterfaces:
- BaseInputSpec<ConfirmationInputSpec>
- All Known Implementing Classes:
- BaseConfirmationInput,- DefaultConfirmationInputSpec
Interface for string input spec builder.
- 
Method SummaryModifier and TypeMethodDescriptionand()Build and return parent builder.defaultValue(Boolean defaultValue) Sets a default value.Sets a name.Define a function which may return id of a next component to go.Adds a post-run context handler.Adds a pre-run context handler.renderer(Function<ConfirmationInput.ConfirmationInputContext, List<org.jline.utils.AttributedString>> renderer) Sets a renderer function.resultMode(ResultMode resultMode) Sets a result mode.resultValue(Boolean resultValue) Sets a result value.storeResult(boolean store) Automatically stores result from aConfirmationInput.ConfirmationInputContextintoComponentContextwith key given to builder.Sets a default renderer template location.Methods inherited from interface org.springframework.shell.component.flow.BaseInputSpecgetThis, order
- 
Method Details- 
nameSets a name.- Parameters:
- name- the name
- Returns:
- a builder
 
- 
resultValueSets a result value.- Parameters:
- resultValue- the result value
- Returns:
- a builder
 
- 
resultModeSets a result mode.- Parameters:
- resultMode- the result mode
- Returns:
- a builder
 
- 
defaultValueSets a default value.- Parameters:
- defaultValue- the defult value
- Returns:
- a builder
 
- 
rendererConfirmationInputSpec renderer(Function<ConfirmationInput.ConfirmationInputContext, List<org.jline.utils.AttributedString>> renderer) Sets a renderer function.- Parameters:
- renderer- the renderer
- Returns:
- a builder
 
- 
templateSets a default renderer template location.- Parameters:
- location- the template location
- Returns:
- a builder
 
- 
preHandlerAdds a pre-run context handler.- Parameters:
- handler- the context handler
- Returns:
- a builder
 
- 
postHandlerAdds a post-run context handler.- Parameters:
- handler- the context handler
- Returns:
- a builder
 
- 
storeResultAutomatically stores result from aConfirmationInput.ConfirmationInputContextintoComponentContextwith key given to builder. Defaults totrue.- Parameters:
- store- the flag if storing result
- Returns:
- a builder
 
- 
nextDefine a function which may return id of a next component to go. Returning anullor non existent id indicates that flow should stop.- Parameters:
- next- next component function
- Returns:
- a builder
 
- 
andComponentFlow.Builder and()Build and return parent builder.- Returns:
- the parent builder
 
 
-