pl.edu.agh.cast.importer.base.converter.rules
Class AbstractDateSingleColumnConversionRule

java.lang.Object
  extended by pl.edu.agh.cast.importer.base.converter.rules.AbstractSingleColumnConversionRule
      extended by pl.edu.agh.cast.importer.base.converter.rules.AbstractDateSingleColumnConversionRule
All Implemented Interfaces:
IConversionRule
Direct Known Subclasses:
DateSingleColumnConversionRule

public abstract class AbstractDateSingleColumnConversionRule
extends AbstractSingleColumnConversionRule

Retrieves and returns a date value from a specified column of given data row. If fetching field fails it throws ConversionRuleException with one parameter which indicates column index of affected cell.

Author:
AGH CAST Team

Field Summary
static String RULE_ID
          The extension name of this conversion rule.
 
Fields inherited from class pl.edu.agh.cast.importer.base.converter.rules.AbstractSingleColumnConversionRule
columnIndex
 
Constructor Summary
AbstractDateSingleColumnConversionRule()
          The default constructor.
 
Method Summary
 Date fetchDomainField(DataRow row)
          Filters and processes a given row, in order to fetch a Date field value.
 
Methods inherited from class pl.edu.agh.cast.importer.base.converter.rules.AbstractSingleColumnConversionRule
clear, copyFields, getColumnIndex, getFormat, isComplete, setColumnIndex, setFormat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface pl.edu.agh.cast.importer.base.converter.rules.IConversionRule
createCopy
 

Field Detail

RULE_ID

public static final String RULE_ID
The extension name of this conversion rule.

See Also:
Constant Field Values
Constructor Detail

AbstractDateSingleColumnConversionRule

public AbstractDateSingleColumnConversionRule()
The default constructor.

Method Detail

fetchDomainField

public Date fetchDomainField(DataRow row)
                      throws ConversionRuleException,
                             IllegalArgumentException
Filters and processes a given row, in order to fetch a Date field value.

Parameters:
row - the row to fetch the date value from
Returns:
the Date field value
Throws:
ConversionRuleException
IllegalArgumentException


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.