edu.unh.sdb.datasource
Class XTDLReader

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

public class XTDLReader
extends XMLReader


Field Summary
static int RANGED_TYPE
          denotes a RandedType
static int RECORD_TYPE
          denotes a RecordType
static int SIMPLE_TYPE
          denotes a simple UserType
 
Fields inherited from class edu.unh.sdb.common.XMLReader
doc, inputFileName, keyElement, parser, verbose
 
Constructor Summary
XTDLReader(java.lang.String inf)
          Takes an argument name of a file and default to non-verbose
XTDLReader(java.lang.String inf, boolean v)
          Takes an argument name of a file or URL as a String and a verbose indicator
 
Method Summary
 void addUserType(UserType t)
          adds a completed type to the TypeTable
 UserTypeBuilder getBuilder()
          returns the DataSourceBuilder to a new builder
 java.lang.String getTypeName()
          Returns the Type name
 TypeTable getTypes()
          returns the TypeTable collection class
static void main(java.lang.String[] argv)
          main method used for testing the class
protected  boolean processDoc()
          process the main document in the xml file
protected  void setDefaults()
          Sets all pending values to null
 
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

SIMPLE_TYPE

public static final int SIMPLE_TYPE
denotes a simple UserType

See Also:
Constant Field Values

RANGED_TYPE

public static final int RANGED_TYPE
denotes a RandedType

See Also:
Constant Field Values

RECORD_TYPE

public static final int RECORD_TYPE
denotes a RecordType

See Also:
Constant Field Values
Constructor Detail

XTDLReader

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


XTDLReader

public XTDLReader(java.lang.String inf)
Takes an argument name of a file and default to non-verbose

Method Detail

setDefaults

protected void setDefaults()
Sets all pending values to null

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

addUserType

public void addUserType(UserType t)
adds a completed type to the TypeTable


getTypeName

public java.lang.String getTypeName()
Returns the Type name


getBuilder

public UserTypeBuilder getBuilder()
returns the DataSourceBuilder to a new builder


getTypes

public TypeTable getTypes()
returns the TypeTable collection class