jp.ne.mki.wedge.rule.common.xml
クラス AbstractXsltFromItem

java.lang.Object
  上位を拡張 jp.ne.mki.wedge.rule.base.AbstractBase
      上位を拡張 jp.ne.mki.wedge.rule.base.AbstractCommon
          上位を拡張 jp.ne.mki.wedge.rule.common.xml.AbstractGetXmlFromItem
              上位を拡張 jp.ne.mki.wedge.rule.common.xml.AbstractXsltFromItem
すべての実装されたインタフェース:
CommonInterface, RuleEngineInterface
直系の既知のサブクラス:
Xslt

public abstract class AbstractXsltFromItem
extends AbstractGetXmlFromItem

xslt


データを xml の形へ変換し、指定された xsl で変換する。(継承元クラスとしてのみ利用可能)


InRecordに設定されたデータを xml の書式の形にしたソースを パラメータ xsl-filename で指定された xsl ファイルで変換し、 継承先クラスで InputStream/OutputStream の形で利用する事が出来ます。 このロジッククラスを使用するときは、XML のパースと XSLT を行うモジュールを クラスパスに含める必要があります。


[I/O RECORD]

InputRecord OutputRecord
  1. データ(複数選択)
  1. xslt した結果の xml を格納する項目(省略可能)

[RULE PARAMETER]

Parameter xsl-filename=xsl ファイル名; その他のパラメータも「キー=値」のセットをセミコロン(;)でつなげる事により 継承先のクラスで利用可能です。

バージョン:
1.0

フィールドの概要
protected  java.lang.String xslFilename
           
 
クラス jp.ne.mki.wedge.rule.common.xml.AbstractGetXmlFromItem から継承されたフィールド
DEFAULT_XML_ENCODE, enc, PARAMETER_KEY_XML_ENCODE, ruleParameters
 
クラス jp.ne.mki.wedge.rule.base.AbstractBase から継承されたフィールド
controlRecord, engineManager, errorMessage, executeType, id, inputRecord, logicalName, logicClassDelegate, outputRecord, physicalName, ruleParameter, ruleType, serverParameter, userConstant
 
インタフェース jp.ne.mki.wedge.rule.base.interfaces.CommonInterface から継承されたフィールド
CANCEL, ERROR, EXECUTE_BOTH, EXECUTE_CLIENT, EXECUTE_DEBUG, EXECUTE_HTMLGATEWAY, EXECUTE_SERVER, EXECUTE_SERVERDC, IO_ERROR, IO_ERROR_EXECUTE_PARAMETER, IO_ERROR_IN, IO_ERROR_IO_MUST_SAME_COUNT, IO_ERROR_ITEM_TYPE, IO_ERROR_OUT, IO_ERROR_PARAMETER, NONE, OK, PARAMETER_DELIMITER, SKIP, USER_ERROR
 
コンストラクタの概要
AbstractXsltFromItem()
           
 
メソッドの概要
 void exit()
          使用していたオブジェクトの開放を行います。
 int getIOParameter()
          出力項目に設定されているDataオブジェクトを取得します。
protected  java.io.ByteArrayInputStream getResultInputStream()
          xslt 結果のソースへのストリームを返す。
 
クラス jp.ne.mki.wedge.rule.common.xml.AbstractGetXmlFromItem から継承されたメソッド
getInputStream, loopInRecordSub, writeToOutputStream
 
クラス jp.ne.mki.wedge.rule.base.AbstractCommon から継承されたメソッド
getLogicClassType, getManager, terminate
 
クラス jp.ne.mki.wedge.rule.base.AbstractBase から継承されたメソッド
callDispose, checkDelegate, createErrorMessage, createLogicErrorLogRecord, createLogicExceptionLogRecord, createLogicLogRecord, dataClearOfOutRecord, dataClearOfRecord, dispose, executeRule, getAppAccount, getAppAuthority, getAppMenu, getAppPassword, getClassErrorName, getClientId, getConnectionId, getConnectionPoolId, getConstantKeys, getConstantValue, getConstantValueAsStringArray, getControlRecord, getDbAccessCount, getDbErrorCode, getDbErrorMessage, getDbStatus, getDbUpdatedRecordCount, getEngineManager, getErrorMessage, getErrorMessage, getErrorMessage, getExceptionMessage, getExecuteType, getId, getInputRecordIterator, getInRecord, getInRecord, getInRecord, getInRecordCount, getInRecordList, getIpAddress_G_Index, getIpAddress_P_Index, getLogicalErrorName, getLogicalName, getLogicClassDelegate, getOutputHtml, getOutputRecordIterator, getOutRecord, getOutRecord, getOutRecord, getOutRecordCount, getOutRecordList, getPhysicalErrorName, getPhysicalName, getProjectId, getQueryEndLine, getQueryMaxCount, getQueryPageCount, getQueryStartLine, getReturnString, getRowSize, getRowSizeOfInRecord, getRuleParameter, getRuleParameters, getRuleParameters, getRuleParameters, getRuleType, getRuleTypeName, getServerMessage, getServerParameter, getServerStatus, getServerSubName, getServerSubRevision, getServerTran, getUpdateErrorLine, getUpdateTargetCount, getWebServerIpAddress, isExecutable, isJDK15, log, logDebug, logError, logError, logFatal, logFatal, logInfo, logTrace, logWarn, logWarn, loopInOutRecord, loopInOutRecordSub, loopInRecord, loopOutRecord, loopOutRecordSub, setControlRecord, setEngineManager, setErrorMessage, setErrorMessageMustInRecord, setErrorMessageMustOutRecord, setErrorMessageMustParamIsNumber, setExecuteType, setFatalError, setId, setInRecord, setLogicalName, setLogicClassDelegate, setOutputHtml, setOutRecord, setPhysicalName, setPropertyFromEngine, setRuleParameter, setRuleType, setServerParameter, setUserConstant, showErrorDialog, showErrorDialogAddRuleName, writeErrorLog, writeErrorLog, writeLog, writeLog, writeLog, writeTraceLog
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース jp.ne.mki.wedge.rule.base.interfaces.CommonInterface から継承されたメソッド
execute
 

フィールドの詳細

xslFilename

protected java.lang.String xslFilename
コンストラクタの詳細

AbstractXsltFromItem

public AbstractXsltFromItem()
メソッドの詳細

exit

public void exit()
使用していたオブジェクトの開放を行います。 継承先で Override する場合は必ず最後に「super.exit()」を実行してください。

定義:
インタフェース CommonInterface 内の exit
定義:
インタフェース RuleEngineInterface 内の exit
オーバーライド:
クラス AbstractGetXmlFromItem 内の exit

getIOParameter

public int getIOParameter()
出力項目に設定されているDataオブジェクトを取得します。 継承先で Override する場合は必ず public int getIOParameter() { if ( super.getIOParameter() == OK ) { // 実行したい処理 } else { return ERROR; } return OK; } の記述方法を使用してください。

定義:
インタフェース CommonInterface 内の getIOParameter
定義:
インタフェース RuleEngineInterface 内の getIOParameter
オーバーライド:
クラス AbstractGetXmlFromItem 内の getIOParameter
戻り値:
int 結果

getResultInputStream

protected java.io.ByteArrayInputStream getResultInputStream()
                                                     throws java.lang.Throwable
xslt 結果のソースへのストリームを返す。

戻り値:
ByteArrayInputStream xslt 結果ソース
例外:
java.lang.Throwable