eu.etaxonomy.cdm.io.dwca.in
Class ConverterBase<STATE extends IoStateBase>

java.lang.Object
  extended by eu.etaxonomy.cdm.io.dwca.in.ConverterBase<STATE>
Direct Known Subclasses:
DwcTaxonCsv2CdmTaxonConverter, DwcTaxonCsv2CdmTaxonRelationConverter, GbifDescriptionCsv2CdmConverter, GbifVernacularNameCsv2CdmConverter

public class ConverterBase<STATE extends IoStateBase>
extends Object

Author:
a.mueller

Field Summary
protected  STATE state
           
 
Constructor Summary
ConverterBase()
           
 
Method Summary
protected  boolean exists(TermUri term, CsvStreamItem item)
          Checks if the given term has a value in item that is not blank (null, empty or whitespace only).
protected  void fire(IIoEvent event)
           
protected  void fireWarningEvent(String message, CsvStreamItem item, Integer severity)
           
protected  void fireWarningEvent(String message, String dataLocation, Integer severity)
           
protected  void fireWarningEvent(String message, String dataLocation, Integer severity, int stackDepth)
           
protected  String getValue(CsvStreamItem item, TermUri term)
          Returns the value for the given term in the item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

state

protected STATE extends IoStateBase state
Constructor Detail

ConverterBase

public ConverterBase()
Method Detail

fireWarningEvent

protected void fireWarningEvent(String message,
                                CsvStreamItem item,
                                Integer severity)

fireWarningEvent

protected void fireWarningEvent(String message,
                                String dataLocation,
                                Integer severity)

fireWarningEvent

protected void fireWarningEvent(String message,
                                String dataLocation,
                                Integer severity,
                                int stackDepth)

fire

protected void fire(IIoEvent event)

getValue

protected String getValue(CsvStreamItem item,
                          TermUri term)
Returns the value for the given term in the item.


exists

protected boolean exists(TermUri term,
                         CsvStreamItem item)
Checks if the given term has a value in item that is not blank (null, empty or whitespace only).

Parameters:
term -
item -
Returns:
true if value is not blank


Copyright © 2007-2012 EDIT. All Rights Reserved.