pl.edu.agh.cast.importer.base.general
Class DirectedGraphConversionRule
java.lang.Object
pl.edu.agh.cast.importer.base.converter.rules.AbstractDirectedGraphConversionRule
pl.edu.agh.cast.importer.base.general.DirectedGraphConversionRule
- All Implemented Interfaces:
- IConversionRule, ISourceNodeConversionRule, ITargetNodeConversionRule
public class DirectedGraphConversionRule
- extends AbstractDirectedGraphConversionRule
- implements ISourceNodeConversionRule, ITargetNodeConversionRule
Source and target nodes' conversion for two String
columns and one Direction
column.
- Author:
- AGH CAST Team
Methods inherited from class pl.edu.agh.cast.importer.base.converter.rules.AbstractDirectedGraphConversionRule |
checkRowNullEmpty, clear, clearDirectionColumnIndex, clearNodeAColumnIndex, clearNodeBColumnIndex, copyFields, getColumnAIndex, getColumnBIndex, getDirectionColumnIndex, getDirectionValue, getFormat, getStringColumnValue, isComplete, setColumnAIndex, setColumnBIndex, setDirectionColumnIndex, setFormat |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectedGraphConversionRule
public DirectedGraphConversionRule()
getSourceNode
public String getSourceNode(DataRow row)
throws ConversionRuleException,
IllegalArgumentException
- Returns source node.
- Specified by:
getSourceNode
in interface ISourceNodeConversionRule
- Overrides:
getSourceNode
in class AbstractDirectedGraphConversionRule
- Parameters:
row
- input row
- Returns:
- source node
- Throws:
ConversionRuleException
IllegalArgumentException
- See Also:
getSourceNode(pl.edu.agh.cast.importer.base.data.DataRow)
getTargetNode
public String getTargetNode(DataRow row)
throws ConversionRuleException,
IllegalArgumentException
- Returns target node.
- Specified by:
getTargetNode
in interface ITargetNodeConversionRule
- Overrides:
getTargetNode
in class AbstractDirectedGraphConversionRule
- Parameters:
row
- input row
- Returns:
- target node
- Throws:
ConversionRuleException
IllegalArgumentException
- See Also:
getTargetNode(pl.edu.agh.cast.importer.base.data.DataRow)
createCopy
public IConversionRule 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.