Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.align.io.impl
Class LoadAlignmentAdvisor

java.lang.Object
  extended by eu.esdihumboldt.hale.common.core.io.impl.AbstractIOAdvisor<T>
      extended by eu.esdihumboldt.hale.common.core.io.impl.ConfigurationIOAdvisor<AlignmentReader>
          extended by eu.esdihumboldt.hale.common.align.io.impl.LoadAlignmentAdvisor
All Implemented Interfaces:
IOAdvisor<AlignmentReader>

public class LoadAlignmentAdvisor
extends ConfigurationIOAdvisor<AlignmentReader>

Advisor for loading an alignment using an existing IOConfiguration.

Author:
Simon Templer

Constructor Summary
LoadAlignmentAdvisor(IOConfiguration conf, TypeIndex sourceSchema, TypeIndex targetSchema)
          Create an advisor for loading an alignment based on the given I/O configuration.
 
Method Summary
 Alignment getAlignment()
          Get the loaded alignment.
 void handleResults(AlignmentReader provider)
          Process the results after the execution.
 void prepareProvider(AlignmentReader provider)
          Prepare the I/O provider when it is created.
 
Methods inherited from class eu.esdihumboldt.hale.common.core.io.impl.ConfigurationIOAdvisor
setConfiguration
 
Methods inherited from class eu.esdihumboldt.hale.common.core.io.impl.AbstractIOAdvisor
updateConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoadAlignmentAdvisor

public LoadAlignmentAdvisor(IOConfiguration conf,
                            TypeIndex sourceSchema,
                            TypeIndex targetSchema)
Create an advisor for loading an alignment based on the given I/O configuration.

Parameters:
conf - the I/O configuration
sourceSchema - the source schema
targetSchema - the target schema
Method Detail

prepareProvider

public void prepareProvider(AlignmentReader provider)
Description copied from interface: IOAdvisor
Prepare the I/O provider when it is created. This may be executed even if for the provider no execution takes place.

This for instance allows configuration pages on IOWizards to base on this preparation.

Specified by:
prepareProvider in interface IOAdvisor<AlignmentReader>
Overrides:
prepareProvider in class ConfigurationIOAdvisor<AlignmentReader>
Parameters:
provider - the I/O provider
See Also:
ConfigurationIOAdvisor.prepareProvider(IOProvider)

handleResults

public void handleResults(AlignmentReader provider)
Description copied from interface: IOAdvisor
Process the results after the execution.

Specified by:
handleResults in interface IOAdvisor<AlignmentReader>
Overrides:
handleResults in class AbstractIOAdvisor<AlignmentReader>
Parameters:
provider - the I/O provider
See Also:
AbstractIOAdvisor.handleResults(IOProvider)

getAlignment

public Alignment getAlignment()
Get the loaded alignment.

Returns:
the alignment or null if it was not loaded or loading failed

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d