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

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

public abstract class AbstractReadXmlFromData
extends AbstractCommon
implements ReadXmlInterface


フィールドの概要
protected  org.w3c.dom.Document root
           
 
クラス 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
 
コンストラクタの概要
AbstractReadXmlFromData()
           
 
メソッドの概要
 int execute()
          処理を実行します Inに指定されたXMLをパースし、結果をOutに格納します
 void exit()
          終了処理。
 java.lang.String getAttributeName(java.lang.String dataPhysicalName, int dataPosition)
          値取得方法 Node以下のどの値を取得対象にするかを設定。
 int getIOParameter()
          入出力引数を取得する Inにはxmlが格納されたITEMを一つ必ず設定する必要があります。
static org.w3c.dom.NodeList getNodeList(org.w3c.dom.Document root, java.lang.String xPath)
          対象となるNodeListを取得
static org.w3c.dom.Document parse(byte[] xml)
          ドキュメントルートを取得
 void parseError(java.lang.Throwable th)
          XMLパースエラー発生時
static void setData(org.w3c.dom.traversal.NodeIterator nl, DataInterface data)
          指定のNodeIteratorのCDATA値からdataに値を設定する
static void setData(org.w3c.dom.traversal.NodeIterator nl, DataInterface data, java.lang.String attributeName)
          指定のNodeIteratorの属性値からitemに値を設定する
 void setDataError(java.lang.Throwable th)
          データ格納エラー発生時
 void setDatas(org.w3c.dom.Document root)
          出力Dataに値を設定する(CDATAの値を設定)
 
クラス 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, loopInRecordSub, 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.common.xml.ReadXmlInterface から継承されたメソッド
getXml, getXPath
 

フィールドの詳細

root

protected org.w3c.dom.Document root
コンストラクタの詳細

AbstractReadXmlFromData

public AbstractReadXmlFromData()
メソッドの詳細

exit

public void exit()
インタフェース CommonInterface の記述:
終了処理。保持していた変数などを開放する処理を記述します。
execute の後に実行されます。
正常終了・異常終了などに関わらず必ず実行されます。

定義:
インタフェース CommonInterface 内の exit
定義:
インタフェース RuleEngineInterface 内の exit

getAttributeName

public java.lang.String getAttributeName(java.lang.String dataPhysicalName,
                                         int dataPosition)
                                  throws java.lang.Throwable
値取得方法 Node以下のどの値を取得対象にするかを設定。 PCDATAの場合には空文字を返す。属性の場合には属性名を返す

定義:
インタフェース ReadXmlInterface 内の getAttributeName
パラメータ:
String - Dataの物理名称
戻り値:
String 属性名
例外:
java.lang.Throwable

getIOParameter

public int getIOParameter()
入出力引数を取得する Inにはxmlが格納されたITEMを一つ必ず設定する必要があります。

定義:
インタフェース CommonInterface 内の getIOParameter
定義:
インタフェース RuleEngineInterface 内の getIOParameter
戻り値:
int 結果

execute

public int execute()
            throws java.lang.Throwable
処理を実行します Inに指定されたXMLをパースし、結果をOutに格納します

定義:
インタフェース CommonInterface 内の execute
定義:
インタフェース RuleEngineInterface 内の execute
戻り値:
int 結果
例外:
java.lang.Throwable

parseError

public void parseError(java.lang.Throwable th)
XMLパースエラー発生時

パラメータ:
Throwable - エラーオブジェクト

setDataError

public void setDataError(java.lang.Throwable th)
データ格納エラー発生時

パラメータ:
Throwable - エラーオブジェクト

parse

public static org.w3c.dom.Document parse(byte[] xml)
                                  throws java.lang.Exception
ドキュメントルートを取得

パラメータ:
byte[] - XML
戻り値:
Document ドキュメントルート
例外:
java.lang.Exception

setDatas

public final void setDatas(org.w3c.dom.Document root)
                    throws java.lang.Throwable
出力Dataに値を設定する(CDATAの値を設定)

例外:
java.lang.Throwable

setData

public static final void setData(org.w3c.dom.traversal.NodeIterator nl,
                                 DataInterface data)
指定のNodeIteratorのCDATA値からdataに値を設定する

パラメータ:
NodeIterator - itemタグ以下のNodeIterator
Item -

setData

public static final void setData(org.w3c.dom.traversal.NodeIterator nl,
                                 DataInterface data,
                                 java.lang.String attributeName)
指定のNodeIteratorの属性値からitemに値を設定する

パラメータ:
NodeIterator - itemタグ以下のNodeIterator
Item -

getNodeList

public static org.w3c.dom.NodeList getNodeList(org.w3c.dom.Document root,
                                               java.lang.String xPath)
                                        throws java.lang.Throwable
対象となるNodeListを取得

パラメータ:
Document - ドキュメントルート
String - 取得対象のXPath
戻り値:
NodeList 取得したノード
例外:
java.lang.Throwable