public class AnsiPropertySource extends org.springframework.core.env.PropertySource<AnsiElement>
AnsiStyle、AnsiColor、AnsiBackground、Ansi8BitColor エレメントの PropertyResolver。AnsiStyle.BOLD、AnsiColor.RED、AnsiBackground.GREEN の形式のプロパティをサポートします。また、すべての集合体である Ansi. の接頭辞もサポートします(背景色の接頭辞は BG_ です)。ANSI 8 ビットカラーコードは AnsiColor および AnsiBackground で使用できます。例: AnsiColor.208 はオレンジ色のテキストをレンダリングします。ウィキペディアには、使用可能な 8 ビットカラーコードの完全なリストがあります。
| コンストラクターと説明 |
|---|
AnsiPropertySource(StringSE name, boolean encode) 新しい AnsiPropertySource インスタンスを作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
ObjectSE | getProperty(StringSE name) |
containsProperty, equals, getName, getSource, hashCode, named, toStringcloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSEpublic AnsiPropertySource(StringSE name, boolean encode)
AnsiPropertySource インスタンスを作成します。name - プロパティソースの名前 encode - 出力をエンコードする必要がある場合 public ObjectSE getProperty(StringSE name)
org.springframework.core.env.PropertySource<AnsiElement> の getProperty Copyright © 2019 Pivotal Software, Inc.. All rights reserved.