public abstract class SDRFConversionHandler<O> extends AbstractHandler implements ConversionHandler<SDRF,O>
SDRF to some external output resource.listeners| Constructor and Description | 
|---|
SDRFConversionHandler()  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
canConvert(Object data,
          Object outputResource)
Determine whether this handler can convert the supplied data. 
 | 
protected abstract boolean | 
canConvertData(SDRF data)
Performs specific checks on the IDF to determine if this handler can convert it. 
 | 
void | 
convert(SDRF data,
       O out)
Invoke this convert handler. 
 | 
protected abstract void | 
convertData(SDRF data,
           O out)
Performs the unit of work to convert the data into the given output resource. 
 | 
accept, addListener, fireHandlingFailedEvent, fireHandlingStartedEvent, fireHandlingSucceededEvent, getListeners, getLog, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccept, addListener, getListeners, removeListenerpublic boolean canConvert(Object data, Object outputResource)
ConversionHandlercanConvert in interface ConversionHandler<SDRF,O>data - the data that needs to be writtenoutputResource - the output resource the will be written topublic void convert(SDRF data, O out) throws ConversionException
convertData(uk.ac.ebi.arrayexpress2.magetab.datamodel.SDRF, Object). This method
 itself governs the update of progress tracking and status information.convert in interface ConversionHandler<SDRF,O>data - the data model object that information should be written fromout - the resource that data can be converted toConversionException - if the handler failed to convert data from it's sourceprotected abstract boolean canConvertData(SDRF data)
canConvert(Object, Object) in that it is typed to the IDF and not any object - canConvert(Object,
 Object) handles type checking at the abstract level.data - the IDF to checkprotected abstract void convertData(SDRF data, O out) throws ConversionException
data - the data to convertout - the model data is being converted toConversionException - if there was an error writing the dataCopyright © 2014. All rights reserved.