インターフェース StringInput.StringInputContext
- すべてのスーパーインターフェース:
AbstractTextComponent.TextComponentContext<StringSE,,StringInput.StringInputContext> ComponentContext<StringInput.StringInputContext>
- 含まれているクラス:
- StringInput
public static interface StringInput.StringInputContext
extends AbstractTextComponent.TextComponentContext<StringSE,StringInput.StringInputContext>
ネストされたクラスの要約
インターフェース org.springframework.shell.jline.tui.component.support.AbstractTextComponent.TextComponentContext から継承されたネストクラス / インターフェース
AbstractTextComponent.TextComponentContext.MessageLevel方法の概要
修飾子と型メソッド説明empty()空のStringInput.StringInputContextを取得します。@Nullable StringSEデフォルト値を取得します。@Nullable CharacterSEマスク文字を取得します。@Nullable StringSEマスクされた入力を取得します。@Nullable StringSEマスクされた結果値を取得します。booleanマスク文字が定義されている場合、フラグを返します。boolean入力が必要な場合はフラグを返します。of(@Nullable StringSE defaultValue, @Nullable CharacterSE maskCharacter) StringInput.StringInputContextを取得します。of(@Nullable StringSE defaultValue, @Nullable CharacterSE maskCharacter, boolean required) StringInput.StringInputContextを取得します。voidsetDefaultValue(@Nullable StringSE defaultValue) デフォルト値を設定します。voidsetMaskCharacter(CharacterSE maskCharacter) マスク文字を設定します。voidsetRequired(boolean required) Sets flag for mandatory input.インターフェース org.springframework.shell.jline.tui.component.support.AbstractTextComponent.TextComponentContext から継承されたメソッド
getInput, getMessage, getMessageLevel, getName, getResultValue, setInput, setMessage, setMessage, setMessageLevel, setName, setResultValueインターフェース org.springframework.shell.jline.tui.component.context.ComponentContext から継承されたメソッド
containsKey, get, get, getTerminalWidth, put, setTerminalWidth, stream, toTemplateModel
メソッドの詳細
getDefaultValue
@Nullable StringSE getDefaultValue()デフォルト値を取得します。- 戻り値:
- デフォルト値
setDefaultValue
デフォルト値を設定します。- パラメーター:
defaultValue- デフォルト値
setMaskCharacter
マスク文字を設定します。- パラメーター:
maskCharacter- マスクのキャラクター
getMaskedInput
@Nullable StringSE getMaskedInput()マスクされた入力を取得します。- 戻り値:
- マスクされた入力
getMaskedResultValue
@Nullable StringSE getMaskedResultValue()マスクされた結果値を取得します。- 戻り値:
- マスクされた結果値
hasMaskCharacter
boolean hasMaskCharacter()マスク文字が定義されている場合、フラグを返します。- 戻り値:
- マスク文字が定義されている場合は true、そうでない場合は false
getMaskCharacter
@Nullable CharacterSE getMaskCharacter()マスク文字を取得します。- 戻り値:
- マスクキャラ。
setRequired
void setRequired(boolean required) Sets flag for mandatory input.- パラメーター:
required- true if input is required
isRequired
boolean isRequired()入力が必要な場合はフラグを返します。- 戻り値:
- true if input is required, false otherwise
empty
空のStringInput.StringInputContextを取得します。- 戻り値:
- 空のパス入力コンテキスト
of
static StringInput.StringInputContext of(@Nullable StringSE defaultValue, @Nullable CharacterSE maskCharacter) StringInput.StringInputContextを取得します。- 戻り値:
- パス入力コンテキスト
of
static StringInput.StringInputContext of(@Nullable StringSE defaultValue, @Nullable CharacterSE maskCharacter, boolean required) StringInput.StringInputContextを取得します。- 戻り値:
- パス入力コンテキスト