Humboldt Alignment Editor 2.5.0

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

java.lang.Object
  extended by eu.esdihumboldt.hale.common.headless.impl.ProjectTransformationEnvironment
All Implemented Interfaces:
TransformationEnvironment

public class ProjectTransformationEnvironment
extends Object
implements TransformationEnvironment

Transformation environment based on a Project.

Author:
Simon Templer

Constructor Summary
ProjectTransformationEnvironment(String id, LocatableInputSupplier<? extends InputStream> input, ReportHandler reportHandler)
          Create a transformation environment based on a project file.
 
Method Summary
 Alignment getAlignment()
          Get the alignment between source and target schemas.
 Collection<? extends IOConfiguration> getExportPresets()
          Get the export presets configured for the project.
 Collection<? extends IOConfiguration> getExportTemplates()
          Get export templates compatible to the target schema, not fully configured.
 String getId()
          Get the unique identifier for this transformation environment.
 Project getProject()
          Get the associated project.
 ProjectInfo getProjectInfo()
          Get information on the associated project, if available.
 SchemaSpace getSourceSchema()
          Get the source schemas.
 SchemaSpace getTargetSchema()
          Get the target schemas.
protected  void init(Project project)
          Initialize the environment based on the loaded project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectTransformationEnvironment

public ProjectTransformationEnvironment(String id,
                                        LocatableInputSupplier<? extends InputStream> input,
                                        ReportHandler reportHandler)
                                 throws IOException
Create a transformation environment based on a project file.

Parameters:
id - the identifier for the transformation environment
input - the project file input
reportHandler - the report handler for the reports during project loading, may be null
Throws:
IOException - if loading the project fails
Method Detail

init

protected void init(Project project)
Initialize the environment based on the loaded project.

Parameters:
project - the project

getExportPresets

public Collection<? extends IOConfiguration> getExportPresets()
Description copied from interface: TransformationEnvironment
Get the export presets configured for the project.

Specified by:
getExportPresets in interface TransformationEnvironment
Returns:
copies of the export presets, fully configured except for the target
See Also:
TransformationEnvironment.getExportPresets()

getExportTemplates

public Collection<? extends IOConfiguration> getExportTemplates()
Description copied from interface: TransformationEnvironment
Get export templates compatible to the target schema, not fully configured.

Specified by:
getExportTemplates in interface TransformationEnvironment
Returns:
copies of the export templates, configured at least with the action and provider ID
See Also:
TransformationEnvironment.getExportTemplates()

getId

public String getId()
Description copied from interface: TransformationEnvironment
Get the unique identifier for this transformation environment.

Specified by:
getId in interface TransformationEnvironment
Returns:
the identifier

getProjectInfo

public ProjectInfo getProjectInfo()
Description copied from interface: TransformationEnvironment
Get information on the associated project, if available.

Specified by:
getProjectInfo in interface TransformationEnvironment
Returns:
the project information or null

getProject

public Project getProject()
Get the associated project.

Returns:
the project, must not be changed

getAlignment

public Alignment getAlignment()
Description copied from interface: TransformationEnvironment
Get the alignment between source and target schemas.

Specified by:
getAlignment in interface TransformationEnvironment
Returns:
the alignment

getSourceSchema

public SchemaSpace getSourceSchema()
Description copied from interface: TransformationEnvironment
Get the source schemas.

Specified by:
getSourceSchema in interface TransformationEnvironment
Returns:
the source schemas

getTargetSchema

public SchemaSpace getTargetSchema()
Description copied from interface: TransformationEnvironment
Get the target schemas.

Specified by:
getTargetSchema in interface TransformationEnvironment
Returns:
the target schemas

Humboldt Alignment Editor 2.5.0

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