rdbtoonto.dbmodel
Class Column

java.lang.Object
  extended by rdbtoonto.dbmodel.Column

public class Column
extends java.lang.Object

Class for representing data columns.


Constructor Summary
Column(java.lang.String name)
          Creates a Column with no data.
 
Method Summary
 void addValue(java.lang.String val)
          Adds a value at the end of the column.
 void display()
           
 void displaySample(int nbElts)
           
 void exportSample(java.io.PrintWriter out, int nbElts)
           
 void exportSample(java.io.PrintWriter out, int nbElts, java.util.Set<java.lang.Integer> recPoss)
           
 java.lang.String getName()
           
 int getNbElements()
           
 java.util.Set<java.lang.String> getTokenTypes()
           
 java.lang.String getValue(int i)
          Returns the value which is at i position in the column.
 java.util.Vector<java.lang.String> getValues()
          Returns a vector of the values stored in the column.
 boolean hasIntContent()
           
 boolean hasMissingValues()
           
 int nbEntriesWithVal(java.lang.String val)
           
 void setHasMissingValues(boolean val)
           
 void setName(java.lang.String name)
           
 void setValue(java.lang.String val, int i)
          Replaces the value at i position with value "val".
 void setValues(java.util.Vector<java.lang.String> values)
          Sets the values of the column
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Column

public Column(java.lang.String name)
Creates a Column with no data.

Parameters:
name. - Name of the attribute
Method Detail

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getValues

public java.util.Vector<java.lang.String> getValues()
Returns a vector of the values stored in the column.
Returns an empty vector if no data are included.


getValue

public java.lang.String getValue(int i)
Returns the value which is at i position in the column.


setValues

public void setValues(java.util.Vector<java.lang.String> values)
Sets the values of the column


setValue

public void setValue(java.lang.String val,
                     int i)
Replaces the value at i position with value "val".


addValue

public void addValue(java.lang.String val)
Adds a value at the end of the column.


getNbElements

public int getNbElements()

getTokenTypes

public java.util.Set<java.lang.String> getTokenTypes()

nbEntriesWithVal

public int nbEntriesWithVal(java.lang.String val)

hasMissingValues

public boolean hasMissingValues()

setHasMissingValues

public void setHasMissingValues(boolean val)

hasIntContent

public boolean hasIntContent()

display

public void display()

displaySample

public void displaySample(int nbElts)

exportSample

public void exportSample(java.io.PrintWriter out,
                         int nbElts)

exportSample

public void exportSample(java.io.PrintWriter out,
                         int nbElts,
                         java.util.Set<java.lang.Integer> recPoss)