クラス 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を取得する。voidLogRecordのログ出力voidデバッグの情報に関するメッセージを出力します。voidエラーメッセージを出力します。voidエラーメッセージを出力します。void致命的なエラーに関するメッセージを出力します。void致命的なエラーに関するメッセージを出力します。void情報メッセージを出力します。void詳細なデバッグ情報メッセージを出力します。void警告メッセージを出力します。void警告メッセージを出力します。voidsetConnectDB(String connectDB, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface logicClass) RuleSqlを設定する。voidsetFormatter(Formatter formatter) Formatterを設定voidsetRuleSql(String ruleSql, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface logicClass) DB接続先を取得する。intshowConfirmDialog(String message, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface rule) 確認ダイアログの表示voidshowErrorDialog(String message, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface rule) エラーダイアログ表示voidshowInfomationDialog(String message, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface rule) 情報ダイアログの表示voidshowWarningDialog(String message, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface rule) 警告ダイアログの表示voidwriteErrorLog(String message, Throwable th, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface rule) エラーログを出力するvoidwriteLog(Level level, String message, Throwable th, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface logicClass) エラーログを出力 エラーレベルを指定して出力します。voidwriteTraceLog(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
-