Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.headless.impl
Class HeadlessProjectAdvisor

java.lang.Object
  extended by eu.esdihumboldt.hale.common.core.io.impl.AbstractIOAdvisor<ProjectReader>
      extended by eu.esdihumboldt.hale.common.headless.impl.HeadlessProjectAdvisor
All Implemented Interfaces:
IOAdvisor<ProjectReader>

public class HeadlessProjectAdvisor
extends AbstractIOAdvisor<ProjectReader>

Advisor for loading a project headless. Only loads schemas and alignment, and stores them in the advisor. As such an advisor instance may be used only once to load a single project.

Author:
Simon Templer

Nested Class Summary
 class HeadlessProjectAdvisor.LoadAlignment
          Loads an alignment.
 
Constructor Summary
HeadlessProjectAdvisor(ReportHandler reportHandler)
          Default constructor
 
Method Summary
 Alignment getAlignment()
          Get the alignment between source and target schemas.
 Project getProject()
          Get the loaded project.
 SchemaSpace getSourceSchema()
          Get the source schemas.
 SchemaSpace getTargetSchema()
          Get the target schemas.
 void handleResults(ProjectReader provider)
          Process the results after the execution.
 void updateConfiguration(ProjectReader provider)
          Update the provider configuration directly before the execution.
 
Methods inherited from class eu.esdihumboldt.hale.common.core.io.impl.AbstractIOAdvisor
prepareProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeadlessProjectAdvisor

public HeadlessProjectAdvisor(ReportHandler reportHandler)
Default constructor

Parameters:
reportHandler - the report handler to use when executing contained I/O configurations, may be null
Method Detail

updateConfiguration

public void updateConfiguration(ProjectReader provider)
Description copied from interface: IOAdvisor
Update the provider configuration directly before the execution.

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

handleResults

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

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

getProject

public Project getProject()
Get the loaded project. Can be retrieved after the project was successfully loaded.

Returns:
the project

getAlignment

public Alignment getAlignment()
Get the alignment between source and target schemas. Can be retrieved after the project was successfully loaded.

Returns:
the alignment

getSourceSchema

public SchemaSpace getSourceSchema()
Get the source schemas. Can be retrieved after the project was successfully loaded.

Returns:
the source schemas

getTargetSchema

public SchemaSpace getTargetSchema()
Get the target schemas. Can be retrieved after the project was successfully loaded.

Returns:
the target schemas

Humboldt Alignment Editor 2.5.0

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