net.sourceforge.addam.impexp
Class Tables

java.lang.Object
  extended by net.sourceforge.addam.impexp.Tables

public class Tables
extends Object

Provides a list of tables and associated csv files for import or export.

Since:
Aug 2, 2004
Author:
TIM3

Field Summary
private  List<String> names
           
private  Pattern pattern
           
 
Constructor Summary
Tables()
           
 
Method Summary
private  void checkInputs()
           
 boolean contains(String name)
           
static List<String> narrow(List<String> allTableNames, List<Tables> includes, List<Tables> excludes)
           
 void setFile(File file)
          sets the file to read table names from; this is used when the tablelist is provided as an element, i.e.
 void setNames(String tableNames)
          a comma separated list of the names of tables <tablelist file="foo.csv"/>
 void setPattern(String pattern)
          sets the file to read table names from; this is used when the tablelist is provided as an element, i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

names

private final List<String> names

pattern

private Pattern pattern
Constructor Detail

Tables

public Tables()
Method Detail

contains

public boolean contains(String name)

setNames

public void setNames(String tableNames)
a comma separated list of the names of tables <tablelist file="foo.csv"/>

Parameters:
tableNames - the file to read from

setPattern

public void setPattern(String pattern)
sets the file to read table names from; this is used when the tablelist is provided as an element, i.e. <tablelist file="foo.csv"/>

Parameters:
pattern - a regular expression to compare against

setFile

public void setFile(File file)
sets the file to read table names from; this is used when the tablelist is provided as an element, i.e. <tablelist file="foo.csv"/>

Parameters:
file - the file to read from

checkInputs

private void checkInputs()

narrow

public static List<String> narrow(List<String> allTableNames,
                                  List<Tables> includes,
                                  List<Tables> excludes)


Copyright © 2005-2006 ADDAM Project Team. All Rights Reserved.