pl.edu.agh.cast.importer.base.converter.rules
Interface IConversionRule

All Known Subinterfaces:
IDateConversionRule, ISourceNodeConversionRule, ITargetNodeConversionRule
All Known Implementing Classes:
AbstractDateDoubleColumnConversionRule, AbstractDateSingleColumnConversionRule, AbstractDirectedGraphConversionRule, AbstractIntegerSingleColumnConversionRule, AbstractSingleColumnConversionRule, AbstractStringSingleColumnConversionRule, DateDoubleColumnConversionRule, DateSingleColumnConversionRule, DirectedGraphConversionRule, SourceNodeSingleColumnConversionRule, TargetNodeSingleColumnConversionRule

public interface IConversionRule

Interface for all conversion strategies (rules of conversion), used by the IImportConverter to transform given data to a specified domain model field.

Author:
AGH CAST Team

Method Summary
 void clear()
          Clears the conversion rule's configuration.
 IConversionRule createCopy()
          Creates a copy of the current conversion rule.
 String getFormat()
          Retrieves the domain field format.
 boolean isComplete()
          Checks whether current conversion rule is fully configured - all necessary parameters are present and the the conversion process can be performed.
 void setFormat(String format)
          Sets the domain field format.
 

Method Detail

isComplete

boolean isComplete()
Checks whether current conversion rule is fully configured - all necessary parameters are present and the the conversion process can be performed.

Returns:
flag indicating the rule's completion state

clear

void clear()
Clears the conversion rule's configuration.


createCopy

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

Returns:
conversion rule of the same type and parameters set

setFormat

void setFormat(String format)
Sets the domain field format.

Parameters:
format - the field format

getFormat

String getFormat()
Retrieves the domain field format.

Returns:
the field format


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