com.fdsapi
Class DataSetCol

java.lang.Object
  |
  +--com.fdsapi.DataSet
        |
        +--com.fdsapi.DataSetDecorator
              |
              +--com.fdsapi.DataSetCol
All Implemented Interfaces:
java.lang.Cloneable

public class DataSetCol
extends DataSetDecorator

DataSet used for columns.

View Code


Field Summary
 
Fields inherited from class com.fdsapi.DataSetDecorator
data
 
Fields inherited from class com.fdsapi.DataSet
dataSetParm, templateTagType, variables
 
Constructor Summary
protected DataSetCol()
           
 
Method Summary
 DataIterator createDataIterator()
          Iterator factory method
 DataSet createFactoryInstance()
          A Factory method that creates a clone of this DataSet (see gang of 4 "Factory method" pattern).
 boolean next(int x, int y)
           
 void setDataSetParm(DataSetParm dsp)
          DataSetCol uses the DataIterator from all of its member DataSets to figure out how to iterate through itself.
 
Methods inherited from class com.fdsapi.DataSetDecorator
clone, createFactoryInstance, execute, execute, getData, getDataSet, getPrefix, getSuffix, initialize
 
Methods inherited from class com.fdsapi.DataSet
getCellData, getDataSetParm, getMiscDataMap, getStringBuffer, getTabularData, getTemplateVariables, getVariableValue, log, next, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataSetCol

protected DataSetCol()
Method Detail

createFactoryInstance

public DataSet createFactoryInstance()
Description copied from class: DataSet
A Factory method that creates a clone of this DataSet (see gang of 4 "Factory method" pattern). This allows the type of DataSet to be determined at runtime.

Overrides:
createFactoryInstance in class DataSetDecorator

setDataSetParm

public void setDataSetParm(DataSetParm dsp)
DataSetCol uses the DataIterator from all of its member DataSets to figure out how to iterate through itself. Due to this fact all member DataSets must have their DataIterators created before the DataSetCol can. At the time this code was written the ancestor class assumed the opposite of this, so the code below does not call super.setDataSetParm(dsp). This is a little ugly and so could use refactoring.

Overrides:
setDataSetParm in class DataSetDecorator

createDataIterator

public DataIterator createDataIterator()
Description copied from class: DataSet
Iterator factory method

Overrides:
createDataIterator in class DataSet

next

public boolean next(int x,
                    int y)
Overrides:
next in class DataSetDecorator