public class ProjectTransformationEnvironment extends Object implements TransformationEnvironment
Project
.Constructor and Description |
---|
ProjectTransformationEnvironment(String id,
LocatableInputSupplier<? extends InputStream> input,
ReportHandler reportHandler)
Create a transformation environment based on a project file.
|
Modifier and Type | Method and Description |
---|---|
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.
|
<T> T |
getService(Class<T> serviceInterface)
Get the service of the given type 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.
|
public ProjectTransformationEnvironment(String id, LocatableInputSupplier<? extends InputStream> input, ReportHandler reportHandler) throws IOException
id
- the identifier for the transformation environmentinput
- the project file inputreportHandler
- the report handler for the reports during project
loading, may be null
IOException
- if loading the project failsprotected void init(Project project)
project
- the projectpublic Collection<? extends IOConfiguration> getExportPresets()
TransformationEnvironment
getExportPresets
in interface TransformationEnvironment
TransformationEnvironment.getExportPresets()
public Collection<? extends IOConfiguration> getExportTemplates()
TransformationEnvironment
getExportTemplates
in interface TransformationEnvironment
TransformationEnvironment.getExportTemplates()
public String getId()
TransformationEnvironment
getId
in interface TransformationEnvironment
public ProjectInfo getProjectInfo()
TransformationEnvironment
getProjectInfo
in interface TransformationEnvironment
null
public Project getProject()
public Alignment getAlignment()
TransformationEnvironment
getAlignment
in interface TransformationEnvironment
public SchemaSpace getSourceSchema()
TransformationEnvironment
getSourceSchema
in interface TransformationEnvironment
public SchemaSpace getTargetSchema()
TransformationEnvironment
getTargetSchema
in interface TransformationEnvironment
public <T> T getService(Class<T> serviceInterface)
ServiceProvider
getService
in interface ServiceProvider
serviceInterface
- the service interface or typenull
if no such service existsBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a