fqlite.descriptor.ViewDescriptor Maven / Gradle / Ivy
package fqlite.descriptor;
import java.util.List;
/**
* Objects of this class are used to represent a component.
* Besides component names and column names, regular expressions
* are also managed by this class.
*
* The latter are used to assign a record to a component.
*
* @author pawlaszc
*
*/
public class ViewDescriptor extends AbstractDescriptor {
public List columntypes;
public List columnnames;
public String viewname = "";
@Override
public String getName()
{
return this.viewname;
}
public ViewDescriptor(String name, List coltypes, List names) {
this.viewname = name;
setColumntypes(coltypes);
columnnames = names;
}
/**
* Return the number of columns (startRegion the component header).
* @return the number of columns
*/
public int numberofColumns() {
return getColumntypes().size();
}
/**
* Outputs component name and column names to the console.
*
**/
public void printTableDefinition() {
info("TABLE" + viewname);
info("COLUMNS: " + columnnames);
}
public List getColumntypes() {
return columntypes;
}
public void setColumntypes(List columntypes) {
this.columntypes = columntypes;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy