com.canoo.ant.table
Class APropertyTable

java.lang.Object
  extended by com.canoo.ant.table.APropertyTable
All Implemented Interfaces:
IPropertyTable
Direct Known Subclasses:
DirectoryPropertyTable, ExcelPropertyTable

public abstract class APropertyTable
extends Object
implements IPropertyTable


Field Summary
protected static String EMPTY
           
protected static String KEY_JOIN
           
 
Constructor Summary
protected APropertyTable()
           
 
Method Summary
protected  void expandName(List result, String expansionName, Map colInfo)
           
protected  List expandProps(Properties props, String expansionName, Map colInfo)
           
protected  List getCachedTable(String table, List tableCache)
           
 Map getColumnInfo()
           
 File getContainer()
           
 ITableFilter getFilter()
           
 List getMetaTable()
          lazy getter, cached
 String getPrefix()
           
 List getPropertiesList(String filterValue, String prefix)
           
 List getRawTable()
          lazy getter, cached
 String getTable()
           
protected  boolean hasJoinTable()
          Indicates if the table container has a JOIN table.
protected abstract  List read(String table)
           
 void setContainer(File container)
           
 void setFilter(ITableFilter filter)
           
 void setPrefix(String prefix)
           
 void setTable(String table)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

protected static final String EMPTY
See Also:
Constant Field Values

KEY_JOIN

protected static final String KEY_JOIN
See Also:
Constant Field Values
Constructor Detail

APropertyTable

protected APropertyTable()
Method Detail

getColumnInfo

public Map getColumnInfo()
Specified by:
getColumnInfo in interface IPropertyTable
Returns:
columnName -> expander (Type IPropertyTable)

getPropertiesList

public List getPropertiesList(String filterValue,
                              String prefix)
Specified by:
getPropertiesList in interface IPropertyTable
Returns:
List of Property objects
See Also:
Properties

expandName

protected void expandName(List result,
                          String expansionName,
                          Map colInfo)

expandProps

protected List expandProps(Properties props,
                           String expansionName,
                           Map colInfo)

getContainer

public File getContainer()
Specified by:
getContainer in interface IPropertyTable

setContainer

public void setContainer(File container)
Specified by:
setContainer in interface IPropertyTable

getTable

public String getTable()
Specified by:
getTable in interface IPropertyTable

setTable

public void setTable(String table)
Specified by:
setTable in interface IPropertyTable

getFilter

public ITableFilter getFilter()
Specified by:
getFilter in interface IPropertyTable

setFilter

public void setFilter(ITableFilter filter)
Specified by:
setFilter in interface IPropertyTable

getPrefix

public String getPrefix()
Specified by:
getPrefix in interface IPropertyTable

setPrefix

public void setPrefix(String prefix)
Specified by:
setPrefix in interface IPropertyTable

getRawTable

public List getRawTable()
lazy getter, cached


getMetaTable

public List getMetaTable()
lazy getter, cached


hasJoinTable

protected boolean hasJoinTable()
Indicates if the table container has a JOIN table.

Returns:
default is true

getCachedTable

protected List getCachedTable(String table,
                              List tableCache)

read

protected abstract List read(String table)
                      throws IOException
Throws:
IOException

Copyright © 2001-2007 Canoo Engineering AG, Basel. All rights reserved.