pl.edu.agh.cast.importer.base.converter.rules
Class AbstractStringSingleColumnConversionRule
java.lang.Object
pl.edu.agh.cast.importer.base.converter.rules.AbstractSingleColumnConversionRule
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RULE_ID
public static final String RULE_ID
- The extension name of this conversion rule.
- See Also:
- Constant Field Values
AbstractStringSingleColumnConversionRule
public AbstractStringSingleColumnConversionRule()
- The default constructor.
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.