jp.ne.mki.wedge.rule.compat10.common.xml
クラス V10xAbstractGetXmlFromItem
java.lang.Object
|
+--jp.ne.mki.wedge.rule.AbstractBusinessRule
|
+--jp.ne.mki.wedge.rule.compat10.common.xml.V10xAbstractGetXmlFromItem
- すべての実装インタフェース:
- BusinessRuleInterface, RuleEngineInterface
- 直系の既知のサブクラス:
- V10xAbstractXsltFromItem, V10xCreateXmlFromItemToFile
- public abstract class V10xAbstractGetXmlFromItem
- extends AbstractBusinessRule
データを xml の形へ変換する(継承元クラスとしてのみ利用可能)。
InRecordに設定されたデータを xml の書式の形に変換し、
継承先クラスで InputStream/OutputStream の形で利用する事が出来ます。
このルールを使用するときは、XML のパースと XSLT を行うモジュールを
クラスパスに含める必要があります。
[I/O RECORD]
InputRecord |
OutputRecord |
- データ(複数選択)
|
- 継承先のクラスで自由に利用可能です。
|
[RULE PARAMETER]
Parameter |
xml-encode=xml ファイルのエンコード(省略時は UTF-8);
その他のパラメータも「キー=値」のセットをセミコロン(;)でつなげる事により
継承先のクラスで利用可能です。
|
- バージョン:
- 1.0
- 作成者:
- mki
クラス jp.ne.mki.wedge.rule.AbstractBusinessRule から継承したフィールド |
className, errorMessage, EXECUTE_BOTH, EXECUTE_CLIENT, EXECUTE_HTMLGATEWAY, EXECUTE_SERVER, EXECUTE_SERVERDC, id, inputRecord, logicalName, outputRecord, physicalName, ruleParameter, ruleType, serverParameter, TIMING_AFTER, TIMING_BEFORE, TIMING_LOAD, TIMING_ROW_CLICK, TIMING_ROW_WCLICK, TIMING_UN_LOAD |
クラス jp.ne.mki.wedge.rule.AbstractBusinessRule から継承したメソッド |
createErrorMessage, executeRule, executeRule, getAppAccount, getAppAuthority, getAppMenu, getAppPassword, getClassErrorName, getClientId, getClientRuleObject, getCodeBase, getComponent, getComponent, getConfig, getConfImagePath, getConnectionId, getConnectionPoolId, getConstantValue, getContentPane, getCurrentComponent, getDbAccessCount, getDbErrorCode, getDbErrorMessage, getDbStatus, getDbUpdatedRecordCount, getExceptionMessage, getExecuteIndex, getExecuteParameter, getExecuteTiming, getExecuteType, getExecutions, getExpectNextComponent, getFrame, getHtmlExecution, getHtmlManagerObject, getId, getImageIcon, getInRecord, getInRecord, getInRecord, getInRecordCount, getIpAddress_G_Index, getIpAddress_P_Index, getLogicalErrorName, getLogicalName, getManager, getOutRecord, getOutRecord, getOutRecord, getOutRecordCount, getPhysicalErrorName, getPhysicalName, getProjectId, getQueryEndLine, getQueryMaxCount, getQueryPageCount, getQueryStartLine, getReturnString, getRuleParameter, getRuleType, getRuleTypeName, getServerControlData, getServerData, getServerMessage, getServerParameter, getServerStatus, getServerSubName, getServerSubRevision, getServerTran, getStepParameter, getUpdateErrorLine, getUpdateTargetCount, getWebServerIpAddress, isApplet, isApplication, isClientTraceMode, isConpiled, isExecutable, isJWS, isServerTraceMode, isWeb, loopInOutRecord, loopInOutRecordSub, loopInRecord, loopOutRecord, loopOutRecordSub, setControlRecord, setControlRecord, setControlRecordVector, setExecuteParameter, setExecuteType, setFocus, setFocus, setFocus, setHtmlExecution, setHtmlManager, setId, setInRecord, setLogicalName, setManager, setOutRecord, setPhysicalName, setPropertyFromEngine, setRuleParameter, setRuleType, setServerControlData, setServerData, setServerParameter, setStatusBarText, setUserConstant, setWedgeLog, showDocument, showErrorDialog, showErrorDialogAddRuleName, showFrame, showFrame, terminate, writeLog, writeLog, writeTraceLog |
クラス java.lang.Object から継承したメソッド |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
enc
protected java.lang.String enc
DEFAULT_XML_ENCODE
protected static java.lang.String DEFAULT_XML_ENCODE
ruleParameters
protected java.util.Hashtable ruleParameters
PARAMETER_KEY_XML_ENCODE
protected static java.lang.String PARAMETER_KEY_XML_ENCODE
V10xAbstractGetXmlFromItem
public V10xAbstractGetXmlFromItem()
exit
public void exit()
- 使用していたオブジェクトの開放を行います。
継承先で Override する場合は必ず最後に「super.exit()」を実行してください。
getIOParameter
public int getIOParameter()
- 出力項目に設定されているDataオブジェクトを取得します。
継承先で Override する場合は必ず
public int getIOParameter() {
if ( super.getIOParameter() == OK ) {
// 実行したい処理
}
else {
return ERROR;
}
return OK;
}
の記述方法を使用してください。
- 戻り値:
- int 結果
getInputStream
protected final java.io.ByteArrayInputStream getInputStream()
throws java.lang.Throwable
- 作成された xml データへの ByteArrayInputStream を返します。
- 戻り値:
- ByteArrayInputStream xml データ
writeToOutputStream
protected final void writeToOutputStream(java.io.OutputStream os)
throws java.lang.Throwable
- 作成された xml データを OutputStream へ書き出します。
このメソッド内では flush() と close() を行いません。
- パラメータ:
OutputStream
- 出力先
loopInRecordSub
protected int loopInRecordSub(DataInterface inData,
int index)
- クラス
AbstractBusinessRule
の記述:
- loopInRecord()から呼び出されるメソッドです。ユーザが任意に記述をします。
- オーバーライド:
- クラス
AbstractBusinessRule
内の loopInRecordSub