public class DBLineParsers
extends java.lang.Object
Constructor and Description |
---|
DBLineParsers() |
Modifier and Type | Method and Description |
---|---|
static DBSchema |
parseDBaseLine(java.lang.String line,
int lineno,
java.util.List<java.lang.String> tableNames)
a dbase declaration is on a single line.
|
static OOSchema |
parseOODBLine(java.lang.String line,
int lineno,
java.util.List<java.lang.String> tableNames)
a oodbase declaration is on a single line.
|
static void |
parseSubTableLine(java.lang.String line,
int lineno,
Schema dbs,
java.lang.String filename,
ErrorReport er)
a subtable declaration is on a single line.
|
static TableSchema |
parseTableLine(LineToParse l,
ErrorReport er)
a table declaration is on a single line.
|
static void |
parseTableLine(java.lang.String line,
int lineno,
Schema dbs,
java.lang.String filename,
java.util.List<java.lang.String> tableNames,
ErrorReport er)
a table declaration is on a single line.
|
static void |
parseTupleLine(java.lang.String line,
int lineno,
DB db,
java.lang.String fileName,
ErrorReport er)
parses a line at lineno, expecting to parse a legal prolog tuple
declaration.
|
public static DBSchema parseDBaseLine(java.lang.String line, int lineno, java.util.List<java.lang.String> tableNames)
line
- -- a stringlineno
- -- the line number associated with this linetableNames
- -- an empty list which is to be filled with table names
and returnedpublic static OOSchema parseOODBLine(java.lang.String line, int lineno, java.util.List<java.lang.String> tableNames)
line
- -- a stringlineno
- -- the line number associated with this linetableNames
- -- an empty list which is to be filled with table names
and returnedpublic static void parseSubTableLine(java.lang.String line, int lineno, Schema dbs, java.lang.String filename, ErrorReport er)
line
- to parselineno
- of linedbs
- to add subtable definitionfilename
- name of file from which this line was takener
- error reporterpublic static void parseTupleLine(java.lang.String line, int lineno, DB db, java.lang.String fileName, ErrorReport er)
line
- to parselineno
- line number of the linedb
- database in which to insertfileName
- name of file from which this line was reader
- error reporterpublic static void parseTableLine(java.lang.String line, int lineno, Schema dbs, java.lang.String filename, java.util.List<java.lang.String> tableNames, ErrorReport er)
line
- to parselineno
- of linedbs
- to add table declarationfilename
- name of file from which this line was readtableNames
- --list of legal table nameser
- -- error reporterpublic static TableSchema parseTableLine(LineToParse l, ErrorReport er)
l
- -- LineToParseer
- error reporter