pl.edu.agh.cast.importer.base.general
Class TargetNodeSingleColumnConversionRule

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
          extended by pl.edu.agh.cast.importer.base.general.TargetNodeSingleColumnConversionRule
All Implemented Interfaces:
IConversionRule, ITargetNodeConversionRule

public class TargetNodeSingleColumnConversionRule
extends AbstractStringSingleColumnConversionRule
implements ITargetNodeConversionRule

Target node conversion rule for a single column.

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
TargetNodeSingleColumnConversionRule()
          The default constructor.
 
Method Summary
 TargetNodeSingleColumnConversionRule createCopy()
          Creates a copy of the current conversion rule.
 String getTargetNode(DataRow row)
          Retrieves the target node value for a specified data row.
 
Methods inherited from class pl.edu.agh.cast.importer.base.converter.rules.AbstractStringSingleColumnConversionRule
fetchDomainField
 
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
clear, getFormat, isComplete, setFormat
 

Field Detail

RULE_ID

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

See Also:
Constant Field Values
Constructor Detail

TargetNodeSingleColumnConversionRule

public TargetNodeSingleColumnConversionRule()
The default constructor.

Method Detail

getTargetNode

public String getTargetNode(DataRow row)
                     throws ConversionRuleException,
                            IllegalArgumentException
Retrieves the target node value for a specified data row.

Specified by:
getTargetNode in interface ITargetNodeConversionRule
Parameters:
row - the data row, from which to retrieve the target node value
Returns:
target node value
Throws:
ConversionRuleException
IllegalArgumentException
See Also:
getTargetNode(pl.edu.agh.cast.importer.base.data.DataRow)

createCopy

public TargetNodeSingleColumnConversionRule createCopy()
Creates a copy of the current conversion rule.

Specified by:
createCopy in interface IConversionRule
Returns:
conversion rule of the same type and parameters set
See Also:
IConversionRule.createCopy()


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