public class DefaultNutsQuestion<T> extends Object implements net.thevpc.nuts.NutsQuestion<T>
| Constructor and Description |
|---|
DefaultNutsQuestion(net.thevpc.nuts.NutsWorkspace ws,
net.thevpc.nuts.NutsSessionTerminal terminal,
net.thevpc.nuts.NutsPrintStream out) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure(boolean skipUnsupported,
net.thevpc.nuts.NutsCommandLine commandLine)
configure the current forCommand with the given arguments.
|
net.thevpc.nuts.NutsQuestion<T> |
configure(boolean skipUnsupported,
String... args)
configure the current command with the given arguments.
|
boolean |
configureFirst(net.thevpc.nuts.NutsCommandLine cmd) |
net.thevpc.nuts.NutsQuestion<Boolean> |
forBoolean(net.thevpc.nuts.NutsMessage msg) |
net.thevpc.nuts.NutsQuestion<Boolean> |
forBoolean(String msg,
Object... params) |
net.thevpc.nuts.NutsQuestion<Double> |
forDouble(net.thevpc.nuts.NutsMessage msg) |
net.thevpc.nuts.NutsQuestion<Double> |
forDouble(String msg,
Object... params) |
<K extends Enum> |
forEnum(Class<K> enumType,
net.thevpc.nuts.NutsMessage msg) |
<K extends Enum> |
forEnum(Class<K> enumType,
String msg,
Object... params) |
net.thevpc.nuts.NutsQuestion<Float> |
forFloat(net.thevpc.nuts.NutsMessage msg) |
net.thevpc.nuts.NutsQuestion<Float> |
forFloat(String msg,
Object... params) |
net.thevpc.nuts.NutsQuestion<Integer> |
forInteger(net.thevpc.nuts.NutsMessage msg) |
net.thevpc.nuts.NutsQuestion<Integer> |
forInteger(String msg,
Object... params) |
net.thevpc.nuts.NutsQuestion<Long> |
forLong(net.thevpc.nuts.NutsMessage msg) |
net.thevpc.nuts.NutsQuestion<Long> |
forLong(String msg,
Object... params) |
net.thevpc.nuts.NutsQuestion<char[]> |
forPassword(net.thevpc.nuts.NutsMessage msg) |
net.thevpc.nuts.NutsQuestion<char[]> |
forPassword(String msg,
Object... params) |
net.thevpc.nuts.NutsQuestion<String> |
forString(net.thevpc.nuts.NutsMessage msg) |
net.thevpc.nuts.NutsQuestion<String> |
forString(String msg,
Object... params) |
Object[] |
getAcceptedValues() |
Boolean |
getBooleanValue() |
net.thevpc.nuts.NutsMessage |
getCancelMessage() |
T |
getDefaultValue() |
net.thevpc.nuts.NutsQuestionFormat<T> |
getFormat() |
net.thevpc.nuts.NutsMessage |
getHintMessage() |
net.thevpc.nuts.NutsMessage |
getMessage() |
net.thevpc.nuts.NutsQuestionParser<T> |
getParser() |
net.thevpc.nuts.NutsSession |
getSession() |
net.thevpc.nuts.NutsQuestionValidator<T> |
getValidator() |
T |
getValue() |
Class<T> |
getValueType() |
boolean |
isResetLine() |
net.thevpc.nuts.NutsQuestion<T> |
resetLine() |
net.thevpc.nuts.NutsQuestion<T> |
resetLine(boolean resetLine) |
net.thevpc.nuts.NutsQuestion<T> |
run() |
net.thevpc.nuts.NutsQuestion<T> |
setAcceptedValues(Object[] acceptedValues) |
net.thevpc.nuts.NutsQuestion<T> |
setCancelMessage(net.thevpc.nuts.NutsMessage message) |
net.thevpc.nuts.NutsQuestion<T> |
setDefaultValue(T defaultValue) |
net.thevpc.nuts.NutsQuestion<T> |
setFormat(net.thevpc.nuts.NutsQuestionFormat<T> parser) |
net.thevpc.nuts.NutsQuestion<T> |
setHintMessage(net.thevpc.nuts.NutsMessage message) |
net.thevpc.nuts.NutsQuestion<T> |
setMessage(net.thevpc.nuts.NutsMessage message) |
net.thevpc.nuts.NutsQuestion<T> |
setParser(net.thevpc.nuts.NutsQuestionParser<T> parser) |
net.thevpc.nuts.NutsQuestion<T> |
setSession(net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.NutsQuestion<T> |
setValidator(net.thevpc.nuts.NutsQuestionValidator<T> validator) |
net.thevpc.nuts.NutsQuestion<T> |
setValueType(Class<T> valueType) |
public DefaultNutsQuestion(net.thevpc.nuts.NutsWorkspace ws,
net.thevpc.nuts.NutsSessionTerminal terminal,
net.thevpc.nuts.NutsPrintStream out)
public boolean isResetLine()
isResetLine in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsQuestion<T> resetLine()
resetLine in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsQuestion<T> resetLine(boolean resetLine)
resetLine in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsQuestion<Boolean> forBoolean(String msg, Object... params)
forBoolean in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsQuestion<char[]> forPassword(String msg, Object... params)
forPassword in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsQuestion<String> forString(String msg, Object... params)
forString in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsQuestion<Integer> forInteger(String msg, Object... params)
forInteger in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsQuestion<Long> forLong(String msg, Object... params)
forLong in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsQuestion<Float> forFloat(String msg, Object... params)
forFloat in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsQuestion<Double> forDouble(String msg, Object... params)
forDouble in interface net.thevpc.nuts.NutsQuestion<T>public <K extends Enum> net.thevpc.nuts.NutsQuestion<K> forEnum(Class<K> enumType, String msg, Object... params)
forEnum in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsQuestion<Boolean> forBoolean(net.thevpc.nuts.NutsMessage msg)
forBoolean in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsQuestion<char[]> forPassword(net.thevpc.nuts.NutsMessage msg)
forPassword in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsQuestion<String> forString(net.thevpc.nuts.NutsMessage msg)
forString in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsQuestion<Integer> forInteger(net.thevpc.nuts.NutsMessage msg)
forInteger in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsQuestion<Long> forLong(net.thevpc.nuts.NutsMessage msg)
forLong in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsQuestion<Float> forFloat(net.thevpc.nuts.NutsMessage msg)
forFloat in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsQuestion<Double> forDouble(net.thevpc.nuts.NutsMessage msg)
forDouble in interface net.thevpc.nuts.NutsQuestion<T>public <K extends Enum> net.thevpc.nuts.NutsQuestion<K> forEnum(Class<K> enumType, net.thevpc.nuts.NutsMessage msg)
forEnum in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsMessage getHintMessage()
getHintMessage in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsMessage getMessage()
getMessage in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsMessage getCancelMessage()
getCancelMessage in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsQuestion<T> setMessage(net.thevpc.nuts.NutsMessage message)
setMessage in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsQuestion<T> setHintMessage(net.thevpc.nuts.NutsMessage message)
setHintMessage in interface net.thevpc.nuts.NutsQuestion<T>public Object[] getAcceptedValues()
getAcceptedValues in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsQuestion<T> setAcceptedValues(Object[] acceptedValues)
setAcceptedValues in interface net.thevpc.nuts.NutsQuestion<T>public T getDefaultValue()
getDefaultValue in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsQuestion<T> setDefaultValue(T defaultValue)
setDefaultValue in interface net.thevpc.nuts.NutsQuestion<T>public Class<T> getValueType()
getValueType in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsQuestion<T> setValueType(Class<T> valueType)
setValueType in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsQuestionFormat<T> getFormat()
getFormat in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsQuestion<T> setFormat(net.thevpc.nuts.NutsQuestionFormat<T> parser)
setFormat in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsQuestionParser<T> getParser()
getParser in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsQuestion<T> setParser(net.thevpc.nuts.NutsQuestionParser<T> parser)
setParser in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsQuestionValidator<T> getValidator()
getValidator in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsQuestion<T> setValidator(net.thevpc.nuts.NutsQuestionValidator<T> validator)
setValidator in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsQuestion<T> run()
run in interface net.thevpc.nuts.NutsQuestion<T>public Boolean getBooleanValue()
getBooleanValue in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsSession getSession()
getSession in interface net.thevpc.nuts.NutsQuestion<T>public net.thevpc.nuts.NutsQuestion<T> setSession(net.thevpc.nuts.NutsSession session)
setSession in interface net.thevpc.nuts.NutsQuestion<T>public final net.thevpc.nuts.NutsQuestion<T> configure(boolean skipUnsupported, String... args)
NutsCommandLineConfigurable.configure(boolean, java.lang.String...)
to help return a more specific return type;configure in interface net.thevpc.nuts.NutsCommandLineConfigurableconfigure in interface net.thevpc.nuts.NutsQuestion<T>args - argument to configure withthis instancepublic net.thevpc.nuts.NutsQuestion<T> setCancelMessage(net.thevpc.nuts.NutsMessage message)
setCancelMessage in interface net.thevpc.nuts.NutsQuestion<T>public final boolean configure(boolean skipUnsupported,
net.thevpc.nuts.NutsCommandLine commandLine)
configure in interface net.thevpc.nuts.NutsCommandLineConfigurableskipUnsupported - when true, all unsupported options are skipped
silentlycommandLine - arguments to configure withthis instancepublic boolean configureFirst(net.thevpc.nuts.NutsCommandLine cmd)
configureFirst in interface net.thevpc.nuts.NutsCommandLineConfigurableCopyright © 2022 vpc open source initiative. All rights reserved.