public class DefaultNAsk<T> extends Object implements NAsk<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultNAsk.NAskCache |
| Constructor and Description |
|---|
DefaultNAsk(NTerminal terminal,
NPrintStream out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigure, configure, configureLastpublic DefaultNAsk(NTerminal terminal, NPrintStream out)
public String getRememberMeKey()
getRememberMeKey in interface NAsk<T>public NAsk<T> setRememberMeKey(String rememberMeKey)
setRememberMeKey in interface NAsk<T>public boolean isResetLine()
isResetLine in interface NAsk<T>public NAsk<char[]> forPassword(NMsg msg)
forPassword in interface NAsk<T>public NMsg getHintMessage()
getHintMessage in interface NAsk<T>public NMsg getMessage()
getMessage in interface NAsk<T>public NMsg getCancelMessage()
getCancelMessage in interface NAsk<T>public NAsk<T> setHintMessage(NMsg message)
setHintMessage in interface NAsk<T>public List<Object> getAcceptedValues()
getAcceptedValues in interface NAsk<T>public NAsk<T> setAcceptedValues(List<Object> acceptedValues)
setAcceptedValues in interface NAsk<T>public T getDefaultValue()
getDefaultValue in interface NAsk<T>public NAsk<T> setDefaultValue(T defaultValue)
setDefaultValue in interface NAsk<T>public Class<T> getValueType()
getValueType in interface NAsk<T>public NAsk<T> setValueType(Class<T> valueType)
setValueType in interface NAsk<T>public NAskFormat<T> getFormat()
public NAsk<T> setFormat(NAskFormat<T> parser)
public NAskParser<T> getParser()
public NAsk<T> setParser(NAskParser<T> parser)
public NAskValidator<T> getValidator()
getValidator in interface NAsk<T>public NAsk<T> setValidator(NAskValidator<T> validator)
setValidator in interface NAsk<T>public Boolean getBooleanValue()
getBooleanValue in interface NAsk<T>public final NAsk<T> configure(boolean skipUnsupported, String... args)
NCmdLineConfigurable.configure(boolean, java.lang.String...)
to help return a more specific return type;configure in interface NCmdLineConfigurableconfigure in interface NAsk<T>args - argument to configure withthis instancepublic NAsk<T> setCancelMessage(NMsg message)
setCancelMessage in interface NAsk<T>public boolean configureFirst(NCmdLine cmdLine)
configureFirst in interface NCmdLineConfigurableCopyright © 2026 vpc open source initiative. All rights reserved.