クラス BaseComponentContext<C extends ComponentContext<C>>
java.lang.ObjectSE
java.util.AbstractMapSE<K,V>
java.util.HashMapSE<K,V>
java.util.LinkedHashMapSE<ObjectSE,ObjectSE>
org.springframework.shell.component.context.BaseComponentContext<C>
- 実装されているすべてのインターフェース:
SerializableSE、CloneableSE、MapSE<ObjectSE,、ObjectSE> ComponentContext<C>
- 既知の直属サブクラス
AbstractSelectorComponent.BaseSelectorComponentContext,AbstractTextComponent.BaseTextComponentContext
public class BaseComponentContext<C extends ComponentContext<C>>
extends LinkedHashMapSE<ObjectSE,ObjectSE>
implements ComponentContext<C>
ComponentContext の基本実装。- 関連事項:
ネストされたクラスの要約
クラス java.util.AbstractMapSE から継承されたネストクラス / インターフェース
AbstractMap.SimpleEntrySE<KSE extends ObjectSE,VSE extends ObjectSE>, AbstractMap.SimpleImmutableEntrySE<KSE extends ObjectSE, VSE extends ObjectSE> コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明コンテキストから値を取得します。<T> Tキャスト先の特定の型のコンテキストから値を取得します。ターミナルの幅を取得します。エントリをコンテキストに入れます。voidsetTerminalWidth(IntegerSE terminalWidth) 端子幅を設定します。stream()このComponentContextからキーと値のペアをストリーミングしますtoString()コンテキスト値をマップとして取得します。クラス java.util.LinkedHashMapSE から継承されたメソッド
clear, containsValueSE, entrySet, forEachSE, getOrDefaultSE, keySet, removeEldestEntrySE, replaceAllSE, valuesクラス java.util.HashMapSE から継承されたメソッド
clone, computeSE, computeIfAbsentSE, computeIfPresentSE, containsKeySE, isEmpty, mergeSE, putAllSE, putIfAbsentSE, removeSE, removeSE, replaceSE, replaceSE, sizeクラス java.util.AbstractMapSE から継承されたメソッド
equalsSE, hashCodeインターフェース org.springframework.shell.component.context.ComponentContext から継承されたメソッド
containsKeyインターフェース java.util.MapSE から継承されたメソッド
computeSE, computeIfAbsentSE, computeIfPresentSE, containsKeySE, equalsSE, hashCode, isEmpty, mergeSE, putAllSE, putIfAbsentSE, removeSE, removeSE, replaceSE, replaceSE, size
コンストラクターの詳細
BaseComponentContext
public BaseComponentContext()
メソッドの詳細
get
インターフェースからコピーされた説明:ComponentContextコンテキストから値を取得します。- 次で指定:
- インターフェース
ComponentContext<C extends ComponentContext<C>>のget - 次で指定:
- インターフェース
MapSE<ObjectSE,のObjectSE> getSE - オーバーライド:
- クラス
LinkedHashMapSE<ObjectSE,のObjectSE> getSE - パラメーター:
key- キー- 戻り値:
- 価値
get
インターフェースからコピーされた説明:ComponentContextキャスト先の特定の型のコンテキストから値を取得します。- 次で指定:
- インターフェース
ComponentContext<C extends ComponentContext<C>>のget - 型パラメーター:
T- コンテキストの型- パラメーター:
key- キーtype- クラスの種類- 戻り値:
- 価値
put
インターフェースからコピーされた説明:ComponentContextエントリをコンテキストに入れます。stream
インターフェースからコピーされた説明:ComponentContextこのComponentContextからキーと値のペアをストリーミングします- 次で指定:
- インターフェース
ComponentContext<C extends ComponentContext<C>>のstream - 戻り値:
- このコンテキストが保持するキーと値のペアの
StreamSE
getTerminalWidth
インターフェースからコピーされた説明:ComponentContextターミナルの幅を取得します。- 次で指定:
- インターフェース
ComponentContext<C extends ComponentContext<C>>のgetTerminalWidth - 戻り値:
- 端子幅
setTerminalWidth
インターフェースからコピーされた説明:ComponentContext端子幅を設定します。- 次で指定:
- インターフェース
ComponentContext<C extends ComponentContext<C>>のsetTerminalWidth - パラメーター:
terminalWidth- 幅
toTemplateModel
インターフェースからコピーされた説明:ComponentContextコンテキスト値をマップとして取得します。すべてのコンテキスト実装は、テンプレートエンジンにフィードされる可能性が最も高い最後の子から出てくるものであるため、本質的に独自のモデルを実行できます。- 次で指定:
- インターフェース
ComponentContext<C extends ComponentContext<C>>のtoTemplateModel - 戻り値:
- コンテキスト値のマップ
toString
- オーバーライド:
- クラス
AbstractMapSE<ObjectSE,のObjectSE> toString