public abstract class BasePathInput extends BaseInput<PathInputSpec> implements PathInputSpec
PathInputSpec
.Constructor and Description |
---|
BasePathInput(ComponentFlow.BaseBuilder builder,
String id) |
getBuilder, getId, getOrder, order, setOrder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
order
public BasePathInput(ComponentFlow.BaseBuilder builder, String id)
public PathInputSpec name(String name)
PathInputSpec
name
in interface PathInputSpec
name
- the namepublic PathInputSpec resultValue(String resultValue)
PathInputSpec
resultValue
in interface PathInputSpec
resultValue
- the result valuepublic PathInputSpec resultMode(ResultMode resultMode)
PathInputSpec
resultMode
in interface PathInputSpec
resultMode
- the result modepublic PathInputSpec defaultValue(String defaultValue)
PathInputSpec
defaultValue
in interface PathInputSpec
defaultValue
- the defult valuepublic PathInputSpec renderer(Function<PathInput.PathInputContext,List<org.jline.utils.AttributedString>> renderer)
PathInputSpec
renderer
in interface PathInputSpec
renderer
- the rendererpublic PathInputSpec template(String location)
PathInputSpec
template
in interface PathInputSpec
location
- the template locationpublic PathInputSpec preHandler(Consumer<PathInput.PathInputContext> handler)
PathInputSpec
preHandler
in interface PathInputSpec
handler
- the context handlerpublic PathInputSpec postHandler(Consumer<PathInput.PathInputContext> handler)
PathInputSpec
postHandler
in interface PathInputSpec
handler
- the context handlerpublic PathInputSpec storeResult(boolean store)
PathInputSpec
StringInput.StringInputContext
into
ComponentContext
with key given to builder. Defaults to true
.storeResult
in interface PathInputSpec
store
- the flag if storing resultpublic PathInputSpec next(Function<PathInput.PathInputContext,String> next)
PathInputSpec
null
or non existent id indicates that flow should stop.next
in interface PathInputSpec
next
- next component functionpublic ComponentFlow.Builder and()
PathInputSpec
and
in interface PathInputSpec
public PathInputSpec getThis()
BaseInputSpec
getThis
in interface BaseInputSpec<PathInputSpec>
public String getName()
public String getResultValue()
public ResultMode getResultMode()
public String getDefaultValue()
public Function<PathInput.PathInputContext,List<org.jline.utils.AttributedString>> getRenderer()
public String getTemplateLocation()
public List<Consumer<PathInput.PathInputContext>> getPreHandlers()
public List<Consumer<PathInput.PathInputContext>> getPostHandlers()
public boolean isStoreResult()
public Function<PathInput.PathInputContext,String> getNext()
Copyright © 2024. All rights reserved.