org.simBio.sim.dm
クラス ProtocolParser

java.lang.Object
  上位を拡張 org.simBio.sim.dm.ProtocolParser

public class ProtocolParser
extends java.lang.Object

Protocol XML-file parser.

バージョン:
$Id: ProtocolParser.java,v 1.2 2007/11/07 04:57:06 mikaelwing Exp $
作成者:
Mikael Wing

フィールドの概要
protected  org.w3c.dom.Document protocol
           
 
コンストラクタの概要
ProtocolParser(org.w3c.dom.Document protocolXML)
           
ProtocolParser(java.io.InputStream protocol)
           
 
メソッドの概要
 java.lang.String getBaseModel()
          Read tag attribute "path" from file protocol.
 java.io.File getCsvRootFile()
          Get CSV-file.
 org.w3c.dom.traversal.NodeIterator getEraser()
          Read tag from file protocol.
 org.w3c.dom.Node getExchanger()
          Read tag from file protocol.
 java.lang.String getGenerateModel()
          Read tag attribute "path" from file protocol.
 java.lang.String getIdentification()
          Read tag attribute "identification" from file protocol.
 org.w3c.dom.traversal.NodeIterator getInserter()
          Read tag from file protocol.
 org.w3c.dom.traversal.NodeIterator getInserterBefore()
          Read tag from file protocol.
 java.lang.String getLauncher()
          Read tag attribute "launch" from file protocol.
 int getMaxThreads()
          Read tag attribute "threads" from file protocol.
 org.w3c.dom.traversal.NodeIterator getMultiplier()
          Read tag from file protocol.
 org.w3c.dom.Node getNormalizeTo()
          Read tag attribute "xpath" from file protocol.
 java.io.InputStream getProtocolAsStream()
          Get protocol as stream.
 java.lang.String getSettings()
          Read tag attribute "settings" from file protocol.
 java.lang.String getTocXML()
          Get Toc XML-file path.
 org.w3c.dom.traversal.NodeIterator getWriter()
          Read tag from file protocol.
 java.io.File getXmlRootDir()
          Get XML root dir.
 org.w3c.dom.traversal.NodeIterator getXpath(java.lang.String xpath)
          Read input parameter xpath from file protocol.
 boolean hasExchanger()
          Check if the protocol file has an exchanger or not.
 void setXmlRootDir()
          Add XML root dir (if exist) to XML-file path.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

protocol

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

ProtocolParser

public ProtocolParser(java.io.InputStream protocol)
パラメータ:
protocol - as InputStream

ProtocolParser

public ProtocolParser(org.w3c.dom.Document protocolXML)
パラメータ:
protocolXML - as Document
メソッドの詳細

getProtocolAsStream

public java.io.InputStream getProtocolAsStream()
Get protocol as stream.

戻り値:
protocol as stream.

getBaseModel

public java.lang.String getBaseModel()
                              throws java.io.IOException
Read tag attribute "path" from file protocol.

戻り値:
nodevalue for path.
例外:
java.io.IOException

getGenerateModel

public java.lang.String getGenerateModel()
                                  throws java.io.IOException
Read tag attribute "path" from file protocol.

戻り値:
nodevalue for path.
例外:
java.io.IOException

getMaxThreads

public int getMaxThreads()
Read tag attribute "threads" from file protocol.

戻り値:
Max number of threads or 1 if not defined.

getLauncher

public java.lang.String getLauncher()
                             throws java.io.IOException
Read tag attribute "launch" from file protocol.

戻り値:
nodevalue for launch.
例外:
java.io.IOException

getEraser

public org.w3c.dom.traversal.NodeIterator getEraser()
                                             throws java.io.IOException
Read tag from file protocol.

戻り値:
nodeIterator for eraser.
例外:
java.io.IOException

getInserter

public org.w3c.dom.traversal.NodeIterator getInserter()
                                               throws java.io.IOException
Read tag from file protocol.

戻り値:
nodeIterator for inserter.
例外:
java.io.IOException

getInserterBefore

public org.w3c.dom.traversal.NodeIterator getInserterBefore()
                                                     throws java.io.IOException
Read tag from file protocol.

戻り値:
nodeIterator for insert/before.
例外:
java.io.IOException

getWriter

public org.w3c.dom.traversal.NodeIterator getWriter()
                                             throws java.io.IOException
Read tag from file protocol.

戻り値:
nodeIterator for writer.
例外:
java.io.IOException

getMultiplier

public org.w3c.dom.traversal.NodeIterator getMultiplier()
                                                 throws java.io.IOException
Read tag from file protocol.

戻り値:
nodeIterator for write/multiplier.
例外:
java.io.IOException

hasExchanger

public boolean hasExchanger()
Check if the protocol file has an exchanger or not.

戻り値:
true, when the file has at least one exchanger.

getExchanger

public org.w3c.dom.Node getExchanger()
                              throws java.io.IOException
Read tag from file protocol.

戻り値:
node for exchanger.
例外:
java.io.IOException

getIdentification

public java.lang.String getIdentification()
                                   throws java.io.IOException
Read tag attribute "identification" from file protocol.

戻り値:
nodevalue for identification.
例外:
java.io.IOException

getXmlRootDir

public java.io.File getXmlRootDir()
                           throws java.io.IOException
Get XML root dir.

戻り値:
file path for XML.
例外:
java.io.IOException

setXmlRootDir

public void setXmlRootDir()
Add XML root dir (if exist) to XML-file path. This will give the following path: //


getCsvRootFile

public java.io.File getCsvRootFile()
                            throws java.io.IOException
Get CSV-file.

戻り値:
CSV-file.
例外:
java.io.IOException

getTocXML

public java.lang.String getTocXML()
                           throws java.io.IOException
Get Toc XML-file path.

戻り値:
Toc XML-file path.
例外:
java.io.IOException

getSettings

public java.lang.String getSettings()
                             throws java.io.IOException
Read tag attribute "settings" from file protocol.

戻り値:
nodevalue for settings.
例外:
java.io.IOException

getXpath

public org.w3c.dom.traversal.NodeIterator getXpath(java.lang.String xpath)
                                            throws java.io.IOException
Read input parameter xpath from file protocol.

パラメータ:
xpath - string
戻り値:
nodeIterator for xpath.
例外:
java.io.IOException

getNormalizeTo

public org.w3c.dom.Node getNormalizeTo()
                                throws java.io.IOException
Read tag attribute "xpath" from file protocol.

戻り値:
node for xpath.
例外:
java.io.IOException


???(C) 2002-2007 ?????????????????????