|
intra-mart(R) 6.0.13 | ||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object jp.co.intra_mart.foundation.utility.report.FilterMessageReporter jp.co.intra_mart.foundation.utility.report.ReportLevelFilter
jp.co.intra_mart.common.aid.jdk.util.report.ReportLevelFilter
クラスを使用してください。
メッセージの出力制御を行うためのフィルタークラスです。
このクラスを利用することにより、メッセージをメッセージレベルにより、 出力制御を行うことができます。
ReportLevel
フィールドの概要 | |
protected int |
datumpoint
推奨されていません。 このリポーターがフィルタリングする基準レベル値 |
クラス jp.co.intra_mart.foundation.utility.report.FilterMessageReporter から継承したフィールド |
out |
インタフェース jp.co.intra_mart.foundation.utility.report.ReportLevel から継承したフィールド |
MAX_VALUE, MIN_VALUE, TYPE_DEBUG, TYPE_ERROR, TYPE_REPORT, TYPE_WARNING |
コンストラクタの概要 | |
ReportLevelFilter(MessageReporter out,
int level)
推奨されていません。 指定された基礎出力リポーターにメッセージを書き込む Reporter オブジェクトを作成します。 |
メソッドの概要 | |
void |
report(Object data)
推奨されていません。 data をメッセージとして出力します。 |
void |
report(Object data,
int level)
推奨されていません。 指定のメッセージレベルが基準値以上のメッセージを出力します。 |
void |
report(String message)
推奨されていません。 メッセージを出力します。 |
void |
report(String message,
int level)
推奨されていません。 指定のメッセージレベルが基準値以上のメッセージを出力します。 |
クラス jp.co.intra_mart.foundation.utility.report.FilterMessageReporter から継承したメソッド |
close, flush |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
protected int datumpoint
コンストラクタの詳細 |
public ReportLevelFilter(MessageReporter out, int level)
out
- 基礎出力リポーターメソッドの詳細 |
public void report(String message)
report(message, ReportLevel.MAX_VALUE)
つまり、メッセージ message は必ず基礎出力リポーターに出力されます。
MessageReporter
内の report
FilterMessageReporter
内の report
message
- メッセージpublic void report(String message, int level)
this.datumpoint <= level
判定式が true の場合、基礎出力リポーターに対して
メッセージが出力されます。逆に判定結果が false の場合、
このメソッドは何も行いません。
message
- メッセージlevel
- メッセージレベルpublic void report(Object data)
report(data, ReportLevel.MAX_VALUE)
つまり、メッセージデータ data は必ず基礎出力リポーターに出力されます。
MessageReporter
内の report
FilterMessageReporter
内の report
data
- データpublic void report(Object data, int level)
this.datumpoint <= level
判定式が true の場合、基礎出力リポーターに対して
メッセージが出力されます。逆に判定結果が false の場合、
このメソッドは何も行いません。
data
- データlevel
- メッセージレベル
|
intra-mart(R) 6.0.13 | ||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |