org.simBio.sim.ps.serialize
Class ParseXMLs

java.lang.Object
  extended by org.simBio.sim.ps.serialize.ParseXMLs

public class ParseXMLs
extends java.lang.Object

Query XML files, write a table of contents in a Csv and a XML. TODO parse in parallel with collecting results. TODO connect seamlessly with paramSpace.

Version:
$Id: ParseXMLs.java,v 1.5 2007/12/17 07:35:14 nsarai Exp $
Author:
Mikael Wing

Nested Class Summary
 class ParseXMLs.NameVal
           
 class ParseXMLs.Result
           
 
Constructor Summary
ParseXMLs(org.w3c.dom.Document protocolXML)
           
ParseXMLs(java.io.InputStream protocolStream)
           
 
Method Summary
 boolean collectXMLs()
          Check if XML-files should be collected in purpose to write a table of contents in a CSV- and a XML-file.
 ProtocolParser getProtocolParser()
          Get ProtocolParser
 java.lang.String[] getXMLs()
          Query XML-files.
 boolean hasXMLs()
          Check if there are any XML-files.
 void writeCsv()
          Write Csv.
 void writeToc(java.lang.String protocolName, boolean runResultGenerator)
          Write Table Of Contents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParseXMLs

public ParseXMLs(java.io.InputStream protocolStream)
Parameters:
protocolStream - as InputStream

ParseXMLs

public ParseXMLs(org.w3c.dom.Document protocolXML)
Parameters:
protocolXML - as Document
Method Detail

getProtocolParser

public ProtocolParser getProtocolParser()
Get ProtocolParser

Returns:
ProtocolParser

collectXMLs

public boolean collectXMLs()
Check if XML-files should be collected in purpose to write a table of contents in a CSV- and a XML-file.

Returns:
True if XML-files should be collected.

hasXMLs

public boolean hasXMLs()
Check if there are any XML-files.

Returns:
True if there are XML-files.

getXMLs

public java.lang.String[] getXMLs()
Query XML-files.

Returns:
XML-files.

writeCsv

public void writeCsv()
Write Csv.


writeToc

public void writeToc(java.lang.String protocolName,
                     boolean runResultGenerator)
Write Table Of Contents.

Parameters:
protocolName -
runResultGenerator - ResultGenerator if true.


Copyright © 2002-2008 Cell/Biodinamics simulation project. All Rights Reserved.