クラス SimpleLogicClassDelegate
java.lang.Object
jp.ne.mki.wedge.rule.base.delegate.SimpleLogicClassDelegate
- すべての実装されたインタフェース:
jp.ne.mki.wedge.run.interfaces.ILogicClassDelegate
public class SimpleLogicClassDelegate
extends Object
implements jp.ne.mki.wedge.run.interfaces.ILogicClassDelegate
LogicClass委譲クラスのシンプル実装
LogicClass単体テストなどを行う場合に使用する場合などで使用するシンプルな実装です。
ILogicClassDelegate が設定されていないロジッククラスを実行時には、このクラスが
使用されます。
ログ出力先は、OutputStreamに、ダイアログの表示については ダイアログは表示せずにログとして 出力します。
- 導入されたバージョン:
- ver1.3.0
-
コンストラクタの概要
コンストラクタコンストラクタ説明SimpleLogicClassDelegate
(PrintStream output) SimpleLogicClassDelegate
(PrintStream output, Formatter formatter) -
メソッドの概要
修飾子とタイプメソッド説明getConnectDB
(jp.ne.mki.wedge.run.interfaces.RuleEngineInterface logicClass) DB接続先を設定する。getRuleSql
(jp.ne.mki.wedge.run.interfaces.RuleEngineInterface logicClass) RuleSqlを取得する。void
LogRecordのログ出力void
デバッグの情報に関するメッセージを出力します。void
エラーメッセージを出力します。void
エラーメッセージを出力します。void
致命的なエラーに関するメッセージを出力します。void
致命的なエラーに関するメッセージを出力します。void
情報メッセージを出力します。void
詳細なデバッグ情報メッセージを出力します。void
警告メッセージを出力します。void
警告メッセージを出力します。void
setConnectDB
(String connectDB, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface logicClass) RuleSqlを設定する。void
setFormatter
(Formatter formatter) Formatterを設定void
setRuleSql
(String ruleSql, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface logicClass) DB接続先を取得する。int
showConfirmDialog
(String message, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface rule) 確認ダイアログの表示void
showErrorDialog
(String message, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface rule) エラーダイアログ表示void
showInfomationDialog
(String message, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface rule) 情報ダイアログの表示void
showWarningDialog
(String message, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface rule) 警告ダイアログの表示void
writeErrorLog
(String message, Throwable th, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface rule) エラーログを出力するvoid
writeLog
(Level level, String message, Throwable th, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface logicClass) エラーログを出力 エラーレベルを指定して出力します。void
writeTraceLog
(String message, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface rule) トレースログを出力する
-
コンストラクタの詳細
-
SimpleLogicClassDelegate
public SimpleLogicClassDelegate() -
SimpleLogicClassDelegate
- パラメータ:
output
-
-
SimpleLogicClassDelegate
- パラメータ:
output
- ログを出力するOutput.標準出力にする場合には System.out を渡して下さい。formatter
- ログ出力時のLogRecordのFormatter. nullが渡されたときはSimpleFormatter
を使用します。
-
-
メソッドの詳細
-
showErrorDialog
public void showErrorDialog(String message, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface rule) エラーダイアログ表示- 定義:
showErrorDialog
インタフェース内jp.ne.mki.wedge.run.interfaces.ILogicClassDelegate
- パラメータ:
message
-rule
-
-
showInfomationDialog
public void showInfomationDialog(String message, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface rule) 情報ダイアログの表示- 定義:
showInfomationDialog
インタフェース内jp.ne.mki.wedge.run.interfaces.ILogicClassDelegate
- パラメータ:
message
-rule
-
-
showWarningDialog
public void showWarningDialog(String message, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface rule) 警告ダイアログの表示- 定義:
showWarningDialog
インタフェース内jp.ne.mki.wedge.run.interfaces.ILogicClassDelegate
- パラメータ:
message
-rule
-
-
showConfirmDialog
public int showConfirmDialog(String message, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface rule) 確認ダイアログの表示- 定義:
showConfirmDialog
インタフェース内jp.ne.mki.wedge.run.interfaces.ILogicClassDelegate
- パラメータ:
message
-rule
-- 戻り値:
- int
-
logFatal
致命的なエラーに関するメッセージを出力します。- パラメータ:
message
- メッセージrule
-
-
logFatal
public void logFatal(String message, Throwable th, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface rule) 致命的なエラーに関するメッセージを出力します。- パラメータ:
message
- メッセージth
- 例外オブジェクトrule
-
-
logError
エラーメッセージを出力します。- パラメータ:
message
- メッセージrule
-
-
logError
public void logError(String message, Throwable th, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface rule) エラーメッセージを出力します。- パラメータ:
message
- メッセージth
- 例外オブジェクトrule
-
-
logWarn
警告メッセージを出力します。- パラメータ:
message
- メッセージrule
-
-
logWarn
public void logWarn(String message, Throwable th, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface rule) 警告メッセージを出力します。- パラメータ:
message
- メッセージth
- 例外オブジェクトrule
-
-
logInfo
情報メッセージを出力します。- パラメータ:
message
- メッセージrule
-
-
logDebug
デバッグの情報に関するメッセージを出力します。- パラメータ:
message
- メッセージrule
-
-
logTrace
詳細なデバッグ情報メッセージを出力します。- パラメータ:
message
- メッセージrule
-
-
writeErrorLog
public void writeErrorLog(String message, Throwable th, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface rule) インタフェースからコピーされた説明:jp.ne.mki.wedge.run.interfaces.ILogicClassDelegate
エラーログを出力する- 定義:
writeErrorLog
インタフェース内jp.ne.mki.wedge.run.interfaces.ILogicClassDelegate
- パラメータ:
message
-th
-rule
-
-
writeTraceLog
インタフェースからコピーされた説明:jp.ne.mki.wedge.run.interfaces.ILogicClassDelegate
トレースログを出力する- 定義:
writeTraceLog
インタフェース内jp.ne.mki.wedge.run.interfaces.ILogicClassDelegate
- パラメータ:
message
-rule
-
-
log
LogRecordのログ出力- 定義:
log
インタフェース内jp.ne.mki.wedge.run.interfaces.ILogicClassDelegate
- パラメータ:
record
-
-
writeLog
public void writeLog(Level level, String message, Throwable th, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface logicClass) エラーログを出力 エラーレベルを指定して出力します。- 定義:
writeLog
インタフェース内jp.ne.mki.wedge.run.interfaces.ILogicClassDelegate
- パラメータ:
level
- 出力するレベルmessage
- 出力する文字列th
- 出力するThrowablelogicClass
- 対象のロジッククラス
-
setFormatter
Formatterを設定- パラメータ:
formatter
-
-
setRuleSql
public void setRuleSql(String ruleSql, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface logicClass) DB接続先を取得する。- 定義:
setRuleSql
インタフェース内jp.ne.mki.wedge.run.interfaces.ILogicClassDelegate
-
setConnectDB
public void setConnectDB(String connectDB, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface logicClass) RuleSqlを設定する。- 定義:
setConnectDB
インタフェース内jp.ne.mki.wedge.run.interfaces.ILogicClassDelegate
-
getRuleSql
RuleSqlを取得する。- 定義:
getRuleSql
インタフェース内jp.ne.mki.wedge.run.interfaces.ILogicClassDelegate
-
getConnectDB
DB接続先を設定する。- 定義:
getConnectDB
インタフェース内jp.ne.mki.wedge.run.interfaces.ILogicClassDelegate
-