mappingmicroarrayprobestotheratgenomeviaapersistentindex
Class XMLParser

java.lang.Object
  extended by mappingmicroarrayprobestotheratgenomeviaapersistentindex.XMLParser

public class XMLParser
extends java.lang.Object

This class allows the XML configuration files used by the software to be read


Field Summary
private  org.w3c.dom.Document doc
           
 
Constructor Summary
XMLParser(java.lang.String fileName)
           
 
Method Summary
private  java.util.List<java.lang.String> get16exSearchQueries()
          Gets the queries for the 16ex search
private  java.util.List<java.lang.String> get19exSearchQueries()
          Gets the queries for the 19ex search
private  java.util.List<java.lang.String> get19k1SearchQueries()
          Gets the queries for the 19k1 search
private  java.util.List<java.lang.String> get19k3SearchQueries()
          Gets the queries for the 19k3 search
private  java.util.List<java.lang.String> getBuildIndexQueries()
          Gets the queries used to build the index
 java.lang.String[] getConfigurationDetails()
          Gets the configuration details - database name, username and password - from the configuration file
 java.util.List<java.lang.String> getQueries(java.lang.String whatQueries)
          Gets the queries from the configuration file
private  java.util.List<java.lang.String> getStoreProbesQueries()
          Gets the queries used to store the probes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

doc

private org.w3c.dom.Document doc
Constructor Detail

XMLParser

public XMLParser(java.lang.String fileName)
Method Detail

getConfigurationDetails

public java.lang.String[] getConfigurationDetails()
Gets the configuration details - database name, username and password - from the configuration file

Returns:
a string array containing the database url, name, username and password taken from the configuration file

getQueries

public java.util.List<java.lang.String> getQueries(java.lang.String whatQueries)
Gets the queries from the configuration file

Parameters:
whatQueries - specifies what queries to get
Returns:
a list of the queries

getBuildIndexQueries

private java.util.List<java.lang.String> getBuildIndexQueries()
Gets the queries used to build the index

Returns:
a list of the queries

getStoreProbesQueries

private java.util.List<java.lang.String> getStoreProbesQueries()
Gets the queries used to store the probes

Returns:
a list of the queries

get19exSearchQueries

private java.util.List<java.lang.String> get19exSearchQueries()
Gets the queries for the 19ex search

Returns:
a list of the queries

get19k1SearchQueries

private java.util.List<java.lang.String> get19k1SearchQueries()
Gets the queries for the 19k1 search

Returns:
a list of the queries

get19k3SearchQueries

private java.util.List<java.lang.String> get19k3SearchQueries()
Gets the queries for the 19k3 search

Returns:
a list of the queries

get16exSearchQueries

private java.util.List<java.lang.String> get16exSearchQueries()
Gets the queries for the 16ex search

Returns:
a list of the queries