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