edu.unh.sdb.datasource
Class XDDLReader

java.lang.Object
  extended by edu.unh.sdb.common.XMLReader
      extended by edu.unh.sdb.datasource.XDDLReader

public class XDDLReader
extends XMLReader


Field Summary
protected  AxisOrdering axisOrdering
           
protected  DataSourceBuilder dsBuilder
           
protected  DataSourceCollection dsList
          declare a table/list to hold the actual datasources
protected  java.lang.String dsName
           
protected static java.util.Hashtable endiannessList
           
protected  FDLDescriptor fdlDescriptor
          the FDLDescriptor that will hold all data for current FDL
protected  ISBounds isBounds
           
protected  java.util.Vector lowerAxes
          interim lower bounds specifications
protected  DataSource[] publicDSArray
          for PublicDS
protected  java.util.ArrayList publicDSNameList
           
protected  java.util.Vector upperAxes
          interim upper bounds specifications
 
Fields inherited from class edu.unh.sdb.common.XMLReader
doc, inputFileName, keyElement, parser, verbose
 
Constructor Summary
XDDLReader(java.lang.String inf)
          Takes an argument name of a file or URL as a String and sets verbose to false
XDDLReader(java.lang.String inf, boolean v)
          Takes an argument name of a file or URL as a String and a verbose indicator
 
Method Summary
 DataSource[] getAllPublicDS()
           
 ISBounds getBounds()
          Returns the bounds of the Index Space for this FDLDescriptor.
 java.nio.ByteOrder getByteOrder(java.lang.String dsName)
          Returns the endianness of the datasource specified by dsName
 DataSourceBuilder getDataSourceBuilder()
          returns the DataSourceBuilder to a new builder *
 DataSourceCollection getDataSources()
          Returns the list of Datasources
 java.lang.String getDSName()
          Returns the datasource name
 FDLDescriptor getFDLDescriptor()
          returns an FDLDescriptor object containing all of the files attributes
 DataSource getPublicDS(java.lang.String name)
           
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
 void setBounds(ISBounds bounds)
          Sets the bounds of the Index Space for this datasource.
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
 

Field Detail

dsList

protected DataSourceCollection dsList
declare a table/list to hold the actual datasources


fdlDescriptor

protected FDLDescriptor fdlDescriptor
the FDLDescriptor that will hold all data for current FDL


lowerAxes

protected java.util.Vector lowerAxes
interim lower bounds specifications


upperAxes

protected java.util.Vector upperAxes
interim upper bounds specifications


dsName

protected java.lang.String dsName

isBounds

protected ISBounds isBounds

axisOrdering

protected AxisOrdering axisOrdering

dsBuilder

protected DataSourceBuilder dsBuilder

endiannessList

protected static java.util.Hashtable endiannessList

publicDSArray

protected DataSource[] publicDSArray
for PublicDS


publicDSNameList

protected java.util.ArrayList publicDSNameList
Constructor Detail

XDDLReader

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


XDDLReader

public XDDLReader(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


getFDLDescriptor

public FDLDescriptor getFDLDescriptor()
returns an FDLDescriptor object containing all of the files attributes


setBounds

public void setBounds(ISBounds bounds)
Sets the bounds of the Index Space for this datasource. If a null reference is passed, then an IllegalArgumentException is thrown.


getBounds

public ISBounds getBounds()
Returns the bounds of the Index Space for this FDLDescriptor.


getDSName

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


getDataSourceBuilder

public DataSourceBuilder getDataSourceBuilder()
returns the DataSourceBuilder to a new builder *


getDataSources

public DataSourceCollection getDataSources()
Returns the list of Datasources


getByteOrder

public java.nio.ByteOrder getByteOrder(java.lang.String dsName)
Returns the endianness of the datasource specified by dsName


getPublicDS

public DataSource getPublicDS(java.lang.String name)

getAllPublicDS

public DataSource[] getAllPublicDS()