com.jamonapi.utils
Class BufferListDetailData

java.lang.Object
  extended by com.jamonapi.utils.BufferListDetailData
All Implemented Interfaces:
DetailData

public class BufferListDetailData
extends java.lang.Object
implements DetailData

This class builds the returned array data based on info from header and first row. If header has more columns than data then each data is padded with nulls. If first rows data has more columns than header then the header is padded with headers named 'colN' where N is the column number. If any rows of data have fewer columns than either the data in the first row or the header they are shrunken or grown as neccesary filling any excess columns with nulls, and truncating any excess columns.

Author:
steve souza

Constructor Summary
BufferListDetailData(BufferList bufferList)
           
 
Method Summary
 java.lang.Object[][] getData()
           
 java.lang.String[] getHeader()
           
 int getRowCount()
           
 boolean hasData()
           
 boolean isEmpty()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferListDetailData

public BufferListDetailData(BufferList bufferList)
Method Detail

getHeader

public java.lang.String[] getHeader()
Specified by:
getHeader in interface DetailData

getData

public java.lang.Object[][] getData()
Specified by:
getData in interface DetailData

getRowCount

public int getRowCount()

hasData

public boolean hasData()

isEmpty

public boolean isEmpty()