edu.iastate.metnet.mapbuilder
Class XMLBuilder

java.lang.Object
  extended by edu.iastate.metnet.mapbuilder.XMLBuilder

public class XMLBuilder
extends java.lang.Object

Author:
Nick Ransom Created on Aug 10, 2004 This class builds the .ZIP files used by FCModeler for a given set of pathways.

Constructor Summary
XMLBuilder()
           
 
Method Summary
static boolean buildFiles(java.util.ArrayList pathwayBoxes, java.util.ArrayList trivial, javax.swing.JProgressBar progress, boolean simple, boolean gene, boolean keep, java.io.File destinationDir)
          Compiles graph files for the given list of pathways, using the given build options.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLBuilder

public XMLBuilder()
Method Detail

buildFiles

public static boolean buildFiles(java.util.ArrayList pathwayBoxes,
                                 java.util.ArrayList trivial,
                                 javax.swing.JProgressBar progress,
                                 boolean simple,
                                 boolean gene,
                                 boolean keep,
                                 java.io.File destinationDir)
Compiles graph files for the given list of pathways, using the given build options.

Parameters:
pathwayBoxes - A list of JCheckBoxes representing the pathways to be built. The box's toolTipText will be used as the .ZIP file name, and its name (not its text, but the hidden "name" value) will be used as the blockID of the pathway.
trivial - A list of node names to treat as trivial nodes
progress - The progress bar to update as the files are built.
simple - If true, only Composition-OR, Composition-AND, and Enzymatic Reactions will be included in the graph files.
gene - If true, gene nodes will be included in the graph files.
keep - If true, the XML files will not be deleted after building is complete.
destinationDir - The directory in which to place the compiled files.
Returns:
false if any errors occur during the build, true otherwise.