Interface ConfirmationInput.ConfirmationInputContext
- All Superinterfaces:
AbstractTextComponent.TextComponentContext<Boolean,
,ConfirmationInput.ConfirmationInputContext> ComponentContext<ConfirmationInput.ConfirmationInputContext>
- Enclosing class:
- ConfirmationInput
public static interface ConfirmationInput.ConfirmationInputContext
extends AbstractTextComponent.TextComponentContext<Boolean,ConfirmationInput.ConfirmationInputContext>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.shell.component.support.AbstractTextComponent.TextComponentContext
AbstractTextComponent.TextComponentContext.MessageLevel
-
Method Summary
Modifier and TypeMethodDescriptionempty()
Gets an emptyConfirmationInput.ConfirmationInputContext
.Gets a default value.void
setDefaultValue
(Boolean defaultValue) Sets a default value.Methods inherited from interface org.springframework.shell.component.support.AbstractTextComponent.TextComponentContext
getInput, getMessage, getMessageLevel, getName, getResultValue, setInput, setMessage, setMessage, setMessageLevel, setName, setResultValue
Methods inherited from interface org.springframework.shell.component.context.ComponentContext
containsKey, get, get, getTerminalWidth, put, setTerminalWidth, stream, toTemplateModel
-
Method Details
-
getDefaultValue
Boolean getDefaultValue()Gets a default value.- Returns:
- a default value
-
setDefaultValue
Sets a default value.- Parameters:
defaultValue
- the default value
-
empty
Gets an emptyConfirmationInput.ConfirmationInputContext
.- Returns:
- empty path input context
-
of
- Returns:
- path input context
-