edu.unh.sdb.lattice
Class XLDLReader

java.lang.Object
  extended by edu.unh.sdb.common.XMLReader
      extended by edu.unh.sdb.lattice.XLDLReader

public class XLDLReader
extends XMLReader


Field Summary
 
Fields inherited from class edu.unh.sdb.common.XMLReader
doc, inputFileName, keyElement, parser, verbose
 
Constructor Summary
XLDLReader(java.lang.String inf)
          Takes an argument name of a file or URL as a String and sets verbose to false
XLDLReader(java.lang.String inf, boolean v)
          Takes an argument name of a file or URL as a String and a verbose indicator
XLDLReader(java.lang.String inf, boolean v, DataSourceCollection ds)
          Takes an argument name of a file or URL as a String, a verbose indicator and a data source list
 
Method Summary
 void addLattice(Lattice ls)
          Adds a new lattice to the existing collection
 LatticeBuilder getCurrentLatticeBuilder()
          Returns the current LatticeBuilder
 DataSourceCollection getDataSources()
          Returns the list of Datasources
 java.lang.String getDSName()
          Returns the datasource name
 LatticeBuilder getLatticeBuilder(java.lang.String name)
          Returns the LatticeBuilder with the lattice name specified
 java.util.ArrayList getLatticeBuilders()
          Returns the list of LatticeBuilder
 LatticeCollection getLattices()
          Returns the list of Datasources
static void main(java.lang.String[] argv)
          main method used for testing the class
 boolean nameExists(java.lang.String newDSName)
          Returns true/false if the name exists in the datasource collection
protected  boolean processDoc()
          process the main document in the xml file
protected  void setDefaults()
          Sets all pending values to null and sets the join flag to FALSE
 
Methods inherited from class edu.unh.sdb.common.XMLReader
makeChildrenFloat, makeChildrenInteger, makeChildrenText, makeChildrenText1, parse, processArrayOfInt, setInputFileName, start, sToF, sToi, sToI, vectorToFloatArray, vectorToIntArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XLDLReader

public XLDLReader(java.lang.String inf,
                  boolean v,
                  DataSourceCollection ds)
Takes an argument name of a file or URL as a String, a verbose indicator and a data source list


XLDLReader

public XLDLReader(java.lang.String inf,
                  boolean v)
Takes an argument name of a file or URL as a String and a verbose indicator


XLDLReader

public XLDLReader(java.lang.String inf)
Takes an argument name of a file or URL as a String and sets verbose to false

Method Detail

setDefaults

protected void setDefaults()
Sets all pending values to null and sets the join flag to FALSE

Overrides:
setDefaults in class XMLReader

main

public static void main(java.lang.String[] argv)
main method used for testing the class


processDoc

protected boolean processDoc()
process the main document in the xml file

Specified by:
processDoc in class XMLReader

nameExists

public boolean nameExists(java.lang.String newDSName)
Returns true/false if the name exists in the datasource collection


addLattice

public void addLattice(Lattice ls)
Adds a new lattice to the existing collection


getDSName

public java.lang.String getDSName()
Returns the datasource name


getLatticeBuilders

public java.util.ArrayList getLatticeBuilders()
Returns the list of LatticeBuilder


getCurrentLatticeBuilder

public LatticeBuilder getCurrentLatticeBuilder()
Returns the current LatticeBuilder


getLatticeBuilder

public LatticeBuilder getLatticeBuilder(java.lang.String name)
Returns the LatticeBuilder with the lattice name specified


getLattices

public LatticeCollection getLattices()
Returns the list of Datasources


getDataSources

public DataSourceCollection getDataSources()
Returns the list of Datasources