com.crocus.examples.csv.record
Class AbstractCSVRecordManager

java.lang.Object
  extended by com.crocus.examples.csv.record.AbstractCSVRecordManager
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CSVRecordManager

public abstract class AbstractCSVRecordManager
extends Object
implements Serializable

Description: An Abstract Record Manager

Author:
M Shaaf
See Also:
Serialized Form
Email:
shaaf.m@gmail.com

Constructor Summary
AbstractCSVRecordManager()
           
 
Method Summary
abstract  void addRecord(CSVRecord record)
           
 void addRecordListener(RecordListener recordListener)
           
abstract  void containsRecord(CSVRecord record)
           
abstract  Collection<CSVRecord> getAllRecords()
           
abstract  Object[] getColumn(int columnIndex)
           
abstract  int getColumnCount()
           
abstract  CSVField getField(int rowIndex, int columnIndex)
           
abstract  String getFieldType(int rowIndex, int columnIndex)
           
abstract  CSVRecord getNewRecord()
           
abstract  Collection<CSVRecord> getRecordList()
           
abstract  CSVRecord getRow(int rowIndex)
           
abstract  int getRowCount()
           
abstract  Object getValueAt(int rowIndex, int columnIndex)
           
protected  boolean isAllowListener()
           
protected  boolean isEventAsync()
           
protected  void sendEvent(CSVRecord csvRecord, int RECORD_EVENT_TYPE)
          Notifies Event to Listeners
protected  void sendEvent(RecordEvent recordEvent)
          Notifies Event to Listeners
protected  void setAllowListener(boolean allowListener)
           
protected  void setEventAsync(boolean eventAsync)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCSVRecordManager

public AbstractCSVRecordManager()
Method Detail

sendEvent

protected void sendEvent(CSVRecord csvRecord,
                         int RECORD_EVENT_TYPE)
Notifies Event to Listeners

Parameters:
csvRecord -
RECORD_EVENT_TYPE -

sendEvent

protected void sendEvent(RecordEvent recordEvent)
Notifies Event to Listeners

Parameters:
recordEvent -

addRecord

public abstract void addRecord(CSVRecord record)
Parameters:
record - CSVRecord

getRecordList

public abstract Collection<CSVRecord> getRecordList()
Returns:
Collection

containsRecord

public abstract void containsRecord(CSVRecord record)
Parameters:
record - CSVRecord

getColumn

public abstract Object[] getColumn(int columnIndex)
Parameters:
columnIndex - int
Returns:
Object[]

getRow

public abstract CSVRecord getRow(int rowIndex)

getAllRecords

public abstract Collection<CSVRecord> getAllRecords()
Returns:
Collection

getNewRecord

public abstract CSVRecord getNewRecord()
Returns:
CSVRecord

getRowCount

public abstract int getRowCount()
Returns:
int

getColumnCount

public abstract int getColumnCount()
Returns:
int

getValueAt

public abstract Object getValueAt(int rowIndex,
                                  int columnIndex)
Parameters:
rowIndex - int
columnIndex - int
Returns:
Object

getField

public abstract CSVField getField(int rowIndex,
                                  int columnIndex)
Parameters:
rowIndex - int
columnIndex - int
Returns:
CSVField

getFieldType

public abstract String getFieldType(int rowIndex,
                                    int columnIndex)
Parameters:
rowIndex - int
columnIndex - int
Returns:
String

addRecordListener

public void addRecordListener(RecordListener recordListener)

setAllowListener

protected void setAllowListener(boolean allowListener)

isAllowListener

protected boolean isAllowListener()

setEventAsync

protected void setEventAsync(boolean eventAsync)

isEventAsync

protected boolean isEventAsync()

Crocus - The First Flower of Spring