public class DefaultNAsk<T> extends Object implements net.thevpc.nuts.io.NAsk<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultNAsk.NAskCache |
| Constructor and Description |
|---|
DefaultNAsk(net.thevpc.nuts.io.NTerminal terminal,
net.thevpc.nuts.io.NPrintStream out) |
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
acceptedValues() |
net.thevpc.nuts.io.NAsk<T> |
acceptedValues(List<Object> acceptedValues) |
Boolean |
booleanValue() |
net.thevpc.nuts.text.NMsg |
cancelMessage() |
net.thevpc.nuts.io.NAsk<T> |
cancelMessage(net.thevpc.nuts.text.NMsg message) |
net.thevpc.nuts.io.NAsk<T> |
configure(boolean skipUnsupported,
String... args)
configure the current command with the given arguments.
|
boolean |
configureFirst(net.thevpc.nuts.cmdline.NCmdLine cmdLine) |
T |
defaultValue() |
net.thevpc.nuts.io.NAsk<T> |
defaultValue(T defaultValue) |
net.thevpc.nuts.io.NAsk<Boolean> |
forBoolean(net.thevpc.nuts.text.NMsg msg) |
net.thevpc.nuts.io.NAsk<Double> |
forDouble(net.thevpc.nuts.text.NMsg msg) |
<K extends Enum> |
forEnum(Class<K> enumType,
net.thevpc.nuts.text.NMsg msg) |
net.thevpc.nuts.io.NAsk<Float> |
forFloat(net.thevpc.nuts.text.NMsg msg) |
net.thevpc.nuts.io.NAsk<Integer> |
forInt(net.thevpc.nuts.text.NMsg msg) |
net.thevpc.nuts.io.NAsk<Long> |
forLong(net.thevpc.nuts.text.NMsg msg) |
net.thevpc.nuts.io.NAskFormat<T> |
format() |
net.thevpc.nuts.io.NAsk<T> |
format(net.thevpc.nuts.io.NAskFormat<T> parser) |
net.thevpc.nuts.io.NAsk<char[]> |
forPassword(net.thevpc.nuts.text.NMsg msg) |
net.thevpc.nuts.io.NAsk<String> |
forString(net.thevpc.nuts.text.NMsg msg) |
net.thevpc.nuts.text.NMsg |
hintMessage() |
net.thevpc.nuts.io.NAsk<T> |
hintMessage(net.thevpc.nuts.text.NMsg message) |
boolean |
isResetLine() |
net.thevpc.nuts.text.NMsg |
message() |
net.thevpc.nuts.io.NAsk<T> |
message(net.thevpc.nuts.text.NMsg message) |
net.thevpc.nuts.io.NAskParser<T> |
parser() |
String |
rememberMeKey() |
net.thevpc.nuts.io.NAsk<T> |
rememberMeKey(String rememberMeKey) |
net.thevpc.nuts.io.NAsk<T> |
resetLine() |
net.thevpc.nuts.io.NAsk<T> |
resetLine(boolean resetLine) |
net.thevpc.nuts.io.NAsk<T> |
run() |
net.thevpc.nuts.io.NAsk<T> |
sparser(net.thevpc.nuts.io.NAskParser<T> parser) |
net.thevpc.nuts.io.NAskValidator<T> |
validator() |
net.thevpc.nuts.io.NAsk<T> |
validator(net.thevpc.nuts.io.NAskValidator<T> validator) |
T |
value() |
Class<T> |
valueType() |
net.thevpc.nuts.io.NAsk<T> |
valueType(Class<T> valueType) |
public DefaultNAsk(net.thevpc.nuts.io.NTerminal terminal,
net.thevpc.nuts.io.NPrintStream out)
public String rememberMeKey()
rememberMeKey in interface net.thevpc.nuts.io.NAsk<T>public net.thevpc.nuts.io.NAsk<T> rememberMeKey(String rememberMeKey)
rememberMeKey in interface net.thevpc.nuts.io.NAsk<T>public boolean isResetLine()
isResetLine in interface net.thevpc.nuts.io.NAsk<T>public net.thevpc.nuts.io.NAsk<T> resetLine()
resetLine in interface net.thevpc.nuts.io.NAsk<T>public net.thevpc.nuts.io.NAsk<T> resetLine(boolean resetLine)
resetLine in interface net.thevpc.nuts.io.NAsk<T>public net.thevpc.nuts.io.NAsk<Boolean> forBoolean(net.thevpc.nuts.text.NMsg msg)
forBoolean in interface net.thevpc.nuts.io.NAsk<T>public net.thevpc.nuts.io.NAsk<char[]> forPassword(net.thevpc.nuts.text.NMsg msg)
forPassword in interface net.thevpc.nuts.io.NAsk<T>public net.thevpc.nuts.io.NAsk<String> forString(net.thevpc.nuts.text.NMsg msg)
forString in interface net.thevpc.nuts.io.NAsk<T>public net.thevpc.nuts.io.NAsk<Integer> forInt(net.thevpc.nuts.text.NMsg msg)
forInt in interface net.thevpc.nuts.io.NAsk<T>public net.thevpc.nuts.io.NAsk<Long> forLong(net.thevpc.nuts.text.NMsg msg)
forLong in interface net.thevpc.nuts.io.NAsk<T>public net.thevpc.nuts.io.NAsk<Float> forFloat(net.thevpc.nuts.text.NMsg msg)
forFloat in interface net.thevpc.nuts.io.NAsk<T>public net.thevpc.nuts.io.NAsk<Double> forDouble(net.thevpc.nuts.text.NMsg msg)
forDouble in interface net.thevpc.nuts.io.NAsk<T>public <K extends Enum> net.thevpc.nuts.io.NAsk<K> forEnum(Class<K> enumType, net.thevpc.nuts.text.NMsg msg)
forEnum in interface net.thevpc.nuts.io.NAsk<T>public net.thevpc.nuts.text.NMsg hintMessage()
hintMessage in interface net.thevpc.nuts.io.NAsk<T>public net.thevpc.nuts.text.NMsg message()
message in interface net.thevpc.nuts.io.NAsk<T>public net.thevpc.nuts.text.NMsg cancelMessage()
cancelMessage in interface net.thevpc.nuts.io.NAsk<T>public net.thevpc.nuts.io.NAsk<T> message(net.thevpc.nuts.text.NMsg message)
message in interface net.thevpc.nuts.io.NAsk<T>public net.thevpc.nuts.io.NAsk<T> hintMessage(net.thevpc.nuts.text.NMsg message)
hintMessage in interface net.thevpc.nuts.io.NAsk<T>public List<Object> acceptedValues()
acceptedValues in interface net.thevpc.nuts.io.NAsk<T>public net.thevpc.nuts.io.NAsk<T> acceptedValues(List<Object> acceptedValues)
acceptedValues in interface net.thevpc.nuts.io.NAsk<T>public T defaultValue()
defaultValue in interface net.thevpc.nuts.io.NAsk<T>public net.thevpc.nuts.io.NAsk<T> defaultValue(T defaultValue)
defaultValue in interface net.thevpc.nuts.io.NAsk<T>public Class<T> valueType()
valueType in interface net.thevpc.nuts.io.NAsk<T>public net.thevpc.nuts.io.NAsk<T> valueType(Class<T> valueType)
valueType in interface net.thevpc.nuts.io.NAsk<T>public net.thevpc.nuts.io.NAskFormat<T> format()
format in interface net.thevpc.nuts.io.NAsk<T>public net.thevpc.nuts.io.NAsk<T> format(net.thevpc.nuts.io.NAskFormat<T> parser)
format in interface net.thevpc.nuts.io.NAsk<T>public net.thevpc.nuts.io.NAskParser<T> parser()
parser in interface net.thevpc.nuts.io.NAsk<T>public net.thevpc.nuts.io.NAsk<T> sparser(net.thevpc.nuts.io.NAskParser<T> parser)
sparser in interface net.thevpc.nuts.io.NAsk<T>public net.thevpc.nuts.io.NAskValidator<T> validator()
validator in interface net.thevpc.nuts.io.NAsk<T>public net.thevpc.nuts.io.NAsk<T> validator(net.thevpc.nuts.io.NAskValidator<T> validator)
validator in interface net.thevpc.nuts.io.NAsk<T>public net.thevpc.nuts.io.NAsk<T> run()
run in interface net.thevpc.nuts.io.NAsk<T>public Boolean booleanValue()
booleanValue in interface net.thevpc.nuts.io.NAsk<T>public final net.thevpc.nuts.io.NAsk<T> configure(boolean skipUnsupported, String... args)
NCmdLineConfigurable.configure(boolean, java.lang.String...)
to help return a more specific return type;configure in interface net.thevpc.nuts.cmdline.NCmdLineConfigurableconfigure in interface net.thevpc.nuts.io.NAsk<T>args - argument to configure withthis instancepublic net.thevpc.nuts.io.NAsk<T> cancelMessage(net.thevpc.nuts.text.NMsg message)
cancelMessage in interface net.thevpc.nuts.io.NAsk<T>public boolean configureFirst(net.thevpc.nuts.cmdline.NCmdLine cmdLine)
configureFirst in interface net.thevpc.nuts.cmdline.NCmdLineConfigurableCopyright © 2026 vpc open source initiative. All rights reserved.