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

java.lang.Object
  extended by pl.edu.agh.cast.importer.base.converter.rules.AbstractSingleColumnConversionRule
      extended by pl.edu.agh.cast.importer.base.converter.rules.AbstractStringSingleColumnConversionRule
All Implemented Interfaces:
IConversionRule
Direct Known Subclasses:
SourceNodeSingleColumnConversionRule, TargetNodeSingleColumnConversionRule

public abstract class AbstractStringSingleColumnConversionRule
extends AbstractSingleColumnConversionRule

Retrieves and returns a string 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
AbstractStringSingleColumnConversionRule()
          The default constructor.
 
Method Summary
 String fetchDomainField(DataRow row)
          Filters and processes a given row, in order to fetch a String 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

AbstractStringSingleColumnConversionRule

public AbstractStringSingleColumnConversionRule()
The default constructor.

Method Detail

fetchDomainField

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

Parameters:
row - the row to fetch the string value from
Returns:
the String field value
Throws:
ConversionRuleException
IllegalArgumentException


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