org.jplate.tabular.parser
Interface TabularBuilderIfc<V>

Type Parameters:
V - The tabular value being built.
All Superinterfaces:
BuilderIfc<V>, JPlateBuilderIfc<V>
All Known Subinterfaces:
CdvBuilderIfc<V>, CdvListBuilderIfc, CdvTableBuilderIfc, CsvBuilderIfc<V>, CsvListBuilderIfc, CsvTableBuilderIfc, TableBuilderIfc, TabularListBuilderIfc, TdvBuilderIfc<V>, TdvListBuilderIfc, TdvTableBuilderIfc
All Known Implementing Classes:
DefaultTableBuilder, DefaultTabularListBuilder

public interface TabularBuilderIfc<V>
extends JPlateBuilderIfc<V>

A builder of tabular data. Called when fields and records are to be built.

Modifications:
    $Date: 2008-12-02 12:32:45 -0500 (Tue, 02 Dec 2008) $
    $Revision: 479 $
    $Author: sfloess $
    $HeadURL: https://jplate.svn.sourceforge.net/svnroot/jplate/trunk/src/dev/java/org/jplate/tabular/parser/TabularBuilderIfc.java $
    


Method Summary
 void buildField(java.lang.String field, int line, int column)
          This method is called when a field is encountered.
 void buildOmittedField(int line, int column)
          This method is called when a field is omitted.
 void buildRecord(int line)
          This method is called when a record is to be built.
 
Methods inherited from interface org.jplate.foundation.parser.JPlateBuilderIfc
buildEnd, buildStart
 
Methods inherited from interface org.jplate.foundation.gof.builder.BuilderIfc
getResult, reset
 

Method Detail

buildRecord

void buildRecord(int line)
                 throws JPlateBuildingException
This method is called when a record is to be built. No column value is presented for any line, the starting column will always be 1.

Parameters:
line - The line number where the record was found.
Throws:
JPlateBuildingException - If there is a problem building the record.

buildField

void buildField(java.lang.String field,
                int line,
                int column)
                throws JPlateBuildingException
This method is called when a field is encountered.

Parameters:
field - The data in the field.
line - The line where field starts.
column - The column number where field starts.
Throws:
JPlateBuildingException - If there is a problem building the field.

buildOmittedField

void buildOmittedField(int line,
                       int column)
                       throws JPlateBuildingException
This method is called when a field is omitted.

Parameters:
line - represents the line where the omitted field starts.
column - represents the column where the omitted field starts.
Throws:
JPlateBuildingException - if there is a problem building the omitted field.