Cytoscape 2.4.1 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.util
Class JnlpWriterUtil

java.lang.Object
  extended by cytoscape.util.JnlpWriterUtil

public class JnlpWriterUtil
extends Object


Field Summary
 org.jdom.Document Doc
           
 String LibDir
           
 org.jdom.output.XMLOutputter Out
           
 String PluginDir
           
 org.jdom.Element Root
           
 
Constructor Summary
JnlpWriterUtil(String[] args)
           
 
Method Summary
 void addArguments(ArrayList<String> Args)
           
 void addJars(String Prefix, ArrayList<String> Jars, String Comment)
           
 void createInfoTag()
           
 void createResourcesTag()
           
 ArrayList<String> getLibJars()
           
 ArrayList<String> getMainClass(ArrayList<String> JarFiles, String JarDir)
           
 ArrayList<String> getPluginJars()
           
 String getString()
           
static void main(String[] args)
           
 void writeToFile()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Doc

public org.jdom.Document Doc

Root

public org.jdom.Element Root

Out

public org.jdom.output.XMLOutputter Out

LibDir

public String LibDir

PluginDir

public String PluginDir
Constructor Detail

JnlpWriterUtil

public JnlpWriterUtil(String[] args)
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

getString

public String getString()
Returns:
jdom.Document as a string

writeToFile

public void writeToFile()
                 throws IOException
Parameters:
Loc - - directory to write xml file
Throws:
IOException

createInfoTag

public void createInfoTag()

createResourcesTag

public void createResourcesTag()

addJars

public void addJars(String Prefix,
                    ArrayList<String> Jars,
                    String Comment)
Parameters:
Prefix - (append to beginning of jar file name)
Jars -
Comment -

getLibJars

public ArrayList<String> getLibJars()

getPluginJars

public ArrayList<String> getPluginJars()

getMainClass

public ArrayList<String> getMainClass(ArrayList<String> JarFiles,
                                      String JarDir)
Parameters:
JarFiles -
JarDir -
Returns:
ArrayList of the CytoscapePlugin classes that could be determined from each plugin

addArguments

public void addArguments(ArrayList<String> Args)
Parameters:
Args - These are all plugin arguments at the moment, only specifies the -p tag between each.

www.cytoscape.org