Class BaseStringInput
java.lang.Object
org.springframework.shell.component.flow.BaseInput<StringInputSpec>
org.springframework.shell.component.flow.BaseStringInput
- All Implemented Interfaces:
- org.springframework.core.Ordered,- BaseInputSpec<StringInputSpec>,- StringInputSpec
- Direct Known Subclasses:
- DefaultStringInputSpec
Base impl for 
StringInputSpec.- 
Field SummaryFields inherited from interface org.springframework.core.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionand()Build and return parent builder.defaultValue(String defaultValue) Sets a default value.getName()getNext()Function<StringInput.StringInputContext,List<org.jline.utils.AttributedString>> getThis()Usual this trick to get typed child.booleanmaskCharacter(Character maskCharacter) Sets a mask character.Sets a name.Define a function which may return id of a next component to go.Adds a post-run context handler.preHandler(Consumer<StringInput.StringInputContext> handler) Adds a pre-run context handler.renderer(Function<StringInput.StringInputContext, List<org.jline.utils.AttributedString>> renderer) Sets a renderer function.resultMode(ResultMode resultMode) Sets a result mode.resultValue(String resultValue) Sets a result value.storeResult(boolean store) Automatically stores result from aStringInput.StringInputContextintoComponentContextwith key given to builder.Sets a default renderer template location.Methods inherited from class org.springframework.shell.component.flow.BaseInputgetBuilder, getId, getOrder, order, setOrderMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.shell.component.flow.BaseInputSpecorder
- 
Constructor Details- 
BaseStringInput
 
- 
- 
Method Details- 
nameDescription copied from interface:StringInputSpecSets a name.- Specified by:
- namein interface- StringInputSpec
- Parameters:
- name- the name
- Returns:
- a builder
 
- 
resultValueDescription copied from interface:StringInputSpecSets a result value.- Specified by:
- resultValuein interface- StringInputSpec
- Parameters:
- resultValue- the result value
- Returns:
- a builder
 
- 
resultModeDescription copied from interface:StringInputSpecSets a result mode.- Specified by:
- resultModein interface- StringInputSpec
- Parameters:
- resultMode- the result mode
- Returns:
- a builder
 
- 
defaultValueDescription copied from interface:StringInputSpecSets a default value.- Specified by:
- defaultValuein interface- StringInputSpec
- Parameters:
- defaultValue- the defult value
- Returns:
- a builder
 
- 
maskCharacterDescription copied from interface:StringInputSpecSets a mask character.- Specified by:
- maskCharacterin interface- StringInputSpec
- Parameters:
- maskCharacter- the mask character
- Returns:
- a builder
 
- 
rendererpublic StringInputSpec renderer(Function<StringInput.StringInputContext, List<org.jline.utils.AttributedString>> renderer) Description copied from interface:StringInputSpecSets a renderer function.- Specified by:
- rendererin interface- StringInputSpec
- Parameters:
- renderer- the renderer
- Returns:
- a builder
 
- 
templateDescription copied from interface:StringInputSpecSets a default renderer template location.- Specified by:
- templatein interface- StringInputSpec
- Parameters:
- location- the template location
- Returns:
- a builder
 
- 
preHandlerDescription copied from interface:StringInputSpecAdds a pre-run context handler.- Specified by:
- preHandlerin interface- StringInputSpec
- Parameters:
- handler- the context handler
- Returns:
- a builder
 
- 
postHandlerDescription copied from interface:StringInputSpecAdds a post-run context handler.- Specified by:
- postHandlerin interface- StringInputSpec
- Parameters:
- handler- the context handler
- Returns:
- a builder
 
- 
storeResultDescription copied from interface:StringInputSpecAutomatically stores result from aStringInput.StringInputContextintoComponentContextwith key given to builder. Defaults totrue.- Specified by:
- storeResultin interface- StringInputSpec
- Parameters:
- store- the flag if storing result
- Returns:
- a builder
 
- 
nextDescription copied from interface:StringInputSpecDefine a function which may return id of a next component to go. Returning anullor non existent id indicates that flow should stop.- Specified by:
- nextin interface- StringInputSpec
- Parameters:
- next- next component function
- Returns:
- a builder
 
- 
andDescription copied from interface:StringInputSpecBuild and return parent builder.- Specified by:
- andin interface- StringInputSpec
- Returns:
- the parent builder
 
- 
getThisDescription copied from interface:BaseInputSpecUsual this trick to get typed child.- Specified by:
- getThisin interface- BaseInputSpec<StringInputSpec>
- Returns:
- a builder
 
- 
getName
- 
getResultValue
- 
getResultMode
- 
getDefaultValue
- 
getMaskCharacter
- 
getRendererpublic Function<StringInput.StringInputContext,List<org.jline.utils.AttributedString>> getRenderer()
- 
getTemplateLocation
- 
getPreHandlers
- 
getPostHandlers
- 
isStoreResultpublic boolean isStoreResult()
- 
getNext
 
-